3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00
minor tweaks to gomory and reset n3 within loop (but the entire function is dead code).
This commit is contained in:
Nikolaj Bjorner 2023-11-19 09:59:44 -08:00
parent 924c296704
commit 35bc522dae
3 changed files with 12 additions and 4 deletions

View file

@ -91,7 +91,13 @@ namespace Microsoft.Z3
/// </summary>
~Constructor()
{
Native.Z3_del_constructor(Context.nCtx, NativeObject);
if (Context.nCtx != IntPtr.Zero) {
lock (Context)
{
if (Context.nCtx != IntPtr.Zero)
Native.Z3_del_constructor(Context.nCtx, NativeObject);
}
}
}
#region Internal