X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2Frt.ml;fp=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2Frt.ml;h=74ed2eed99a43d64b5084897bef853b322aaf7e5;hb=1859726f40a0a14c2e1b4f1b44041ce1e552f729;hp=0000000000000000000000000000000000000000;hpb=4a4703054e9f022479ac7ab9cb96007984da7ef2;p=helm.git diff --git a/helm/software/components/ng_kernel/rt.ml b/helm/software/components/ng_kernel/rt.ml new file mode 100644 index 000000000..74ed2eed9 --- /dev/null +++ b/helm/software/components/ng_kernel/rt.ml @@ -0,0 +1,17 @@ +let _ = + Helm_registry.load_from "conf.xml"; + let u = UriManager.uri_of_string "cic:/matita/tests/f.con" in + let o, _ = CicEnvironment.get_obj CicUniv.oblivion_ugraph u in + let l = OCic2NCic.convert_obj u o in + 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 (CicPp.ppobj o); + try CicTypeChecker.typecheck_obj u o + with CicTypeChecker.TypeCheckerFailure s -> + prerr_endline (Lazy.force s)) + objs; +;;