]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Adapt proof of System.Arith_Double
authorYannick Moy <moy@adacore.com>
Wed, 5 Jan 2022 14:36:13 +0000 (14:36 +0000)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 11 Jan 2022 13:24:48 +0000 (13:24 +0000)
commitee22e1aa71b30a699d051ca9aa65ddf342a2635b
tree0d134e7fd89f6dbd204f5966f1d58abe1bfff989
parent58a9ed1187e5ba190828dff6c5d1e88ebe7dbb3a
[Ada] Adapt proof of System.Arith_Double

gcc/ada/

* libgnat/s-aridou.adb (Double_Divide): Adjust proof of lemma
Prove_Signs, call lemma for commutation of Big and
multiplication.
(Multiply_With_Ovflo_Check): Adjust postcondition of
Prove_Pos_Int.
(Scaled_Divide): Explicit commutation in the proof of lemma
Prove_Multiplication, add new lemma Prove_Shift_Progress for
congruence property that is not proved in a larger context, add
assertions at the end of the loop to state loop invariant
properties.
gcc/ada/libgnat/s-aridou.adb