\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r548929 = x;
double r548930 = y;
double r548931 = r548929 + r548930;
double r548932 = r548931 + r548929;
return r548932;
}
double f(double x, double y) {
double r548933 = x;
double r548934 = y;
double r548935 = r548933 + r548934;
double r548936 = r548935 + r548933;
return r548936;
}




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