From 9c7c84cc40eaacc1e2c13091165785cddecba5ad Mon Sep 17 00:00:00 2001 From: xleroy Date: Tue, 29 Jun 2010 08:27:14 +0000 Subject: Support for inlined built-ins. AST: add ef_inline flag to external functions. Selection: recognize calls to inlined built-ins and inline them as Sbuiltin. CminorSel to Asm: added Sbuiltin/Ibuiltin instruction. PrintAsm: adapted expansion of builtins. C2Clight: adapted detection of builtins. Conventions: refactored in a machine-independent part (backend/Conventions) and a machine-dependent part (ARCH/SYS/Conventions1). git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1356 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- driver/Complements.v | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'driver/Complements.v') diff --git a/driver/Complements.v b/driver/Complements.v index 7389d291..3f32cc63 100644 --- a/driver/Complements.v +++ b/driver/Complements.v @@ -59,7 +59,14 @@ Proof. assert (i0 = i) by congruence. assert (rs'0 = rs') by congruence. assert (m'0 = m') by congruence. - subst. auto. + subst. auto. + replace i with (Pbuiltin ef args res) in H5 by congruence. simpl in H5. inv H5. + congruence. + replace i with (Pbuiltin ef args res) in H12 by congruence. simpl in H12. inv H12. + rewrite H2 in H7; inv H7. rewrite H3 in H8; inv H8. rewrite H4 in H9; inv H9. + exploit external_call_determ. eexact H5. eexact H12. auto. + intros [A [B C]]. subst. auto. + congruence. congruence. congruence. assert (ef0 = ef) by congruence. subst ef0. @@ -82,7 +89,8 @@ Lemma final_state_not_step: Proof. unfold nostep. intros. red; intros. inv H. inv H0. unfold Vzero in H1. congruence. - unfold Vzero in H1. congruence. + unfold Vzero in H1. congruence. + unfold Vzero in H1. congruence. Qed. Lemma final_state_deterministic: -- cgit