projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17cd8bf
)
[Ada] Fix proof of runtime unit s-imageu
author
Claire Dross
<dross@adacore.com>
Mon, 11 Apr 2022 12:10:49 +0000
(14:10 +0200)
committer
Pierre-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
patch
|
blob
|
history
diff --git
a/gcc/ada/libgnat/s-imageu.adb
b/gcc/ada/libgnat/s-imageu.adb
index
d6d9d46
..
6932487
100644
(file)
--- 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;