From 9c03226a7efab5642efd75a385c4ca439e3dde74 Mon Sep 17 00:00:00 2001 From: xleroy Date: Sun, 9 May 2010 11:57:10 +0000 Subject: Fewer float axioms. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1343 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- common/Memdata.v | 3 +-- lib/Floats.v | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/common/Memdata.v b/common/Memdata.v index 8bbb4043..94a99176 100644 --- a/common/Memdata.v +++ b/common/Memdata.v @@ -442,8 +442,7 @@ Lemma decode_float32_cast: forall l, Float.singleoffloat (decode_float Mfloat32 l) = decode_float Mfloat32 l. Proof. - intros; unfold decode_float. rewrite <- Float.single_of_bits_of_single. - rewrite Float.bits_of_single_of_bits. auto. + intros; unfold decode_float. rewrite Float.singleoffloat_of_bits. auto. Qed. (** * Encoding and decoding values *) diff --git a/lib/Floats.v b/lib/Floats.v index 5c20cdd6..c9dda095 100644 --- a/lib/Floats.v +++ b/lib/Floats.v @@ -70,16 +70,14 @@ Axiom cmp_le_lt_eq: Axiom cmp_ge_gt_eq: forall f1 f2, cmp Cge f1 f2 = cmp Cgt f1 f2 || cmp Ceq f1 f2. -Axiom bits_of_double_of_bits: - forall n, bits_of_double (double_of_bits n) = n. Axiom double_of_bits_of_double: forall f, double_of_bits (bits_of_double f) = f. -Axiom bits_of_single_of_bits: - forall n, bits_of_single (single_of_bits n) = n. Axiom single_of_bits_of_single: forall f, single_of_bits (bits_of_single f) = singleoffloat f. Axiom bits_of_singleoffloat: forall f, bits_of_single (singleoffloat f) = bits_of_single f. +Axiom singleoffloat_of_bits: + forall b, singleoffloat (single_of_bits b) = single_of_bits b. End Float. -- cgit