1C CoWR+poonceonce+Once
2
3(*
4 * Result: Never
5 *
6 * Test of write-read coherence, that is, whether or not a write to a
7 * given variable and a later read from that same variable are ordered.
8 *)
9
10{
11	int x;
12}
13
14P0(int *x)
15{
16	int r0;
17
18	WRITE_ONCE(*x, 1);
19	r0 = READ_ONCE(*x);
20}
21
22P1(int *x)
23{
24	WRITE_ONCE(*x, 2);
25}
26
27exists (x=1 /\ 0:r0=2)
28