(* *********************************************************************)
(*                                                                     *)
(*              The Compcert verified compiler                         *)
(*                                                                     *)
(*          Xavier Leroy, INRIA Paris-Rocquencourt                     *)
(*                                                                     *)
(*  Copyright Institut National de Recherche en Informatique et en     *)
(*  Automatique.  All rights reserved.  This file is distributed       *)
(*  under the terms of the INRIA Non-Commercial License Agreement.     *)
(*                                                                     *)
(* *********************************************************************)
(** Semantic preservation for the SimplLocals pass. *)
Module VSF := FSetFacts.Facts(VSet).
Module VSP := FSetProperties.Properties(VSet).
Definition match_prog (p tp: program) : Prop :=
match_program (fun ctx f tf => transf_fundef f = OK tf) eq p tp
/\ prog_types tp = prog_types p.

Lemma match_transf_program:
forall p tp, transf_program p = OK tp -> match_prog p tp.