x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq -7.066924116252075 \cdot 10^{+99} \lor \neg \left(y \cdot z \leq 1.1511030493396572 \cdot 10^{+256}\right):\\
\;\;\;\;x - z \cdot \left(y \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;x - \left(y \cdot z\right) \cdot x\\
\end{array}(FPCore (x y z) :precision binary64 (* x (- 1.0 (* y z))))
(FPCore (x y z)
:precision binary64
(if (or (<= (* y z) -7.066924116252075e+99)
(not (<= (* y z) 1.1511030493396572e+256)))
(- x (* z (* y x)))
(- x (* (* y z) x))))double code(double x, double y, double z) {
return x * (1.0 - (y * z));
}
double code(double x, double y, double z) {
double tmp;
if (((y * z) <= -7.066924116252075e+99) || !((y * z) <= 1.1511030493396572e+256)) {
tmp = x - (z * (y * x));
} else {
tmp = x - ((y * z) * x);
}
return tmp;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (*.f64 y z) < -7.0669241162520747e99 or 1.15110304933965725e256 < (*.f64 y z) Initial program 21.2
rmApplied sub-neg_binary64_757321.2
Applied distribute-rgt-in_binary64_753021.2
Simplified21.2
Simplified21.2
rmApplied distribute-rgt-neg-in_binary64_753821.2
Applied associate-*r*_binary64_75202.8
if -7.0669241162520747e99 < (*.f64 y z) < 1.15110304933965725e256Initial program 0.1
rmApplied sub-neg_binary64_75730.1
Applied distribute-rgt-in_binary64_75300.1
Simplified0.1
Simplified0.1
Final simplification0.5
herbie shell --seed 2020342
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))