x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq 3.0315578685071895 \cdot 10^{+238}:\\
\;\;\;\;x - \left(y \cdot z\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot \left(y \cdot x\right)\\
\end{array}(FPCore (x y z) :precision binary64 (* x (- 1.0 (* y z))))
(FPCore (x y z) :precision binary64 (if (<= (* y z) 3.0315578685071895e+238) (- x (* (* y z) x)) (- x (* z (* y 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) <= 3.0315578685071895e+238) {
tmp = x - ((y * z) * x);
} else {
tmp = x - (z * (y * x));
}
return tmp;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (*.f64 y z) < 3.03155786850718947e238Initial program 1.7
rmApplied sub-neg_binary641.7
Applied distribute-lft-in_binary641.7
Simplified1.7
if 3.03155786850718947e238 < (*.f64 y z) Initial program 36.2
rmApplied sub-neg_binary6436.2
Applied distribute-lft-in_binary6436.2
Simplified36.2
rmApplied distribute-lft-neg-in_binary6436.2
Applied associate-*r*_binary640.3
Final simplification1.6
herbie shell --seed 2020220
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))