mirror of
https://github.com/Z3Prover/z3
synced 2025-06-21 05:13:39 +00:00
revert fix for #2164
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7399f78dfd
commit
8e812ea239
1 changed files with 4 additions and 1 deletions
|
@ -3329,7 +3329,8 @@ public:
|
||||||
st = lp::lp_status::UNBOUNDED;
|
st = lp::lp_status::UNBOUNDED;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
st = m_solver->maximize_term(v, term_max);
|
vi = m_theory_var2var_index[v];
|
||||||
|
st = m_solver->maximize_term(vi, term_max);
|
||||||
}
|
}
|
||||||
switch (st) {
|
switch (st) {
|
||||||
case lp::lp_status::OPTIMAL: {
|
case lp::lp_status::OPTIMAL: {
|
||||||
|
@ -3342,11 +3343,13 @@ public:
|
||||||
}
|
}
|
||||||
case lp::lp_status::FEASIBLE: {
|
case lp::lp_status::FEASIBLE: {
|
||||||
inf_rational val = get_value(v);
|
inf_rational val = get_value(v);
|
||||||
|
TRACE("arith", display(tout << st << " v" << v << " vi: " << vi << "\n"););
|
||||||
blocker = mk_gt(v);
|
blocker = mk_gt(v);
|
||||||
return inf_eps(rational::zero(), val);
|
return inf_eps(rational::zero(), val);
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
SASSERT(st == lp::lp_status::UNBOUNDED);
|
SASSERT(st == lp::lp_status::UNBOUNDED);
|
||||||
|
TRACE("arith", display(tout << st << " v" << v << " vi: " << vi << "\n"););
|
||||||
has_shared = false;
|
has_shared = false;
|
||||||
blocker = m.mk_false();
|
blocker = m.mk_false();
|
||||||
return inf_eps(rational::one(), inf_rational());
|
return inf_eps(rational::one(), inf_rational());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue