3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-01-11 19:26:16 -08:00
parent 0aac7e54a9
commit fc3a642876
2 changed files with 9 additions and 5 deletions

View file

@ -252,11 +252,10 @@ namespace opt {
auto decrement = [&]() {
SASSERT(has_shared);
if (l_true != decrement_value(i, val)) {
if (l_true != m_context.check(0, nullptr))
throw default_exception("maximization suspended");
m_context.get_model(m_last_model);
}
decrement_value(i, val);
if (l_true != m_context.check(0, nullptr))
throw default_exception("maximization suspended");
m_context.get_model(m_last_model);
};
if (!val.is_finite()) {