(** Construction 2: turn the stack into an "other" block, at public calls or function returns *)

(* Specifications: *)
Theorem anonymize_stack:
forall m sp bc ge rm am,
genv_match bc ge ->
romatch bc m rm ->
mmatch bc m am ->
bc sp = BCstack ->
exists bc',
bc_nostack bc'
/\ bc' sp = BCother
/\ (forall b, b <> sp -> bc' b = bc b)
/\ (forall v x, vmatch bc v x -> vmatch bc' v Vtop)
/\ genv_match bc' ge
/\ romatch bc' m rm
/\ mmatch bc' m mtop.