\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r573013 = x;
double r573014 = y;
double r573015 = r573013 + r573014;
double r573016 = r573015 + r573013;
return r573016;
}
double f(double x, double y) {
double r573017 = x;
double r573018 = y;
double r573019 = r573017 + r573018;
double r573020 = r573019 + r573017;
return r573020;
}




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