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)) <= -7.72929198135795e+194) || !(((double) (y * z)) <= 1.593986744441868e+153))) {
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) < -7.7292919813579506e194 or 1.5939867444418681e153 < (* y z) Initial program 21.9
rmApplied sub-neg21.9
Applied distribute-lft-in21.9
Simplified21.9
rmApplied associate-*r*1.5
if -7.7292919813579506e194 < (* y z) < 1.5939867444418681e153Initial program 0.1
rmApplied sub-neg0.1
Applied distribute-lft-in0.1
Simplified0.1
Final simplification0.3
herbie shell --seed 2020190
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, I"
:precision binary64
(* x (- 1.0 (* y z))))