3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-28 14:08:55 +00:00

avoid circular dependencies in justifications that get updated. fixes #7443

This commit is contained in:
Nikolaj Bjorner 2024-11-10 19:35:01 -08:00
parent 1856ab72d9
commit 879bb4b1f0
2 changed files with 7 additions and 7 deletions

View file

@ -406,7 +406,7 @@ namespace sat {
}
}
void update_assign(literal l, justification j) {
if (j.level() == 0 && !m_trim)
if (j.level() == 0 && !m_trim && lvl(l) != 0)
m_justification[l.var()] = j;
}
void assign_unit(literal l) { assign(l, justification(0)); }