From 62789dd765375bef0fb572603aa01039a82dd3b5 Mon Sep 17 00:00:00 2001 From: ppedrot Date: Thu, 22 Nov 2012 18:09:23 +0000 Subject: Monomorphization (kernel) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15992 85f007b7-540e-0410-9357-904b9bb8a0f7 --- kernel/reduction.ml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'kernel/reduction.ml') diff --git a/kernel/reduction.ml b/kernel/reduction.ml index b0ea2f7db0..fb6ffd2d18 100644 --- a/kernel/reduction.ml +++ b/kernel/reduction.ml @@ -333,14 +333,20 @@ and eqappr cv_pb l2r infos (lft1,st1) (lft2,st2) cuniv = (* Eta-expansion on the fly *) | (FLambda _, _) -> - if v1 <> [] then - anomaly "conversion was given unreduced term (FLambda)"; + let () = match v1 with + | [] -> () + | _ -> + anomaly "conversion was given unreduced term (FLambda)" + in let (_,_ty1,bd1) = destFLambda mk_clos hd1 in eqappr CONV l2r infos (el_lift lft1, (bd1, [])) (el_lift lft2, (hd2, eta_expand_stack v2)) cuniv | (_, FLambda _) -> - if v2 <> [] then - anomaly "conversion was given unreduced term (FLambda)"; + let () = match v2 with + | [] -> () + | _ -> + anomaly "conversion was given unreduced term (FLambda)" + in let (_,_ty2,bd2) = destFLambda mk_clos hd2 in eqappr CONV l2r infos (el_lift lft1, (hd1, eta_expand_stack v1)) (el_lift lft2, (bd2, [])) cuniv -- cgit v1.2.3