X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2Frt.ml;h=a4838a52acf320388bdbd7816159c9d3fbde4c49;hb=1ebf8777baa6ab8624e02908f9c8b4b13a6a572f;hp=a7d95978416a7dd89b2868d1c16385dc7d4b6156;hpb=2cb9996c8aa785c962bba42ebd00fae5018b03d8;p=helm.git diff --git a/helm/software/components/ng_kernel/rt.ml b/helm/software/components/ng_kernel/rt.ml index a7d959784..a4838a52a 100644 --- a/helm/software/components/ng_kernel/rt.ml +++ b/helm/software/components/ng_kernel/rt.ml @@ -1,15 +1,25 @@ let _ = Helm_registry.load_from "conf.xml"; - let u = UriManager.uri_of_string "cic:/matita/tests/f.con" in + CicParser.impredicative_set := false; + NCicPp.set_ppterm NCicPp.trivial_pp_term; + let u = UriManager.uri_of_string Sys.argv.(1) in let o, _ = CicEnvironment.get_obj CicUniv.oblivion_ugraph u in + prerr_endline "VECCHIO"; + prerr_endline (CicPp.ppobj o); let l = OCic2NCic.convert_obj u o in + (* fill the new env *) + let _ = NCicEnvironment.get_obj (NUri.nuri_of_ouri u) in + prerr_endline "OGGETTI:........................................."; + List.iter (fun o -> prerr_endline (NCicPp.ppobj o)) l; + prerr_endline "/OGGETTI:........................................."; let objs = List.flatten (List.map NCic2OCic.convert_nobj l) in List.iter (fun (u,o) -> - prerr_endline ("------- " ^ UriManager.string_of_uri u); + prerr_endline ("round trip: " ^ UriManager.string_of_uri u); prerr_endline (CicPp.ppobj o); + prerr_endline "tipo......."; try CicTypeChecker.typecheck_obj u o with CicTypeChecker.TypeCheckerFailure s