free c:channel.
const a:bitstring.
const b:bitstring.
free sk1,sk2:bitstring [private].

event A.
event B.
event C.

fun h(bitstring):bitstring
reduc h(a) = b.

table tbl(bitstring).

query attacker(sk1).
query attacker(sk2).

process
  in(c,x:bitstring);
  insert tbl(a);
  get tbl(a) suchthat (new k:bitstring; h(k)) = h(b) in out(c,sk1) else out(c,sk2)

(* EXPECTPV
Error: new, insert, event, and let x1..xn suchthat with n>0 are not allowed in conditions of get.
xtime: error in child process (status : 2)
END *)
