3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 21:38:44 +00:00

Update NativeContext.cs

TraceToFile does not correspond to the functionality of enable_trace. Z3_enable_trace tags a trace tag as input. It can be invoked multiple times with different tags. The debug tracing then shows logs with the corresponding tags.
This commit is contained in:
Nikolaj Bjorner 2022-06-21 09:09:31 -07:00
parent b254f4086b
commit d792d30e88

View file

@ -1341,13 +1341,13 @@ namespace Microsoft.Z3
#region Tracing #region Tracing
/// <summary> /// <summary>
/// Enable tracint to file /// Enable trace to file
/// </summary> /// </summary>
/// <param name="file"></param> /// <param name="tag">Tag to trace</param>
public void TraceToFile(string file) public static void EnableTrace(string tag)
{ {
Debug.Assert(!string.IsNullOrEmpty(file)); Debug.Assert(!string.IsNullOrEmpty(tag));
Native.Z3_enable_trace(file); Native.Z3_enable_trace(tag);
} }
#endregion #endregion