3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-16 13:58:45 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-22 13:21:48 -07:00
parent 00520041fe
commit d6a2e7ac15
2 changed files with 3 additions and 2 deletions

View file

@ -1824,7 +1824,6 @@ ast * ast_manager::register_node_core(ast * n) {
}
n->m_id = is_decl(n) ? m_decl_id_gen.mk() : m_expr_id_gen.mk();
TRACE("ast", tout << "Object " << n->m_id << " was created.\n";);
TRACE("mk_var_bug", tout << "mk_ast: " << n->m_id << "\n";);
// increment reference counters

View file

@ -1874,7 +1874,9 @@ bool theory_seq::propagate_length_coherence(expr* e) {
elems.push_back(seq);
tail = mk_concat(elems.size(), elems.c_ptr());
// len(e) >= low => e = tail;
literal low(mk_literal(m_autil.mk_ge(mk_len(e), m_autil.mk_numeral(lo, true))));
expr_ref lo_e(m_autil.mk_numeral(lo, true), m);
expr_ref len_e_ge_lo(m_autil.mk_ge(mk_len(e), lo_e), m);
literal low = mk_literal(len_e_ge_lo);
add_axiom(~low, mk_seq_eq(e, tail));
expr_ref len_e = mk_len(e);
if (upper_bound(len_e, hi)) {