summaryrefslogtreecommitdiff
path: root/backend/RTLtyping.v
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/RTLtyping.v
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/RTLtyping.v')
-rw-r--r--backend/RTLtyping.v10
1 files changed, 10 insertions, 0 deletions
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.