3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 00:55:31 +00:00

fix bug with model completion and remove spurious std::cout

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-06-24 09:02:12 -07:00
parent 67ea78a4a5
commit 017165c474
4 changed files with 5 additions and 16 deletions

View file

@ -454,8 +454,7 @@ public:
(*p)(model, vars, fmls);
}
}
while (!vars.empty() && !fmls.empty()) {
std::cout << "mbp: " << var << "\n";
while (!vars.empty() && !fmls.empty()) {
var = vars.back();
vars.pop_back();
project_plugin* p = get_plugin(var);

View file

@ -158,6 +158,8 @@ namespace qe {
return;
}
model_evaluator eval(*mdl);
eval.set_model_completion(true);
TRACE("qe", model_v2_pp(tout, *mdl););
expr_ref val(m);
for (unsigned j = 0; j < m_preds[level - 1].size(); ++j) {
@ -169,7 +171,7 @@ namespace qe {
if (m.is_false(val)) {
m_asms.push_back(m.mk_not(p));
}
else {
else {
SASSERT(m.is_true(val));
m_asms.push_back(p);
}