Skip to content

Commit

Permalink
cleanup tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMichaelPetter committed Nov 29, 2024
1 parent b5414a5 commit f949136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cdomains/apron/linearTwoVarEqualityDomain.apron.ml
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ struct

(* now we have coeff*var_index + constant SUP(EQ) 0 *)
let opstr =Lincons0.string_of_typ constyp in
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;
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;

(* make var_index = var_index explicit in conlist *)
let conlist = (index,(Some(Z.one,index),Z.zero,Z.one))::EConj.get_equivalent_expressions d index in
Expand Down Expand Up @@ -766,7 +766,7 @@ struct
let (newcoeff,newoffs,newdivi) = Z.(newdivi*newcoeff,newoffs*newdivi,one) in
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;
mkconstraint newcoeff var (Z.neg newoffs)) conlist in
M.trace "refinevalues" "Resulting refining assertions %s" (String.concat " ; " (List.map (fun c -> Pretty.sprint ~width:80 (d_exp () c)) conlist));
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));
conlist
| _ -> [] )

Expand Down

0 comments on commit f949136

Please sign in to comment.