public class Goal extends Z3Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(Expr<BoolSort>... constraints)
Adds the
constraints to the given goal. |
BoolExpr |
AsBoolExpr()
Goal to BoolExpr conversion.
|
Model |
convertModel(Model m)
Convert a model for the goal into a model of the
original goal from which this goal was derived.
|
int |
getDepth()
The depth of the goal.
|
BoolExpr[] |
getFormulas()
The formulas in the goal.
|
int |
getNumExprs()
The number of formulas, subformulas and terms in the goal.
|
Z3_goal_prec |
getPrecision()
The precision of the goal.
|
boolean |
inconsistent()
Indicates whether the goal contains `false'.
|
boolean |
isDecidedSat()
Indicates whether the goal is empty, and it is precise or the product of
an under approximation.
|
boolean |
isDecidedUnsat()
Indicates whether the goal contains `false', and it is precise or the
product of an over approximation.
|
boolean |
isGarbage()
Indicates whether the goal is garbage (i.e., the product of over- and
under-approximations).
|
boolean |
isOverApproximation()
Indicates whether the goal is an over-approximation.
|
boolean |
isPrecise()
Indicates whether the goal is precise.
|
boolean |
isUnderApproximation()
Indicates whether the goal is an under-approximation.
|
void |
reset()
Erases all formulas from the given goal.
|
Goal |
simplify()
Simplifies the goal.
|
Goal |
simplify(Params p)
Simplifies the goal.
|
int |
size()
The number of formulas in the goal.
|
String |
toString()
Goal to string conversion.
|
Goal |
translate(Context ctx)
Translates (copies) the Goal to the target Context
ctx. |
arrayLength, arrayToNativepublic Z3_goal_prec getPrecision()
public boolean isPrecise()
public boolean isUnderApproximation()
public boolean isOverApproximation()
public boolean isGarbage()
@SafeVarargs public final void add(Expr<BoolSort>... constraints)
constraints to the given goal.Z3Exceptionpublic boolean inconsistent()
public int getDepth()
public void reset()
public int size()
public BoolExpr[] getFormulas()
Z3Exceptionpublic int getNumExprs()
public boolean isDecidedSat()
public boolean isDecidedUnsat()
public Goal translate(Context ctx)
ctx.Z3Exceptionpublic Goal simplify()
public Goal simplify(Params p)
public String toString()
public BoolExpr AsBoolExpr()
public Model convertModel(Model m)
gZ3Exception