public final class LoggingSolverContext extends Object implements SolverContext
SolverContext that wrapps 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...).
|
SolverContextStatistics |
getStatistics()
Get statistics information on solver usage.
|
String |
getVersion()
Get version information out of the solver.
|
OptimizationProverEnvironment |
newCachedOptimizationProverEnvironment()
Create a fresh new
OptimizationProverEnvironment with caching. |
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 OptimizationProverEnvironment newCachedOptimizationProverEnvironment()
SolverContextOptimizationProverEnvironment with caching.newCachedOptimizationProverEnvironment in interface SolverContextpublic String getVersion()
SolverContextgetVersion in interface SolverContextpublic SolverContextFactory.Solvers getSolverName()
SolverContextgetSolverName in interface SolverContextpublic SolverContextStatistics getStatistics()
SolverContextgetStatistics in interface SolverContextpublic void close()
SolverContextclose in interface AutoCloseableclose in interface SolverContext