mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 02:15:19 +00:00
track assertions
This commit is contained in:
parent
64ec8acd30
commit
a4d4e2e483
|
@ -107,7 +107,7 @@ namespace q {
|
|||
if (ctx.values2root().find(e, n) && n->class_generation() <= generation_min)
|
||||
eqs.push_back(m.mk_eq(sk, e));
|
||||
}
|
||||
m_solver->assert_expr(mk_or(eqs));
|
||||
assert_expr(mk_or(eqs));
|
||||
}
|
||||
|
||||
expr_ref mbqi::replace_model_value(expr* e) {
|
||||
|
@ -168,7 +168,7 @@ namespace q {
|
|||
while (true) {
|
||||
::solver::scoped_push _sp(*m_solver);
|
||||
add_universe_restriction(*qb);
|
||||
m_solver->assert_expr(qb->mbody);
|
||||
assert_expr(qb->mbody);
|
||||
++m_stats.m_num_checks;
|
||||
lbool r = m_solver->check_sat(0, nullptr);
|
||||
if (r == l_undef)
|
||||
|
@ -219,7 +219,7 @@ namespace q {
|
|||
if (!proj)
|
||||
break;
|
||||
add_instantiation(q, proj);
|
||||
m_solver->assert_expr(m.mk_not(mk_and(eqs)));
|
||||
assert_expr(m.mk_not(mk_and(eqs)));
|
||||
}
|
||||
return i > 0;
|
||||
}
|
||||
|
@ -392,7 +392,7 @@ namespace q {
|
|||
if (!m_model->eval_expr(bounds, mbounds, true))
|
||||
return;
|
||||
mbounds = subst(mbounds, qb.vars);
|
||||
m_solver->assert_expr(mbounds);
|
||||
assert_expr(mbounds);
|
||||
qb.domain_eqs.push_back(vbounds);
|
||||
}
|
||||
|
||||
|
@ -425,11 +425,18 @@ namespace q {
|
|||
continue;
|
||||
expr_ref meq = mk_or(meqs);
|
||||
expr_ref veq = mk_or(veqs);
|
||||
m_solver->assert_expr(meq);
|
||||
assert_expr(meq);
|
||||
qb.domain_eqs.push_back(veq);
|
||||
}
|
||||
}
|
||||
|
||||
void mbqi::assert_expr(expr* e) {
|
||||
expr_ref _e(e, m);
|
||||
TRACE("q", tout << _e << "\n");
|
||||
m_solver->assert_expr(e);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Add bounds to sub-terms under uninterpreted functions for projection.
|
||||
*/
|
||||
|
|
|
@ -93,6 +93,7 @@ namespace q {
|
|||
void extract_free_vars(quantifier* q, q_body& qb);
|
||||
void init_model();
|
||||
void init_solver();
|
||||
void assert_expr(expr* e);
|
||||
mbp::project_plugin* get_plugin(app* var);
|
||||
void add_plugin(mbp::project_plugin* p);
|
||||
void add_instantiation(quantifier* q, expr_ref& proj);
|
||||
|
|
Loading…
Reference in a new issue