mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
.NET/Java/ML: Moved toggle_warning_messages to Global, added en/disable_trace.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
941d1063dd
commit
b96551a1a2
8 changed files with 98 additions and 33 deletions
|
@ -4287,17 +4287,7 @@ namespace Microsoft.Z3
|
|||
public ParamDescrs SimplifyParameterDescriptions
|
||||
{
|
||||
get { return new ParamDescrs(this, Native.Z3_simplify_get_param_descrs(nCtx)); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enable/disable printing of warning messages to the console.
|
||||
/// </summary>
|
||||
/// <remarks>Note that this function is static and effects the behaviour of
|
||||
/// all contexts globally.</remarks>
|
||||
public static void ToggleWarningMessages(bool enabled)
|
||||
{
|
||||
Native.Z3_toggle_warning_messages((enabled) ? 1 : 0);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Error Handling
|
||||
|
|
|
@ -82,6 +82,40 @@ namespace Microsoft.Z3
|
|||
public static void ResetParameters()
|
||||
{
|
||||
Native.Z3_global_param_reset_all();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enable/disable printing of warning messages to the console.
|
||||
/// </summary>
|
||||
/// <remarks>Note that this function is static and effects the behaviour of
|
||||
/// all contexts globally.</remarks>
|
||||
public static void ToggleWarningMessages(bool enabled)
|
||||
{
|
||||
Native.Z3_toggle_warning_messages((enabled) ? 1 : 0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enable tracing messages tagged as `tag' when Z3 is compiled in debug mode.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// It is a NOOP otherwise.
|
||||
/// </remarks>
|
||||
/// <param name="tag">trace tag</param>
|
||||
public static void EnableTrace(string tag)
|
||||
{
|
||||
Native.Z3_enable_trace(tag);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disable tracing messages tagged as `tag' when Z3 is compiled in debug mode.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// It is a NOOP otherwise.
|
||||
/// </remarks>
|
||||
/// <param name="tag">trace tag</param>
|
||||
public static void DisableTrace(string tag)
|
||||
{
|
||||
Native.Z3_disable_trace(tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue