public class Fixedpoint extends Z3Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(BoolExpr... constraints)
Assert a constraint (or multiple) into the fixedpoint solver.
|
void |
addCover(int level,
FuncDecl predicate,
Expr property)
Add property about the predicate.
|
void |
addFact(FuncDecl pred,
int... args)
Add table fact to the fixedpoint solver.
|
void |
addRule(BoolExpr rule,
Symbol name)
Add rule into the fixedpoint solver.
|
Expr |
getAnswer()
Retrieve satisfying instance or instances of solver, or definitions for
the recursive predicates that show unsatisfiability.
|
BoolExpr[] |
getAssertions()
Retrieve set of assertions added to fixedpoint context.
|
Expr |
getCoverDelta(int level,
FuncDecl predicate)
Retrieve the cover of a predicate.
|
java.lang.String |
getHelp()
A string that describes all available fixedpoint solver parameters.
|
int |
getNumLevels(FuncDecl predicate)
Retrieve the number of levels explored for a given predicate.
|
ParamDescrs |
getParameterDescriptions()
Retrieves parameter descriptions for Fixedpoint solver.
|
java.lang.String |
getReasonUnknown()
Retrieve explanation why fixedpoint engine returned status Unknown.
|
BoolExpr[] |
getRules()
Retrieve set of rules added to fixedpoint context.
|
Statistics |
getStatistics()
Fixedpoint statistics.
|
BoolExpr[] |
ParseFile(java.lang.String file)
Parse an SMT-LIB2 file with fixedpoint rules.
|
BoolExpr[] |
ParseString(java.lang.String s)
Parse an SMT-LIB2 string with fixedpoint rules.
|
void |
pop()
Backtrack one backtracking point.
|
void |
push()
Creates a backtracking point.
|
Status |
query(BoolExpr query)
Query the fixedpoint solver.
|
Status |
query(FuncDecl[] relations)
Query the fixedpoint solver.
|
void |
registerRelation(FuncDecl f)
Register predicate as recursive relation.
|
void |
setParameters(Params value)
Sets the fixedpoint solver parameters.
|
void |
setPredicateRepresentation(FuncDecl f,
Symbol[] kinds)
Instrument the Datalog engine on which table representation to use for
recursive predicate.
|
java.lang.String |
toString()
Retrieve internal string representation of fixedpoint object.
|
java.lang.String |
toString(BoolExpr[] queries)
Convert benchmark given as set of axioms, rules and queries to a string.
|
void |
updateRule(BoolExpr rule,
Symbol name)
Update named rule into in the fixedpoint solver.
|
public java.lang.String getHelp()
public void setParameters(Params value)
Z3Exceptionpublic ParamDescrs getParameterDescriptions()
Z3Exceptionpublic void add(BoolExpr... constraints)
Z3Exceptionpublic void registerRelation(FuncDecl f)
Z3Exceptionpublic void addRule(BoolExpr rule, Symbol name)
Z3Exceptionpublic void addFact(FuncDecl pred, int... args)
Z3Exceptionpublic Status query(BoolExpr query)
Z3Exceptionpublic Status query(FuncDecl[] relations)
Z3Exceptionpublic void push()
pop()public void pop()
pop
is called without a corresponding pushpush()public void updateRule(BoolExpr rule, Symbol name)
Z3Exceptionpublic Expr getAnswer()
Z3Exceptionpublic java.lang.String getReasonUnknown()
public int getNumLevels(FuncDecl predicate)
public Expr getCoverDelta(int level, FuncDecl predicate)
Z3Exceptionpublic void addCover(int level,
FuncDecl predicate,
Expr property)
public java.lang.String toString()
toString in class java.lang.Objectpublic void setPredicateRepresentation(FuncDecl f, Symbol[] kinds)
public java.lang.String toString(BoolExpr[] queries)
public BoolExpr[] getRules()
Z3Exceptionpublic BoolExpr[] getAssertions()
Z3Exceptionpublic Statistics getStatistics()
Z3Exceptionpublic BoolExpr[] ParseFile(java.lang.String file)
public BoolExpr[] ParseString(java.lang.String s)