\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r464895 = x;
double r464896 = y;
double r464897 = r464895 + r464896;
double r464898 = r464897 + r464895;
return r464898;
}
double f(double x, double y) {
double r464899 = x;
double r464900 = y;
double r464901 = r464899 + r464900;
double r464902 = r464901 + r464899;
return r464902;
}




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