public class Fixedpoint extends Z3Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(Expr<BoolSort>... constraints)
Assert a constraint (or multiple) into the fixedpoint solver.
|
void |
addCover(int level,
FuncDecl<BoolSort> predicate,
Expr<?> property)
Add property about the predicate.
|
void |
addFact(FuncDecl<BoolSort> pred,
int... args)
Add table fact to the fixedpoint solver.
|
void |
addRule(Expr<BoolSort> 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<BoolSort> predicate)
Retrieve the cover of a predicate.
|
String |
getHelp()
A string that describes all available fixedpoint solver parameters.
|
int |
getNumLevels(FuncDecl<BoolSort> predicate)
Retrieve the number of levels explored for a given predicate.
|
ParamDescrs |
getParameterDescriptions()
Retrieves parameter descriptions for Fixedpoint solver.
|
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(String file)
Parse an SMT-LIB2 file with fixedpoint rules.
|
BoolExpr[] |
ParseString(String s)
Parse an SMT-LIB2 string with fixedpoint rules.
|
Status |
query(Expr<BoolSort> query)
Query the fixedpoint solver.
|
Status |
query(FuncDecl<BoolSort>[] relations)
Query the fixedpoint solver.
|
void |
registerRelation(FuncDecl<BoolSort> f)
Register predicate as recursive relation.
|
void |
setParameters(Params value)
Sets the fixedpoint solver parameters.
|
void |
setPredicateRepresentation(FuncDecl<BoolSort> f,
Symbol[] kinds)
Instrument the Datalog engine on which table representation to use for
recursive predicate.
|
String |
toString()
Retrieve internal string representation of fixedpoint object.
|
String |
toString(Expr<BoolSort>[] queries)
Convert benchmark given as set of axioms, rules and queries to a string.
|
void |
updateRule(Expr<BoolSort> rule,
Symbol name)
Update named rule into in the fixedpoint solver.
|
arrayLength, arrayToNativepublic String getHelp()
public void setParameters(Params value)
Z3Exceptionpublic ParamDescrs getParameterDescriptions()
Z3Exception@SafeVarargs public final void add(Expr<BoolSort>... constraints)
Z3Exceptionpublic void registerRelation(FuncDecl<BoolSort> f)
Z3Exceptionpublic void addRule(Expr<BoolSort> rule, Symbol name)
rule - implication (Horn clause) representing rulename - Nullable rule name.Z3Exceptionpublic void addFact(FuncDecl<BoolSort> pred, int... args)
Z3Exceptionpublic Status query(Expr<BoolSort> query)
Z3Exceptionpublic Status query(FuncDecl<BoolSort>[] relations)
Z3Exceptionpublic void updateRule(Expr<BoolSort> rule, Symbol name)
rule - implication (Horn clause) representing rulename - Nullable rule name.Z3Exceptionpublic Expr<?> getAnswer()
Z3Exceptionpublic String getReasonUnknown()
public int getNumLevels(FuncDecl<BoolSort> predicate)
public Expr<?> getCoverDelta(int level, FuncDecl<BoolSort> predicate)
Z3Exceptionpublic void addCover(int level,
FuncDecl<BoolSort> predicate,
Expr<?> property)
public String toString()
public void setPredicateRepresentation(FuncDecl<BoolSort> f, Symbol[] kinds)
public String toString(Expr<BoolSort>[] queries)
public BoolExpr[] getRules()
Z3Exceptionpublic BoolExpr[] getAssertions()
Z3Exceptionpublic Statistics getStatistics()
Z3Exceptionpublic BoolExpr[] ParseFile(String file)