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:
parent
27d65df70b
commit
abc4cc5295
3 changed files with 2 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue