d \cdot 10 + d \cdot 20
d \cdot 30
double f(double d) {
double r6556947 = d;
double r6556948 = 10.0;
double r6556949 = r6556947 * r6556948;
double r6556950 = 20.0;
double r6556951 = r6556947 * r6556950;
double r6556952 = r6556949 + r6556951;
return r6556952;
}
double f(double d) {
double r6556953 = d;
double r6556954 = 30.0;
double r6556955 = r6556953 * r6556954;
return r6556955;
}




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