



Bits error versus a




Bits error versus b




Bits error versus c




Bits error versus d




Bits error versus e
Results
| Original | 0.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.3 |
Initial program 0.4
rmApplied associate-+l+0.3
Final simplification0.3
herbie shell --seed 2019016 +o rules:numerics
(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))
Time bar (total: 25.5s)Debug log
| 256× | (pre true 80) |
| 256× | (body real 80) |
| 235.0ms | (+ (+ (+ (+ e d) c) b) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.3b
Found 3 expressions with local error:
| 0.2b | (+ (+ (+ (+ e d) c) b) a) |
| 0.2b | (+ (+ (+ e d) c) b) |
| 0.1b | (+ (+ e d) c) |
| 9× | fma-def |
| 6× | add-cube-cbrt |
| 6× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | flip-+ |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | flip3-+ |
| 3× | associate-+l+ |
| 3× | +-commutative |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 61.0ms | (+ (+ (+ (+ e d) c) b) a) |
| 12.0ms | (+ (+ (+ e d) c) b) |
| 3.0ms | (+ (+ e d) c) |
| 38.0ms | (+ (+ (+ (+ e d) c) b) a) |
| 32.0ms | (+ (+ (+ e d) c) b) |
| 10.0ms | (+ (+ e d) c) |
| 49.0ms | (sqrt (+ (+ (+ e d) c) b)) |
| 30.0ms | (* (cbrt (+ (+ (+ e d) c) b)) (cbrt (+ (+ (+ e d) c) b))) |
| 12.0ms | (+ b (+ c d)) |
| 12.0ms | (+ b (+ c d)) |
| 11.0ms | (+ e (+ c d)) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.2b | (+ (+ (+ e d) c) (+ b a)) |
| 0.1b | (+ (+ e d) c) |
| 6× | flip-+ |
| 6× | flip3-+ |
| 6× | *-un-lft-identity |
| 6× | fma-def |
| 4× | add-log-exp |
| 4× | add-cube-cbrt |
| 4× | frac-add |
| 4× | add-sqr-sqrt |
| 2× | log1p-expm1-u |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | associate-+l+ |
| 2× | +-commutative |
| 2× | pow1 |
| 2× | expm1-log1p-u |
| 1× | distribute-lft-out |
| 1× | sum-log |
| 1× | associate-+r+ |
| 25.0ms | (+ (+ (+ e d) c) (+ b a)) |
| 5.0ms | (+ (+ e d) c) |
| 39.0ms | (+ (+ (+ e d) c) (+ b a)) |
| 12.0ms | (+ (+ e d) c) |
| 601.0ms | (+ (+ (+ e d) c) (+ b a)) |
| 386.0ms | (* (+ (* (+ e d) (+ e d)) (- (* c c) (* (+ e d) c))) (- b a)) |
| 266.0ms | (+ (* (- (* (+ e d) (+ e d)) (* c c)) (+ (* b b) (- (* a a) (* b a)))) (* (- (+ e d) c) (+ (pow b 3) (pow a 3)))) |
| 250.0ms | (* (exp (+ (+ e d) c)) (exp (+ b a))) |
| 192.0ms | (+ (* (+ (pow (+ e d) 3) (pow c 3)) (+ (* b b) (- (* a a) (* b a)))) (* (+ (* (+ e d) (+ e d)) (- (* c c) (* (+ e d) c))) (+ (pow b 3) (pow a 3)))) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.5b | (* (+ (+ e d) c) (+ (+ e d) c)) |
| 0.4b | (/ (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b)) (- (+ (+ e d) c) b)) |
| 0.3b | (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b)) |
| 0.2b | (+ (/ (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b)) (- (+ (+ e d) c) b)) a) |
| 24× | times-frac |
| 23× | add-cube-cbrt |
| 23× | *-un-lft-identity |
| 23× | add-sqr-sqrt |
| 18× | fma-def |
| 9× | pow1 |
| 8× | difference-of-squares |
| 8× | add-exp-log |
| 8× | add-cbrt-cube |
| 7× | flip-+ |
| 7× | flip3-+ |
| 6× | add-log-exp |
| 4× | associate-/l* |
| 4× | flip-- |
| 4× | log1p-expm1-u |
| 4× | associate-/r/ |
| 4× | flip3-- |
| 4× | frac-times |
| 4× | expm1-log1p-u |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | div-inv |
| 2× | associate-*r/ |
| 2× | associate--l+ |
| 2× | associate-*l/ |
| 2× | div-sub |
| 2× | distribute-lft-in |
| 2× | distribute-rgt-in |
| 1× | cbrt-unprod |
| 1× | associate-+l- |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | prod-diff |
| 1× | div-exp |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | pow-plus |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 1× | pow2 |
| 145.0ms | (+ (/ (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b)) (- (+ (+ e d) c) b)) a) |
| 37.0ms | (/ (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b)) (- (+ (+ e d) c) b)) |
| 23.0ms | (* (+ (+ e d) c) (+ (+ e d) c)) |
| 10.0ms | (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b)) |
| 473.0ms | (+ (/ (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b)) (- (+ (+ e d) c) b)) a) |
| 150.0ms | (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b)) |
| 100.0ms | (/ (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b)) (- (+ (+ e d) c) b)) |
| 32.0ms | (* (+ (+ e d) c) (+ (+ e d) c)) |
| 764.0ms | (* (- (* (+ e d) (+ e d)) (* c c)) (- (* (+ e d) (+ e d)) (* c c))) |
| 695.0ms | (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b)) |
| 684.0ms | (/ (sqrt (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b))) 1) |
| 643.0ms | (/ (sqrt (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b))) 1) |
| 634.0ms | (/ (* (cbrt (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b))) (cbrt (- (* (+ (+ e d) c) (+ (+ e d) c)) (* b b)))) 1) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.4b | (fma (sqrt (+ e d)) (sqrt (+ e d)) c) |
| 0.2b | (+ (+ (fma (sqrt (+ e d)) (sqrt (+ e d)) c) b) a) |
| 0.2b | (+ (fma (sqrt (+ e d)) (sqrt (+ e d)) c) b) |
| 0.2b | (sqrt (+ e d)) |
| 8× | add-sqr-sqrt |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 6× | fma-def |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | flip-+ |
| 3× | sqrt-prod |
| 3× | flip3-+ |
| 2× | fma-udef |
| 2× | sqrt-div |
| 2× | associate-+l+ |
| 2× | +-commutative |
| 1× | pow1/2 |
| 1× | rem-sqrt-square |
| 19.0ms | (+ (+ (fma (sqrt (+ e d)) (sqrt (+ e d)) c) b) a) |
| 3.0ms | (+ (fma (sqrt (+ e d)) (sqrt (+ e d)) c) b) |
| 1.0ms | (sqrt (+ e d)) |
| 0.0ms | (fma (sqrt (+ e d)) (sqrt (+ e d)) c) |
| 201.0ms | (+ (+ (fma (sqrt (+ e d)) (sqrt (+ e d)) c) b) a) |
| 162.0ms | (+ (fma (sqrt (+ e d)) (sqrt (+ e d)) c) b) |
| 82.0ms | (fma (sqrt (+ e d)) (sqrt (+ e d)) c) |
| 28.0ms | (sqrt (+ e d)) |
| 35.0ms | (sqrt (+ (fma (sqrt (+ e d)) (sqrt (+ e d)) c) b)) |
| 34.0ms | (sqrt (- (* e e) (* d d))) |
| 31.0ms | (* (cbrt (+ (fma (sqrt (+ e d)) (sqrt (+ e d)) c) b)) (cbrt (+ (fma (sqrt (+ e d)) (sqrt (+ e d)) c) b))) |
| 17.0ms | (* (cbrt (fma (sqrt (+ e d)) (sqrt (+ e d)) c)) (cbrt (fma (sqrt (+ e d)) (sqrt (+ e d)) c))) |
| 15.0ms | (sqrt (fma (sqrt (+ e d)) (sqrt (+ e d)) c)) |
7 alts after pruning (4 fresh and 3 done)
Merged error: 0b
0% (0.3b remaining)
Error of 0.3b against oracle of 0.0b and baseline of 0.3b
| 8000× | (pre true 80) |
| 8000× | (body real 80) |