mirror of
https://github.com/Z3Prover/z3
synced 2025-08-26 13:06:05 +00:00
We only need one of is_true/is_false
This commit is contained in:
parent
79c82a3d97
commit
6218931dde
8 changed files with 8 additions and 38 deletions
|
@ -67,11 +67,7 @@ namespace polysat {
|
|||
}
|
||||
|
||||
bool op_constraint::is_always_true(bool is_positive, pdd const& p, pdd const& q, pdd const& r) const {
|
||||
switch (eval(p, q, r)) {
|
||||
case l_true: return is_positive;
|
||||
case l_false: return !is_positive;
|
||||
default: return false;
|
||||
}
|
||||
return is_always_false(!is_positive, p, q, r);
|
||||
}
|
||||
|
||||
bool op_constraint::is_always_false(bool is_positive) const {
|
||||
|
@ -82,10 +78,6 @@ namespace polysat {
|
|||
return is_always_false(is_positive, s.subst(p()), s.subst(q()), s.subst(r()));
|
||||
}
|
||||
|
||||
bool op_constraint::is_currently_true(solver& s, bool is_positive) const {
|
||||
return is_always_true(is_positive, s.subst(p()), s.subst(q()), s.subst(r()));
|
||||
}
|
||||
|
||||
std::ostream& op_constraint::display(std::ostream& out, lbool status) const {
|
||||
switch (status) {
|
||||
case l_true: return display(out);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue