x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq 3.541028011863109 \cdot 10^{+206}:\\
\;\;\;\;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.541028011863109e+206) (- 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.541028011863109e+206) {
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.541028011863109e206Initial program 1.7
rmApplied sub-neg_binary641.7
Applied distribute-lft-in_binary641.7
Simplified1.7
if 3.541028011863109e206 < (*.f64 y z) Initial program 25.5
rmApplied sub-neg_binary6425.5
Applied distribute-lft-in_binary6425.5
Simplified25.5
rmApplied distribute-lft-neg-in_binary6425.5
Applied associate-*r*_binary641.5
Final simplification1.7
herbie shell --seed 2020224
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))