\left(x + y\right) + x
\left(x + x\right) + y
double f(double x, double y) {
double r504905 = x;
double r504906 = y;
double r504907 = r504905 + r504906;
double r504908 = r504907 + r504905;
return r504908;
}
double f(double x, double y) {
double r504909 = x;
double r504910 = r504909 + r504909;
double r504911 = y;
double r504912 = r504910 + r504911;
return r504912;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied add-sqr-sqrt32.0
Simplified32.0
Simplified32.0
rmApplied associate-+r+32.0
Simplified32.0
Taylor expanded around 0 0
Simplified0
Final simplification0
herbie shell --seed 2019174
(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))