tools/litmus/enumerate.py was written by an independent author from spec 04 §20 alone, with the programs blind (outcome sets removed). check.py compares its allowed sets with tests/litmus/*.lit: 20/20 equal. 21 self-tests derived from the axioms. Both run in CI. The author's spec findings are Q-024.
16 lines
215 B
Plaintext
16 lines
215 B
Plaintext
name: mutex-handoff
|
|
init: x=0 f=0
|
|
T0:
|
|
lock m
|
|
store x 1 rlx
|
|
store f 1 rlx
|
|
unlock m
|
|
T1:
|
|
lock m
|
|
r0 = load f rlx
|
|
r1 = load x rlx
|
|
unlock m
|
|
observe: T1.r0 T1.r1
|
|
allowed: (0,0) (1,1)
|
|
forbidden: (1,0) (0,1)
|