~aliases:lexicon_status.LexiconEngine.aliases
~universe:(Some lexicon_status.LexiconEngine.multi_aliases) ~uri
(text,prefix_len,obj)) in
-(*
+ (*
let time = Unix.gettimeofday () -. time in
prerr_endline ("VECCHIA DISAMBIGUAZIONE: " ^ string_of_float time);
-*)
-(*
- (let time = Unix.gettimeofday () in
+ (NCicLibrary.clear_cache ();
+ NCicEnvironment.invalidate ();
+ OCic2NCic.clear ();
prerr_endline "INIZIO NUOVA DISAMBIGUAZIONE";
(match obj with
CicNotationPt.Theorem (_,_,ty,_) ->
ugraph
| _ -> CicUniv.empty_ugraph
in
+(*
+ let _,l = CicUniv.do_rank graph in
+ List.iter (fun k ->
+ prerr_endline (CicUniv.string_of_universe k ^ " = " ^ string_of_int
+ (CicUniv.get_rank k))) l;
+*)
let graph =
List.fold_left
(fun graph (_,_,l) ->
graph (CoercDb.to_list ())
in
ignore(CicUniv.do_rank graph);
+ let time = Unix.gettimeofday () in
(try
(match
NCicDisambiguate.disambiguate_term
)
| _ -> ())
);
-*)
+ *)
let lexicon_status = LexiconEngine.set_proof_aliases lexicon_status diff in
lexicon_status, metasenv, cic