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.translateFrom(BooleanFormula, FormulaManager).
| 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.
|
SolverContextFactory.Solvers |
getSolverName()
Get solver name (MATHSAT5/Z3/etc...).
|
String |
getVersion()
Get version information out of the solver.
|
OptimizationProverEnvironment |
newOptimizationProverEnvironment(SolverContext.ProverOptions... options)
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. |
InterpolatingProverEnvironment<?> |
newProverEnvironmentWithInterpolation(SolverContext.ProverOptions... options)
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.InterpolatingProverEnvironment<?> newProverEnvironmentWithInterpolation(SolverContext.ProverOptions... options)
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 InterpolatingProverEnvironment interface, and return an Object of this type here.options - Options specified for the prover environment. All of the options specified in
SolverContext.ProverOptions are turned off by default.OptimizationProverEnvironment newOptimizationProverEnvironment(SolverContext.ProverOptions... options)
OptimizationProverEnvironment which encapsulates an assertion stack
and allows to solve optimization queries.options - Options specified for the prover environment. All of the options specified in
SolverContext.ProverOptions are turned off by default.String getVersion()
SolverContextFactory.Solvers getSolverName()
void close()
Necessary for the solvers implemented in native code, frees the associated memory.
close in interface AutoCloseable