mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
parent
0c32989144
commit
e187023304
3 changed files with 13 additions and 19 deletions
|
@ -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"));
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue