free c:channel.

fun h(bitstring):bitstring.

event A(bitstring).
event B(bitstring).

query i:time, j:time, k:time, x:bitstring;
  event(A(x))@i && event(B(x))@j ==> j < i || (j > i &&  event(B(x))@k && k <> j).

query i:time, j:time, k:time, x:bitstring;
  event(A(x))@i && event(B(x))@j ==> j < i || (j > i &&  event(A(x))@k && k <> i).

process
  in(c,x:bitstring);
  event B(x);
  event A(x);
  event B(x)

(* EXPECTPV
RESULT event(A(x_1))@i && event(B(x_1))@j ==> i > j || (j > i && event(B(x_1))@k && k ≠ j) is true.
RESULT event(A(x_1))@i && event(B(x_1))@j ==> i > j || (j > i && event(A(x_1))@k && k ≠ i) is false.
0.012s (user 0.004s + system 0.008s), max rss 8088K
END *)
