diff options
author | barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2002-02-07 16:07:34 +0000 |
---|---|---|
committer | barras <barras@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2002-02-07 16:07:34 +0000 |
commit | 296faec482d17f9bfdc419f79ed565ecd8035e60 (patch) | |
tree | 410123e747a8b3f3ca44aacb86f241c10360257a /contrib/correctness | |
parent | 85bdcf8b1ca9b515d848878537755069ed03fd27 (diff) |
petit nettoyage de kernel/inductive
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2460 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/correctness')
-rw-r--r-- | contrib/correctness/pcic.ml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/correctness/pcic.ml b/contrib/correctness/pcic.ml index be8f14203..a6db1a5ab 100644 --- a/contrib/correctness/pcic.ml +++ b/contrib/correctness/pcic.ml @@ -137,7 +137,7 @@ let tuple_ref dep n = let trad_binder avoid nenv = function | CC_untyped_binder -> RHole None - | CC_typed_binder ty -> Detyping.detype avoid nenv ty + | CC_typed_binder ty -> Detyping.detype (Global.env()) avoid nenv ty let rec push_vars avoid nenv = function | [] -> ([],avoid,nenv) @@ -207,21 +207,22 @@ let rawconstr_of_prog p = let n = List.length l in let cl = List.map (trad avoid nenv) l in let tuple = tuple_ref dep n in - let tyl = List.map (Detyping.detype avoid nenv) tyl in + let tyl = List.map (Detyping.detype (Global.env()) avoid nenv) tyl in let args = tyl @ cl in RApp (dummy_loc, RRef (dummy_loc, tuple), args) | CC_case (ty,b,el) -> let c = trad avoid nenv b in let cl = List.map (trad avoid nenv) el in - let ty = Detyping.detype avoid nenv ty in + let ty = Detyping.detype (Global.env()) avoid nenv ty in ROldCase (dummy_loc, false, Some ty, c, Array.of_list cl) | CC_expr c -> - Detyping.detype avoid nenv c + Detyping.detype (Global.env()) avoid nenv c | CC_hole c -> - RCast (dummy_loc, RHole None, Detyping.detype avoid nenv c) + RCast (dummy_loc, RHole None, + Detyping.detype (Global.env()) avoid nenv c) in trad [] empty_names_context p |