3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-11 08:33:25 +00:00

preparing for inf extension of arithmetic

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-10-31 02:15:08 -07:00
parent 5106c74b3e
commit 637b63cbe1

View file

@ -96,6 +96,7 @@ namespace opt {
lbool optimize_objectives::update_lower() {
lbool is_sat = s->check_sat(0, 0);
if (is_sat == l_true) {
set_max(m_lower, s->get_objective_values());
IF_VERBOSE(1,
for (unsigned i = 0; i < m_lower.size(); ++i) {
@ -111,6 +112,7 @@ namespace opt {
}
constraint = m.mk_or(disj.size(), disj.c_ptr());
s->assert_expr(constraint);
}
return is_sat;
}