\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r538653 = x;
double r538654 = y;
double r538655 = r538653 + r538654;
double r538656 = r538655 + r538653;
return r538656;
}
double f(double x, double y) {
double r538657 = 2.0;
double r538658 = x;
double r538659 = y;
double r538660 = fma(r538657, r538658, r538659);
return r538660;
}




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