]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/rt.ml
fixed bug in translating Fix, recno was not properly computed
[helm.git] / helm / software / components / ng_kernel / rt.ml
index e7ecaf3aff49e559fa60e8b7d571075689ef6ed2..bdf182577bc437d50ae1ad16b46de12e1188bb24 100644 (file)
@@ -1,8 +1,10 @@
 let _ =
   Helm_registry.load_from "conf.xml";
-  let u = UriManager.uri_of_string "cic:/matita/tests/f.con" in
+  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
   let l = OCic2NCic.convert_obj u o in
+  List.iter (fun o -> prerr_endline (NCicPp.ppobj o)) l;
   let objs = 
     List.flatten 
     (List.map NCic2OCic.convert_nobj l) in
@@ -11,8 +13,12 @@ let _ =
      prerr_endline ("------- " ^ UriManager.string_of_uri u);
      prerr_endline (CicPp.ppobj o);
      try CicTypeChecker.typecheck_obj u o
-     with CicTypeChecker.TypeCheckerFailure s ->
+     with
+       CicTypeChecker.TypeCheckerFailure s
+     | CicTypeChecker.AssertFailure s ->
        prerr_endline (Lazy.force s)
-     | CicEnvironment.Object_not_found _ -> ()) 
+     | CicEnvironment.Object_not_found uri ->
+       prerr_endline
+        ("CicEnvironment: Object not found " ^ UriManager.string_of_uri uri))
    objs;
 ;;