[Ada] Fix proof of runtime unit s-imageu
authorClaire Dross <dross@adacore.com>
Mon, 11 Apr 2022 12:10:49 +0000 (14:10 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 18 May 2022 08:41:09 +0000 (08:41 +0000)
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.

gcc/ada/libgnat/s-imageu.adb

index d6d9d46..6932487 100644 (file)
@@ -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;