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].

restriction x:bitstring,y:bitstring; event(A(x)) ==> event(B(new k1)) && x = a [fullSat].


query attacker(ok).

process
  ! new k1:bitstring;
  ((in(c,x:bitstring);
   event B(x);
   event A(x);
   out(d,k))
  | in(d,x:bitstring); out(c,ok))

(* EXPECTPV
RESULT not attacker(ok) cannot be proved.
0.012s (user 0.012s + system 0.000s), max rss 7452K
END *)
