\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r34825 = x;
double r34826 = y;
double r34827 = r34825 + r34826;
double r34828 = r34827 + r34825;
return r34828;
}
double f(double x, double y) {
double r34829 = 2.0;
double r34830 = x;
double r34831 = y;
double r34832 = fma(r34829, r34830, r34831);
return r34832;
}




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