\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r562407 = x;
double r562408 = y;
double r562409 = r562407 + r562408;
double r562410 = r562409 + r562407;
return r562410;
}
double f(double x, double y) {
double r562411 = 2.0;
double r562412 = x;
double r562413 = y;
double r562414 = fma(r562411, r562412, r562413);
return r562414;
}




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