public class LoggingProverEnvironment extends Object implements ProverEnvironment
ProverEnvironment.AllSatCallback<T>| Constructor and Description |
|---|
LoggingProverEnvironment(LogManager logger,
ProverEnvironment pe) |
| Modifier and Type | Method and Description |
|---|---|
Void |
addConstraint(BooleanFormula constraint)
Add constraint to the context.
|
<T> T |
allSat(ProverEnvironment.AllSatCallback<T> callback,
List<BooleanFormula> important)
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.
|
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 f)
Push a backtracking point and
add a formula to the environment stack, asserting it.
|
public LoggingProverEnvironment(LogManager logger, ProverEnvironment pe)
public Void push(BooleanFormula f)
BasicProverEnvironmentpush in interface BasicProverEnvironment<Void>public void pop()
BasicProverEnvironmentpop in interface BasicProverEnvironment<Void>public Void addConstraint(BooleanFormula constraint)
BasicProverEnvironmentaddConstraint in interface BasicProverEnvironment<Void>public void push()
BasicProverEnvironmentpush in interface BasicProverEnvironment<Void>public boolean isUnsat()
throws SolverException,
InterruptedException
BasicProverEnvironmentisUnsat in interface BasicProverEnvironment<Void>SolverExceptionInterruptedExceptionpublic Model getModel() throws SolverException
BasicProverEnvironmentBasicProverEnvironment.isUnsat() call
that returned false.getModel in interface BasicProverEnvironment<Void>SolverExceptionpublic List<BooleanFormula> getUnsatCore()
ProverEnvironmentBasicProverEnvironment.isUnsat() call
that returned false.getUnsatCore in interface ProverEnvironmentpublic <T> T allSat(ProverEnvironment.AllSatCallback<T> callback, List<BooleanFormula> important) throws InterruptedException, SolverException
ProverEnvironmentallSat in interface ProverEnvironmentimportant - A set of variables appearing in f.
Only these variables will appear in the region.InterruptedExceptionSolverExceptionpublic void close()
BasicProverEnvironmentclose in interface AutoCloseableclose in interface BasicProverEnvironment<Void>