Skip to content

Commit f949136

Browse files
cleanup tracing
1 parent b5414a5 commit f949136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cdomains/apron/linearTwoVarEqualityDomain.apron.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ struct
737737

738738
(* now we have coeff*var_index + constant SUP(EQ) 0 *)
739739
let opstr =Lincons0.string_of_typ constyp in
740-
M.trace "refinevalues" "Refining due to %d: %s*%s + %s %s 0" index (Z.to_string (coeff)) (Var.to_string @@ Environment.var_of_dim t.env index) (Z.to_string (constant)) opstr;
740+
if M.tracing then M.trace "refinevalues" "Refining due to %d: %s*%s + %s %s 0" index (Z.to_string (coeff)) (Var.to_string @@ Environment.var_of_dim t.env index) (Z.to_string (constant)) opstr;
741741

742742
(* make var_index = var_index explicit in conlist *)
743743
let conlist = (index,(Some(Z.one,index),Z.zero,Z.one))::EConj.get_equivalent_expressions d index in
@@ -766,7 +766,7 @@ struct
766766
let (newcoeff,newoffs,newdivi) = Z.(newdivi*newcoeff,newoffs*newdivi,one) in
767767
if M.tracing then M.trace "refinevalues" "=> (%s*var_%s +%s) / %s %s 0" (Z.to_string newcoeff) (Var.to_string @@ Environment.var_of_dim t.env var) (Z.to_string newoffs) (Z.to_string newdivi) opstr;
768768
mkconstraint newcoeff var (Z.neg newoffs)) conlist in
769-
M.trace "refinevalues" "Resulting refining assertions %s" (String.concat " ; " (List.map (fun c -> Pretty.sprint ~width:80 (d_exp () c)) conlist));
769+
if M.tracing then M.trace "refinevalues" "Resulting refining assertions %s" (String.concat " ; " (List.map (fun c -> Pretty.sprint ~width:80 (d_exp () c)) conlist));
770770
conlist
771771
| _ -> [] )
772772

0 commit comments

Comments
 (0)