free c:channel.
free d:channel [private].

fun h(bitstring):bitstring.

const a,b:bitstring.

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

const ok,ko,k:bitstring[private].

axiom x:bitstring,y:bitstring; event(A(x)) ==> event(B(x)) for { public_vars x } [fullSat].


query x:bitstring; attacker(x) public_vars x.

process
  (in(c,x:bitstring);
  if x = a
  then
    event A(a);
    out(d,k)
  else
    out(c,ko))

  | in(d,x:bitstring); out(c,ok)

(* EXPECTPV
RESULT not attacker(x_2) public_vars x_1,x is false.
0.012s (user 0.012s + system 0.000s), max rss 7516K
END *)
