mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
fix #5594
This commit is contained in:
parent
96e117d78c
commit
fd77f0c111
|
@ -131,16 +131,16 @@ namespace opt {
|
||||||
soft.set_value(l_undef);
|
soft.set_value(l_undef);
|
||||||
}
|
}
|
||||||
model_ref mdl;
|
model_ref mdl;
|
||||||
s().get_model(mdl);
|
s().get_model(mdl);
|
||||||
if (mdl) {
|
if (mdl) {
|
||||||
|
TRACE("opt", tout << *mdl << "\n";);
|
||||||
for (auto & soft : m_soft) {
|
for (auto & soft : m_soft) {
|
||||||
if (!mdl->is_true(soft.s)) {
|
if (!mdl->is_true(soft.s))
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
soft.set_value(l_true);
|
soft.set_value(l_true);
|
||||||
assert_value(soft);
|
assert_value(soft);
|
||||||
}
|
}
|
||||||
update_bounds();
|
update_assignment();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue