Skip to content

Commit

Permalink
left over bugs #5532
Browse files Browse the repository at this point in the history
disabling complete const rewriting (temporarily) as it can loop
  • Loading branch information
NikolajBjorner committed Sep 7, 2021
1 parent be4df46 commit 9341574
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/ast/rewriter/rewriter_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,14 @@ bool rewriter_tpl<Config>::visit(expr * t, unsigned max_depth) {
if (process_const<ProofGen>(to_app(t)))
return true;
TRACE("rewriter_const", tout << "process const: " << mk_bounded_pp(t, m()) << " -> " << mk_bounded_pp(m_r, m()) << "\n";);
#if 1
#else
// disabled pending fix for loop/stack overflow in case of recursive expansion (possible)
rewriter_tpl rw(m(), false, m_cfg);
expr_ref result(m());
rw(m_r, result, m_pr);
m_r = result;
#endif
set_new_child_flag(t, m_r);
result_stack().push_back(m_r);
return true;
Expand Down
3 changes: 2 additions & 1 deletion src/sat/smt/euf_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,8 @@ namespace euf {
if (is_app(e))
for (expr* arg : *to_app(e))
args.push_back(e_internalize(arg));
mk_enode(e, args.size(), args.data());
if (!m_egraph.find(e))
mk_enode(e, args.size(), args.data());
}
attach_lit(lit, e);
}
Expand Down

0 comments on commit 9341574

Please sign in to comment.