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)) <= -1.1028107517664594e+237) || !(((double) (y * z)) <= 6.992221876406445e+268))) {
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) < -1.10281075176645937e237 or 6.9922218764064455e268 < (* y z) Initial program 37.2
rmApplied sub-neg37.2
Applied distribute-lft-in37.2
Simplified37.2
rmApplied associate-*r*0.8
if -1.10281075176645937e237 < (* y z) < 6.9922218764064455e268Initial program 0.1
rmApplied sub-neg0.1
Applied distribute-lft-in0.1
Simplified0.1
Final simplification0.2
herbie shell --seed 2020192
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))