From: Enrico Tassi Date: Mon, 31 Jan 2005 17:16:41 +0000 (+0000) Subject: better debug prints X-Git-Tag: V_0_1_0~85 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=ec339d7f6bcb3442f3aa816addc6a85f6adf5553;p=helm.git better debug prints --- diff --git a/helm/ocaml/cic_disambiguation/disambiguate.ml b/helm/ocaml/cic_disambiguation/disambiguate.ml index 0ff738fda..aafbeb777 100644 --- a/helm/ocaml/cic_disambiguation/disambiguate.ml +++ b/helm/ocaml/cic_disambiguation/disambiguate.ml @@ -35,7 +35,6 @@ exception NoWellTypedInterpretation exception Try_again let debug = false -let debug = true let debug_print = if debug then prerr_endline else ignore (* @@ -70,8 +69,11 @@ let refine metasenv context term ugraph = | CicRefine.Uncertain _ -> debug_print ("%%% UNCERTAIN!!! " ^ CicPp.ppterm term) ; Uncertain,ugraph - | CicRefine.RefineFailure _ -> - debug_print ("%%% PRUNED!!! " ^ CicPp.ppterm term) ; + | CicRefine.RefineFailure msg -> + debug_print ( + (sprintf ("%%%%%% PRUNED!!!\n<>\n" ^^ + "%s\n<>\n<>\n%s\n<>") + msg (CicPp.ppterm term))); Ko,ugraph | CicUnification.UnificationFailure s -> prerr_endline ("PASSADI QUI: " ^ s);