\left(x + y\right) + x
\mathsf{fma}\left(2, x, y\right)double f(double x, double y) {
double r22408042 = x;
double r22408043 = y;
double r22408044 = r22408042 + r22408043;
double r22408045 = r22408044 + r22408042;
return r22408045;
}
double f(double x, double y) {
double r22408046 = 2.0;
double r22408047 = x;
double r22408048 = y;
double r22408049 = fma(r22408046, r22408047, r22408048);
return r22408049;
}




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