21 using System.Runtime.InteropServices;
22 using System.Diagnostics.Contracts;
24 namespace Microsoft.Z3
33 [ContractVerification(
true)]
41 public double Apply(
Goal g)
43 Contract.Requires(g != null);
52 public double this[
Goal g] {
get {
53 Contract.Requires(g != null);
61 Contract.Requires(ctx != null);
63 internal Probe(Context ctx,
string name)
66 Contract.Requires(ctx != null);
69 internal class DecRefQueue : Z3.DecRefQueue
71 public override void IncRef(Context ctx, IntPtr obj)
73 Native.Z3_probe_inc_ref(ctx.nCtx, obj);
76 public override void DecRef(Context ctx, IntPtr obj)
78 Native.Z3_probe_dec_ref(ctx.nCtx, obj);
82 internal override void IncRef(IntPtr o)
84 Context.Probe_DRQ.IncAndClear(Context, o);
88 internal override void DecRef(IntPtr o)
90 Context.Probe_DRQ.Add(o);