public class ProverWithAssumptionsWrapper extends BasicProverWithAssumptionsWrapper<Void,ProverEnvironment> implements ProverEnvironment
ProverEnvironment.AllSatCallback<T>delegate, solverAssumptionsAsFormula| Constructor and Description |
|---|
ProverWithAssumptionsWrapper(ProverEnvironment pDelegate) |
| Modifier and Type | Method and Description |
|---|---|
<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.
|
List<BooleanFormula> |
getUnsatCore()
Get an unsat core.
|
boolean |
isUnsatWithAssumptions(Collection<BooleanFormula> assumptions)
Check whether the conjunction of all formulas on the stack together with the
list of assumptions is satisfiable.
|
Optional<List<BooleanFormula>> |
unsatCoreOverAssumptions(Collection<BooleanFormula> pAssumptions)
Returns an UNSAT core (if it exists, otherwise
Optional.empty()),
over the chosen assumptions. |
addConstraint, clearAssumptions, close, getModel, getModelAssignments, isUnsat, pop, pushclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConstraint, close, getModel, getModelAssignments, isUnsat, pop, push, pushpublic ProverWithAssumptionsWrapper(ProverEnvironment pDelegate)
public boolean isUnsatWithAssumptions(Collection<BooleanFormula> assumptions) throws SolverException, InterruptedException
ProverEnvironmentisUnsatWithAssumptions in interface ProverEnvironmentassumptions - A list of literals.SolverExceptionInterruptedExceptionpublic List<BooleanFormula> getUnsatCore()
ProverEnvironmentBasicProverEnvironment.isUnsat() call
that returned false.getUnsatCore in interface ProverEnvironmentpublic <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.InterruptedExceptionSolverExceptionpublic Optional<List<BooleanFormula>> unsatCoreOverAssumptions(Collection<BooleanFormula> pAssumptions) throws SolverException, InterruptedException
ProverEnvironmentOptional.empty()),
over the chosen assumptions.
Does NOT require the SolverContext.ProverOptions.GENERATE_UNSAT_CORE option to work.unsatCoreOverAssumptions in interface ProverEnvironmentpAssumptions - Selected assumptionsSolverExceptionInterruptedException