Section CORRECTNESS.
Variable prog: CminorSel.program.
Variable tprog: RTL.program.
Hypothesis TRANSL: transl_program prog = OK tprog.
Let ge : CminorSel.genv := Genv.globalenv prog.
Let tge : RTL.genv := Genv.globalenv tprog.
(** Relationship between the global environments for the original CminorSel program and the generated RTL program. *)
Proof
(Genv.find_symbol_transf_partial transl_fundef _ TRANSL).
Proof
(Genv.find_funct_ptr_transf_partial transl_fundef _ TRANSL).
Proof
(Genv.find_funct_transf_partial transl_fundef _ TRANSL).
Proof
(Genv.find_var_info_transf_partial transl_fundef _ TRANSL).
(*LENB: GFP as in selectionproofEFF*)
Definition globalfunction_ptr_inject (j:meminj):=
forall b f, Genv.find_funct_ptr ge b = Some f ->
j b = Some(b,0) /\ isGlobalBlock ge b = true.

Lemma restrict_GFP_vis: forall mu
(GFP : globalfunction_ptr_inject (as_inj mu))
(Glob : forall b, isGlobalBlock ge b = true ->
frgnBlocksSrc mu b = true),
globalfunction_ptr_inject (restrict (as_inj mu) (vis mu)).