mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 02:45: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
|
@ -3607,18 +3607,6 @@ public class Context extends IDisposable
|
|||
return new ParamDescrs(this, Native.simplifyGetParamDescrs(nCtx()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable/disable printing of warning messages to the console.
|
||||
* Remarks: Note
|
||||
* that this function is static and effects the behaviour of all contexts
|
||||
* globally.
|
||||
**/
|
||||
public static void ToggleWarningMessages(boolean enabled)
|
||||
throws Z3Exception
|
||||
{
|
||||
Native.toggleWarningMessages((enabled) ? true : false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update a mutable configuration parameter.
|
||||
* Remarks: The list of all
|
||||
|
|
|
@ -44,7 +44,7 @@ public final class Global
|
|||
**/
|
||||
public static void setParameter(String id, String value)
|
||||
{
|
||||
Native.globalParamSet(id, value);
|
||||
Native.globalParamSet(id, value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -71,6 +71,38 @@ public final class Global
|
|||
**/
|
||||
public static void resetParameters()
|
||||
{
|
||||
Native.globalParamResetAll();
|
||||
}
|
||||
Native.globalParamResetAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable/disable printing of warning messages to the console.
|
||||
* Remarks: Note
|
||||
* that this function is static and effects the behaviour of all contexts
|
||||
* globally.
|
||||
**/
|
||||
public static void ToggleWarningMessages(boolean enabled)
|
||||
throws Z3Exception
|
||||
{
|
||||
Native.toggleWarningMessages((enabled) ? true : false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable tracing messages tagged as `tag' when Z3 is compiled in debug mode.
|
||||
*
|
||||
* Remarks: It is a NOOP otherwise.
|
||||
**/
|
||||
public static void enableTrace(String tag)
|
||||
{
|
||||
Native.enableTrace(tag);
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable tracing messages tagged as `tag' when Z3 is compiled in debug mode.
|
||||
*
|
||||
* Remarks: It is a NOOP otherwise.
|
||||
**/
|
||||
public static void disableTrace(String tag)
|
||||
{
|
||||
Native.disableTrace(tag);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue