\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r478246 = x;
double r478247 = y;
double r478248 = r478246 + r478247;
double r478249 = r478248 + r478246;
return r478249;
}
double f(double x, double y) {
double r478250 = x;
double r478251 = y;
double r478252 = r478250 + r478251;
double r478253 = r478252 + r478250;
return r478253;
}




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