mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
fix #6501
This commit is contained in:
parent
f961300036
commit
fe8034731d
5 changed files with 39 additions and 15 deletions
|
@ -3027,6 +3027,10 @@ namespace smt {
|
|||
TRACE("end_assert_expr_ll", ast_mark m; m_asserted_formulas.display_ll(tout, m););
|
||||
}
|
||||
|
||||
void context::add_asserted(expr* e) {
|
||||
m_asserted_formulas.assert_expr(e);
|
||||
}
|
||||
|
||||
void context::assert_expr(expr * e) {
|
||||
assert_expr(e, nullptr);
|
||||
}
|
||||
|
|
|
@ -1618,6 +1618,8 @@ namespace smt {
|
|||
|
||||
void register_plugin(theory * th);
|
||||
|
||||
void add_asserted(expr* e);
|
||||
|
||||
void assert_expr(expr * e);
|
||||
|
||||
void assert_expr(expr * e, proof * pr);
|
||||
|
|
|
@ -249,7 +249,7 @@ namespace smt {
|
|||
expr_ref eq1(m.mk_eq(l, r), m);
|
||||
expr_ref fn(m.mk_fresh_const("rec-eq", m.mk_bool_sort()), m);
|
||||
expr_ref eq(m.mk_eq(fn, eq1), m);
|
||||
ctx.assert_expr(eq);
|
||||
ctx.add_asserted(eq);
|
||||
ctx.internalize_assertions();
|
||||
lit = mk_literal(fn);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue