2 Helm_registry.load_from "conf.xml";
3 CicParser.impredicative_set := false;
4 NCicPp.set_ppterm NCicPp.trivial_pp_term;
5 let u = UriManager.uri_of_string Sys.argv.(1) in
6 let o, _ = CicEnvironment.get_obj CicUniv.oblivion_ugraph u in
7 prerr_endline "VECCHIO";
8 prerr_endline (CicPp.ppobj o);
9 let l = OCic2NCic.convert_obj u o in
10 (* fill the new env *)
11 let _ = NCicEnvironment.get_obj (NUri.nuri_of_ouri u) in
12 prerr_endline "OGGETTI:.........................................";
13 List.iter (fun o -> prerr_endline (NCicPp.ppobj o)) l;
14 prerr_endline "/OGGETTI:.........................................";
17 (List.map NCic2OCic.convert_nobj l) in
20 prerr_endline ("round trip: " ^ UriManager.string_of_uri u);
21 prerr_endline (CicPp.ppobj o);
22 prerr_endline "tipo.......";
23 try CicTypeChecker.typecheck_obj u o
25 CicTypeChecker.TypeCheckerFailure s
26 | CicTypeChecker.AssertFailure s ->
27 prerr_endline (Lazy.force s)
28 | CicEnvironment.Object_not_found uri ->
30 ("CicEnvironment: Object not found " ^ UriManager.string_of_uri uri))