Inheritance diagram for Solver:Public Member Functions | |
| String | getHelp () |
| void | setParameters (Params value) |
| ParamDescrs | getParameterDescriptions () |
| int | getNumScopes () |
| void | push () |
| void | pop () |
| void | pop (int n) |
| void | reset () |
| void | interrupt () |
| void | add (Expr< BoolSort >... constraints) |
| void | assertAndTrack (Expr< BoolSort >[] constraints, Expr< BoolSort >[] ps) |
| void | assertAndTrack (Expr< BoolSort > constraint, Expr< BoolSort > p) |
| void | fromFile (String file) |
| Load solver assertions from a file. | |
| void | fromString (String str) |
| Load solver assertions from a string. | |
| int | getNumAssertions () |
| BoolExpr[] | getAssertions () |
| final Status | check (Expr< BoolSort >... assumptions) |
| Status | check () |
| Status | getConsequences (Expr< BoolSort >[] assumptions, Expr<?>[] variables, List< Expr< BoolSort > > consequences) |
| Model | getModel () |
| Expr<?> | getProof () |
| BoolExpr[] | getUnsatCore () |
| BoolExpr[] | getUnits () |
| BoolExpr[] | getNonUnits () |
| BoolExpr[] | getTrail () |
| String | getReasonUnknown () |
| Solver | translate (Context ctx) |
| Statistics | getStatistics () |
| String | toString () |
Additional Inherited Members | |
Static Public Member Functions inherited from Z3Object | |
| static long[] | arrayToNative (Z3Object[] a) |
| static int | arrayLength (Z3Object[] a) |
Solvers.
Definition at line 30 of file Solver.java.
Assert a multiple constraints into the solver.
| Z3Exception |
Definition at line 128 of file Solver.java.
Referenced by Solver.__iadd__().
Assert a constraint into the solver, and track it (in the unsat) core using the Boolean constant p.
Remarks: This API is an alternative to check with assumptions for extracting unsat cores. Both APIs can be used in the same solver. The unsat core will contain a combination of the Boolean variables provided using assertAndTrack and the Boolean literals provided using check with assumptions.
Definition at line 180 of file Solver.java.
Assert multiple constraints into the solver, and track them (in the unsat) core using the Boolean constants in ps.
Remarks: This API is an alternative to check() with assumptions for extracting unsat cores. Both APIs can be used in the same solver. The unsat core will contain a combination of the Boolean variables provided using #assertAndTrack and the Boolean literals provided using check() with assumptions.
Definition at line 153 of file Solver.java.
|
inline |
Checks whether the assertions in the solver are consistent or not. Remarks:
Definition at line 258 of file Solver.java.
Checks whether the assertions in the solver are consistent or not. Remarks:
Definition at line 236 of file Solver.java.
|
inline |
Load solver assertions from a file.
Definition at line 192 of file Solver.java.
|
inline |
Load solver assertions from a string.
Definition at line 200 of file Solver.java.
|
inline |
The set of asserted formulas.
| Z3Exception |
Definition at line 222 of file Solver.java.
|
inline |
Retrieve fixed assignments to the set of variables in the form of consequences. Each consequence is an implication of the form
relevant-assumptions Implies variable = value
where the relevant assumptions is a subset of the assumptions that are passed in and the equality on the right side of the implication indicates how a variable is fixed.
Definition at line 274 of file Solver.java.
|
inline |
A string that describes all available solver parameters.
Definition at line 34 of file Solver.java.
|
inline |
The model of the last Check. Remarks: The result is null if Check was not invoked before, if its results was not SATISFIABLE, or if model production is not enabled.
| Z3Exception |
Definition at line 296 of file Solver.java.
|
inline |
Retrieve non-unit atomic formulas in the solver state. Remarks: This retrieves atomic formulas that are not units after a check call.
| Z3Exception |
Definition at line 362 of file Solver.java.
|
inline |
The number of assertions in the solver.
| Z3Exception |
Definition at line 211 of file Solver.java.
|
inline |
The current number of backtracking points (scopes).
Definition at line 67 of file Solver.java.
|
inline |
Retrieves parameter descriptions for solver.
| Z3Exception |
Definition at line 56 of file Solver.java.
|
inline |
The proof of the last Check. Remarks: The result is null if Check was not invoked before, if its results was not UNSATISFIABLE, or if proof production is disabled.
| Z3Exception |
Definition at line 315 of file Solver.java.
|
inline |
A brief justification of why the last call to Check returned UNKNOWN.
Definition at line 387 of file Solver.java.
|
inline |
Solver statistics.
| Z3Exception |
Definition at line 406 of file Solver.java.
|
inline |
Retrieve the solver decision trail. Remarks: This retrieves the trail of decisions made by the solver after a check call. The trail represents the sequence of Boolean literals (decisions and propagations) in the order they were assigned.
| Z3Exception |
Definition at line 377 of file Solver.java.
|
inline |
Retrieve currently inferred units. Remarks: This retrieves the set of literals that the solver has inferred at the current decision level after a check call.
| Z3Exception |
Definition at line 349 of file Solver.java.
|
inline |
The unsat core of the last Check. Remarks: The unsat core is a subset of Assertions The result is empty if Check was not invoked before, if its results was not UNSATISFIABLE, or if core production is disabled.
| Z3Exception |
Definition at line 334 of file Solver.java.
|
inline |
Interrupt the execution of the solver object. Remarks: This ensures that the interrupt applies only to the given solver object and it applies only if it is running.
Definition at line 118 of file Solver.java.
|
inline |
Backtracks one backtracking point. Remarks: .
Definition at line 86 of file Solver.java.
Referenced by Solver.__exit__().
|
inline |
Backtracks n backtracking points. Remarks: Note that an exception is thrown if n is not smaller than NumScopes
Definition at line 98 of file Solver.java.
Referenced by Solver.__exit__().
|
inline |
Creates a backtracking point.
Definition at line 77 of file Solver.java.
Referenced by Solver.__enter__().
|
inline |
Resets the Solver. Remarks: This removes all assertions from the solver.
Definition at line 108 of file Solver.java.
|
inline |
Sets the solver parameters.
| Z3Exception |
Definition at line 44 of file Solver.java.
|
inline |
A string representation of the solver.
Definition at line 416 of file Solver.java.
Create a clone of the current solver with respect toctx.
Definition at line 396 of file Solver.java.
Referenced by AstRef.__copy__(), Goal.__copy__(), AstVector.__copy__(), FuncInterp.__copy__(), ModelRef.__copy__(), Goal.__deepcopy__(), AstVector.__deepcopy__(), FuncInterp.__deepcopy__(), and ModelRef.__deepcopy__().