\left(x + y\right) + x
\left(x + x\right) + y
double f(double x, double y) {
double r28995105 = x;
double r28995106 = y;
double r28995107 = r28995105 + r28995106;
double r28995108 = r28995107 + r28995105;
return r28995108;
}
double f(double x, double y) {
double r28995109 = x;
double r28995110 = r28995109 + r28995109;
double r28995111 = y;
double r28995112 = r28995110 + r28995111;
return r28995112;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied flip-+47.1
Simplified47.2
Simplified23.6
rmApplied add-cube-cbrt24.5
Applied times-frac6.7
rmApplied add-cube-cbrt7.0
Taylor expanded around 0 0
Simplified0
Final simplification0
herbie shell --seed 2019192
(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))