diff --git a/src/cil.ml b/src/cil.ml index 63da92793..ef265de4b 100755 --- a/src/cil.ml +++ b/src/cil.ml @@ -39,7 +39,7 @@ open Escape open Pretty open Cilint -(* open Trace (\* sm: 'trace' function *\) *) +(* open Ciltrace (\* sm: 'trace' function *\) *) module E = Errormsg module H = Hashtbl module IH = Inthash diff --git a/src/cil.mllib b/src/cil.mllib index 49e55cbba..f9f5b6d22 100644 --- a/src/cil.mllib +++ b/src/cil.mllib @@ -10,6 +10,7 @@ Cil Cilint Cillower Ciloptions +Ciltrace Cilutil Cilversion Clexer @@ -37,6 +38,5 @@ Patch Pretty Rmtmps Stats -Trace Util Whitetrack diff --git a/src/ciloptions.ml b/src/ciloptions.ml index 3508a13eb..6be6aa0fa 100644 --- a/src/ciloptions.ml +++ b/src/ciloptions.ml @@ -236,7 +236,7 @@ let options : (string * Arg.spec * string) list = (* sm: some more debugging options *) "--tr", - Arg.String Trace.traceAddMulti, + Arg.String Ciltrace.traceAddMulti, " Subsystem to show debug printfs for"; "--extrafiles", diff --git a/src/ext/callgraph/callgraph.ml b/src/ext/callgraph/callgraph.ml index 7a4c45376..5304bc04a 100644 --- a/src/ext/callgraph/callgraph.ml +++ b/src/ext/callgraph/callgraph.ml @@ -5,7 +5,7 @@ open Cil open Feature -open Trace +open Ciltrace open Printf module P = Pretty module IH = Inthash diff --git a/src/ext/epicenter/epicenter.ml b/src/ext/epicenter/epicenter.ml index fd4fd2b72..63ccb0e4c 100644 --- a/src/ext/epicenter/epicenter.ml +++ b/src/ext/epicenter/epicenter.ml @@ -7,7 +7,7 @@ open Callgraph open Cil open Feature -open Trace +open Ciltrace open Pretty module H = Hashtbl module IH = Inthash diff --git a/src/ext/logcalls/logcalls.ml b/src/ext/logcalls/logcalls.ml index 20d6b2729..81286875d 100644 --- a/src/ext/logcalls/logcalls.ml +++ b/src/ext/logcalls/logcalls.ml @@ -5,7 +5,7 @@ open Pretty open Cil open Feature -open Trace +open Ciltrace module E = Errormsg module H = Hashtbl diff --git a/src/ext/zrapp/zrapp.ml b/src/ext/zrapp/zrapp.ml index b7c271a18..5fe828a04 100644 --- a/src/ext/zrapp/zrapp.ml +++ b/src/ext/zrapp/zrapp.ml @@ -1,7 +1,7 @@ open Escape open Pretty -open Trace +open Ciltrace open Cil open Feature diff --git a/src/formatcil.ml b/src/formatcil.ml index 33bc749f8..a4d34f411 100644 --- a/src/formatcil.ml +++ b/src/formatcil.ml @@ -36,7 +36,7 @@ *) open Cil open Pretty -open Trace (* sm: 'trace' function *) +open Ciltrace (* sm: 'trace' function *) module E = Errormsg module H = Hashtbl diff --git a/src/frontc/cabs2cil.ml b/src/frontc/cabs2cil.ml index dc185e133..8b50fd2db 100644 --- a/src/frontc/cabs2cil.ml +++ b/src/frontc/cabs2cil.ml @@ -51,7 +51,7 @@ open Cabshelper open Pretty open Cil open Cilint -open Trace +open Ciltrace let mydebugfunction () = diff --git a/src/frontc/cabsvisit.ml b/src/frontc/cabsvisit.ml index 636cd2a78..efe3b3de5 100644 --- a/src/frontc/cabsvisit.ml +++ b/src/frontc/cabsvisit.ml @@ -40,7 +40,7 @@ open Cabs open Cabshelper -open Trace +open Ciltrace open Pretty module E = Errormsg diff --git a/src/frontc/frontc.ml b/src/frontc/frontc.ml index 5a3c24226..85087fd54 100644 --- a/src/frontc/frontc.ml +++ b/src/frontc/frontc.ml @@ -37,7 +37,7 @@ module E = Errormsg -open Trace +open Ciltrace open Pretty (* Output management *) diff --git a/src/frontc/patch.ml b/src/frontc/patch.ml index c2b11b418..917ba262a 100644 --- a/src/frontc/patch.ml +++ b/src/frontc/patch.ml @@ -41,7 +41,7 @@ open Cabs open Cabshelper -open Trace +open Ciltrace open Pretty open Cabsvisit diff --git a/src/mergecil.ml b/src/mergecil.ml index 5bfe364c2..9a4aab53a 100644 --- a/src/mergecil.ml +++ b/src/mergecil.ml @@ -47,7 +47,7 @@ open Cil module E = Errormsg module H = Hashtbl module A = Alpha -open Trace +open Ciltrace let debugMerge = false let debugInlines = false diff --git a/src/ocamlutil/trace.ml b/src/ocamlutil/ciltrace.ml similarity index 99% rename from src/ocamlutil/trace.ml rename to src/ocamlutil/ciltrace.ml index b42928657..bcb3727f6 100644 --- a/src/ocamlutil/trace.ml +++ b/src/ocamlutil/ciltrace.ml @@ -35,7 +35,7 @@ * *) -(* Trace module implementation +(* Ciltrace module implementation * see trace.mli *) diff --git a/src/ocamlutil/trace.mli b/src/ocamlutil/ciltrace.mli similarity index 99% rename from src/ocamlutil/trace.mli rename to src/ocamlutil/ciltrace.mli index 46ca6523b..a643e9e44 100644 --- a/src/ocamlutil/trace.mli +++ b/src/ocamlutil/ciltrace.mli @@ -35,7 +35,7 @@ * *) -(* Trace module +(* Ciltrace module * Scott McPeak, 5/4/00 * * The idea is to pepper the source with debugging printfs, diff --git a/src/rmtmps.ml b/src/rmtmps.ml index 2034623e6..4f4419e25 100644 --- a/src/rmtmps.ml +++ b/src/rmtmps.ml @@ -50,7 +50,7 @@ let keepUnused = ref false let rmUnusedInlines = ref false -let trace = Trace.trace "rmtmps" +let trace = Ciltrace.trace "rmtmps" @@ -802,14 +802,14 @@ type rootsFilter = global -> bool let isDefaultRoot = isExportedRoot let rec removeUnusedTemps ?(isRoot : rootsFilter = isDefaultRoot) file = - if !keepUnused || Trace.traceActive "disableTmpRemoval" then - Trace.trace "disableTmpRemoval" (dprintf "temp removal disabled\n") + if !keepUnused || Ciltrace.traceActive "disableTmpRemoval" then + Ciltrace.trace "disableTmpRemoval" (dprintf "temp removal disabled\n") else begin if !E.verboseFlag then ignore (E.log "Removing unused temporaries\n" ); - if Trace.traceActive "printCilTree" then + if Ciltrace.traceActive "printCilTree" then dumpFile defaultCilPrinter stdout "stdout" file; (* digest any pragmas that would create additional roots *)