x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq -4.761941483808026 \cdot 10^{+261} \lor \neg \left(y \cdot z \leq 1.2191719913281072 \cdot 10^{+135}\right):\\
\;\;\;\;x - y \cdot \left(z \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) -4.761941483808026e+261)
(not (<= (* y z) 1.2191719913281072e+135)))
(- x (* y (* z 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) <= -4.761941483808026e+261) || !((y * z) <= 1.2191719913281072e+135)) {
tmp = x - (y * (z * 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) < -4.761941483808026e261 or 1.2191719913281072e135 < (*.f64 y z) Initial program 23.6
rmApplied sub-neg_binary64_689123.6
Applied distribute-rgt-in_binary64_684823.6
Simplified23.6
Simplified23.6
rmApplied associate-*r*_binary64_68382.5
rmApplied unsub-neg_binary64_68922.5
if -4.761941483808026e261 < (*.f64 y z) < 1.2191719913281072e135Initial program 0.1
rmApplied sub-neg_binary64_68910.1
Applied distribute-rgt-in_binary64_68480.1
Final simplification0.4
herbie shell --seed 2021044
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))