Package org.sosy_lab.java_smt.basicimpl
Class AbstractProverWithAllSat<T>
- java.lang.Object
-
- org.sosy_lab.java_smt.basicimpl.AbstractProver<T>
-
- org.sosy_lab.java_smt.basicimpl.AbstractProverWithAllSat<T>
-
- All Implemented Interfaces:
AutoCloseable,BasicProverEnvironment<T>
public abstract class AbstractProverWithAllSat<T> extends AbstractProver<T>
This class is a utility-class to avoid repeated implementation of the AllSAT computation.If a solver does not support direct AllSAT computation, please inherit from this class.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sosy_lab.java_smt.api.BasicProverEnvironment
BasicProverEnvironment.AllSatCallback<R>
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanclosedprotected ShutdownNotifiershutdownNotifier-
Fields inherited from class org.sosy_lab.java_smt.basicimpl.AbstractProver
enableSL, generateUnsatCores
-
Fields inherited from interface org.sosy_lab.java_smt.api.BasicProverEnvironment
NO_MODEL_HELP
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractProverWithAllSat(Set<SolverContext.ProverOptions> pOptions, BooleanFormulaManager pBmgr, ShutdownNotifier pShutdownNotifier)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <R> RallSat(BasicProverEnvironment.AllSatCallback<R> callback, List<BooleanFormula> importantPredicates)Get all satisfying assignments of the current environment with regard to a subset of terms, and create a region representing all those models.protected abstract ModelgetModelWithoutChecks()model computation without checks for further options.-
Methods inherited from class org.sosy_lab.java_smt.basicimpl.AbstractProver
checkEnableSeparationLogic, checkGenerateAllSat, checkGenerateModels, checkGenerateUnsatCores, checkGenerateUnsatCoresOverAssumptions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sosy_lab.java_smt.api.BasicProverEnvironment
addConstraint, close, getModel, getModelAssignments, getStatistics, getUnsatCore, isUnsat, isUnsatWithAssumptions, pop, push, push, size, unsatCoreOverAssumptions
-
-
-
-
Field Detail
-
shutdownNotifier
protected final ShutdownNotifier shutdownNotifier
-
closed
protected boolean closed
-
-
Constructor Detail
-
AbstractProverWithAllSat
protected AbstractProverWithAllSat(Set<SolverContext.ProverOptions> pOptions, BooleanFormulaManager pBmgr, ShutdownNotifier pShutdownNotifier)
-
-
Method Detail
-
allSat
public <R> R allSat(BasicProverEnvironment.AllSatCallback<R> callback, List<BooleanFormula> importantPredicates) throws InterruptedException, SolverException
Description copied from interface:BasicProverEnvironmentGet all satisfying assignments of the current environment with regard to a subset of terms, and create a region representing all those models.importantPredicates- A set of (positive) variables appearing in the asserted queries. Only these variables will appear in the region.- Returns:
- A region representing all satisfying models of the formula.
- Throws:
InterruptedExceptionSolverException
-
getModelWithoutChecks
protected abstract Model getModelWithoutChecks() throws SolverException
model computation without checks for further options.- Throws:
SolverException- if model can not be constructed.
-
-