\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r522711 = x;
double r522712 = y;
double r522713 = r522711 + r522712;
double r522714 = r522713 + r522711;
return r522714;
}
double f(double x, double y) {
double r522715 = x;
double r522716 = y;
double r522717 = r522715 + r522716;
double r522718 = r522717 + r522715;
return r522718;
}




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