Skip to content

Commit 3797fa7

Browse files
committed
use common code to disable a quantifier-based test for Princess.
1 parent 6eeb747 commit 3797fa7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -454,19 +454,17 @@ public void testBVExistsArrayConjunct3() throws SolverException, InterruptedExce
454454
public void testLIAExistsArrayDisjunct1() throws SolverException, InterruptedException {
455455
// (exists x . b[x] = 0) OR (forall x . b[x] = 1) is SAT
456456

457-
// Princess can not solve this test since version 2023-06-19. Bug is reported.
458-
// TODO enable this test with the next update of Princess.
459-
assume()
460-
.withMessage("Solver %s does not solve this formula", solverToUse())
461-
.that(solverToUse())
462-
.isNotEqualTo(Solvers.PRINCESS);
463-
464457
requireIntegers();
465458
BooleanFormula f =
466459
bmgr.or(
467460
qmgr.exists(ImmutableList.of(x), a_at_x_eq_0),
468461
qmgr.forall(ImmutableList.of(x), a_at_x_eq_1));
469-
assertThatFormula(f).isSatisfiable();
462+
try {
463+
// Princess fails this
464+
assertThatFormula(f).isSatisfiable();
465+
} catch (SolverException e) {
466+
throw handleSolverException(e);
467+
}
470468
}
471469

472470
@Test

0 commit comments

Comments
 (0)