fix(library/unifier): bug in lambda_abstract_locals auxiliary function

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-06-25 09:59:08 -07:00
parent 6db6048bf8
commit f981a4c1fe

View file

@ -75,7 +75,8 @@ expr lambda_abstract_locals(expr const & e, buffer<expr> const & locals) {
unsigned i = locals.size(); unsigned i = locals.size();
while (i > 0) { while (i > 0) {
--i; --i;
v = mk_lambda(local_pp_name(locals[i]), mlocal_type(locals[i]), v); expr t = abstract_locals(mlocal_type(locals[i]), i, locals.data());
v = mk_lambda(local_pp_name(locals[i]), t, v);
} }
return v; return v;
} }