Test auto/RR-G+RR-G+RR-G+RR-R

LISA auto/RR-G+RR-G+RR-G+RR-R
(*
 * Result: Never
 * 
 * Process 0 starts (t=100000).
 * 
 * P0 advances one grace period (t=200000).
 * 
 * P1 advances one grace period (t=300001).
 * 
 * P2 advances one grace period (t=400002).
 * 
 * P3 goes back a bit less than one grace period (t=301003).
 * 
 * Process 0 start at t=100000, process 4 end at t=301003: Cycle forbidden.
 *)
{
}
 P0            | P1            | P2            | P3                 | P4           ;
 r[once] r1 x0 | r[once] r1 x1 | r[once] r1 x2 | f[rcu_read_lock]   | w[once] x0 1 ;
 f[sync]       | f[sync]       | f[sync]       | r[once] r1 x3      | w[once] x1 1 ;
 r[once] r2 x1 | r[once] r2 x2 | r[once] r2 x3 | r[once] r2 x0      | w[once] x2 1 ;
               |               |               | f[rcu_read_unlock] | w[once] x3 1 ;
Observed
    3:r2=0; 3:r1=1; 2:r2=1; 2:r1=1; 1:r2=1; 1:r1=1; 0:r2=1; 0:r1=1;
and 3:r2=1; 3:r1=1; 2:r2=0; 2:r1=1; 1:r2=1; 1:r1=1; 0:r2=1; 0:r1=1;
and 3:r2=0; 3:r1=1; 2:r2=0; 2:r1=1; 1:r2=1; 1:r1=1; 0:r2=1; 0:r1=1;
and 3:r2=1; 3:r1=0; 2:r2=0; 2:r1=1; 1:r2=1; 1:r1=1; 0:r2=1; 0:r1=1;
and 3:r2=0; 3:r1=0; 2:r2=0; 2:r1=1; 1:r2=1; 1:r1=1; 0:r2=1; 0:r1=1;
and 3:r2=0; 3:r1=1; 2:r2=1; 2:r1=0; 1:r2=1; 1:r1=1; 0:r2=1; 0:r1=1;
and 3:r2=1; 3:r1=1; 2:r2=0; 2:r1=0; 1:r2=1; 1:r1=1; 0:r2=1; 0:r1=1;
and 3:r2=0; 3:r1=1; 2:r2=0; 2:r1=0; 1:r2=1; 1:r1=1; 0:r2=1; 0:r1=1;
and 3:r2=1; 3:r1=0; 2:r2=0; 2:r1=0; 1:r2=1; 1:r1=1; 0:r2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