diff options
| author | letouzey | 2002-12-13 13:51:35 +0000 |
|---|---|---|
| committer | letouzey | 2002-12-13 13:51:35 +0000 |
| commit | ff290c75151a8ba512a2a9e7dd9d4e37e23fe8dd (patch) | |
| tree | 2be80b1844c837f22037b15e959059b29129aed6 | |
| parent | 793347ab8325696d413ab3a7016228130734e697 (diff) | |
une branche de case inutile
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3431 85f007b7-540e-0410-9357-904b9bb8a0f7
| -rw-r--r-- | contrib/extraction/extraction.ml | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/contrib/extraction/extraction.ml b/contrib/extraction/extraction.ml index 415921524e..4786215448 100644 --- a/contrib/extraction/extraction.ml +++ b/contrib/extraction/extraction.ml @@ -675,15 +675,13 @@ let extract_constant kn r = (* The real type [t']: without head lambdas, expanded, *) (* and with [Tvar] translated to [Tvar'] (not instantiable). *) let l,t' = type_decomp (type_expand (var2var' t)) in + let s = List.map ((<>) Tdummy) l in (* The initial ML environment. *) let mle = List.fold_left Mlenv.push_std_type Mlenv.empty l in (* The real extraction: *) let e = extract_term env mle t' c [] in - if e = MLdummy then Dterm (r, MLdummy, Tdummy) - else - (* Expunging term and type from dummy lambdas. *) - let s = List.map ((<>) Tdummy) l in - Dterm (r, term_expunge s (ids,e), type_expunge t) + (* Expunging term and type from dummy lambdas. *) + Dterm (r, term_expunge s (ids,e), type_expunge t) | (Info, TypeScheme) -> let body = Declarations.force l_body in let s,vl = type_sign_vl env typ in |
