Class StatisticsSolverContext
- java.lang.Object
-
- org.sosy_lab.java_smt.delegate.statistics.StatisticsSolverContext
-
- All Implemented Interfaces:
AutoCloseable,SolverContext
public class StatisticsSolverContext extends Object implements SolverContext
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sosy_lab.java_smt.api.SolverContext
SolverContext.ProverOptions
-
-
Constructor Summary
Constructors Constructor Description StatisticsSolverContext(SolverContext pDelegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the solver context.FormulaManagergetFormulaManager()Get the formula manager, which is used for formula manipulation.SolverContextFactory.SolversgetSolverName()Get solver name (MATHSAT5/Z3/etc...).SolverStatisticsgetSolverStatistics()export statistics about the solver interaction.StringgetVersion()Get version information out of the solver.OptimizationProverEnvironmentnewOptimizationProverEnvironment(SolverContext.ProverOptions... pOptions)Create a fresh newOptimizationProverEnvironmentwhich encapsulates an assertion stack and allows solving optimization queries.ProverEnvironmentnewProverEnvironment(SolverContext.ProverOptions... pOptions)Create a fresh newProverEnvironmentwhich encapsulates an assertion stack and can be used to check formulas for unsatisfiability.InterpolatingProverEnvironment<?>newProverEnvironmentWithInterpolation(SolverContext.ProverOptions... pOptions)Create a fresh newInterpolatingProverEnvironmentwhich encapsulates an assertion stack and allows generating and retrieve interpolants for unsatisfiable formulas.
-
-
-
Constructor Detail
-
StatisticsSolverContext
public StatisticsSolverContext(SolverContext pDelegate)
-
-
Method Detail
-
getFormulaManager
public FormulaManager getFormulaManager()
Description copied from interface:SolverContextGet the formula manager, which is used for formula manipulation.- Specified by:
getFormulaManagerin interfaceSolverContext
-
newProverEnvironment
public ProverEnvironment newProverEnvironment(SolverContext.ProverOptions... pOptions)
Description copied from interface:SolverContextCreate a fresh newProverEnvironmentwhich encapsulates an assertion stack and can be used to check formulas for unsatisfiability.- Specified by:
newProverEnvironmentin interfaceSolverContext- Parameters:
pOptions- Options specified for the prover environment. All the options specified inSolverContext.ProverOptionsare turned off by default.
-
newProverEnvironmentWithInterpolation
public InterpolatingProverEnvironment<?> newProverEnvironmentWithInterpolation(SolverContext.ProverOptions... pOptions)
Description copied from interface:SolverContextCreate a fresh newInterpolatingProverEnvironmentwhich encapsulates an assertion stack and allows generating and retrieve interpolants for unsatisfiable formulas. If the SMT solver is able to handle satisfiability tests with assumptions please consider implementing theInterpolatingProverEnvironmentinterface, and return an Object of this type here.- Specified by:
newProverEnvironmentWithInterpolationin interfaceSolverContext- Parameters:
pOptions- Options specified for the prover environment. All the options specified inSolverContext.ProverOptionsare turned off by default.
-
newOptimizationProverEnvironment
public OptimizationProverEnvironment newOptimizationProverEnvironment(SolverContext.ProverOptions... pOptions)
Description copied from interface:SolverContextCreate a fresh newOptimizationProverEnvironmentwhich encapsulates an assertion stack and allows solving optimization queries.- Specified by:
newOptimizationProverEnvironmentin interfaceSolverContext- Parameters:
pOptions- Options specified for the prover environment. All the options specified inSolverContext.ProverOptionsare turned off by default.
-
getVersion
public String getVersion()
Description copied from interface:SolverContextGet version information out of the solver.In most cases, the version contains the name of the solver followed by some numbers and additional info about the version, e.g., "SMTInterpol 2.5-12-g3d15a15c".
- Specified by:
getVersionin interfaceSolverContext
-
getSolverName
public SolverContextFactory.Solvers getSolverName()
Description copied from interface:SolverContextGet solver name (MATHSAT5/Z3/etc...).This is an uppercase String matching the enum identifier from
SolverContextFactory.Solvers- Specified by:
getSolverNamein interfaceSolverContext
-
close
public void close()
Description copied from interface:SolverContextClose the solver context.After calling this method, further access to any object that had been returned from this context is not wanted, i.e., it depends on the solver. Java-based solvers might wait for the next garbage collection with any cleanup operation. Native solvers might even reference invalid memory and cause segmentation faults.
Necessary for the solvers implemented in native code, frees the associated memory.
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSolverContext
-
getSolverStatistics
public SolverStatistics getSolverStatistics()
export statistics about the solver interaction.
-
-