public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Ada] Fix proof of runtime unit s-imageu
@ 2022-05-18  8:43 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-18  8:43 UTC (permalink / raw)
  To: gcc-patches; +Cc: Claire Dross

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

Update to provers caused some proof regressions.  Fix the proof by
adding an assertion.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* libgnat/s-imageu.adb (Set_Image_Unsigned): Change assertion.

[-- Attachment #2: patch.diff --]
[-- Type: text/x-diff, Size: 623 bytes --]

diff --git a/gcc/ada/libgnat/s-imageu.adb b/gcc/ada/libgnat/s-imageu.adb
--- a/gcc/ada/libgnat/s-imageu.adb
+++ b/gcc/ada/libgnat/s-imageu.adb
@@ -390,16 +390,9 @@ package body System.Image_U is
                Acc  => Value)
               = Wrap_Option (V));
       end loop;
+      pragma Assert (Value = 0);
 
       Prove_Unchanged;
-      pragma Assert
-        (Scan_Based_Number_Ghost
-           (Str  => S,
-            From => P + 1,
-            To   => P + Nb_Digits,
-            Base => 10,
-            Acc  => Value)
-         = Wrap_Option (V));
 
       P := P + Nb_Digits;
    end Set_Image_Unsigned;



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

only message in thread, other threads:[~2022-05-18  8:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18  8:43 [Ada] Fix proof of runtime unit s-imageu 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).