3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00
This commit is contained in:
Nikolaj Bjorner 2025-02-02 15:00:31 -08:00
parent 99cbfa715c
commit 17d47ca8c7
3 changed files with 14 additions and 5 deletions

View file

@ -3858,12 +3858,21 @@ public:
vi = get_lpvar(v);
st = lp().maximize_term(vi, term_max);
if (has_int() && lp().has_inf_int()) {
st = lp::lp_status::FEASIBLE;
lp().restore_x();
}
if (m_nla && (st == lp::lp_status::OPTIMAL || st == lp::lp_status::UNBOUNDED)) {
st = lp::lp_status::FEASIBLE;
switch (check_nla()) {
case FC_DONE:
st = lp::lp_status::FEASIBLE;
break;
case FC_GIVEUP:
case FC_CONTINUE:
st = lp::lp_status::UNBOUNDED;
break;
}
lp().restore_x();
}
}