3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-06-23 21:57:10 -07:00
parent 0c32989144
commit e187023304
3 changed files with 13 additions and 19 deletions

View file

@ -351,6 +351,7 @@ namespace opt {
void context::get_model_core(model_ref& mdl) {
mdl = m_model;
fix_model(mdl);
mdl->set_model_completion(true);
TRACE("opt", tout << *mdl;);
}
@ -528,7 +529,7 @@ namespace opt {
k += obj.m_weights[i];
}
else {
TRACE("opt", tout << val << "\n";);
TRACE("opt", tout << (*mdl)(obj.m_terms[i]) << "\n";);
}
}
if (is_ge) {
@ -1539,6 +1540,7 @@ namespace opt {
expr_ref tmp(m);
model_ref mdl;
get_model(mdl);
mdl->set_model_completion(true);
for (expr * f : fmls) {
if (!mdl->is_true(f)) {
//IF_VERBOSE(0, m_fm->display(verbose_stream() << "fm\n"));

View file

@ -40,6 +40,7 @@ namespace opt {
}
m_solver->get_model(m_model);
m_solver->get_labels(m_labels);
m_model->set_model_completion(true);
IF_VERBOSE(1,
model_ref mdl(m_model);
cb.fix_model(mdl);
@ -99,6 +100,7 @@ namespace opt {
if (is_sat == l_true) {
m_solver->get_model(m_model);
m_solver->get_labels(m_labels);
m_model->set_model_completion(true);
mk_not_dominated_by();
}
return is_sat;