]> matita.cs.unibo.it Git - helm.git/commitdiff
prerr_endline => debug_print
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 19 Mar 2008 17:44:49 +0000 (17:44 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 19 Mar 2008 17:44:49 +0000 (17:44 +0000)
helm/software/components/tactics/metadataQuery.ml

index abe192b94b9341b98ac05647c27985517bdabb91..2941a806e3193025436a4d23393cd3ce8e9ff8ef 100644 (file)
@@ -288,20 +288,20 @@ let universe_of_goal ~(dbd:HSql.dbd) apply_only metasenv goal =
   let uris =
     Constr.UriManagerSet.fold
       (fun u acc -> 
-         prerr_endline ("processing "^(UriManager.string_of_uri u));
+         debug_print (lazy ("processing "^(UriManager.string_of_uri u)));
          let set_for_sigmatch = 
           Constr.UriManagerSet.remove u all_constants_closed in
         if LibraryObjects.is_eq_URI (UriManager.strip_xpointer u) then
           (* equality has a special treatment *)
-           (prerr_endline "special treatment";
+           (debug_print (lazy "special treatment");
           let tfe =
             Constr.SetSet.elements (types_for_equality metasenv goal) 
           in
             List.fold_left 
               (fun acc l ->
                  let tyl = Constr.UriManagerSet.elements l in
-                  prerr_endline ("tyl: "^(String.concat "\n" 
-                       (List.map UriManager.string_of_uri tyl)));
+                  debug_print (lazy ("tyl: "^(String.concat "\n" 
+                       (List.map UriManager.string_of_uri tyl))));
                  let set_for_sigmatch =
                    Constr.UriManagerSet.diff set_for_sigmatch l in
                  let uris =
@@ -310,7 +310,7 @@ let universe_of_goal ~(dbd:HSql.dbd) apply_only metasenv goal =
                    acc @ uris) 
               acc tfe)
         else
-           (prerr_endline "normal treatment";
+           (debug_print (lazy "normal treatment");
            let uris =
              sigmatch ~dbd ~facts:false ~where:`Statement 
                (Some (u,[]),set_for_sigmatch)