From 562836b540a915d013225c2a00101e14207c44f6 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Mon, 14 Feb 2005 09:51:39 +0000 Subject: [PATCH] Fixed remove operation and get_obj (that now correctly searches in the unchecked_list). --- helm/ocaml/cic_proof_checking/cicEnvironment.ml | 6 +----- helm/ocaml/cic_proof_checking/cicEnvironment.mli | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/helm/ocaml/cic_proof_checking/cicEnvironment.ml b/helm/ocaml/cic_proof_checking/cicEnvironment.ml index 182f8b7d9..15bffa57d 100644 --- a/helm/ocaml/cic_proof_checking/cicEnvironment.ml +++ b/helm/ocaml/cic_proof_checking/cicEnvironment.ml @@ -453,7 +453,7 @@ module Cache : * something. this means check and frozen must be empty. *) let remove uri = - if (!unchecked_list <> []) || (!frozen_list <> []) then + if !frozen_list <> [] then failwith "CicEnvironment.remove while type checking" else HT.remove cacheOfCookedObjects uri @@ -652,12 +652,8 @@ let get_obj base_univ uri = o,(CicUniv.merge_ugraphs base_univ u) with Not_found -> (* this should be an error case, but if we trust the uri... *) - if trust_obj uri then - (* trusting we add it to the unchecked list *) let o,u = find_or_add_to_unchecked uri in o,(CicUniv.merge_ugraphs base_univ u) - else - raise Not_found ;; exception OnlyPutOfInductiveDefinitionsIsAllowed diff --git a/helm/ocaml/cic_proof_checking/cicEnvironment.mli b/helm/ocaml/cic_proof_checking/cicEnvironment.mli index 0a8b25c25..fe87fc4af 100644 --- a/helm/ocaml/cic_proof_checking/cicEnvironment.mli +++ b/helm/ocaml/cic_proof_checking/cicEnvironment.mli @@ -41,7 +41,6 @@ exception Object_not_found of UriManager.uri;; (* as the get cooked, but if not present the object is only fetched, * not unfreezed and committed - * @raise Object_not_found *) val get_obj : CicUniv.universe_graph -> UriManager.uri -> -- 2.39.2