public final class LoggingSolverContext extends Object implements SolverContext
SolverContext that wraps all prover environments in their logging versions.SolverContext.ProverOptions| Constructor and Description |
|---|
LoggingSolverContext(LogManager pLogger,
SolverContext pDelegate) |
| 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()
Create a fresh new
OptimizationProverEnvironment which encapsulates an assertion stack
and allows to solve optimization queries. |
ProverEnvironment |
newProverEnvironment(SolverContext.ProverOptions... pOptions)
Create a fresh new
ProverEnvironment which encapsulates an assertion stack
and can be used to check formulas for unsatisfiability. |
InterpolatingProverEnvironment<?> |
newProverEnvironmentWithInterpolation()
Create a fresh new
InterpolatingProverEnvironment which encapsulates an assertion stack
and allows to generate and retrieve interpolants for unsatisfiable formulas. |
public LoggingSolverContext(LogManager pLogger, SolverContext pDelegate)
public FormulaManager getFormulaManager()
SolverContextgetFormulaManager in interface SolverContextpublic ProverEnvironment newProverEnvironment(SolverContext.ProverOptions... pOptions)
SolverContextProverEnvironment which encapsulates an assertion stack
and can be used to check formulas for unsatisfiability.newProverEnvironment in interface SolverContextpOptions - Options specified for the prover environment.
All of the options specified in SolverContext.ProverOptions
are turned off by default.public InterpolatingProverEnvironment<?> newProverEnvironmentWithInterpolation()
SolverContextInterpolatingProverEnvironment 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.newProverEnvironmentWithInterpolation in interface SolverContextpublic OptimizationProverEnvironment newOptimizationProverEnvironment()
SolverContextOptimizationProverEnvironment which encapsulates an assertion stack
and allows to solve optimization queries.newOptimizationProverEnvironment in interface SolverContextpublic String getVersion()
SolverContextgetVersion in interface SolverContextpublic SolverContextFactory.Solvers getSolverName()
SolverContextgetSolverName in interface SolverContextpublic void close()
SolverContextNecessary for the solvers implemented in native code, frees the associated memory.
close in interface AutoCloseableclose in interface SolverContext