\left(x + y\right) + x
x + \left(y + x\right)
double f(double x, double y) {
double r27586024 = x;
double r27586025 = y;
double r27586026 = r27586024 + r27586025;
double r27586027 = r27586026 + r27586024;
return r27586027;
}
double f(double x, double y) {
double r27586028 = x;
double r27586029 = y;
double r27586030 = r27586029 + r27586028;
double r27586031 = r27586028 + r27586030;
return r27586031;
}




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