



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 45.2 |
|---|---|
| Target | 0 |
| Herbie | 8.4 |
Initial program 45.2
rmApplied add-log-exp47.1
Applied add-log-exp47.6
Applied diff-log47.6
Simplified31.3
rmApplied associate-+l-15.1
Applied exp-diff15.1
Applied log-div15.1
Simplified15.1
Taylor expanded around -inf 8.4
Final simplification8.4
herbie shell --seed 2019007
(FPCore (x y z)
:name "simple fma test"
:herbie-target
-1
(- (fma x y z) (+ 1 (+ (* x y) z))))
Time bar (total: 18.6s)Debug log
1 calls. Slowest were:
| 268.0ms | (- (fma x y z) (+ 1 (+ (* x y) z))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 45.5b
Found 2 expressions with local error:
| 10.5b | (- (fma x y z) (+ 1 (+ (* x y) z))) |
| 0.0b | (+ (* x y) z) |
2 calls. Slowest were:
| 12.0ms | (- (fma x y z) (+ 1 (+ (* x y) z))) |
| 3.0ms | (+ (* x y) z) |
2 calls. Slowest were:
| 49.0ms | (- (fma x y z) (+ 1 (+ (* x y) z))) |
| 21.0ms | (+ (* x y) z) |
11 calls. Slowest were:
| 287.0ms | (- (fma x y z) (+ z (+ 1 (* x y)))) |
| 271.0ms | (- (fma x y z) (+ 1 (+ (* x y) z))) |
| 269.0ms | (/ (exp (fma x y z)) (exp (+ 1 (+ (* x y) z)))) |
7 alts after pruning (7 fresh and 0 done)
Merged error: 29.1b
Found 4 expressions with local error:
| 9.5b | (+ (- -1 (* x y)) (- (fma x y z) z)) |
| 1.8b | (- (fma x y z) z) |
| 0.0b | (exp (+ (- -1 (* x y)) (- (fma x y z) z))) |
| 0.0b | (log (exp (+ (- -1 (* x y)) (- (fma x y z) z)))) |
4 calls. Slowest were:
| 37.0ms | (exp (+ (- -1 (* x y)) (- (fma x y z) z))) |
| 34.0ms | (log (exp (+ (- -1 (* x y)) (- (fma x y z) z)))) |
| 8.0ms | (+ (- -1 (* x y)) (- (fma x y z) z)) |
4 calls. Slowest were:
| 28.0ms | (exp (+ (- -1 (* x y)) (- (fma x y z) z))) |
| 24.0ms | (log (exp (+ (- -1 (* x y)) (- (fma x y z) z)))) |
| 24.0ms | (+ (- -1 (* x y)) (- (fma x y z) z)) |
| 14.0ms | (- (fma x y z) z) |
44 calls. Slowest were:
| 605.0ms | (+ (- -1 (* x y)) (- (fma x y z) z)) |
| 545.0ms | (sqrt (+ (- -1 (* x y)) (- (fma x y z) z))) |
| 524.0ms | (+ (- -1 (* x y)) (- (fma x y z) z)) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 13.6b
Found 3 expressions with local error:
| 9.3b | (- (* x y) (- (fma x y z) z)) |
| 1.8b | (- (fma x y z) z) |
| 1.3b | (log (exp (- (* x y) (- (fma x y z) z)))) |
3 calls. Slowest were:
| 15.0ms | (log (exp (- (* x y) (- (fma x y z) z)))) |
| 5.0ms | (- (* x y) (- (fma x y z) z)) |
| 3.0ms | (- (fma x y z) z) |
3 calls. Slowest were:
| 32.0ms | (log (exp (- (* x y) (- (fma x y z) z)))) |
| 20.0ms | (- (* x y) (- (fma x y z) z)) |
| 16.0ms | (- (fma x y z) z) |
23 calls. Slowest were:
| 111.0ms | (log (* (cbrt (exp (- (* x y) (- (fma x y z) z)))) (cbrt (exp (- (* x y) (- (fma x y z) z)))))) |
| 104.0ms | (/ (exp (* x y)) (exp (- (fma x y z) z))) |
| 87.0ms | (log (sqrt (exp (- (* x y) (- (fma x y z) z))))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 7.9b
Found 2 expressions with local error:
| 7.6b | (- (+ z (* x y)) (fma x y z)) |
| 0.0b | (+ z (* x y)) |
2 calls. Slowest were:
| 9.0ms | (- (+ z (* x y)) (fma x y z)) |
| 1.0ms | (+ z (* x y)) |
2 calls. Slowest were:
| 32.0ms | (- (+ z (* x y)) (fma x y z)) |
| 28.0ms | (+ z (* x y)) |
10 calls. Slowest were:
| 80.0ms | (/ (exp (+ z (* x y))) (exp (fma x y z))) |
| 37.0ms | (- (+ z (* x y)) (fma x y z)) |
| 36.0ms | (- (+ z (* x y)) (fma x y z)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 7.9b
0% (0.1b remaining)
Error of 8.4b against oracle of 8.3b and baseline of 8.4b