\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r21234704 = x;
double r21234705 = y;
double r21234706 = r21234704 + r21234705;
double r21234707 = r21234706 + r21234704;
return r21234707;
}
double f(double x, double y) {
double r21234708 = 2.0;
double r21234709 = x;
double r21234710 = y;
double r21234711 = fma(r21234708, r21234709, r21234710);
return r21234711;
}




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 2019179 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"
:herbie-target
(+ y (* 2.0 x))
(+ (+ x y) x))