\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r519507 = x;
double r519508 = y;
double r519509 = r519507 + r519508;
double r519510 = r519509 + r519507;
return r519510;
}
double f(double x, double y) {
double r519511 = 2.0;
double r519512 = x;
double r519513 = y;
double r519514 = fma(r519511, r519512, r519513);
return r519514;
}




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