x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \le -8.98213140270888884 \cdot 10^{127}:\\
\;\;\;\;x \cdot 1 + \left(-1 \cdot \left(x \cdot z\right)\right) \cdot y\\
\mathbf{elif}\;y \cdot z \le 3.5418822336766144 \cdot 10^{183}:\\
\;\;\;\;x \cdot 1 + x \cdot \left(-y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 1 + \left(x \cdot y\right) \cdot \left(-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)) <= -8.982131402708889e+127)) {
VAR = ((double) (((double) (x * 1.0)) + ((double) (((double) (-1.0 * ((double) (x * z)))) * y))));
} else {
double VAR_1;
if ((((double) (y * z)) <= 3.5418822336766144e+183)) {
VAR_1 = ((double) (((double) (x * 1.0)) + ((double) (x * ((double) -(((double) (y * z))))))));
} else {
VAR_1 = ((double) (((double) (x * 1.0)) + ((double) (((double) (x * y)) * ((double) -(z))))));
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (* y z) < -8.982131402708889e+127Initial program 16.7
rmApplied sub-neg16.7
Applied distribute-lft-in16.7
rmApplied add-cube-cbrt17.6
Applied associate-*l*17.6
rmApplied *-commutative17.6
Applied distribute-lft-neg-in17.6
Applied associate-*r*11.1
Applied associate-*r*3.4
Simplified2.2
if -8.982131402708889e+127 < (* y z) < 3.5418822336766144e+183Initial program 0.1
rmApplied sub-neg0.1
Applied distribute-lft-in0.1
if 3.5418822336766144e+183 < (* y z) Initial program 24.0
rmApplied sub-neg24.0
Applied distribute-lft-in24.0
rmApplied add-cube-cbrt24.8
Applied associate-*l*24.8
rmApplied distribute-rgt-neg-in24.8
Applied associate-*r*15.8
Applied associate-*r*2.8
Simplified1.6
Final simplification0.4
herbie shell --seed 2020114
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1 (* y z))))