1 C MP+pooncerelease+poacquireonce
6 * This litmus test demonstrates that smp_store_release() and
7 * smp_load_acquire() provide sufficient ordering for the message-passing
13 P0(int *buf, int *flag) // Producer
16 smp_store_release(flag, 1);
19 P1(int *buf, int *flag) // Consumer
24 r0 = smp_load_acquire(flag);
28 exists (1:r0=1 /\ 1:r1=0) (* Bad outcome. *)