Skip to content

Commit

Permalink
minor code simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Mar 5, 2023
1 parent 92fe8c5 commit b9a87e4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ast/rewriter/hoist_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ expr_ref hoist_rewriter::mk_and(expr_ref_vector const& args) {
continue;
else
negs.push_back(::mk_not(m, a));
return expr_ref(::mk_not(m, mk_or(negs)), m);
return ::mk_not(mk_or(negs));
}
else
return ::mk_and(args);
Expand Down Expand Up @@ -164,7 +164,6 @@ unsigned hoist_rewriter::mk_var(expr* e) {
}

expr_ref hoist_rewriter::hoist_predicates(obj_hashtable<expr> const& preds, unsigned num_args, expr* const* es) {
expr_ref result(m);
expr_ref_vector args(m), args1(m), fmls(m);
for (unsigned i = 0; i < num_args; ++i) {
VERIFY(is_and(es[i], &args1));
Expand All @@ -178,8 +177,7 @@ expr_ref hoist_rewriter::hoist_predicates(obj_hashtable<expr> const& preds, unsi
fmls.push_back(mk_or(args));
for (auto* p : preds)
fmls.push_back(p);
result = mk_and(fmls);
return result;
return mk_and(fmls);
}


Expand Down

0 comments on commit b9a87e4

Please sign in to comment.