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(=h(b)) in out(c,sk1) else out(c,sk2)

(* EXPECTPV
RESULT not attacker(sk1[]) is true.
RESULT not attacker(sk2[]) is false.
0.008s (user 0.004s + system 0.004s), max rss 7952K
END *)
