3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-24 03:57:51 +00:00

We only need one of is_true/is_false

This commit is contained in:
Jakob Rath 2022-09-29 17:19:47 +02:00
parent 79c82a3d97
commit 6218931dde
8 changed files with 8 additions and 38 deletions

View file

@ -224,14 +224,6 @@ namespace polysat {
return is_always_false(is_positive, p, q);
}
bool ule_constraint::is_currently_true(solver& s, assignment_t const& sub, bool is_positive) const {
return is_currently_false(s, sub, !is_positive);
}
bool ule_constraint::is_currently_true(solver& s, bool is_positive) const {
return is_currently_false(s, !is_positive);
}
inequality ule_constraint::as_inequality(bool is_positive) const {
if (is_positive)
return inequality(lhs(), rhs(), false, this);