3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-02 17:30:23 +00:00

rewrite some simplifiers

This commit is contained in:
Nikolaj Bjorner 2022-11-30 23:15:32 +09:00
parent 23c53c6820
commit edb0fc394b
8 changed files with 81 additions and 237 deletions

View file

@ -37,13 +37,11 @@ void bit_blaster::reduce() {
expr_ref new_curr(m);
proof_ref new_pr(m);
bool change = false;
for (unsigned idx = qhead(); idx < qtail(); idx++) {
if (m_fmls.inconsistent())
break;
for (unsigned idx : indices()) {
auto [curr, d] = m_fmls[idx]();
m_rewriter(curr, new_curr, new_pr);
m_num_steps += m_rewriter.get_num_steps();
m_rewriter(curr, new_curr, new_pr);
if (curr != new_curr) {
m_num_steps += m_rewriter.get_num_steps();
change = true;
TRACE("bit_blaster", tout << mk_pp(curr, m) << " -> " << new_curr << "\n";);
m_fmls.update(idx, dependent_expr(m, new_curr, d));