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
355 B
Plaintext
16 lines
355 B
Plaintext
name: IRIW+sc
|
|
init: x=0 y=0
|
|
T0:
|
|
store x 1 sc
|
|
T1:
|
|
store y 1 sc
|
|
T2:
|
|
r0 = load x sc
|
|
r1 = load y sc
|
|
T3:
|
|
r2 = load y sc
|
|
r3 = load x sc
|
|
observe: T2.r0 T2.r1 T3.r2 T3.r3
|
|
allowed: (0,0,0,0) (0,0,0,1) (0,0,1,0) (0,0,1,1) (0,1,0,0) (0,1,0,1) (0,1,1,0) (0,1,1,1) (1,0,0,0) (1,0,0,1) (1,0,1,1) (1,1,0,0) (1,1,0,1) (1,1,1,0) (1,1,1,1)
|
|
forbidden: (1,0,1,0)
|