Skip to content

Commit bbac993

Browse files
committed
Enable most quantifier tests for CVC4 that were disabled
1 parent 354b8b9 commit bbac993

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/org/sosy_lab/java_smt/test/QuantifierManagerTest.java

-17
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ private SolverException handleSolverException(SolverException e) throws SolverEx
134134

135135
@Test
136136
public void testLIAForallArrayConjunctUnsat() throws SolverException, InterruptedException {
137-
assume().that(solverUnderTest).isNotEqualTo(Solvers.CVC4);
138-
139137
// (forall x . b[x] = 0) AND (b[123] = 1) is UNSAT
140138
requireIntegers();
141139

@@ -154,8 +152,6 @@ public void testBVForallArrayConjunctUnsat() throws SolverException, Interrupted
154152
assume().that(solverUnderTest).isNotEqualTo(Solvers.PRINCESS);
155153
// Boolector quants need to be reworked
156154
assume().that(solverUnderTest).isNotEqualTo(Solvers.BOOLECTOR);
157-
// CVC4 can solve less quants with String support enabled, TODO bug?
158-
assume().that(solverUnderTest).isNotEqualTo(Solvers.CVC4);
159155

160156
BooleanFormula f =
161157
bmgr.and(
@@ -346,8 +342,6 @@ public void testBVExistsArrayConjunct1() throws SolverException, InterruptedExce
346342

347343
@Test
348344
public void testLIAExistsArrayConjunct2() throws SolverException, InterruptedException {
349-
assume().that(solverUnderTest).isNotEqualTo(Solvers.CVC4);
350-
351345
// (exists x . b[x] = 1) AND (forall x . b[x] = 0) is UNSAT
352346

353347
requireIntegers();
@@ -358,8 +352,6 @@ public void testLIAExistsArrayConjunct2() throws SolverException, InterruptedExc
358352

359353
@Test
360354
public void testBVExistsArrayConjunct2() throws SolverException, InterruptedException {
361-
assume().that(solverUnderTest).isNotEqualTo(Solvers.CVC4);
362-
363355
// (exists x . b[x] = 1) AND (forall x . b[x] = 0) is UNSAT
364356
requireBitvectors();
365357
// Princess does not support bitvectors in arrays
@@ -795,8 +787,6 @@ public void checkBVQuantifierElimination() throws InterruptedException, SolverEx
795787

796788
@Test
797789
public void testExistsRestrictedRange() throws SolverException, InterruptedException {
798-
assume().that(solverUnderTest).isNotEqualTo(Solvers.CVC4);
799-
800790
ArrayFormula<IntegerFormula, IntegerFormula> b =
801791
amgr.makeArray("b", FormulaType.IntegerType, FormulaType.IntegerType);
802792
BooleanFormula bAtXEq1 = imgr.equal(amgr.select(b, x), imgr.makeNumber(1));
@@ -978,13 +968,6 @@ public void testForallBasicStringArray() throws SolverException, InterruptedExce
978968
requireStrings();
979969
requireIntegers();
980970

981-
// CVC4 returns null or UNKNOWN, however it does not seem to have a problem with
982-
// declaring/starting the solving process!
983-
assume()
984-
.withMessage("Solver %s does not support the complete theory of quantifiers", solverToUse())
985-
.that(solverToUse())
986-
.isNotEqualTo(Solvers.CVC4);
987-
988971
// forall var (var = select(store(arr, 2, "bla"), 2)
989972
IntegerFormula two = imgr.makeNumber(2);
990973
StringFormula string = smgr.makeString("bla");

0 commit comments

Comments
 (0)