diff options
author | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2011-10-11 19:18:43 +0000 |
---|---|---|
committer | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2011-10-11 19:18:43 +0000 |
commit | b6451f561214b5bb7a4206b0a096b0cbbb76a25b (patch) | |
tree | 0b372b394d44b59472379319608217a0b16dd8dd /library/heads.ml | |
parent | 454ec4db2fcbaef9c67f4b1a4889f47d18795882 (diff) |
in heads.ml, at least turn the Not_found of #2608 into assert false
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14550 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/heads.ml')
-rw-r--r-- | library/heads.ml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/library/heads.ml b/library/heads.ml index 8fda452c1..3f7c8877e 100644 --- a/library/heads.ml +++ b/library/heads.ml @@ -66,8 +66,12 @@ let _ = Summary.unfreeze_function = unfreeze; Summary.init_function = init } -let variable_head id = Evalrefmap.find (EvalVarRef id) !head_map -let constant_head cst = Evalrefmap.find (EvalConstRef cst) !head_map +let variable_head id = + try Evalrefmap.find (EvalVarRef id) !head_map + with Not_found -> assert false +let constant_head cst = + try Evalrefmap.find (EvalConstRef cst) !head_map + with Not_found -> assert false let kind_of_head env t = let rec aux k l t b = match kind_of_term (Reduction.whd_betaiotazeta t) with |