3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-20 04:43:39 +00:00
This commit is contained in:
Nikolaj Bjorner 2022-02-20 10:33:29 +02:00
parent ff5d210e81
commit d0d4ab7955

View file

@ -241,7 +241,7 @@ class horn_tactic : public tactic {
verify(q, g, result, mc, pc); verify(q, g, result, mc, pc);
} }
g->set(pc.get()); g->set(pc.get());
g->set(mc.get()); g->add(mc.get());
} }
void verify(expr* q, void verify(expr* q,
@ -282,12 +282,11 @@ class horn_tactic : public tactic {
} }
case l_false: { case l_false: {
// goal is sat // goal is sat
mc = concat(g->mc(), mc.get());
g->reset(); g->reset();
if (produce_models) { if (produce_models) {
model_ref md = m_ctx.get_model(); model_ref md = m_ctx.get_model();
model_converter_ref mc2 = model2model_converter(md.get()); model_converter_ref mc2 = model2model_converter(md.get());
mc = concat(mc.get(), mc2.get()); mc = mc2.get();
TRACE("dl", mc->display(tout << *md << "\n");); TRACE("dl", mc->display(tout << *md << "\n"););
} }
break; break;
@ -345,6 +344,7 @@ class horn_tactic : public tactic {
g->assert_expr(fml); g->assert_expr(fml);
} }
g->set_prec(goal::UNDER_OVER); g->set_prec(goal::UNDER_OVER);
mc = g->mc();
} }
void check_parameters() { void check_parameters() {