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