mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
504a7550b3
commit
a7495876fd
1 changed files with 8 additions and 1 deletions
|
@ -131,7 +131,14 @@ namespace opt {
|
|||
}
|
||||
model_ref mdl;
|
||||
s().get_model(mdl);
|
||||
if (mdl) update_assignment(mdl);
|
||||
if (mdl) {
|
||||
for (auto & soft : m_soft) {
|
||||
if (!mdl->is_true(soft.s)) {
|
||||
break;
|
||||
}
|
||||
soft.set_value(l_true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue