\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r505476 = x;
double r505477 = y;
double r505478 = r505476 + r505477;
double r505479 = r505478 + r505476;
return r505479;
}
double f(double x, double y) {
double r505480 = 2.0;
double r505481 = x;
double r505482 = y;
double r505483 = fma(r505480, r505481, r505482);
return r505483;
}




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