public interface SolverContext extends AutoCloseable
If you wish to use multiple contexts (even for the same solver),
create one SolverContext per each.
Formulas can be transferred between different contexts using
FormulaManager.translate(BooleanFormula, SolverContext).
| Modifier and Type | Interface and Description |
|---|---|
static class |
SolverContext.ProverOptions
Options for the prover environment.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the solver context.
|
FormulaManager |
getFormulaManager()
Get the formula manager, which is used for formula manipulation.
|
String |
getVersion()
Get version information out of the solver.
|
OptimizationProverEnvironment |
newOptimizationProverEnvironment()
Create a fresh new
OptimizationProverEnvironment which encapsulates an assertion stack
and allows to solve optimization queries. |
ProverEnvironment |
newProverEnvironment(SolverContext.ProverOptions... options)
Create a fresh new
ProverEnvironment which encapsulates an assertion stack
and can be used to check formulas for unsatisfiability. |
InterpolatingProverEnvironmentWithAssumptions<?> |
newProverEnvironmentWithInterpolation()
Create a fresh new
InterpolatingProverEnvironment which encapsulates an assertion stack
and allows to generate and retrieve interpolants for unsatisfiable formulas. |
FormulaManager getFormulaManager()
ProverEnvironment newProverEnvironment(SolverContext.ProverOptions... options)
ProverEnvironment which encapsulates an assertion stack
and can be used to check formulas for unsatisfiability.options - Options specified for the prover environment.
All of the options specified in SolverContext.ProverOptions
are turned off by default.InterpolatingProverEnvironmentWithAssumptions<?> newProverEnvironmentWithInterpolation()
InterpolatingProverEnvironment which encapsulates an assertion stack
and allows to generate and retrieve interpolants for unsatisfiable formulas.
If the SMT solver is able to handle satisfiability tests with assumptions please consider
implementing the InterpolatingProverEnvironmentWithAssumptions interface, and return
an Object of this type here.OptimizationProverEnvironment newOptimizationProverEnvironment()
OptimizationProverEnvironment which encapsulates an assertion stack
and allows to solve optimization queries.String getVersion()
void close()
close in interface AutoCloseable