X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_proof_checking%2FcicEnvironment.ml;h=ad61bcd0481795e7b4917b7f330411cc667a259b;hb=cba366ace3c62fd66f99addce68ae0e243622b68;hp=08166d5640443006405c87e76b9ed1ea8d9e834b;hpb=927b0dc91ca0369dd029c43ffe9258e17908fa38;p=helm.git diff --git a/helm/ocaml/cic_proof_checking/cicEnvironment.ml b/helm/ocaml/cic_proof_checking/cicEnvironment.ml index 08166d564..ad61bcd04 100644 --- a/helm/ocaml/cic_proof_checking/cicEnvironment.ml +++ b/helm/ocaml/cic_proof_checking/cicEnvironment.ml @@ -165,6 +165,9 @@ module Cache : ) l in C.Meta(i,l') + | C.Sort (C.Type u) -> + CicUniv.assert_univ u; + C.Sort (C.Type (CicUniv.recons_univ u)) | C.Sort _ as t -> t | C.Implicit _ as t -> t | C.Cast (te,ty) -> C.Cast (restore_in_term te, restore_in_term ty) @@ -214,7 +217,7 @@ module Cache : in C.CoFix (i, liftedfl) in - function + function C.Constant (name,bo,ty,params,attrs) -> let bo' = match bo with @@ -510,13 +513,10 @@ let get_object_to_add uri = in (* restarts the numbering of named universes (the ones inside the cic) *) let _ = CicUniv.restart_numbering () in - (* HACK ORRIBILE: fa in modo che il parser metta degli universi fresh non - * anonimi *) - let _ = CicParser3.set_uri uri in let obj = try let time = Unix.gettimeofday() in - let rc = CicParser.obj_of_xml filename bodyfilename in + let rc = CicParser.obj_of_xml uri filename bodyfilename in total_parsing_time := !total_parsing_time +. ((Unix.gettimeofday()) -. time ); rc