18 package com.microsoft.z3;
37 return Z3_goal_prec.fromInt(Native.goalPrecision(getContext().nCtx(),
81 getContext().checkContextMatch(constraints);
84 Native.goalAssert(getContext().nCtx(), getNativeObject(),
94 return Native.goalInconsistent(getContext().nCtx(), getNativeObject());
104 return Native.goalDepth(getContext().nCtx(), getNativeObject());
112 Native.goalReset(getContext().nCtx(), getNativeObject());
120 return Native.goalSize(getContext().nCtx(), getNativeObject());
132 for (
int i = 0; i < n; i++)
133 res[i] =
new BoolExpr(getContext(), Native.goalFormula(getContext()
134 .nCtx(), getNativeObject(), i));
143 return Native.goalNumExprs(getContext().nCtx(), getNativeObject());
152 return Native.goalIsDecidedSat(getContext().nCtx(), getNativeObject());
162 .goalIsDecidedUnsat(getContext().nCtx(), getNativeObject());
172 return new Goal(ctx, Native.goalTranslate(getContext().nCtx(),
173 getNativeObject(), ctx.nCtx()));
214 return Native.goalToString(getContext().nCtx(), getNativeObject());
225 return getContext().
mkTrue();
238 Goal(Context ctx,
boolean models,
boolean unsatCores,
boolean proofs) {
239 super(ctx, Native.mkGoal(ctx.nCtx(), (models),
240 (unsatCores), (proofs)));
245 Native.goalIncRef(getContext().nCtx(), getNativeObject());
249 void addToReferenceQueue() {
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)
void storeReference(Context ctx, T obj)
ApplyResult apply(Goal g)
boolean isOverApproximation()
BoolExpr mkAnd(BoolExpr... t)
BoolExpr [] getFormulas()
boolean isUnderApproximation()
Tactic mkTactic(String name)
Z3_goal_prec getPrecision()
def String(name, ctx=None)
IDecRefQueue< Goal > getGoalDRQ()