\left(x + y\right) - x
y
double f(double x, double y) {
double r24784160 = x;
double r24784161 = y;
double r24784162 = r24784160 + r24784161;
double r24784163 = r24784162 - r24784160;
return r24784163;
}
double f(double __attribute__((unused)) x, double y) {
double r24784164 = y;
return r24784164;
}




Bits error versus x




Bits error versus y
Results
| Original | 29.8 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 29.8
Simplified0
Final simplification0
herbie shell --seed 2019200 +o rules:numerics
(FPCore (x y)
:name "Graphics.Rendering.Chart.Plot.Pie:renderPie from Chart-1.5.3"
:herbie-target
(- y 0.0)
(- (+ x y) x))