mirror of
https://github.com/Z3Prover/z3
synced 2025-06-12 17:06:14 +00:00
update bounds and assert values during initialization
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
477fd3fba0
commit
e5e6f481f9
1 changed files with 12 additions and 0 deletions
|
@ -129,6 +129,18 @@ namespace opt {
|
||||||
for (auto & soft : m_soft) {
|
for (auto & soft : m_soft) {
|
||||||
soft.set_value(l_undef);
|
soft.set_value(l_undef);
|
||||||
}
|
}
|
||||||
|
model_ref mdl;
|
||||||
|
s().get_model(mdl);
|
||||||
|
if (mdl) {
|
||||||
|
for (auto & soft : m_soft) {
|
||||||
|
if (!mdl->is_true(soft.s)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
soft.set_value(l_true);
|
||||||
|
assert_value(soft);
|
||||||
|
}
|
||||||
|
update_bounds();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue