\left(x + y\right) + x
y + \left(x + x\right)
double f(double x, double y) {
double r490300 = x;
double r490301 = y;
double r490302 = r490300 + r490301;
double r490303 = r490302 + r490300;
return r490303;
}
double f(double x, double y) {
double r490304 = y;
double r490305 = x;
double r490306 = r490305 + r490305;
double r490307 = r490304 + r490306;
return r490307;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.0
rmApplied add-sqr-sqrt32.5
rmApplied *-un-lft-identity32.5
Applied sqrt-prod32.5
Simplified32.5
Simplified32.5
rmApplied *-un-lft-identity32.5
Applied associate-*l*32.5
Simplified0
Final simplification0
herbie shell --seed 2020045
(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))