diff options
author | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2016-11-19 01:07:35 +0100 |
---|---|---|
committer | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2017-02-14 17:28:56 +0100 |
commit | db252cb87e9c63f400fd4fddd2d771df3160d592 (patch) | |
tree | 25c1cb44c479ffa10e6db87f91b43f7e60b427bd /pretyping/nativenorm.ml | |
parent | 118ae18590dbc7d01cf34e0cd6133b1e34ef9090 (diff) |
Inv API using EConstr.
Diffstat (limited to 'pretyping/nativenorm.ml')
-rw-r--r-- | pretyping/nativenorm.ml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pretyping/nativenorm.ml b/pretyping/nativenorm.ml index ff3424c44..cdaa4e9ee 100644 --- a/pretyping/nativenorm.ml +++ b/pretyping/nativenorm.ml @@ -99,6 +99,8 @@ let build_branches_type env sigma (mind,_ as _ind) mib mip u params dep p = let build_one_branch i cty = let typi = type_constructor mind mib u cty params in let decl,indapp = Reductionops.splay_prod env sigma (EConstr.of_constr typi) in + let decl = List.map (on_snd EConstr.Unsafe.to_constr) decl in + let indapp = EConstr.Unsafe.to_constr indapp in let decl_with_letin,_ = decompose_prod_assum typi in let ind,cargs = find_rectype_a env indapp in let nparams = Array.length params in |