public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-827] [Ada] Adapt proof of runtime unit s-arit32
@ 2022-05-30 8:30 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-30 8:30 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1ea22318caf52a98b32f8ef4e155376e7751db4b
commit r13-827-g1ea22318caf52a98b32f8ef4e155376e7751db4b
Author: Yannick Moy <moy@adacore.com>
Date: Wed Apr 20 09:39:11 2022 +0000
[Ada] Adapt proof of runtime unit s-arit32
After changes in GNATprove, adapt proof. Simply move an assertion up
before it is first needed here.
gcc/ada/
* libgnat/s-arit32.adb (Scaled_Divide32): Move assertion up.
Diff:
---
gcc/ada/libgnat/s-arit32.adb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/ada/libgnat/s-arit32.adb b/gcc/ada/libgnat/s-arit32.adb
index baec78a3475..3d500ac8fad 100644
--- a/gcc/ada/libgnat/s-arit32.adb
+++ b/gcc/ada/libgnat/s-arit32.adb
@@ -474,6 +474,7 @@ is
D := Uns64 (Xu) * Uns64 (Yu);
+ Lemma_Abs_Mult_Commutation (Big (X), Big (Y));
pragma Assert (Mult = Big (D));
Lemma_Hi_Lo (D, Hi (D), Lo (D));
pragma Assert (Mult = Big_2xx32 * Big (Hi (D)) + Big (Lo (D)));
@@ -508,7 +509,6 @@ is
Lemma_Abs_Div_Commutation (Big (X) * Big (Y), Big (Z));
Lemma_Abs_Rem_Commutation (Big (X) * Big (Y), Big (Z));
- Lemma_Abs_Mult_Commutation (Big (X), Big (Y));
Lemma_Abs_Commutation (X);
Lemma_Abs_Commutation (Y);
Lemma_Abs_Commutation (Z);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-30 8:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-30 8:30 [gcc r13-827] [Ada] Adapt proof of runtime unit s-arit32 Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).