\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r344110 = x;
double r344111 = y;
double r344112 = r344110 + r344111;
double r344113 = r344112 + r344110;
return r344113;
}
double f(double x, double y) {
double r344114 = 2.0;
double r344115 = x;
double r344116 = y;
double r344117 = fma(r344114, r344115, r344116);
return r344117;
}




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