public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1660] [Ada] Fix automatic proof on System.Arith_32
@ 2022-07-13 10:03 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-07-13 10:03 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:b872d3fe67b54fef84ccafc7d39f1017a68332c2

commit r13-1660-gb872d3fe67b54fef84ccafc7d39f1017a68332c2
Author: Yannick Moy <moy@adacore.com>
Date:   Mon Jul 4 10:49:02 2022 +0000

    [Ada] Fix automatic proof on System.Arith_32
    
    gcc/ada/
    
            * libgnat/s-arit32.adb (Scaled_Divide32): Add an assertion, move
            the call of Prove_Sign_R around.

Diff:
---
 gcc/ada/libgnat/s-arit32.adb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/ada/libgnat/s-arit32.adb b/gcc/ada/libgnat/s-arit32.adb
index 6dac5725a59..c3d9f6a50bc 100644
--- a/gcc/ada/libgnat/s-arit32.adb
+++ b/gcc/ada/libgnat/s-arit32.adb
@@ -541,8 +541,10 @@ is
          end if;
       end if;
 
+      pragma Assert (In_Int32_Range (Big_Q));
       pragma Assert (Big (Qu) = abs Big_Q);
       pragma Assert (Big (Ru) = abs Big_R);
+      Prove_Sign_R;
 
       --  Set final signs (RM 4.5.5(27-30))
 
@@ -563,7 +565,6 @@ is
          Q := (if Z > 0 then To_Neg_Int (Qu) else To_Pos_Int (Qu));
       end if;
 
-      Prove_Sign_R;
       Prove_Signs;
    end Scaled_Divide32;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-13 10:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-13 10:03 [gcc r13-1660] [Ada] Fix automatic proof on System.Arith_32 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).