21 using System.Diagnostics.Contracts;
23 namespace Microsoft.Z3
32 [ContractVerification(
true)]
33 public static class Log
35 private static bool m_is_open =
false;
42 public static bool Open(
string filename)
45 return Native.Z3_open_log(filename) == 1;
51 public static void Close()
54 Native.Z3_close_log();
60 public static void Append(
string s)
62 Contract.Requires(isOpen());
65 throw new Z3Exception(
"Log cannot be closed.");
66 Native.Z3_append_log(s);
74 public static bool isOpen()