double f(double a, double b, double c, double d, double e) {
double r11335510 = e;
double r11335511 = d;
double r11335512 = r11335510 + r11335511;
double r11335513 = c;
double r11335514 = r11335512 + r11335513;
double r11335515 = b;
double r11335516 = r11335514 + r11335515;
double r11335517 = a;
double r11335518 = r11335516 + r11335517;
return r11335518;
}
double f(double a, double b, double c, double d, double e) {
double r11335519 = e;
double r11335520 = exp(r11335519);
double r11335521 = d;
double r11335522 = exp(r11335521);
double r11335523 = b;
double r11335524 = exp(r11335523);
double r11335525 = c;
double r11335526 = exp(r11335525);
double r11335527 = a;
double r11335528 = exp(r11335527);
double r11335529 = r11335526 * r11335528;
double r11335530 = r11335524 * r11335529;
double r11335531 = r11335522 * r11335530;
double r11335532 = r11335520 * r11335531;
double r11335533 = log(r11335532);
return r11335533;
}
\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(e^{e} \cdot \left(e^{d} \cdot \left(e^{b} \cdot \left(e^{c} \cdot e^{a}\right)\right)\right)\right)



Bits error versus a




Bits error versus b




Bits error versus c




Bits error versus d




Bits error versus e
| Original | 0.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.0 |
Initial program 0.4
rmApplied add-log-exp0.4
Applied add-log-exp0.4
Applied add-log-exp0.4
Applied add-log-exp0.4
Applied sum-log0.4
Applied sum-log0.3
Applied sum-log0.2
Simplified0.3
rmApplied rem-log-exp0.3
rmApplied add-log-exp0.3
Applied add-log-exp0.3
Applied sum-log0.3
Simplified0.2
rmApplied add-log-exp0.2
Applied add-log-exp0.2
Applied sum-log0.2
Applied add-log-exp0.2
Applied sum-log0.2
Applied add-log-exp0.2
Applied sum-log0.2
Applied add-log-exp0.2
Applied sum-log0.0
Applied rem-exp-log0.0
Final simplification0.0
herbie shell --seed 2019101
(FPCore (a b c d e)
:name "Expression 1, p15"
:pre (<= 1 a 2 b 4 c 8 d 16 e 32)
:herbie-target
(+ (+ d (+ c (+ a b))) e)
(+ (+ (+ (+ e d) c) b) a))