mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
Merge branch 'master' into unit_prop_on_monomials
This commit is contained in:
commit
4b85a105bb
|
@ -145,6 +145,7 @@ public:
|
||||||
return (*m_column_types)[j] == column_type::fixed && get_lower_bound(j).y.is_zero();
|
return (*m_column_types)[j] == column_type::fixed && get_lower_bound(j).y.is_zero();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void add_bound(mpq const& v, unsigned j, bool is_low, bool strict, std::function<u_dependency* ()> explain_bound) {
|
void add_bound(mpq const& v, unsigned j, bool is_low, bool strict, std::function<u_dependency* ()> explain_bound) {
|
||||||
j = lp().column_to_reported_index(j);
|
j = lp().column_to_reported_index(j);
|
||||||
|
|
||||||
|
@ -159,6 +160,7 @@ public:
|
||||||
if (m_improved_lower_bounds.find(j, k)) {
|
if (m_improved_lower_bounds.find(j, k)) {
|
||||||
auto& found_bound = m_ibounds[k];
|
auto& found_bound = m_ibounds[k];
|
||||||
if (v > found_bound.m_bound || (v == found_bound.m_bound && !found_bound.m_strict && strict)) {
|
if (v > found_bound.m_bound || (v == found_bound.m_bound && !found_bound.m_strict && strict)) {
|
||||||
|
|
||||||
found_bound.m_bound = v;
|
found_bound.m_bound = v;
|
||||||
found_bound.m_strict = strict;
|
found_bound.m_strict = strict;
|
||||||
found_bound.set_explain(explain_bound);
|
found_bound.set_explain(explain_bound);
|
||||||
|
@ -174,6 +176,7 @@ public:
|
||||||
if (m_improved_upper_bounds.find(j, k)) {
|
if (m_improved_upper_bounds.find(j, k)) {
|
||||||
auto& found_bound = m_ibounds[k];
|
auto& found_bound = m_ibounds[k];
|
||||||
if (v < found_bound.m_bound || (v == found_bound.m_bound && !found_bound.m_strict && strict)) {
|
if (v < found_bound.m_bound || (v == found_bound.m_bound && !found_bound.m_strict && strict)) {
|
||||||
|
|
||||||
found_bound.m_bound = v;
|
found_bound.m_bound = v;
|
||||||
found_bound.m_strict = strict;
|
found_bound.m_strict = strict;
|
||||||
found_bound.set_explain(explain_bound);
|
found_bound.set_explain(explain_bound);
|
||||||
|
|
Loading…
Reference in a new issue