\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r471774 = x;
double r471775 = y;
double r471776 = r471774 + r471775;
double r471777 = r471776 + r471774;
return r471777;
}
double f(double x, double y) {
double r471778 = 2.0;
double r471779 = x;
double r471780 = y;
double r471781 = fma(r471778, r471779, r471780);
return r471781;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
Simplified0
Final simplification0
herbie shell --seed 2020047 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ y (* 2 x))
(+ (+ x y) x))