Skip to content

Commit

Permalink
Do not print disabled malloc uniqueness counter
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Jan 2, 2024
1 parent 5b00197 commit 47e11ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/analyses/wrapperFunctionAnalysis.ml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ module MallocWrapper : MCPSpec = struct
CilType.Location.show loc

let name_varinfo (t, node, c) =
Format.asprintf "(alloc@sid:%s@tid:%s(#%s))" (Node.show_id node) (ThreadLifted.show t) (UniqueCount.show c)
if UniqueCount.is_top c then
Format.asprintf "(alloc@sid:%s@tid:%s)" (Node.show_id node) (ThreadLifted.show t)
else
Format.asprintf "(alloc@sid:%s@tid:%s(#%s))" (Node.show_id node) (ThreadLifted.show t) (UniqueCount.show c)

end

Expand Down

0 comments on commit 47e11ee

Please sign in to comment.