blob: 2b76b66810b61afc33ee30fa6315a07b3c98368e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
Require Import Coqlib Maps Errors Integers Floats Lattice Kildall.
Require Import AST Linking.
Require Import Memory Registers Op RTL.
Require Import LICM.
Require Injectproof.
Definition match_prog : program -> program -> Prop :=
Injectproof.match_prog gen_injections.
Section PRESERVATION.
Variables prog tprog: program.
Hypothesis TRANSF: match_prog prog tprog.
Lemma transf_program_match:
forall prog tprog, transf_program prog = OK tprog -> match_prog prog tprog.
Proof.
intros. eapply match_transform_partial_program_contextual; eauto.
Qed.
Theorem transf_program_correct :
Smallstep.forward_simulation (semantics prog) (semantics tprog).
Proof.
apply Injectproof.transf_program_correct with (gen_injections := gen_injections).
exact TRANSF.
Qed.
End PRESERVATION.
|