free c: channel.
free m,n: bitstring.
free sk:bitstring [private].

channel d.

event A.
event B.
event C.

query event(C) ==> event(A).
query event(B) ==> event(A).
query attacker(sk).


process
    (
        !out(c,m);
        event A;
        sync 2;
        event B;
        out(c,m)
    )|(
        sync 2;
        event C;
        out(c,sk)
    )

(* EXPECTPV
Error: Sync should not occur under replication.
xtime: error in child process (status : 2)
END *)
