Section CORRECTNESS.
Variable prog: Clight.program.
Variable tprog: Csharpminor.program.
Hypothesis TRANSL: match_prog prog tprog.
Let ge := globalenv prog.
Let tge := Genv.globalenv tprog.
Proof (Genv.find_symbol_match TRANSL).
Proof (Genv.senv_match TRANSL).
Proof (Genv.find_funct_ptr_match TRANSL).

Lemma functions_translated:
forall v f,
Genv.find_funct ge v = Some f ->
exists cu tf, Genv.find_funct tge v = Some tf /\ match_fundef cu f tf /\ linkorder cu prog.