Package org.sosy_lab.java_smt.test
Class SolverStackTest0
- java.lang.Object
-
- org.sosy_lab.java_smt.test.SolverBasedTest0
-
- org.sosy_lab.java_smt.test.SolverBasedTest0.ParameterizedSolverBasedTest0
-
- org.sosy_lab.java_smt.test.SolverStackTest0
-
public abstract class SolverStackTest0 extends SolverBasedTest0.ParameterizedSolverBasedTest0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sosy_lab.java_smt.test.SolverBasedTest0
SolverBasedTest0.ParameterizedSolverBasedTest0
-
-
Field Summary
-
Fields inherited from class org.sosy_lab.java_smt.test.SolverBasedTest0.ParameterizedSolverBasedTest0
solver
-
-
Constructor Summary
Constructors Constructor Description SolverStackTest0()
-
Method Summary
-
Methods inherited from class org.sosy_lab.java_smt.test.SolverBasedTest0.ParameterizedSolverBasedTest0
getAllSolvers, solverToUse
-
Methods inherited from class org.sosy_lab.java_smt.test.SolverBasedTest0
assertThatEnvironment, assertThatFormula, closeSolver, createTestConfigBuilder, evaluateInModel, initSolver, logicToUse, requireArrayModel, requireArrays, requireBitvectors, requireBitvectorToInt, requireEnumeration, requireFloats, requireIntegers, requireInterpolation, requireModel, requireNativeFPToBitvector, requireOptimization, requireParser, requireQuantifierElimination, requireQuantifiers, requireRationalFloor, requireRationals, requireStrings, requireSubstitution, requireUnsatCore, requireUnsatCoreOverAssumptions, requireUserPropagators, requireVisitor, shutdownNotifierToUse, solverSupportsNativeFPToBitvector
-
-
-
-
Method Detail
-
newEnvironmentForTest
protected abstract BasicProverEnvironment<?> newEnvironmentForTest(SolverContext pContext, SolverContext.ProverOptions... options)
-
requireTheoryCombination
protected void requireTheoryCombination()
-
requireUfValuesInModel
protected final void requireUfValuesInModel()
-
simpleStackTestBool
public void simpleStackTestBool() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
singleStackTestInteger
public void singleStackTestInteger() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
singleStackTestRational
public void singleStackTestRational() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
stackTest
public void stackTest()
-
stackTest2
public void stackTest2() throws InterruptedException- Throws:
InterruptedException
-
stackTest3
public void stackTest3() throws InterruptedException- Throws:
InterruptedException
-
stackTest4
public void stackTest4() throws InterruptedException- Throws:
InterruptedException
-
largeStackUsageTest
public void largeStackUsageTest() throws InterruptedException, SolverException- Throws:
InterruptedExceptionSolverException
-
largerStackUsageTest
public void largerStackUsageTest() throws InterruptedException, SolverException- Throws:
InterruptedExceptionSolverException
-
stackTest5
public void stackTest5() throws InterruptedException- Throws:
InterruptedException
-
stackTestUnsat
public void stackTestUnsat() throws InterruptedException, SolverException- Throws:
InterruptedExceptionSolverException
-
stackTestUnsat2
public void stackTestUnsat2() throws InterruptedException, SolverException- Throws:
InterruptedExceptionSolverException
-
symbolsOnStackTest
public void symbolsOnStackTest() throws InterruptedException, SolverExceptionCreate a symbol on a level and pop this level. Symbol must remain valid and usable!- Throws:
InterruptedExceptionSolverException
-
constraintTestBool1
public void constraintTestBool1() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
constraintTestBool2
public void constraintTestBool2() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
constraintTestBool3
public void constraintTestBool3() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
constraintTestBool4
public void constraintTestBool4() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
satTestBool5
public void satTestBool5() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
dualStackTest
public void dualStackTest() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
dualStackTest2
public void dualStackTest2() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
multiStackTest
public void multiStackTest() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
avoidDualStacksIfNotSupported
public void avoidDualStacksIfNotSupported() throws InterruptedException- Throws:
InterruptedException
-
dualStackGlobalDeclarations
public void dualStackGlobalDeclarations() throws SolverException, InterruptedExceptionThis test checks that an SMT solver uses "global declarations": regardless of the stack at declaration time, declarations always live for the full lifetime of the solver (i.e., they do not get deleted on pop()). This is contrary to the SMTLib standard, but required by us, e.g. for BMC with induction (where we create new formulas while there is something on the stack).- Throws:
SolverExceptionInterruptedException
-
modelForUnsatFormula
public void modelForUnsatFormula() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
modelForUnsatFormula2
public void modelForUnsatFormula2() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
modelForSatFormula
public void modelForSatFormula() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
modelForSatFormulaWithLargeValue
public void modelForSatFormulaWithLargeValue() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
modelForSatFormulaWithUF
public void modelForSatFormulaWithUF() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
multiCloseTest
public void multiCloseTest() throws SolverException, InterruptedException- Throws:
SolverExceptionInterruptedException
-
-