@@ -117,11 +117,6 @@ private SolverException handleSolverException(SolverException e) throws SolverEx
117117
118118 @ Test
119119 public void testLIAForallArrayConjunctUnsat () throws SolverException , InterruptedException {
120- assume ()
121- .withMessage ("Solver %s does not support the complete theory of quantifiers" , solverToUse ())
122- .that (solverToUse ())
123- .isNotEqualTo (Solvers .CVC5 );
124-
125120 // (forall x . b[x] = 0) AND (b[123] = 1) is UNSAT
126121 setUpLIA ();
127122
@@ -134,15 +129,8 @@ public void testLIAForallArrayConjunctUnsat() throws SolverException, Interrupte
134129
135130 @ Test
136131 public void testBVForallArrayConjunctUnsat () throws SolverException , InterruptedException {
137- assume ()
138- .withMessage ("Solver %s does not support the complete theory of quantifiers" , solverToUse ())
139- .that (solverToUse ())
140- .isNotEqualTo (Solvers .CVC5 );
141-
142132 // (forall x . b[x] = 0) AND (b[123] = 1) is UNSAT
143133 setUpBV ();
144- // Princess does not support bitvectors in arrays
145- assume ().that (solverToUse ()).isNotEqualTo (Solvers .PRINCESS );
146134
147135 BooleanFormula f =
148136 bmgr .and (
@@ -184,8 +172,6 @@ public void testBVForallArrayConjunctSat() throws SolverException, InterruptedEx
184172
185173 // (forall x . b[x] = 0) AND (b[123] = 0) is SAT
186174 setUpBV ();
187- // Princess does not support bitvectors in arrays
188- assume ().that (solverToUse ()).isNotEqualTo (Solvers .PRINCESS );
189175
190176 BooleanFormula f =
191177 bmgr .and (
@@ -246,11 +232,6 @@ public void testLIAForallArrayDisjunctSat2() throws SolverException, Interrupted
246232
247233 @ Test
248234 public void testLIANotExistsArrayConjunct1 () throws SolverException , InterruptedException {
249- assume ()
250- .withMessage ("Solver %s does not support the complete theory of quantifiers" , solverToUse ())
251- .that (solverToUse ())
252- .isNotEqualTo (Solvers .CVC5 );
253-
254235 // (not exists x . not b[x] = 0) AND (b[123] = 1) is UNSAT
255236 setUpLIA ();
256237 BooleanFormula f =
@@ -286,11 +267,6 @@ public void testLIANotExistsArrayConjunct2() throws SolverException, Interrupted
286267
287268 @ Test
288269 public void testLIANotExistsArrayConjunct3 () throws SolverException , InterruptedException {
289- assume ()
290- .withMessage ("Solver %s does not support the complete theory of quantifiers" , solverToUse ())
291- .that (solverToUse ())
292- .isNotEqualTo (Solvers .CVC5 );
293-
294270 // (not exists x . b[x] = 0) AND (b[123] = 0) is UNSAT
295271 setUpLIA ();
296272 BooleanFormula f =
@@ -358,8 +334,6 @@ public void testLIAExistsArrayConjunct1() throws SolverException, InterruptedExc
358334 public void testBVExistsArrayConjunct1 () throws SolverException , InterruptedException {
359335 // (exists x . b[x] = 0) AND (b[123] = 1) is SAT
360336 setUpBV ();
361- // Princess does not support bitvectors in arrays
362- assume ().that (solverToUse ()).isNotEqualTo (Solvers .PRINCESS );
363337
364338 BooleanFormula f =
365339 bmgr .and (
@@ -373,11 +347,6 @@ public void testBVExistsArrayConjunct1() throws SolverException, InterruptedExce
373347 @ Test
374348 public void testLIAExistsArrayConjunct2 () throws SolverException , InterruptedException {
375349 setUpLIA ();
376- assume ()
377- .withMessage ("Solver %s does not support the complete theory of quantifiers" , solverToUse ())
378- .that (solverToUse ())
379- .isNotEqualTo (Solvers .CVC5 );
380-
381350 // (exists x . b[x] = 1) AND (forall x . b[x] = 0) is UNSAT
382351
383352 BooleanFormula f =
@@ -387,15 +356,8 @@ public void testLIAExistsArrayConjunct2() throws SolverException, InterruptedExc
387356
388357 @ Test
389358 public void testBVExistsArrayConjunct2 () throws SolverException , InterruptedException {
390- assume ()
391- .withMessage ("Solver %s does not support the complete theory of quantifiers" , solverToUse ())
392- .that (solverToUse ())
393- .isNotEqualTo (Solvers .CVC5 );
394-
395359 // (exists x . b[x] = 1) AND (forall x . b[x] = 0) is UNSAT
396360 setUpBV ();
397- // Princess does not support bitvectors in arrays
398- assume ().that (solverToUse ()).isNotEqualTo (Solvers .PRINCESS );
399361
400362 BooleanFormula f =
401363 bmgr .and (qmgr .exists (ImmutableList .of (xbv ), bvArray_at_x_eq_1 ), bv_forall_x_a_at_x_eq_0 );
@@ -463,8 +425,10 @@ public void testLIAExistsArrayDisjunct1() throws SolverException, InterruptedExc
463425 public void testBVExistsArrayDisjunct1 () throws SolverException , InterruptedException {
464426 // (exists x . b[x] = 0) OR (forall x . b[x] = 1) is SAT
465427 setUpBV ();
466- // Princess does not support bitvectors in arrays
467- assume ().that (solverToUse ()).isNotEqualTo (Solvers .PRINCESS );
428+ assume ()
429+ .withMessage ("Solver %s does not support the complete theory of quantifiers" , solverToUse ())
430+ .that (solverToUse ())
431+ .isNotEqualTo (Solvers .PRINCESS );
468432
469433 BooleanFormula f =
470434 bmgr .or (
@@ -489,8 +453,6 @@ public void testLIAExistsArrayDisjunct2() throws SolverException, InterruptedExc
489453 public void testBVExistsArrayDisjunct2 () throws SolverException , InterruptedException {
490454 // (exists x . b[x] = 1) OR (exists x . b[x] = 1) is SAT
491455 setUpBV ();
492- // Princess does not support bitvectors in arrays
493- assume ().that (solverToUse ()).isNotEqualTo (Solvers .PRINCESS );
494456
495457 BooleanFormula f =
496458 bmgr .or (
@@ -822,11 +784,6 @@ public void testIntrospectionExistsInteger() {
822784
823785 @ Test
824786 public void testEmpty () {
825- assume ()
826- .withMessage ("TODO: The JavaSMT code for Princess explicitly allows this." )
827- .that (solverToUse ())
828- .isNotEqualTo (Solvers .PRINCESS );
829-
830787 // An empty list of quantified variables throws an exception.
831788 assertThrows (
832789 IllegalArgumentException .class ,
@@ -884,11 +841,10 @@ public void checkBVQuantifierEliminationFail() throws InterruptedException, Solv
884841 requireBitvectors ();
885842 requireQuantifierElimination ();
886843 // Boolector quants need to be reworked
887- // Princess does not support bitvectors in arrays
888844 assume ()
889845 .withMessage ("Solver %s does not support the complete theory of quantifiers" , solverToUse ())
890846 .that (solverToUse ())
891- .isNoneOf (Solvers .CVC5 , Solvers . PRINCESS );
847+ .isNotEqualTo (Solvers .CVC5 );
892848
893849 int width = 2 ;
894850 BitvectorFormula xx = bvmgr .makeVariable (width , "x_bv" );
@@ -941,8 +897,6 @@ public void checkBVQuantifierElimination2() throws InterruptedException, SolverE
941897 // quantifier-free equivalent: (and (= b2 #x00000006)
942898 // (= a3 #x00000000))
943899
944- // Z3 fails this currently. Remove once that's not longer the case!
945- assume ().that (solverToUse ()).isNotEqualTo (Solvers .Z3 );
946900 int width = 32 ;
947901
948902 BitvectorFormula a2 = bvmgr .makeVariable (width , "a2" );
@@ -968,11 +922,6 @@ public void checkBVQuantifierElimination2() throws InterruptedException, SolverE
968922 @ Test
969923 public void testExistsRestrictedRange () throws SolverException , InterruptedException {
970924 setUpLIA ();
971- assume ()
972- .withMessage ("Solver %s does not support the complete theory of quantifiers" , solverToUse ())
973- .that (solverToUse ())
974- .isNotEqualTo (Solvers .CVC5 );
975-
976925 ArrayFormula <IntegerFormula , IntegerFormula > b =
977926 amgr .makeArray ("b" , FormulaType .IntegerType , FormulaType .IntegerType );
978927 BooleanFormula bAtXEq1 = imgr .equal (amgr .select (b , x ), imgr .makeNumber (1 ));
@@ -1026,10 +975,6 @@ public void testExistsRestrictedRangeWithoutInconclusiveSolvers()
1026975 @ Test
1027976 public void testForallRestrictedRange () throws SolverException , InterruptedException {
1028977 setUpLIA ();
1029- assume ()
1030- .withMessage ("Solver %s does not support the complete theory of quantifiers" , solverToUse ())
1031- .that (solverToUse ())
1032- .isNotEqualTo (Solvers .CVC5 );
1033978
1034979 ArrayFormula <IntegerFormula , IntegerFormula > b =
1035980 amgr .makeArray ("b" , FormulaType .IntegerType , FormulaType .IntegerType );
0 commit comments