



Bits error versus x




Bits error versus y




Bits error versus z
| Original | 44.6 |
|---|---|
| Target | 0 |
| Herbie | 13.4 |
Initial program 44.6
Initial simplification33.9
rmApplied associate--l-13.4
Final simplification13.4
herbie shell --seed 2018360
(FPCore (x y z)
:name "simple fma test"
:herbie-target
-1
(- (fma x y z) (+ 1 (+ (* x y) z))))
Time bar (total: 17.1s)Debug log
2 alts after pruning (2 fresh and 0 done)
Merged error: 31.9b
Found 2 expressions with local error:
| 7.5b | (- (* x y) (fma x y z)) |
| 0.7b | (- (- -1 z) (- (* x y) (fma x y z))) |
2 calls. Slowest were:
| 14.0ms | (- (- -1 z) (- (* x y) (fma x y z))) |
| 5.0ms | (- (* x y) (fma x y z)) |
2 calls. Slowest were:
| 42.0ms | (- (- -1 z) (- (* x y) (fma x y z))) |
| 36.0ms | (- (* x y) (fma x y z)) |
23 calls. Slowest were:
| 579.0ms | (- (* (- (* -1 -1) (* z z)) (+ (* x y) (fma x y z))) (* (+ -1 z) (- (* (* x y) (* x y)) (* (fma x y z) (fma x y z))))) |
| 417.0ms | (/ (exp (- -1 z)) (exp (- (* x y) (fma x y z)))) |
| 353.0ms | (* (+ -1 z) (+ (* (* x y) (* x y)) (+ (* (fma x y z) (fma x y z)) (* (* x y) (fma x y z))))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 10.2b
Found 1 expressions with local error:
| 7.5b | (- (* x y) (fma x y z)) |
1 calls. Slowest were:
| 4.0ms | (- (* x y) (fma x y z)) |
1 calls. Slowest were:
| 24.0ms | (- (* x y) (fma x y z)) |
4 calls. Slowest were:
| 16.0ms | (/ (exp (* x y)) (exp (fma x y z))) |
| 4.0ms | (- (* x y) (fma x y z)) |
| 4.0ms | (- (* x y) (fma x y z)) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 10.2b
Found 4 expressions with local error:
| 7.8b | (+ (- (fma x y z) z) (- -1 (* x y))) |
| 2.1b | (- (fma x y z) z) |
| 0.0b | (exp (+ (- (fma x y z) z) (- -1 (* x y)))) |
| 0.0b | (log (exp (+ (- (fma x y z) z) (- -1 (* x y))))) |
4 calls. Slowest were:
| 50.0ms | (log (exp (+ (- (fma x y z) z) (- -1 (* x y))))) |
| 48.0ms | (exp (+ (- (fma x y z) z) (- -1 (* x y)))) |
| 12.0ms | (+ (- (fma x y z) z) (- -1 (* x y))) |
4 calls. Slowest were:
| 35.0ms | (log (exp (+ (- (fma x y z) z) (- -1 (* x y))))) |
| 33.0ms | (+ (- (fma x y z) z) (- -1 (* x y))) |
| 28.0ms | (exp (+ (- (fma x y z) z) (- -1 (* x y)))) |
| 23.0ms | (- (fma x y z) z) |
48 calls. Slowest were:
| 443.0ms | (exp (- (fma x y z) (+ z (+ 1 (* x y))))) |
| 421.0ms | (* (exp (- (fma x y z) z)) (exp (- -1 (* x y)))) |
| 419.0ms | (exp (- (fma x y z) (+ z (+ 1 (* x y))))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 10.2b
Found 4 expressions with local error:
| 7.5b | (- (* x y) (fma x y z)) |
| 7.5b | (- (* x y) (fma x y z)) |
| 7.5b | (- (* x y) (fma x y z)) |
| 0.7b | (- (- -1 z) (- (* x y) (fma x y z))) |
4 calls. Slowest were:
| 13.0ms | (- (- -1 z) (- (* x y) (fma x y z))) |
| 8.0ms | (- (* x y) (fma x y z)) |
| 4.0ms | (- (* x y) (fma x y z)) |
4 calls. Slowest were:
| 40.0ms | (- (- -1 z) (- (* x y) (fma x y z))) |
| 27.0ms | (- (* x y) (fma x y z)) |
| 18.0ms | (- (* x y) (fma x y z)) |
| 16.0ms | (- (* x y) (fma x y z)) |
31 calls. Slowest were:
| 513.0ms | (- (* (- (* -1 -1) (* z z)) (+ (* x y) (fma x y z))) (* (+ -1 z) (- (* (* x y) (* x y)) (* (fma x y z) (fma x y z))))) |
| 405.0ms | (/ (exp (- -1 z)) (exp (- (* x y) (fma x y z)))) |
| 372.0ms | (/ (exp (- -1 z)) (/ (exp (* x y)) (exp (fma x y z)))) |
5 alts after pruning (2 fresh and 3 done)
Merged error: 10.2b
0% (0.2b remaining)
Error of 13.4b against oracle of 13.2b and baseline of 13.4b