\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r323057 = x;
double r323058 = y;
double r323059 = r323057 + r323058;
double r323060 = r323059 + r323057;
return r323060;
}
double f(double x, double y) {
double r323061 = 2.0;
double r323062 = x;
double r323063 = y;
double r323064 = fma(r323061, r323062, r323063);
return r323064;
}




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 2019235 +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))