\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r547037 = x;
double r547038 = y;
double r547039 = r547037 + r547038;
double r547040 = r547039 + r547037;
return r547040;
}
double f(double x, double y) {
double r547041 = x;
double r547042 = y;
double r547043 = r547041 + r547042;
double r547044 = r547043 + r547041;
return r547044;
}




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