This commit fixes bug 821. As written in the description of the bug, the issue
is that `id` is not being set on one of the paths in addClause(), specifically
in the case where all but one literal are assigned false and the remaining
literal is assigned true. In that case, we are not actually adding anything and
set the `id` to `ClauseIdUndef`.
}
}
return ok;
- } else return ok;
+ } else {
+ PROOF(id = ClauseIdUndef;);
+ return ok;
+ }
}
}
bug765.smt2 \
bug691.smt2 \
bug694-Unapply1.scala-0.smt2 \
- simple_unsat_cores.smt2
+ simple_unsat_cores.smt2 \
+ bug821.smt2
TESTS = $(SMT_TESTS) $(SMT2_TESTS) $(CVC_TESTS) $(BUG_TESTS)
--- /dev/null
+; COMMAND-LINE: --incremental
+; EXPECT: sat
+(set-logic UF)
+(push 1)
+(declare-fun _substvar_4_ () Bool)
+(assert _substvar_4_)
+(assert _substvar_4_)
+(check-sat)