



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 45.3 |
|---|---|
| Target | 0 |
| Herbie | 8.1 |
Initial program 45.3
rmApplied add-log-exp47.1
Applied add-log-exp47.6
Applied diff-log47.6
Simplified30.9
rmApplied associate-+l-15.2
Applied exp-diff15.2
Taylor expanded around 0 8.1
Final simplification8.1
herbie shell --seed 2019016
(FPCore (x y z)
:name "simple fma test"
:herbie-target
-1
(- (fma x y z) (+ 1 (+ (* x y) z))))
Time bar (total: 25.8s)Debug log
| 256× | (pre true 80) |
| 84× | (body real 1280) |
| 68× | (body real 80) |
| 53× | (body real 640) |
| 24× | (body real 2560) |
| 19× | (body real 320) |
| 8× | (body real 160) |
| 294.0ms | (- (fma x y z) (+ 1 (+ (* x y) z))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 44.8b
Found 2 expressions with local error:
| 10.3b | (- (fma x y z) (+ 1 (+ (* x y) z))) |
| 0.0b | (+ (* x y) z) |
| 4× | add-log-exp |
| 4× | *-un-lft-identity |
| 4× | add-sqr-sqrt |
| 2× | add-cube-cbrt |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | pow1 |
| 1× | difference-of-squares |
| 1× | distribute-lft-out-- |
| 1× | associate--r+ |
| 1× | flip-- |
| 1× | flip-+ |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | +-commutative |
| 12.0ms | (- (fma x y z) (+ 1 (+ (* x y) z))) |
| 3.0ms | (+ (* x y) z) |
| 40.0ms | (- (fma x y z) (+ 1 (+ (* x y) z))) |
| 14.0ms | (+ (* x y) z) |
| 287.0ms | (/ (exp (fma x y z)) (exp (+ 1 (+ (* x y) z)))) |
| 276.0ms | (- (fma x y z) (+ 1 (+ (* x y) z))) |
| 275.0ms | (- (fma x y z) (+ z (+ 1 (* x y)))) |
| 274.0ms | (- (fma x y z) (+ z (+ 1 (* x y)))) |
| 236.0ms | (- (fma x y z) (+ z (+ 1 (* x y)))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 29.9b
Found 4 expressions with local error:
| 10.0b | (+ (- -1 (* x y)) (- (fma x y z) z)) |
| 1.5b | (- (fma x y z) z) |
| 0.2b | (log (exp (+ (- -1 (* x y)) (- (fma x y z) z)))) |
| 0.0b | (exp (+ (- -1 (* x y)) (- (fma x y z) z))) |
| 13× | *-un-lft-identity |
| 9× | add-log-exp |
| 8× | exp-prod |
| 7× | add-cube-cbrt |
| 7× | add-sqr-sqrt |
| 5× | flip-- |
| 5× | log-pow |
| 5× | flip3-- |
| 5× | pow1 |
| 4× | add-exp-log |
| 4× | frac-add |
| 4× | exp-diff |
| 4× | add-cbrt-cube |
| 4× | log-prod |
| 3× | distribute-lft-out |
| 3× | associate-+l- |
| 3× | sub-neg |
| 3× | associate-+r- |
| 2× | rem-exp-log |
| 2× | exp-sum |
| 2× | sum-log |
| 2× | associate-+r+ |
| 2× | associate-+l+ |
| 2× | log-div |
| 1× | flip-+ |
| 1× | rem-log-exp |
| 1× | flip3-+ |
| 1× | +-commutative |
| 30.0ms | (exp (+ (- -1 (* x y)) (- (fma x y z) z))) |
| 27.0ms | (log (exp (+ (- -1 (* x y)) (- (fma x y z) z)))) |
| 9.0ms | (+ (- -1 (* x y)) (- (fma x y z) z)) |
| 3.0ms | (- (fma x y z) z) |
| 44.0ms | (exp (+ (- -1 (* x y)) (- (fma x y z) z))) |
| 41.0ms | (log (exp (+ (- -1 (* x y)) (- (fma x y z) z)))) |
| 28.0ms | (+ (- -1 (* x y)) (- (fma x y z) z)) |
| 21.0ms | (- (fma x y z) z) |
| 550.0ms | (+ (- -1 (* x y)) (- (fma x y z) z)) |
| 516.0ms | (sqrt (+ (- -1 (* x y)) (- (fma x y z) z))) |
| 510.0ms | (exp (sqrt (+ (- -1 (* x y)) (- (fma x y z) z)))) |
| 483.0ms | (+ (- -1 (* x y)) (- (fma x y z) z)) |
| 482.0ms | (exp (* (cbrt (+ (- -1 (* x y)) (- (fma x y z) z))) (cbrt (+ (- -1 (* x y)) (- (fma x y z) z))))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 15.7b
Found 4 expressions with local error:
| 9.7b | (- (* x y) (- (fma x y z) z)) |
| 1.5b | (- (fma x y z) z) |
| 0.2b | (log (/ (exp -1) (exp (- (* x y) (- (fma x y z) z))))) |
| 0.0b | (/ (exp -1) (exp (- (* x y) (- (fma x y z) z)))) |
| 36× | times-frac |
| 25× | add-cube-cbrt |
| 25× | *-un-lft-identity |
| 25× | add-sqr-sqrt |
| 23× | log-prod |
| 21× | exp-sum |
| 10× | sub-neg |
| 8× | associate--r- |
| 6× | add-log-exp |
| 6× | add-cbrt-cube |
| 6× | associate-/r* |
| 5× | add-exp-log |
| 5× | pow1 |
| 3× | associate-/l* |
| 2× | associate--r+ |
| 2× | flip-- |
| 2× | div-inv |
| 2× | associate-/r/ |
| 2× | rem-log-exp |
| 2× | div-exp |
| 2× | exp-diff |
| 2× | flip3-- |
| 1× | log-pow |
| 1× | diff-log |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | log-div |
| 1× | cbrt-undiv |
| 37.0ms | (/ (exp -1) (exp (- (* x y) (- (fma x y z) z)))) |
| 15.0ms | (log (/ (exp -1) (exp (- (* x y) (- (fma x y z) z))))) |
| 5.0ms | (- (* x y) (- (fma x y z) z)) |
| 3.0ms | (- (fma x y z) z) |
| 108.0ms | (log (/ (exp -1) (exp (- (* x y) (- (fma x y z) z))))) |
| 81.0ms | (/ (exp -1) (exp (- (* x y) (- (fma x y z) z)))) |
| 37.0ms | (- (* x y) (- (fma x y z) z)) |
| 21.0ms | (- (fma x y z) z) |
| 324.0ms | (- -1 (- (* x y) (- (fma x y z) z))) |
| 304.0ms | (- (log (/ (exp -1) (exp (- (fma x y z))))) (+ z (* x y))) |
| 212.0ms | (/ (exp -1) (exp (- (- (fma x y z) z)))) |
| 209.0ms | (/ (exp -1) (exp (- (- (fma x y z) z)))) |
| 198.0ms | (/ (sqrt (exp -1)) (exp (- (* x y) (- (fma x y z) z)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 8.9b
Found 2 expressions with local error:
| 8.9b | (- (+ z (* x y)) (fma x y z)) |
| 0.0b | (+ z (* x y)) |
| 4× | add-log-exp |
| 4× | *-un-lft-identity |
| 4× | add-sqr-sqrt |
| 2× | add-cube-cbrt |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | pow1 |
| 1× | difference-of-squares |
| 1× | distribute-lft-out-- |
| 1× | flip-- |
| 1× | flip-+ |
| 1× | associate--l+ |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | +-commutative |
| 9.0ms | (- (+ z (* x y)) (fma x y z)) |
| 1.0ms | (+ z (* x y)) |
| 31.0ms | (- (+ z (* x y)) (fma x y z)) |
| 28.0ms | (+ z (* x y)) |
| 71.0ms | (/ (exp (+ z (* x y))) (exp (fma x y z))) |
| 24.0ms | (- (+ z (* x y)) (fma x y z)) |
| 24.0ms | (- (+ z (* x y)) (fma x y z)) |
| 21.0ms | (- (+ z (* x y)) (fma x y z)) |
| 13.0ms | (- (sqrt (+ z (* x y))) (sqrt (fma x y z))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 8.9b
0% (0.1b remaining)
Error of 8.1b against oracle of 8.0b and baseline of 8.1b
| 8000× | (pre true 80) |
| 2621× | (body real 1280) |
| 2072× | (body real 80) |
| 1618× | (body real 640) |
| 729× | (body real 320) |
| 609× | (body real 2560) |
| 351× | (body real 160) |