Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jun 17, 2021
1 parent 93a4939 commit 2138ef2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ast/rewriter/var_subst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ expr_ref var_subst::operator()(expr * n, unsigned num_args, expr * const * args)
}
if (has_quantifiers(n)) {
expr_safe_replace rep(m);
for (unsigned k = 0; k < num_args; ++k)
rep.insert(m.mk_var(m_std_order ? num_args - k - 1 : k, args[k]->get_sort()), args[k]);
for (unsigned k = 0; k < num_args; ++k) {
expr* arg = args[k];
if (arg)
rep.insert(m.mk_var(m_std_order ? num_args - k - 1 : k, arg->get_sort()), arg);
}
rep(n, result);
return result;
}
Expand Down

0 comments on commit 2138ef2

Please sign in to comment.