aboutsummaryrefslogtreecommitdiff
path: root/kernel/reduction.ml
diff options
context:
space:
mode:
authorherbelin1999-11-26 21:19:41 +0000
committerherbelin1999-11-26 21:19:41 +0000
commit18a9bacd66660b23af059658116db7b812d6db06 (patch)
treedb12259da18e58325063d107e0e61045fec7ea7c /kernel/reduction.ml
parent1a2dc1bb8b78b07ea7620b466138f43df6a05aaa (diff)
Modification pour faire compiler pretyping.ml qui maintenant compile
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@156 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/reduction.ml')
-rw-r--r--kernel/reduction.ml10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/reduction.ml b/kernel/reduction.ml
index bc4021fbf9..5f011c06d8 100644
--- a/kernel/reduction.ml
+++ b/kernel/reduction.ml
@@ -1265,16 +1265,16 @@ let poly_args env sigma t =
(* Expanding existential variables (trad.ml, progmach.ml) *)
(* 1- whd_ise fails if an existential is undefined *)
+
+exception Uninstantiated_evar of int
+
let rec whd_ise env sigma = function
| DOPN(Evar sp,_) as k ->
if Evd.in_dom sigma sp then
if Evd.is_defined sigma sp then
whd_ise env sigma (existential_value sigma k)
- else
- errorlabstrm "whd_ise"
- [< 'sTR"There is an unknown subterm I cannot solve" >]
- else
- k
+ else raise (Uninstantiated_evar sp)
+ else k
| DOP2(Cast,c,_) -> whd_ise env sigma c
| DOP0(Sort(Type _)) -> DOP0(Sort(Type dummy_univ))
| c -> c