diff options
author | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-04-15 16:05:05 +0000 |
---|---|---|
committer | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-04-15 16:05:05 +0000 |
commit | 215c4e40280a29546bee30fb35bf95f7fa2186ea (patch) | |
tree | aba8def7ccbbc2299b99b80f1cff4512303949dd /checker/closure.ml | |
parent | 66139b2e1f66b826dd5dbdb8a9ade64a4d5e11c6 (diff) |
Checker: get rid of code handling section variables
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16401 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'checker/closure.ml')
-rw-r--r-- | checker/closure.ml | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/checker/closure.ml b/checker/closure.ml index 45452874e..3ed9dd27a 100644 --- a/checker/closure.ml +++ b/checker/closure.ml @@ -151,7 +151,6 @@ let betaiotazeta = mkflags [fBETA;fIOTA;fZETA] * is stored in the table. * * i_rels = (4,[(1,c);(3,d)]) means there are 4 free rel variables * and only those with index 1 and 3 have bodies which are c and d resp. - * * i_vars is the list of _defined_ named variables. * * ref_value_cache searchs in the tab, otherwise uses i_repr to * compute the result and store it in the table. If the constant can't @@ -171,7 +170,6 @@ type 'a infos = { i_repr : 'a infos -> constr -> 'a; i_env : env; i_rels : int * (int * constr) list; - i_vars : (Id.t * constr) list; i_tab : (table_key, 'a) Hashtbl.t } let ref_value_cache info ref = @@ -183,7 +181,7 @@ let ref_value_cache info ref = match ref with | RelKey n -> let (s,l) = info.i_rels in lift n (List.assoc (s-n) l) - | VarKey id -> List.assoc id info.i_vars + | VarKey id -> raise Not_found | ConstKey cst -> constant_value info.i_env cst in let v = info.i_repr info body in @@ -194,16 +192,6 @@ let ref_value_cache info ref = | NotEvaluableConst _ (* Const *) -> None -let defined_vars flags env = -(* if red_local_const (snd flags) then*) - fold_named_context - (fun (id,b,_) e -> - match b with - | None -> e - | Some body -> (id, body)::e) - (named_context env) ~init:[] -(* else []*) - let defined_rels flags env = (* if red_local_const (snd flags) then*) fold_rel_context @@ -226,7 +214,6 @@ let create mk_cl flgs env = i_repr = mk_cl; i_env = env; i_rels = defined_rels flgs env; - i_vars = defined_vars flgs env; i_tab = Hashtbl.create 17 } |