]> matita.cs.unibo.it Git - helm.git/commitdiff
Fixed remove operation and get_obj (that now correctly searches in the
authorEnrico Tassi <enrico.tassi@inria.fr>
Mon, 14 Feb 2005 09:51:39 +0000 (09:51 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Mon, 14 Feb 2005 09:51:39 +0000 (09:51 +0000)
unchecked_list).

helm/ocaml/cic_proof_checking/cicEnvironment.ml
helm/ocaml/cic_proof_checking/cicEnvironment.mli

index 182f8b7d9e993bf3ea6bc420f3e2ecbd9a5ed3a9..15bffa57dfb1f20399d45f414652c1a91166845b 100644 (file)
@@ -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
index 0a8b25c256c044640368a2afe86363fb18b34bae..fe87fc4afc57e9141584a11a437cce9eaa28b3a2 100644 (file)
@@ -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 ->