\left(x + y\right) + x
\left(x + y\right) + x
double f(double x, double y) {
double r649781 = x;
double r649782 = y;
double r649783 = r649781 + r649782;
double r649784 = r649783 + r649781;
return r649784;
}
double f(double x, double y) {
double r649785 = x;
double r649786 = y;
double r649787 = r649785 + r649786;
double r649788 = r649787 + r649785;
return r649788;
}




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