35 return Native.tacticGetHelp(getContext().nCtx(), getNativeObject());
44 return new ParamDescrs(getContext(), Native.tacticGetParamDescrs(getContext()
45 .nCtx(), getNativeObject()));
54 return apply(g,
null);
63 getContext().checkContextMatch(g);
65 return new ApplyResult(getContext(), Native.tacticApply(getContext()
66 .nCtx(), getNativeObject(), g.getNativeObject()));
69 getContext().checkContextMatch(p);
71 Native.tacticApplyEx(getContext().nCtx(), getNativeObject(),
72 g.getNativeObject(), p.getNativeObject()));
91 Tactic(Context ctx, String name)
93 super(ctx, Native.mkTactic(ctx.nCtx(), name));
98 Native.tacticIncRef(getContext().nCtx(), getNativeObject());
102 void addToReferenceQueue() {
104 getContext().getReferenceQueue().storeReference(
this, TacticRef::new);
107 private static class TacticRef
extends Z3ReferenceQueue.Reference<Tactic> {
109 private TacticRef(Tactic referent, ReferenceQueue<Z3Object> q) {
114 void decRef(Context ctx,
long z3Obj) {
115 Native.tacticDecRef(ctx.nCtx(), z3Obj);