[Ada] Fix precondition of Cot for code analyzers
authorYannick Moy <moy@adacore.com>
Mon, 17 May 2021 13:58:26 +0000 (15:58 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 7 Jul 2021 16:23:13 +0000 (16:23 +0000)
gcc/ada/

* libgnat/a-ngelfu.ads (Cot): Fix precondition.

gcc/ada/libgnat/a-ngelfu.ads

index 055c282..523e64f 100644 (file)
@@ -126,7 +126,7 @@ is
      Pre => Cycle > 0.0
        and then X /= 0.0
        and then Float_Type'Base'Remainder (X, Cycle) /= 0.0
-       and then abs Float_Type'Base'Remainder (X, Cycle) = 0.5 * Cycle;
+       and then abs Float_Type'Base'Remainder (X, Cycle) /= 0.5 * Cycle;
 
    function Arcsin (X : Float_Type'Base) return Float_Type'Base with
      Pre  => abs X <= 1.0,