From 74487f079dd56663f97f9731cea328931857495c Mon Sep 17 00:00:00 2001 From: xleroy Date: Tue, 10 Nov 2009 12:50:57 +0000 Subject: Added support for jump tables in back end. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1171 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- backend/Linearizeproof.v | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'backend/Linearizeproof.v') diff --git a/backend/Linearizeproof.v b/backend/Linearizeproof.v index e35fb11b..c79908d6 100644 --- a/backend/Linearizeproof.v +++ b/backend/Linearizeproof.v @@ -639,6 +639,18 @@ Proof. traceEq. econstructor; eauto. + (* Ljumptable *) + destruct (find_label_lin_inv _ _ _ _ _ TRF H REACH AT) as [c' EQ]. + simpl in EQ. subst c. + assert (REACH': (reachable f)!!pc' = true). + eapply reachable_successors; eauto. simpl. eapply list_nth_z_in; eauto. + exploit find_label_lin_succ; eauto. + inv WTI. apply H6. eapply list_nth_z_in; eauto. + intros [c'' AT']. + econstructor; split. + apply plus_one. eapply exec_Ljumptable; eauto. + econstructor; eauto. + (* Lreturn *) destruct (find_label_lin_inv _ _ _ _ _ TRF H REACH AT) as [c' EQ]. simpl in EQ. subst c. -- cgit