x \cdot \left(1 - y \cdot z\right)
\begin{array}{l}
\mathbf{if}\;y \cdot z \leq -6.519036621544818 \cdot 10^{+266} \lor \neg \left(y \cdot z \leq 3.807495575138799 \cdot 10^{+241}\right):\\
\;\;\;\;x \cdot 1 - z \cdot \left(y \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 1 - \left(y \cdot z\right) \cdot x\\
\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)) <= -6.519036621544818e+266) || !(((double) (y * z)) <= 3.807495575138799e+241))) {
VAR = ((double) (((double) (x * 1.0)) - ((double) (z * ((double) (y * x))))));
} else {
VAR = ((double) (((double) (x * 1.0)) - ((double) (((double) (y * z)) * x))));
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
if (* y z) < -6.5190366215448184e266 or 3.8074955751387988e241 < (* y z) Initial program 40.4
rmApplied sub-neg40.4
Applied distribute-lft-in40.4
Simplified40.4
rmApplied associate-*r*0.8
if -6.5190366215448184e266 < (* y z) < 3.8074955751387988e241Initial program 0.1
rmApplied sub-neg0.1
Applied distribute-lft-in0.1
Simplified0.1
Final simplification0.2
herbie shell --seed 2020196
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))