(** *Event semantics for Clight_new*)
(* This should be a version of CLN_memsem annotated with memory events.*)
Program Definition CLN_evsem ge : @EvSem C := {| msem := CLN_memsem ge; ev_step := cl_evstep ge |}.
Next Obligation. apply CLN_evstep_ax1. Qed.
Next Obligation. apply CLN_evstep_ax2. Qed.
Next Obligation. apply CLN_evstep_fun. Qed.
Next Obligation. apply CLN_evstep_elim. Qed.

Lemma at_external_SEM_eq:
forall ge c m, semantics.at_external (CLN_evsem ge) c m =
match c with
| State _ _ _ => None
| ExtCall ef args _ _ _ _ => Some (ef, args)
end.