[Ada] Proof of Ada.Characters.Handling
authorYannick Moy <moy@adacore.com>
Tue, 31 Aug 2021 08:21:42 +0000 (10:21 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 5 Oct 2021 08:20:00 +0000 (08:20 +0000)
commitec8ccc712cc15124090dab1ae44dccee280ce4ad
tree1ba8112705882a6116b77fe17cf057bc8f6f0d5a
parent1581aa38eba0ab47eaebe45e8dc6bef6832381c8
[Ada] Proof of Ada.Characters.Handling

gcc/ada/

* libgnat/a-chahan.adb: Add loop invariants as needed to prove
subprograms.  Also use extended return statements where
appropriate and not done already.  Mark data with
Relaxed_Initialization where needed for initialization by parts.
Convert regular functions to expression functions where needed
for proof.
* libgnat/a-chahan.ads: Add postconditions.
* libgnat/a-strmap.ads (Model): New ghost function to create a
publicly visible model of the private data Character_Mapping,
needed in order to prove subprograms in Ada.Characters.Handling.
gcc/ada/libgnat/a-chahan.adb
gcc/ada/libgnat/a-chahan.ads
gcc/ada/libgnat/a-strmap.ads