fix(compiler/simp_pr1_rec): typo

This commit is contained in:
Leonardo de Moura 2016-05-01 16:47:53 -07:00
parent d86772e986
commit 7bf3e2ffbb

View file

@ -117,7 +117,7 @@ class simp_pr1_rec_fn : public compiler_step_visitor {
// Step 1.
for (unsigned k = 0; k < minor_ctx.size(); k++) {
if (minor_is_rec_arg[k]) {
expr type = ctx().whnf(minor_ctx[k]);
expr type = ctx().whnf(ctx().infer(minor_ctx[k]));
buffer<expr> type_args;
expr type_fn = get_app_args(type, type_args);
if (!is_constant(type_fn) || const_name(type_fn) != get_prod_name() || type_args.size() != 2)