]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Add ghost code to facilitate proof with SPARK
authorYannick Moy <moy@adacore.com>
Thu, 10 Feb 2022 10:54:44 +0000 (11:54 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 12 May 2022 12:38:38 +0000 (12:38 +0000)
commit86c7b1617f0ae0da828d1107795f57c96c848d8f
treeb5852ca8d5ede3dcf72b8c94f53b3eba433d885a
parentbbb4320baea245dc5abab35aba7d6225bc9f70fe
[Ada] Add ghost code to facilitate proof with SPARK

Proof of generic units for Long_Long_Long_Unsigned instantiations is
harder for provers, as they have to deal with larger values. Add ghost
code to make the proof easier.

gcc/ada/

* libgnat/s-imageu.adb (Set_Image_Unsigned): Add lemma.
* libgnat/s-valueu.adb (Scan_Raw_Unsigned): Add assertion.
gcc/ada/libgnat/s-imageu.adb
gcc/ada/libgnat/s-valueu.adb