3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-04 06:15:46 +00:00

fix assertion

This commit is contained in:
Jakob Rath 2022-09-23 16:15:38 +02:00
parent 0a0953ae78
commit 3c60c418e7
2 changed files with 9 additions and 3 deletions

View file

@ -790,8 +790,10 @@ namespace polysat {
for (auto const& c : m_constraints[v]) {
// for this check, all variables need to be assigned
DEBUG_CODE(for (pvar w : c->vars()) { SASSERT(s.is_assigned(w)); });
if (c.is_currently_false(s))
if (c.is_currently_false(s)) {
LOG(assignment_pp(s, v, s.get_value(v)) << " violates constraint " << lit_pp(s, c));
return false;
}
SASSERT(c.is_currently_true(s));
}
return true;