Skip to content

Commit

Permalink
Do not show excessive top thread id uniqueness counter in warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Jan 3, 2024
1 parent 2d91b7a commit 2686841
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/cdomains/threadIdDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@ struct
(struct let name = "no node" end))

let show = function
| (f, Some (n, i)) ->
| (f, Some (n, Some i)) ->
f.vname
^ "@" ^ (CilType.Location.show (UpdateCil.getLoc n))
^ "#" ^ Option.fold ~none:"top" ~some:string_of_int i
^ "@" ^ CilType.Location.show (UpdateCil.getLoc n)
^ "#" ^ string_of_int i
| (f, Some (n, None)) ->
f.vname
^ "@" ^ CilType.Location.show (UpdateCil.getLoc n)
| (f, None) -> f.vname

include Printable.SimpleShow (
Expand Down

0 comments on commit 2686841

Please sign in to comment.