From: Claudio Sacerdoti Coen Date: Mon, 26 Mar 2007 18:05:50 +0000 (+0000) Subject: Serious bug fixed: a variable was captured during unfolding of Fix, resulting X-Git-Tag: 0.4.95@7852~558 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=37a375b59014cdfaa15f50e2a7bbed29871adb9b;p=helm.git Serious bug fixed: a variable was captured during unfolding of Fix, resulting in the context of the return type of mutually recursive definitions being lifted for each function but the first one! --- diff --git a/components/cic_proof_checking/cicReduction.ml b/components/cic_proof_checking/cicReduction.ml index bfba135cf..213aa2356 100644 --- a/components/cic_proof_checking/cicReduction.ml +++ b/components/cic_proof_checking/cicReduction.ml @@ -712,12 +712,12 @@ if List.mem uri params then debug_print (lazy "---- OK2") ; let leng = List.length fl in let new_env = let counter = ref 0 in - let rec build_env e = - if !counter = leng then e + let rec build_env e' = + if !counter = leng then e' else (incr counter ; build_env - ((RS.to_env (k,e,ens,C.Fix (!counter -1, fl),[]))::e)) + ((RS.to_env (k,e,ens,C.Fix (!counter -1, fl),[]))::e')) in build_env e in