x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \le -2.9414576854135396 \cdot 10^{184}:\\
\;\;\;\;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 (x * (1.0 - (y * z)));
}
double code(double x, double y, double z) {
double VAR;
if (((y * z) <= -2.9414576854135396e+184)) {
VAR = ((x * 1.0) + ((x * -y) * z));
} else {
VAR = ((x * 1.0) + (x * -(y * z)));
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (* y z) < -2.9414576854135396e+184Initial program 23.3
rmApplied sub-neg23.3
Applied distribute-lft-in23.3
rmApplied distribute-lft-neg-in23.3
Applied associate-*r*1.1
if -2.9414576854135396e+184 < (* y z) Initial program 1.8
rmApplied sub-neg1.8
Applied distribute-lft-in1.8
Final simplification1.7
herbie shell --seed 2020105
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1 (* y z))))