Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ciltrace #35

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/cil.mllib
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Cil
Cilint
Cillower
Ciloptions
Ciltrace
Cilutil
Cilversion
Clexer
Expand Down Expand Up @@ -37,6 +38,5 @@ Patch
Pretty
Rmtmps
Stats
Trace
Util
Whitetrack
2 changes: 1 addition & 1 deletion src/ciloptions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
"<sys> Subsystem to show debug printfs for";

"--extrafiles",
Expand Down
2 changes: 1 addition & 1 deletion src/ext/callgraph/callgraph.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

open Cil
open Feature
open Trace
open Ciltrace
open Printf
module P = Pretty
module IH = Inthash
Expand Down
2 changes: 1 addition & 1 deletion src/ext/epicenter/epicenter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
open Callgraph
open Cil
open Feature
open Trace
open Ciltrace
open Pretty
module H = Hashtbl
module IH = Inthash
Expand Down
2 changes: 1 addition & 1 deletion src/ext/logcalls/logcalls.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
open Pretty
open Cil
open Feature
open Trace
open Ciltrace
module E = Errormsg
module H = Hashtbl

Expand Down
2 changes: 1 addition & 1 deletion src/ext/zrapp/zrapp.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

open Escape
open Pretty
open Trace
open Ciltrace
open Cil
open Feature

Expand Down
2 changes: 1 addition & 1 deletion src/formatcil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*)
open Cil
open Pretty
open Trace (* sm: 'trace' function *)
open Ciltrace (* sm: 'trace' function *)
module E = Errormsg
module H = Hashtbl

Expand Down
2 changes: 1 addition & 1 deletion src/frontc/cabs2cil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ open Cabshelper
open Pretty
open Cil
open Cilint
open Trace
open Ciltrace


let mydebugfunction () =
Expand Down
2 changes: 1 addition & 1 deletion src/frontc/cabsvisit.ml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

open Cabs
open Cabshelper
open Trace
open Ciltrace
open Pretty
module E = Errormsg

Expand Down
2 changes: 1 addition & 1 deletion src/frontc/frontc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@


module E = Errormsg
open Trace
open Ciltrace
open Pretty

(* Output management *)
Expand Down
2 changes: 1 addition & 1 deletion src/frontc/patch.ml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

open Cabs
open Cabshelper
open Trace
open Ciltrace
open Pretty
open Cabsvisit

Expand Down
2 changes: 1 addition & 1 deletion src/mergecil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ocamlutil/trace.ml → src/ocamlutil/ciltrace.ml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*
*)

(* Trace module implementation
(* Ciltrace module implementation
* see trace.mli
*)

Expand Down
2 changes: 1 addition & 1 deletion src/ocamlutil/trace.mli → src/ocamlutil/ciltrace.mli
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*
*)

(* Trace module
(* Ciltrace module
* Scott McPeak, 5/4/00
*
* The idea is to pepper the source with debugging printfs,
Expand Down
8 changes: 4 additions & 4 deletions src/rmtmps.ml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ let keepUnused = ref false
let rmUnusedInlines = ref false


let trace = Trace.trace "rmtmps"
let trace = Ciltrace.trace "rmtmps"



Expand Down Expand Up @@ -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 *)
Expand Down