From 3a050b22f37f3c79a10a8ebae3d292fa77e91b76 Mon Sep 17 00:00:00 2001 From: xleroy Date: Sun, 23 May 2010 15:26:33 +0000 Subject: More faithful semantics for volatile reads and writes. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1346 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- backend/Constpropproof.v | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'backend/Constpropproof.v') diff --git a/backend/Constpropproof.v b/backend/Constpropproof.v index b5c3b1e3..16f839fc 100644 --- a/backend/Constpropproof.v +++ b/backend/Constpropproof.v @@ -146,6 +146,13 @@ Proof. apply Genv.find_symbol_transf. Qed. +Lemma varinfo_preserved: + forall b, Genv.find_var_info tge b = Genv.find_var_info ge b. +Proof. + intros; unfold ge, tge, tprog, transf_program. + apply Genv.find_var_info_transf. +Qed. + Lemma functions_translated: forall (v: val) (f: fundef), Genv.find_funct ge v = Some f -> @@ -415,7 +422,8 @@ Proof. (* external function *) simpl. econstructor; split. eapply exec_function_external; eauto. - eapply external_call_symbols_preserved; eauto. exact symbols_preserved. + eapply external_call_symbols_preserved; eauto. + exact symbols_preserved. exact varinfo_preserved. constructor; auto. (* return *) -- cgit