mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 03:57:51 +00:00
comments
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d514464e30
commit
f8a3857adb
7 changed files with 61 additions and 40 deletions
|
@ -86,7 +86,7 @@ namespace polysat {
|
|||
// TODO: other cheap constraints possible?
|
||||
}
|
||||
|
||||
bool ule_constraint::is_always_false(bool is_positive, pdd const& lhs, pdd const& rhs) {
|
||||
bool ule_constraint::is_always_false(bool is_positive, pdd const& lhs, pdd const& rhs) const {
|
||||
// TODO: other conditions (e.g. when forbidden interval would be full)
|
||||
if (is_positive)
|
||||
return lhs.is_val() && rhs.is_val() && lhs.val() > rhs.val();
|
||||
|
@ -97,17 +97,17 @@ namespace polysat {
|
|||
}
|
||||
}
|
||||
|
||||
bool ule_constraint::is_always_false(bool is_positive) {
|
||||
bool ule_constraint::is_always_false(bool is_positive) const {
|
||||
return is_always_false(is_positive, lhs(), rhs());
|
||||
}
|
||||
|
||||
bool ule_constraint::is_currently_false(solver& s, bool is_positive) {
|
||||
bool ule_constraint::is_currently_false(solver& s, bool is_positive) const {
|
||||
auto p = lhs().subst_val(s.assignment());
|
||||
auto q = rhs().subst_val(s.assignment());
|
||||
return is_always_false(is_positive, p, q);
|
||||
}
|
||||
|
||||
bool ule_constraint::is_currently_true(solver& s, bool is_positive) {
|
||||
bool ule_constraint::is_currently_true(solver& s, bool is_positive) const {
|
||||
auto p = lhs().subst_val(s.assignment());
|
||||
auto q = rhs().subst_val(s.assignment());
|
||||
if (is_positive) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue