From: Claire Dross Date: Mon, 11 Apr 2022 12:10:49 +0000 (+0200) Subject: [Ada] Fix proof of runtime unit s-imageu X-Git-Tag: basepoints/gcc-14~6594 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f068ad0f2f1d65349ac564178cddbe9aec39f3a;p=thirdparty%2Fgcc.git [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 --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;