3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-11 03:33:35 +00:00

set status optimal also on object

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-03-03 19:31:51 -08:00
parent 7aa8b4ac2a
commit 19e7b75536

View file

@ -570,7 +570,11 @@ lp_status lar_solver::maximize_term(unsigned j_or_term,
m_mpq_lar_core_solver.m_r_x = backup;
}
TRACE("lar_solver", print_values(tout););
return term_max == opt_val? lp_status::OPTIMAL :lp_status::FEASIBLE;
if (term_max == opt_val) {
set_status(lp_status::OPTIMAL);
return lp_status::OPTIMAL;
}
return lp_status::FEASIBLE;
}