3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-07 18:05:21 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-19 23:30:37 -07:00
parent c8b9eba069
commit e3e6959b70
2 changed files with 2 additions and 3 deletions

View file

@ -528,9 +528,7 @@ void theory_diff_logic<Ext>::propagate() {
break;
}
default:
std::cout << m_params.m_arith_propagation_strategy << "\n";
SASSERT(false);
UNREACHABLE();
propagate_core();
}
}

View file

@ -979,7 +979,7 @@ bool theory_seq::solve_itos(expr* n, expr_ref_vector const& rs, dependency* dep)
literal lit = mk_simplified_literal(m_autil.mk_le(n, m_autil.mk_int(-1)));
propagate_lit(dep, 0, nullptr, lit);
return true;
}
}
expr_ref num(m), digit(m);
expr* u = nullptr;
for (expr* r : rs) {
@ -992,6 +992,7 @@ bool theory_seq::solve_itos(expr* n, expr_ref_vector const& rs, dependency* dep)
else {
num = m_autil.mk_add(m_autil.mk_mul(m_autil.mk_int(10), num), digit);
}
propagate_lit(dep, 0, nullptr, m_ax.is_digit(u));
}
propagate_lit(dep, 0, nullptr, mk_simplified_literal(m.mk_eq(n, num)));
if (rs.size() > 1) {