summaryrefslogtreecommitdiff
path: root/backend/RTLtyping.v
diff options
context:
space:
mode:
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.