x \cdot \left(y + 1.0\right)
\mathsf{fma}\left(x, y, x \cdot 1.0\right)double f(double x, double y) {
double r41347773 = x;
double r41347774 = y;
double r41347775 = 1.0;
double r41347776 = r41347774 + r41347775;
double r41347777 = r41347773 * r41347776;
return r41347777;
}
double f(double x, double y) {
double r41347778 = x;
double r41347779 = y;
double r41347780 = 1.0;
double r41347781 = r41347778 * r41347780;
double r41347782 = fma(r41347778, r41347779, r41347781);
return r41347782;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0 |
Initial program 0.0
rmApplied distribute-lft-in0.0
rmApplied fma-def0
Final simplification0
herbie shell --seed 2019163 +o rules:numerics
(FPCore (x y)
:name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, B"
:herbie-target
(+ x (* x y))
(* x (+ y 1.0)))