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

https://gcc.gnu.org/g:9f068ad0f2f1d65349ac564178cddbe9aec39f3a

commit r13-613-g9f068ad0f2f1d65349ac564178cddbe9aec39f3a
Author: Claire Dross <dross@adacore.com>
Date:   Mon Apr 11 14:10:49 2022 +0200

    [Ada] Fix proof of runtime unit s-imageu
    
    Update to provers caused some proof regressions.  Fix the proof by
    adding an assertion.
    
    gcc/ada/
    
            * libgnat/s-imageu.adb (Set_Image_Unsigned): Change assertion.

Diff:
---
 gcc/ada/libgnat/s-imageu.adb | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/gcc/ada/libgnat/s-imageu.adb b/gcc/ada/libgnat/s-imageu.adb
index d6d9d466091..69324878010 100644
--- 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:45 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:45 [gcc r13-613] [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).