]> matita.cs.unibo.it Git - helm.git/commitdiff
fix
authorEnrico Tassi <enrico.tassi@inria.fr>
Fri, 4 Apr 2008 17:41:58 +0000 (17:41 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Fri, 4 Apr 2008 17:41:58 +0000 (17:41 +0000)
helm/software/components/ng_kernel/check.ml

index 908493cbe8e1e1ab6a9887a70bbf64b460bc3804..a54890285c0f73b32a889bb3e04ff673bca25d9c 100644 (file)
@@ -8,16 +8,11 @@ let _ =
   NCicPp.set_ppterm NCicPp.trivial_pp_term;
   Helm_registry.load_from "conf.xml";
   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 (u,_,_,_,_ as o) ->
-       prerr_endline ("CHECK: " ^ NUri.string_of_uri u ^"\n"^NCicPp.ppobj o);
-       try NCicTypeChecker.typecheck_obj o
-       with 
-       | NCicTypeChecker.AssertFailure s 
-       | NCicTypeChecker.TypeCheckerFailure s -> prerr_endline (Lazy.force s)
-       (*| CicEnvironment.Object_not_found s -> 
-           prerr_endline ("Obj not found: " ^ UriManager.string_of_uri s)*))
-    l
+  let _,o = NCicEnvironment.get_obj (NUri.nuri_of_ouri u) in
+  try NCicTypeChecker.typecheck_obj o
+  with 
+  | NCicTypeChecker.AssertFailure s 
+  | NCicTypeChecker.TypeCheckerFailure s -> prerr_endline (Lazy.force s)
+  | CicEnvironment.Object_not_found s -> 
+      prerr_endline ("Obj not found: " ^ UriManager.string_of_uri s)
 ;;