x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq -1.9166548109552515 \cdot 10^{+192} \lor \neg \left(y \cdot z \leq 9.406864179769877 \cdot 10^{+259}\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) -1.9166548109552515e+192)
(not (<= (* y z) 9.406864179769877e+259)))
(- 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) <= -1.9166548109552515e+192) || !((y * z) <= 9.406864179769877e+259)) {
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) < -1.91665481095525152e192 or 9.4068641797698767e259 < (*.f64 y z) Initial program 30.8
rmApplied sub-neg_binary64_484530.8
Applied distribute-rgt-in_binary64_480230.8
Simplified30.8
Simplified30.8
rmApplied associate-*r*_binary64_47920.9
rmApplied unsub-neg_binary64_48460.9
if -1.91665481095525152e192 < (*.f64 y z) < 9.4068641797698767e259Initial program 0.1
rmApplied sub-neg_binary64_48450.1
Applied distribute-rgt-in_binary64_48020.1
Final simplification0.2
herbie shell --seed 2021015
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))