32 return Native.applyResultGetNumSubgoals(getContext().nCtx(),
45 for (
int i = 0; i < n; i++)
46 res[i] =
new Goal(getContext(),
47 Native.applyResultGetSubgoal(getContext().nCtx(), getNativeObject(), i));
56 return Native.applyResultToString(getContext().nCtx(), getNativeObject());
66 Native.applyResultIncRef(getContext().nCtx(), getNativeObject());
70 void addToReferenceQueue() {
71 getContext().getReferenceQueue().storeReference(
this, ApplyResultRef::new);
74 private static class ApplyResultRef
extends Z3ReferenceQueue.Reference<ApplyResult> {
76 private ApplyResultRef(ApplyResult referent, ReferenceQueue<Z3Object> q) {
81 void decRef(Context ctx,
long z3Obj) {
82 Native.applyResultDecRef(ctx.nCtx(), z3Obj);