Skip to content

Commit fed0e55

Browse files
Disable yices2 in VariableNamesTest.testBoolVariable as it does not quote symbols correctly and returns invalid SMTLIB strings when dumping formulas.
1 parent 2aecfa0 commit fed0e55

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,12 @@ public Void visitAtom(BooleanFormula pAtom, FunctionDeclaration<BooleanFormula>
555555

556556
@Test
557557
public void testBoolVariableDump() {
558+
// FIXME: Broken on yices2
559+
// Yices does not quote symbols when dumping a formula, f.ex for the variable "(" we get
560+
// (declare-fun |(| () Bool)
561+
// (assert ()
562+
// which is not a valid SMTLIB script.
563+
assume().that(solverToUse()).isNotEqualTo(Solvers.YICES2);
558564
for (String name : getAllNames()) {
559565
BooleanFormula var = createVariableWith(bmgr::makeVariable, name);
560566
if (var != null) {
@@ -566,6 +572,7 @@ public void testBoolVariableDump() {
566572

567573
@Test
568574
public void testEqBoolVariableDump() {
575+
// FIXME: Rewrite test? Most solvers will simplify the formula to `true`.
569576
for (String name : getAllNames()) {
570577
BooleanFormula var = createVariableWith(bmgr::makeVariable, name);
571578
if (var != null) {

0 commit comments

Comments
 (0)