diff options
author | vblot <24938579+vblot@users.noreply.github.com> | 2021-09-08 13:15:09 +0200 |
---|---|---|
committer | vblot <24938579+vblot@users.noreply.github.com> | 2021-09-08 13:15:09 +0200 |
commit | df788b256509090150660bbceb0251dfa8c3b97c (patch) | |
tree | dc3848674db158474c740727b20d5ec66f4f9f18 | |
parent | 53c1e367e85a3e9e268d992bc09f5efc01990ff7 (diff) | |
parent | dd39cc1bac964130e8738472c89f07786cfa90c6 (diff) | |
download | smtcoq-df788b256509090150660bbceb0251dfa8c3b97c.tar.gz smtcoq-df788b256509090150660bbceb0251dfa8c3b97c.zip |
Merge remote-tracking branch 'coq-8.11' into coq-8.12
-rw-r--r-- | src/trace/smtAtom.ml | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/trace/smtAtom.ml b/src/trace/smtAtom.ml index 78f2eee..3e16f6c 100644 --- a/src/trace/smtAtom.ml +++ b/src/trace/smtAtom.ml @@ -1343,15 +1343,18 @@ module Atom = let rec collect_types = function | [] -> ([],[]) | x::xs as l -> - let ty = CoqInterface.retyping_get_type_of env sigma x in - if Constr.iskind ty || - let c, _ = CoqInterface.decompose_app ty in - CoqInterface.eq_constr c (Lazy.force cCompDec) - then - let (l1, l2) = collect_types xs in - (x::l1, l2) - else - ([], l) + let (l1, l2) = collect_types xs in + match l1 with + | [] -> + let ty = CoqInterface.retyping_get_type_of env sigma x in + if Constr.iskind ty || + let c, _ = CoqInterface.decompose_app ty in + CoqInterface.eq_constr c (Lazy.force cCompDec) + then + (x::[], xs) + else + ([], l) + | _ -> (x::l1, l2) in let (args1, args2) = collect_types args in let c, args = |