public class CVC4TheoremProver extends Object implements BasicProverEnvironment<Void>, ProverEnvironment
ProverEnvironment.AllSatCallback<T>| Modifier | Constructor and Description |
|---|---|
protected |
CVC4TheoremProver(CVC4FormulaManager pMgr) |
| Modifier and Type | Method and Description |
|---|---|
Void |
addConstraint(BooleanFormula pF)
Add constraint to the context.
|
<T> T |
allSat(ProverEnvironment.AllSatCallback<T> pCallback,
List<BooleanFormula> pImportant)
Get all satisfying assignments of the current environment with regards
to a subset of terms,
and create a region representing all those models.
|
void |
close()
Closes the prover environment.
|
<E extends Formula> |
evaluate(E f)
Evaluate the formula with the previously generated model.
|
Model |
getModel()
Get a satisfying assignment.
|
List<BooleanFormula> |
getUnsatCore()
Get an unsat core.
|
boolean |
isUnsat()
Check whether the conjunction of all formulas on the stack is unsatisfiable.
|
void |
pop()
Remove one formula from the environment stack.
|
void |
push()
Create backtracking point.
|
Void |
push(BooleanFormula pF)
Push a backtracking point and
add a formula to the environment stack, asserting it.
|
protected CVC4TheoremProver(CVC4FormulaManager pMgr)
public void push()
BasicProverEnvironmentpush in interface BasicProverEnvironment<Void>public Void push(BooleanFormula pF)
BasicProverEnvironmentpush in interface BasicProverEnvironment<Void>@Nullable public Void addConstraint(BooleanFormula pF)
BasicProverEnvironmentaddConstraint in interface BasicProverEnvironment<Void>public void pop()
BasicProverEnvironmentpop in interface BasicProverEnvironment<Void>public boolean isUnsat()
throws InterruptedException,
SolverException
BasicProverEnvironmentisUnsat in interface BasicProverEnvironment<Void>InterruptedExceptionSolverExceptionpublic List<BooleanFormula> getUnsatCore()
ProverEnvironmentBasicProverEnvironment.isUnsat() call
that returned false.getUnsatCore in interface ProverEnvironmentpublic Model getModel() throws SolverException
BasicProverEnvironmentBasicProverEnvironment.isUnsat() call
that returned false.getModel in interface BasicProverEnvironment<Void>SolverExceptionpublic void close()
BasicProverEnvironmentclose in interface AutoCloseableclose in interface BasicProverEnvironment<Void>public <E extends Formula> E evaluate(E f)
BasicProverEnvironmentBasicProverEnvironment.getModel().
// TODO: provide a default for non-Z3 solvers.evaluate in interface BasicProverEnvironment<Void>public <T> T allSat(ProverEnvironment.AllSatCallback<T> pCallback, List<BooleanFormula> pImportant) throws InterruptedException, SolverException
ProverEnvironmentallSat in interface ProverEnvironmentpImportant - A set of variables appearing in f.
Only these variables will appear in the region.InterruptedExceptionSolverException