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, requireOptimization, requireParser, requireQuantifiers, requireRationalFloor, requireRationals, requireStrings, requireSubstitution, requireUnsatCore, requireUnsatCoreOverAssumptions, requireUserPropagators, requireVisitor, shutdownNotifierToUse
-
-
-
-
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:
SolverException
InterruptedException
-
singleStackTestInteger
public void singleStackTestInteger() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
singleStackTestRational
public void singleStackTestRational() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
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:
InterruptedException
SolverException
-
largerStackUsageTest
public void largerStackUsageTest() throws InterruptedException, SolverException
- Throws:
InterruptedException
SolverException
-
stackTest5
public void stackTest5() throws InterruptedException
- Throws:
InterruptedException
-
stackTestUnsat
public void stackTestUnsat() throws InterruptedException, SolverException
- Throws:
InterruptedException
SolverException
-
stackTestUnsat2
public void stackTestUnsat2() throws InterruptedException, SolverException
- Throws:
InterruptedException
SolverException
-
symbolsOnStackTest
public void symbolsOnStackTest() throws InterruptedException, SolverException
Create a symbol on a level and pop this level. Symbol must remain valid and usable!- Throws:
InterruptedException
SolverException
-
constraintTestBool1
public void constraintTestBool1() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
constraintTestBool2
public void constraintTestBool2() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
constraintTestBool3
public void constraintTestBool3() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
constraintTestBool4
public void constraintTestBool4() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
satTestBool5
public void satTestBool5() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
dualStackTest
public void dualStackTest() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
dualStackTest2
public void dualStackTest2() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
multiStackTest
public void multiStackTest() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
avoidDualStacksIfNotSupported
public void avoidDualStacksIfNotSupported() throws InterruptedException
- Throws:
InterruptedException
-
dualStackGlobalDeclarations
public void dualStackGlobalDeclarations() throws SolverException, InterruptedException
This 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:
SolverException
InterruptedException
-
modelForUnsatFormula
public void modelForUnsatFormula() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
modelForUnsatFormula2
public void modelForUnsatFormula2() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
modelForSatFormula
public void modelForSatFormula() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
modelForSatFormulaWithLargeValue
public void modelForSatFormulaWithLargeValue() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
modelForSatFormulaWithUF
public void modelForSatFormulaWithUF() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
multiCloseTest
public void multiCloseTest() throws SolverException, InterruptedException
- Throws:
SolverException
InterruptedException
-
-