public class Goal extends Z3Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(BoolExpr... constraints)
Adds the
constraints to the given goal. |
BoolExpr |
AsBoolExpr()
Goal to BoolExpr conversion.
|
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.
|
java.lang.String |
toString()
Goal to string conversion.
|
Goal |
translate(Context ctx)
Translates (copies) the Goal to the target Context
ctx. |
public Z3_goal_prec getPrecision()
public boolean isPrecise()
public boolean isUnderApproximation()
public boolean isOverApproximation()
public boolean isGarbage()
public void add(BoolExpr... 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 java.lang.String toString()
toString in class java.lang.Objectpublic BoolExpr AsBoolExpr()