Skip to content

Commit 821371d

Browse files
authored
Merge pull request #1931 from goblint/creation-lockset-access-print
Deduplicate TID and lockset in access output with creationLockset
2 parents 6178774 + b32b613 commit 821371d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/analyses/creationLockset.ml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,13 @@ module Spec = struct
137137
|| one_protected_inter_threaded_other_intra_threaded cl1 t2 ls2
138138
|| one_protected_inter_threaded_other_intra_threaded cl2 t1 ls1)
139139

140-
let should_print (_t, _ls, cl) = not @@ G.is_empty cl
140+
(* TID and Lockset components are directly queried from other analyses and already are printed by them *)
141+
let pretty () (_, _, cl) = G.pretty () cl
142+
let show (_, _, cl) = G.show cl
143+
let to_yojson (_, _, cl) = G.to_yojson cl
144+
let printXml f (_, _, cl) = G.printXml f cl
145+
146+
let should_print (_t, _ls, cl) = G.exists (fun _ ls -> not @@ Lockset.is_empty ls) cl
141147
end
142148

143149
let access man _ =

0 commit comments

Comments
 (0)