X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic%2Funshare.ml;h=e198bcd49df1c79fa3235da0c75bcb2f18e6bcb8;hb=771ee8b9d122fa963881c876e86f90531bb7434f;hp=10f4f3df4b987dac17fe266dd2d3c824a2f8707c;hpb=e02f1fb84607becbaa86fe475a63be970a838286;p=helm.git diff --git a/helm/ocaml/cic/unshare.ml b/helm/ocaml/cic/unshare.ml index 10f4f3df4..e198bcd49 100644 --- a/helm/ocaml/cic/unshare.ml +++ b/helm/ocaml/cic/unshare.ml @@ -23,6 +23,8 @@ * http://cs.unibo.it/helm/. *) +(* $Id$ *) + let rec unshare = let module C = Cic in function @@ -41,8 +43,8 @@ let rec unshare = ) l in C.Meta(i,l') - | C.Sort _ as t -> t - | C.Implicit _ as t -> t + | C.Sort s -> C.Sort s + | C.Implicit info -> C.Implicit info | C.Cast (te,ty) -> C.Cast (unshare te, unshare ty) | C.Prod (n,s,t) -> C.Prod (n, unshare s, unshare t) | C.Lambda (n,s,t) -> C.Lambda (n, unshare s, unshare t) @@ -67,7 +69,6 @@ let rec unshare = C.MutCase (sp, i, unshare outty, unshare t, List.map unshare pl) | C.Fix (i, fl) -> - let len = List.length fl in let liftedfl = List.map (fun (name, i, ty, bo) -> (name, i, unshare ty, unshare bo)) @@ -75,7 +76,6 @@ let rec unshare = in C.Fix (i, liftedfl) | C.CoFix (i, fl) -> - let len = List.length fl in let liftedfl = List.map (fun (name, ty, bo) -> (name, unshare ty, unshare bo))