\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r597799 = x;
double r597800 = y;
double r597801 = r597799 + r597800;
double r597802 = r597801 + r597799;
return r597802;
}
double f(double x, double y) {
double r597803 = 2.0;
double r597804 = x;
double r597805 = y;
double r597806 = fma(r597803, r597804, r597805);
return r597806;
}




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