\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r529392 = x;
double r529393 = y;
double r529394 = r529392 + r529393;
double r529395 = r529394 + r529392;
return r529395;
}
double f(double x, double y) {
double r529396 = 2.0;
double r529397 = x;
double r529398 = y;
double r529399 = fma(r529396, r529397, r529398);
return r529399;
}




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