summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2014-03-27 13:47:42 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2014-03-27 13:47:42 +0000
commit8609fca0129cb64a77e9a6e3670b5b5d3f8209e6 (patch)
tree5203950d109fce81cd163923194dbcb8fbe90da2 /backend
parent57f18784d1fac0123cdb51ed67ae761100509c1f (diff)
Move wt_instr_inv where it belongs.
Update Makefile and dependencies. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2436 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'backend')
-rw-r--r--backend/Allocproof.v10
-rw-r--r--backend/RTLtyping.v10
2 files changed, 10 insertions, 10 deletions
diff --git a/backend/Allocproof.v b/backend/Allocproof.v
index bbe9ba3..9303878 100644
--- a/backend/Allocproof.v
+++ b/backend/Allocproof.v
@@ -1606,16 +1606,6 @@ Proof.
red; intros; subst r. rewrite H in H8; discriminate.
Qed.
-Lemma wt_instr_inv:
- forall s f sp pc rs m i,
- wt_state (RTL.State s f sp pc rs m) ->
- f.(RTL.fn_code)!pc = Some i ->
- exists env, wt_instr f env i /\ wt_regset env rs.
-Proof.
- intros. inv H. exists env; split; auto.
- inv WT_FN. eauto.
-Qed.
-
(** The proof of semantic preservation is a simulation argument of the
"plus" kind. *)
diff --git a/backend/RTLtyping.v b/backend/RTLtyping.v
index e27704c..e8ae7ae 100644
--- a/backend/RTLtyping.v
+++ b/backend/RTLtyping.v
@@ -838,6 +838,16 @@ Proof.
rewrite H3. constructor.
Qed.
+Lemma wt_instr_inv:
+ forall s f sp pc rs m i,
+ wt_state (State s f sp pc rs m) ->
+ f.(fn_code)!pc = Some i ->
+ exists env, wt_instr f env i /\ wt_regset env rs.
+Proof.
+ intros. inv H. exists env; split; auto.
+ inv WT_FN. eauto.
+Qed.
+
End SUBJECT_REDUCTION.