mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
fix #4948
This commit is contained in:
parent
0aac7e54a9
commit
fc3a642876
2 changed files with 9 additions and 5 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue