diff options
author | Claire Dross <dross@adacore.com> | 2022-04-11 14:10:49 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-18 08:41:09 +0000 |
commit | 9f068ad0f2f1d65349ac564178cddbe9aec39f3a (patch) | |
tree | a9604e535ed8bae11c31398f2f6fe275ad624236 /gcc | |
parent | 17cd8bf5a4204b56c337614c0c0752527409f993 (diff) | |
download | gcc-9f068ad0f2f1d65349ac564178cddbe9aec39f3a.zip gcc-9f068ad0f2f1d65349ac564178cddbe9aec39f3a.tar.gz gcc-9f068ad0f2f1d65349ac564178cddbe9aec39f3a.tar.bz2 |
[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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/libgnat/s-imageu.adb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/ada/libgnat/s-imageu.adb b/gcc/ada/libgnat/s-imageu.adb index d6d9d46..6932487 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; |