mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 19:35:50 +00:00
update model during Lex
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
519c9dba25
commit
53f82e3239
3 changed files with 11 additions and 5 deletions
|
@ -269,6 +269,9 @@ namespace opt {
|
|||
if (r == l_true && !get_lower_as_num(i).is_finite()) {
|
||||
return r;
|
||||
}
|
||||
if (r == l_true && i + 1 < m_objectives.size()) {
|
||||
update_lower(true);
|
||||
}
|
||||
}
|
||||
DEBUG_CODE(if (r == l_true) validate_lex(););
|
||||
return r;
|
||||
|
@ -841,6 +844,7 @@ namespace opt {
|
|||
switch(obj.m_type) {
|
||||
case O_MAXSMT: {
|
||||
rational r = m_maxsmts.find(obj.m_id)->get_upper();
|
||||
TRACE("opt", tout << "maxsmt: " << r << " negate: " << obj.m_neg << " offset: " << obj.m_offset << "\n";);
|
||||
if (obj.m_neg) r.neg();
|
||||
r += obj.m_offset;
|
||||
return inf_eps(r);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue