Skip to content

Commit 1b4beae

Browse files
Get rid of overcomplicated logic
1 parent 7e98213 commit 1b4beae

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/analyses/pthreadBarriers.ml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,6 @@ struct
7979
let min_cap = (BatOption.default Z.zero (Capacity.I.minimal c)) in
8080
if Z.leq min_cap Z.one then
8181
true, must
82-
else if min_cap = Z.of_int 2 && count = 1 then
83-
let elem = Waiters.choose relevant_waiters in
84-
let curr = MustObserved.find (MHPplusLock.tid elem) must in
85-
let must' = MustObserved.add (MHPplusLock.tid elem) (Barriers.add addr curr) must in
86-
true, must'
87-
else if min_cap = Z.of_int 2 && count >= 1 then
88-
true, must
8982
else if Z.geq (Z.of_int (count + 1)) min_cap then
9083
(* This is quite a cute problem: Do (min_cap-1) elements exist in the set such that
9184
MHP is pairwise true? This solution is a sledgehammer, there should be something much

0 commit comments

Comments
 (0)