]> matita.cs.unibo.it Git - helm.git/commitdiff
Serious bug fixed: a variable was captured during unfolding of Fix, resulting
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 26 Mar 2007 18:05:50 +0000 (18:05 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 26 Mar 2007 18:05:50 +0000 (18:05 +0000)
in the context of the return type of mutually recursive definitions being
lifted for each function but the first one!

helm/software/components/cic_proof_checking/cicReduction.ml

index bfba135cf992cb6c44c9cba58364f9f42e9c3f61..213aa2356bd1e3d9940efccdc4420f1e7dd05b2b 100644 (file)
@@ -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