18 package com.microsoft.z3;
38 return Z3_goal_prec.fromInt(Native.goalPrecision(getContext().nCtx(),
82 getContext().checkContextMatch(constraints);
85 Native.goalAssert(getContext().nCtx(), getNativeObject(),
95 return Native.goalInconsistent(getContext().nCtx(), getNativeObject());
105 return Native.goalDepth(getContext().nCtx(), getNativeObject());
113 Native.goalReset(getContext().nCtx(), getNativeObject());
121 return Native.goalSize(getContext().nCtx(), getNativeObject());
133 for (
int i = 0; i < n; i++)
135 .nCtx(), getNativeObject(), i));
144 return Native.goalNumExprs(getContext().nCtx(), getNativeObject());
153 return Native.goalIsDecidedSat(getContext().nCtx(), getNativeObject());
163 .goalIsDecidedUnsat(getContext().nCtx(), getNativeObject());
174 getNativeObject(), ctx.nCtx()));
184 Tactic t = getContext().mkTactic(
"simplify");
187 if (res.getNumSubgoals() == 0)
190 return res.getSubgoals()[0];
200 Tactic t = getContext().mkTactic(
"simplify");
203 if (res.getNumSubgoals() == 0)
206 return res.getSubgoals()[0];
218 return Native.goalToString(getContext().nCtx(), getNativeObject());
221 return "Z3Exception: " + e.getMessage();
233 return getContext().mkTrue();
246 Goal(Context ctx,
boolean models,
boolean unsatCores,
boolean proofs)
249 super(ctx, Native.mkGoal(ctx.nCtx(), (models) ?
true :
false,
250 (unsatCores) ?
true :
false, (proofs) ?
true :
false));
255 getContext().getGoalDRQ().incAndClear(getContext(), o);
261 getContext().getGoalDRQ().
add(o);
void add(BoolExpr...constraints)
Z3_goal_prec
A Goal is essentially a set of formulas. Z3 provide APIs for building strategies/tactics for solving ...
Goal translate(Context ctx)
static long goalTranslate(long a0, long a1, long a2)
static long goalFormula(long a0, long a1, int a2)
boolean isOverApproximation()
boolean isUnderApproximation()
Z3_goal_prec getPrecision()