Skip to content

Commit

Permalink
Update NativeContext.cs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
NikolajBjorner committed Jun 21, 2022
1 parent b254f40 commit d792d30
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/api/dotnet/NativeContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1341,13 +1341,13 @@ internal void InitContext()

#region Tracing
/// <summary>
/// Enable tracint to file
/// Enable trace to file
/// </summary>
/// <param name="file"></param>
public void TraceToFile(string file)
/// <param name="tag">Tag to trace</param>
public static void EnableTrace(string tag)
{
Debug.Assert(!string.IsNullOrEmpty(file));
Native.Z3_enable_trace(file);
Debug.Assert(!string.IsNullOrEmpty(tag));
Native.Z3_enable_trace(tag);
}

#endregion
Expand Down

0 comments on commit d792d30

Please sign in to comment.