62 Native.Z3_on_clause_eh on_clause_eh;
66 var onc = (
OnClause)GCHandle.FromIntPtr(ctx).Target;
67 using var proof_hint =
Expr.Create(onc.ctx, _proof_hint);
68 using var clause =
new ASTVector(onc.ctx, _clause);
69 onc.on_clause(proof_hint, clause);
77 gch = GCHandle.Alloc(
this);
81 on_clause_eh = _on_clause;
82 Native.Z3_solver_register_on_clause(ctx.nCtx, solver.NativeObject, GCHandle.ToIntPtr(gch), on_clause_eh);
The main interaction with Z3 happens via the Context.