\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r499213 = x;
double r499214 = y;
double r499215 = r499213 + r499214;
double r499216 = r499215 + r499213;
return r499216;
}
double f(double x, double y) {
double r499217 = 2.0;
double r499218 = x;
double r499219 = y;
double r499220 = fma(r499217, r499218, r499219);
return r499220;
}




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