From 95a6821ff8ad21cd3d11d6472a882d146676979f Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Fri, 31 Jul 2009 13:07:53 +0000 Subject: [PATCH] Bug fixed: one case of too many arguments was not detected and used to diverge. --- helm/software/components/ng_refiner/nCicRefiner.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helm/software/components/ng_refiner/nCicRefiner.ml b/helm/software/components/ng_refiner/nCicRefiner.ml index 10881fa34..0926db840 100644 --- a/helm/software/components/ng_refiner/nCicRefiner.ml +++ b/helm/software/components/ng_refiner/nCicRefiner.ml @@ -506,10 +506,12 @@ and eat_prods rdb ~localise force_ty metasenv subst context expty orig_t orig_he | C.Match (_,_,C.Meta _,_) | C.Match (_,_,C.Appl (C.Meta _ :: _),_) | C.Appl (C.Const (NReference.Ref (_, NReference.Fix _)) :: _) -> + too_many_args := true; raise (Uncertain (lazy (localise orig_he, Printf.sprintf ("The term %s is here applied to %d arguments but expects " ^^ "only %d arguments") (NCicPp.ppterm ~metasenv ~subst ~context he) - (List.length args) (List.length args_so_far)))) + (List.length args + List.length args_so_far) + (List.length args_so_far)))) | ty -> let metasenv, subst, newhead, newheadty = too_many_args := true; -- 2.39.2