(** *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 builtin_event_determ ef m vargs T1 (BE1: builtin_event ef m vargs T1) T2 (BE2: builtin_event ef m vargs T2): T1=T2.
inversion BE1; inv BE2; try discriminate; try contradiction; simpl in *; trivial.