Section SEL_SWITCH_INT.
Variable cunit: Cminor.program.
Variable hf: helper_functions.
Hypothesis LINK: linkorder cunit prog.
Hypothesis HF: helper_functions_declared cunit hf.
Let HF': helper_functions_declared tprog hf.
End SEL_SWITCH_INT.
(** Compatibility of evaluation functions with the "less defined than" relation. *)
Ltac TrivialExists :=
match goal with
| [ |- exists v, Some ?x = Some v /\ _ ] => exists x; split; auto
| _ => idtac
end.

Lemma eval_binop_lessdef:
forall op v1 v1' v2 v2' v m m',
eval_binop op v1 v2 m = Some v ->
Val.lessdef v1 v1' -> Val.lessdef v2 v2' -> Mem.extends m m' ->
exists v', eval_binop op v1' v2' m' = Some v' /\ Val.lessdef v v'.