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.
10 lines
147 B
Plaintext
10 lines
147 B
Plaintext
name: CAS-exclusion
|
|
init: x=0
|
|
T0:
|
|
r0 = cas x 0 1 rlx rlx
|
|
T1:
|
|
r1 = cas x 0 2 rlx rlx
|
|
observe: T0.r0 T1.r1
|
|
allowed: (0,1) (2,0)
|
|
forbidden: (0,0)
|