3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

test tightening with S

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2024-09-26 09:24:12 -07:00 committed by Lev Nachmanson
parent 193116bf84
commit 798f0e2e8a
2 changed files with 657 additions and 608 deletions

File diff suppressed because it is too large Load diff

View file

@ -1080,15 +1080,15 @@ namespace lp {
} }
} }
bool lar_solver::has_upper_bound(lpvar var, u_dependency*& ci, mpq& value, bool& is_strict) const { bool lar_solver::has_upper_bound(lpvar var, u_dependency*& dep, mpq& value, bool& is_strict) const {
if (var >= m_columns.size()) { if (var >= m_columns.size()) {
// TBD: bounds on terms could also be used, caller may have to track these. // TBD: bounds on terms could also be used, caller may have to track these.
return false; return false;
} }
const column& ul = m_columns[var]; const column& ul = m_columns[var];
ci = ul.upper_bound_witness(); dep = ul.upper_bound_witness();
if (ci != nullptr) { if (dep != nullptr) {
auto& p = m_mpq_lar_core_solver.m_r_upper_bounds()[var]; auto& p = m_mpq_lar_core_solver.m_r_upper_bounds()[var];
value = p.x; value = p.x;
is_strict = p.y.is_neg(); is_strict = p.y.is_neg();