3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-26 13:06:05 +00:00

add assertion back for failing unit test, add comment about what is the bug

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-01-23 11:30:26 +01:00
parent 5e1ad37533
commit 5e7ff769b4
2 changed files with 9 additions and 3 deletions

View file

@ -127,7 +127,7 @@ namespace polysat {
*/
void conflict::insert(signed_constraint c) {
if (c.is_always_true())
return;
return;
if (c->is_marked())
return;
LOG("inserting: " << c);
@ -150,6 +150,7 @@ namespace polysat {
*/
void conflict::insert(signed_constraint c, vector<signed_constraint> const& premises) {
keep(c);
clause_builder c_lemma(s);
for (auto premise : premises) {
LOG_H3("premise: " << premise);
@ -162,7 +163,7 @@ namespace polysat {
clause_ref lemma = c_lemma.build();
SASSERT(lemma);
cm().store(lemma.get(), s);
if (s.m_bvars.value(c.blit()) == l_undef)
if (c.bvalue(s) == l_undef)
s.assign_propagate(c.blit(), *lemma);
}