3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-11-29 06:02:32 -08:00
parent 8248ec879e
commit e96f9de70b
3 changed files with 14 additions and 6 deletions

View file

@ -5553,8 +5553,15 @@ void theory_seq::propagate_accept(literal lit, expr* acc) {
void theory_seq::add_theory_assumptions(expr_ref_vector & assumptions) {
TRACE("seq", tout << "add_theory_assumption " << m_util.has_re() << "\n";);
if (m_util.has_re()) {
expr_ref dlimit = mk_max_unfolding_depth();
m_max_unfolding_lit = mk_literal(dlimit);
expr_ref dlimit(m);
if (m_max_unfolding_lit != null_literal &&
m_max_unfolding_depth == 1) {
dlimit = mk_max_unfolding_depth();
m_max_unfolding_lit = mk_literal(dlimit);
}
else {
dlimit = get_context().bool_var2expr(m_max_unfolding_lit.var());
}
TRACE("seq", tout << "add_theory_assumption " << dlimit << " " << assumptions << "\n";);
assumptions.push_back(dlimit);
}