x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \le -1.8511185685143662 \cdot 10^{157} \lor \neg \left(y \cdot z \le 7.0895903653798347 \cdot 10^{176}\right):\\
\;\;\;\;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 temp;
if ((((y * z) <= -1.8511185685143662e+157) || !((y * z) <= 7.089590365379835e+176))) {
temp = ((x * 1.0) + ((x * -y) * z));
} else {
temp = ((x * 1.0) + (x * -(y * z)));
}
return temp;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (* y z) < -1.8511185685143662e+157 or 7.089590365379835e+176 < (* y z) Initial program 20.5
rmApplied sub-neg20.5
Applied distribute-lft-in20.5
rmApplied distribute-lft-neg-in20.5
Applied associate-*r*1.6
if -1.8511185685143662e+157 < (* y z) < 7.089590365379835e+176Initial program 0.1
rmApplied sub-neg0.1
Applied distribute-lft-in0.1
Final simplification0.3
herbie shell --seed 2020060
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1 (* y z))))