3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-07 06:33:23 +00:00
This commit is contained in:
Nikolaj Bjorner 2025-02-02 15:00:31 -08:00
parent 99cbfa715c
commit 17d47ca8c7
3 changed files with 14 additions and 5 deletions

View file

@ -202,9 +202,6 @@ namespace opt {
for (unsigned i = 0; i < obj_index; ++i)
commit_assignment(i);
// m_s->maximize_objective(obj_index, bound);
// m_s->assert_expr(bound);
unsigned steps = 0;
unsigned step_incs = 0;
rational delta_per_step(1);
@ -216,9 +213,10 @@ namespace opt {
SASSERT(delta_per_step.is_pos());
is_sat = m_s->check_sat(0, nullptr);
TRACE("opt", tout << "check " << is_sat << "\n";
tout << "last bound: " << last_bound << "\n";
tout << "last bound: " << last_bound << " bound " << bound << "\n";
tout << "lower: " << m_lower[obj_index] << "\n";
tout << "upper: " << m_upper[obj_index] << "\n";
if (is_sat == l_true) m_s->display(tout);
);
if (is_sat == l_true) {
m_s->maximize_objective(obj_index, bound);