Skip to content

Commit

Permalink
fix #4128
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Apr 28, 2020
1 parent 4f46292 commit 38e0968
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/tactic/arith/purify_arith_tactic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -726,14 +726,13 @@ struct purify_arith_proc {
r(q->get_expr(), new_body, new_body_pr);
unsigned num_vars = r.cfg().m_new_vars.size();
expr_ref_vector & cnstrs = r.cfg().m_new_cnstrs;
if (num_vars == 0 && !cnstrs.empty()) {
cnstrs.push_back(new_body);
new_body = m().mk_and(cnstrs);
}

TRACE("purify_arith",
tout << "num_vars: " << num_vars << "\n";
tout << "body: " << mk_ismt2_pp(q->get_expr(), m()) << "\nnew_body: " << new_body << "\n";);
if (num_vars == 0) {
cnstrs.push_back(new_body);
new_body = m().mk_and(cnstrs);
result = m().update_quantifier(q, new_body);
if (m_produce_proofs) {
auto& cnstr_prs = r.cfg().m_new_cnstr_prs;
Expand All @@ -745,7 +744,7 @@ struct purify_arith_proc {
else {
result = q;
if (m_produce_proofs) {
r.cfg().push_cnstr_pr(m().mk_reflexivity(q));
result_pr = m().mk_reflexivity(q);
}
}
}
Expand Down

0 comments on commit 38e0968

Please sign in to comment.