]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Update proofs of double arithmetic unit after prover changes
authorYannick Moy <moy@adacore.com>
Tue, 19 Apr 2022 15:46:05 +0000 (15:46 +0000)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 30 May 2022 08:29:02 +0000 (08:29 +0000)
commit40e01041b3593c72f3d52013953fbfbe0011abb8
tree783be6a33b2d7a363219000b4a326e179021faf2
parent33dec214f0270ac86c445e08c32843b73e44fb23
[Ada] Update proofs of double arithmetic unit after prover changes

Changes in GNATprove (translation to Why3 and provers) result in proofs
being much less automatic, and requiring ghost code to detail
intermediate steps. In some cases, it is better to use the new By
mechanism to prove assertions in steps, as this avoids polluting the
proof context for other proofs. For that reason, add units s-spark.ads
and s-spcuop.ads/b to the runtime sources.

gcc/ada/

* Makefile.rtl: Add new units.
* libgnat/s-aridou.adb (Scaled_Divide): Add ghost code for provers.
* libgnat/s-spcuop.adb: New unit for ghost cut operations.
* libgnat/s-spcuop.ads: New unit for ghost cut operations.
* libgnat/s-spark.ads: New unit.
gcc/ada/Makefile.rtl
gcc/ada/libgnat/s-aridou.adb
gcc/ada/libgnat/s-spark.ads [new file with mode: 0644]
gcc/ada/libgnat/s-spcuop.adb [new file with mode: 0644]
gcc/ada/libgnat/s-spcuop.ads [new file with mode: 0644]