d \cdot 10 + d \cdot 20
d \cdot 30
double f(double d) {
double r9319615 = d;
double r9319616 = 10.0;
double r9319617 = r9319615 * r9319616;
double r9319618 = 20.0;
double r9319619 = r9319615 * r9319618;
double r9319620 = r9319617 + r9319619;
return r9319620;
}
double f(double d) {
double r9319621 = d;
double r9319622 = 30.0;
double r9319623 = r9319621 * r9319622;
return r9319623;
}




Bits error versus d
Results
| Original | 0.3 |
|---|---|
| Target | 0 |
| Herbie | 0 |
Initial program 0.3
Simplified0
Final simplification0
herbie shell --seed 2019132 +o rules:numerics
(FPCore (d)
:name "FastMath test1"
:herbie-target
(* d 30)
(+ (* d 10) (* d 20)))