]> gcc.gnu.org Git - gcc.git/commit
ada: Add annotations for proof of termination of runtime units
authorYannick Moy <moy@adacore.com>
Mon, 16 Jan 2023 11:33:03 +0000 (11:33 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 15 May 2023 09:36:43 +0000 (11:36 +0200)
commit9c213cb8671e01578a3714ac136760f9452642aa
treef0b5cd35c94f9e15e48838d1259265fd713cd790
parenta398b5479c9c928f7d9999de8b0c6580b733e6a8
ada: Add annotations for proof of termination of runtime units

String-manipulating functions should always terminate. Add justification
for the termination of Mapping function parameter, and loop variants
where needed. This is needed for GNATprove to prove termination.

gcc/ada/

* libgnat/a-strbou.ads: Add justifications for Mapping.
* libgnat/a-strfix.adb: Same.
* libgnat/a-strfix.ads: Same.
* libgnat/a-strsea.adb: Same.
* libgnat/a-strsea.ads: Same.
* libgnat/a-strsup.adb: Same and add loop variants.
* libgnat/a-strsup.ads: Same and add specification of termination.
gcc/ada/libgnat/a-strbou.ads
gcc/ada/libgnat/a-strfix.adb
gcc/ada/libgnat/a-strfix.ads
gcc/ada/libgnat/a-strsea.adb
gcc/ada/libgnat/a-strsea.ads
gcc/ada/libgnat/a-strsup.adb
gcc/ada/libgnat/a-strsup.ads
This page took 0.061684 seconds and 5 git commands to generate.