C C-3.SB+o-mb-o+o-mb-o+o-mb-o.litmus

{
}

P0(int *x, int *y)
{
	int r1;

	WRITE_ONCE(*x, 1);
	smp_mb();
	r1 = READ_ONCE(*y);
}

P1(int *y, int *z)
{
	int r2;

	WRITE_ONCE(*y, 1);
	smp_mb();
	r2 = READ_ONCE(*z);
}

P2(int *z, int *x)
{
	int r2;

	WRITE_ONCE(*z, 1);
	smp_mb();
	r2 = READ_ONCE(*x);
}

exists
(0:r1=0 /\ 1:r2=0 /\ 2:r2=0)
