(** Auxiliary for the compilation of [switch] statements. *)

Definition tr_jumptable (nexits: list node) (tbl: list nat) (ttbl: list node) : Prop :=
  forall v act,
  list_nth_z tbl v = Some act ->
  exists n, list_nth_z ttbl v = Some n /\ nth_error nexits act = Some n.

Lemma transl_exitexpr_charact: forall nexits a map s ns s' INCR (TR: transl_exitexpr map a nexits s = OK ns s' INCR) (WF: map_valid map s), tr_exitexpr s'.(st_code) map a ns nexits.