diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2010-05-09 11:57:10 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2010-05-09 11:57:10 +0000 |
commit | 9c03226a7efab5642efd75a385c4ca439e3dde74 (patch) | |
tree | b0bfd7a681ad98c682b8e3d290281e50bcfb9c92 | |
parent | e4585d1b9523c174c75518546513e8184587639d (diff) | |
download | compcert-9c03226a7efab5642efd75a385c4ca439e3dde74.tar.gz compcert-9c03226a7efab5642efd75a385c4ca439e3dde74.zip |
Fewer float axioms.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1343 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
-rw-r--r-- | common/Memdata.v | 3 | ||||
-rw-r--r-- | 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. |