Skip to content

Commit

Permalink
touch
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Dec 1, 2023
1 parent faf1401 commit a15a7ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ast/rewriter/hoist_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ br_status hoist_rewriter::mk_or(unsigned num_args, expr * const * es, expr_ref &
m_subst.insert(p, m.mk_true());
fmls.push_back(p);
}
bool new_eq = false;
for (auto& [a, b] : m_eqs) {
if (m.is_value(a))
std::swap(a, b);
Expand All @@ -146,6 +147,7 @@ br_status hoist_rewriter::mk_or(unsigned num_args, expr * const * es, expr_ref &
result = m.mk_false();
return BR_DONE;
}
new_eq = true;
m_subst.insert(a, b);
fmls.push_back(m.mk_eq(a, b));
}
Expand All @@ -154,7 +156,7 @@ br_status hoist_rewriter::mk_or(unsigned num_args, expr * const * es, expr_ref &
fmls.push_back(ors);
result = mk_and(fmls);
TRACE("hoist", tout << ors << " => " << result << "\n";);
return BR_DONE;
return new_eq ? BR_REWRITE3 : BR_DONE;
}

unsigned hoist_rewriter::mk_var(expr* e) {
Expand Down

0 comments on commit a15a7ce

Please sign in to comment.