3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-14 03:04:44 +00:00

Simplify boolean propagation level

This commit is contained in:
Jakob Rath 2022-11-09 16:59:51 +01:00
parent 27d65df70b
commit abc4cc5295
3 changed files with 2 additions and 15 deletions

View file

@ -77,16 +77,6 @@ namespace polysat {
return out.str();
}
unsigned constraint::level(solver& s) const {
if (s.m_bvars.value(sat::literal(bvar())) != l_undef)
return s.m_bvars.level(bvar());
unsigned level = s.base_level();
for (auto v : vars())
if (s.is_assigned(v))
level = std::max(level, s.get_level(v));
return level;
}
lbool signed_constraint::bvalue(solver& s) const {
return get()->has_bvar() ? s.m_bvars.value(blit()) : l_undef;
}