d \cdot 10 + d \cdot 20
d \cdot 30
double f(double d) {
double r7658107 = d;
double r7658108 = 10.0;
double r7658109 = r7658107 * r7658108;
double r7658110 = 20.0;
double r7658111 = r7658107 * r7658110;
double r7658112 = r7658109 + r7658111;
return r7658112;
}
double f(double d) {
double r7658113 = d;
double r7658114 = 30.0;
double r7658115 = r7658113 * r7658114;
return r7658115;
}




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