x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \le -3.999638714125759 \cdot 10^{296}:\\
\;\;\;\;x \cdot 1 + \left(x \cdot \left(-y\right)\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;x \cdot 1 + x \cdot \left(-y \cdot z\right)\\
\end{array}double code(double x, double y, double z) {
return ((double) (x * ((double) (1.0 - ((double) (y * z))))));
}
double code(double x, double y, double z) {
double VAR;
if ((((double) (y * z)) <= -3.999638714125759e+296)) {
VAR = ((double) (((double) (x * 1.0)) + ((double) (((double) (x * ((double) -(y)))) * z))));
} else {
VAR = ((double) (((double) (x * 1.0)) + ((double) (x * ((double) -(((double) (y * z))))))));
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (* y z) < -3.999638714125759e+296Initial program 57.5
rmApplied sub-neg57.5
Applied distribute-lft-in57.5
rmApplied distribute-lft-neg-in57.5
Applied associate-*r*0.2
if -3.999638714125759e+296 < (* y z) Initial program 1.7
rmApplied sub-neg1.7
Applied distribute-lft-in1.7
Final simplification1.6
herbie shell --seed 2020120
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1 (* y z))))