\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r518812 = x;
double r518813 = y;
double r518814 = r518812 + r518813;
double r518815 = r518814 + r518812;
return r518815;
}
double f(double x, double y) {
double r518816 = x;
double r518817 = y;
double r518818 = r518816 + r518817;
double r518819 = r518818 + r518816;
return r518819;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0.0 |
Initial program 0.0
Final simplification0.0
herbie shell --seed 2020081
(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))