channel io.

event Foo(bitstring).
event Bar(bitstring).

let P() =
  new x: bitstring;
  event Foo(x);
  0.

let Q() =
  new y: bitstring;
  event Bar(y);
  0.

query event(Foo(new x)) && event(Bar(new y)).

query event(Foo(new x[!1 = i])) && event(Bar(new y[!1 = i])).

process
  P() | Q()

(* EXPECTPV
RESULT not (event(Foo(x[])) && event(Bar(y[]))) is false.
Error: variable !1 not defined at restriction x.
xtime: error in child process (status : 2)
END *)
