



Bits error versus d1




Bits error versus d2
Results
| Original | 0.2 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.2
Simplified0.0
Final simplification0.0
herbie shell --seed 2019016 +o rules:numerics
(FPCore (d1 d2)
:name "FastMath test2"
:herbie-target
(* d1 (+ 30 d2))
(+ (+ (* d1 10) (* d1 d2)) (* d1 20)))
Time bar (total: 7.1s)Debug log
| 296× | (pre true 80) |
| 293× | (body real 80) |
| 1× | (body real 320) |
| 1× | (body real 640) |
| 1× | (body real 1280) |
| 83.0ms | (+ (+ (* d1 10) (* d1 d2)) (* d1 20)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.0b | (* (+ d2 30) d1) |
| 3× | associate-*l* |
| 2× | add-cube-cbrt |
| 2× | associate-*l/ |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | log1p-expm1-u |
| 1× | flip-+ |
| 1× | *-commutative |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | flip3-+ |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 5.0ms | (* (+ d2 30) d1) |
| 24.0ms | (* (+ d2 30) d1) |
| 165.0ms | (* (- (* d2 d2) (* 30 30)) d1) |
| 20.0ms | (* (+ (pow d2 3) (pow 30 3)) d1) |
| 6.0ms | (+ (* d2 d1) (* 30 d1)) |
| 6.0ms | (+ (* d2 d1) (* 30 d1)) |
| 6.0ms | (+ (* d2 d1) (* 30 d1)) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0b
Found 2 expressions with local error:
| 0.1b | (+ (+ (* d1 10) (* d1 d2)) (* d1 20)) |
| 0.0b | (+ (* d1 10) (* d1 d2)) |
| 9× | add-log-exp |
| 5× | fma-def |
| 4× | distribute-lft-out |
| 4× | sum-log |
| 3× | add-cube-cbrt |
| 3× | *-un-lft-identity |
| 3× | add-sqr-sqrt |
| 2× | log1p-expm1-u |
| 2× | flip-+ |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | flip3-+ |
| 2× | +-commutative |
| 2× | pow1 |
| 2× | expm1-log1p-u |
| 1× | associate-+l+ |
| 9.0ms | (+ (+ (* d1 10) (* d1 d2)) (* d1 20)) |
| 2.0ms | (+ (* d1 10) (* d1 d2)) |
| 28.0ms | (+ (* d1 10) (* d1 d2)) |
| 19.0ms | (+ (+ (* d1 10) (* d1 d2)) (* d1 20)) |
| 99.0ms | (* (* (exp (* d1 10)) (exp (* d1 d2))) (exp (* d1 20))) |
| 83.0ms | (* (exp (+ (* d1 10) (* d1 d2))) (exp (* d1 20))) |
| 14.0ms | (* (cbrt (+ (* d1 10) (* d1 d2))) (cbrt (+ (* d1 10) (* d1 d2)))) |
| 13.0ms | (sqrt (+ (* d1 10) (* d1 d2))) |
| 10.0ms | (* (exp (* d1 10)) (exp (* d1 d2))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0b
Found 2 expressions with local error:
| 10.0b | (/ (* (fma d2 d2 -900) d1) (- d2 30)) |
| 4.0b | (* (fma d2 d2 -900) d1) |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 3× | associate-*l* |
| 3× | times-frac |
| 3× | associate-/r* |
| 2× | add-log-exp |
| 2× | log1p-expm1-u |
| 2× | associate-/r/ |
| 2× | pow1 |
| 2× | expm1-log1p-u |
| 1× | associate-/l* |
| 1× | flip-- |
| 1× | div-inv |
| 1× | *-commutative |
| 1× | div-exp |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 11.0ms | (/ (* (fma d2 d2 -900) d1) (- d2 30)) |
| 5.0ms | (* (fma d2 d2 -900) d1) |
| 48.0ms | (/ (* (fma d2 d2 -900) d1) (- d2 30)) |
| 39.0ms | (* (fma d2 d2 -900) d1) |
| 114.0ms | (/ (* (* (* (fma d2 d2 -900) d1) (* (fma d2 d2 -900) d1)) (* (fma d2 d2 -900) d1)) (* (* (- d2 30) (- d2 30)) (- d2 30))) |
| 54.0ms | (- (log (* (fma d2 d2 -900) d1)) (log (- d2 30))) |
| 44.0ms | (+ (* d2 d2) (+ (* 30 30) (* d2 30))) |
| 27.0ms | (- (* (pow d2 2) d1) (* 900 d1)) |
| 27.0ms | (- (* (pow d2 2) d1) (* 900 d1)) |
4 alts after pruning (1 fresh and 3 done)
Merged error: 0b
Found 3 expressions with local error:
| 15.9b | (/ (* (+ (pow d2 3) (pow 30 3)) d1) (+ (* d2 d2) (- (* 30 30) (* d2 30)))) |
| 4.0b | (* (+ (pow d2 3) (pow 30 3)) d1) |
| 0.0b | (+ (* d2 d2) (- (* 30 30) (* d2 30))) |
| 8× | add-log-exp |
| 8× | *-un-lft-identity |
| 6× | add-cube-cbrt |
| 6× | add-sqr-sqrt |
| 5× | add-exp-log |
| 5× | associate-*l* |
| 5× | add-cbrt-cube |
| 4× | flip-+ |
| 4× | associate-*l/ |
| 4× | flip3-+ |
| 3× | log1p-expm1-u |
| 3× | times-frac |
| 3× | associate-/r* |
| 3× | associate-+r+ |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | associate-/l/ |
| 2× | associate-/r/ |
| 2× | sum-log |
| 1× | associate-/l* |
| 1× | distribute-lft-out |
| 1× | div-inv |
| 1× | *-commutative |
| 1× | sum-cubes |
| 1× | prod-diff |
| 1× | div-exp |
| 1× | diff-log |
| 1× | frac-2neg |
| 1× | fma-def |
| 1× | sub-neg |
| 1× | associate-+r- |
| 1× | clear-num |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 17.0ms | (/ (* (+ (pow d2 3) (pow 30 3)) d1) (+ (* d2 d2) (- (* 30 30) (* d2 30)))) |
| 7.0ms | (* (+ (pow d2 3) (pow 30 3)) d1) |
| 5.0ms | (+ (* d2 d2) (- (* 30 30) (* d2 30))) |
| 62.0ms | (/ (* (+ (pow d2 3) (pow 30 3)) d1) (+ (* d2 d2) (- (* 30 30) (* d2 30)))) |
| 26.0ms | (* (+ (pow d2 3) (pow 30 3)) d1) |
| 10.0ms | (+ (* d2 d2) (- (* 30 30) (* d2 30))) |
| 335.0ms | (* (+ (pow (pow d2 3) 3) (pow (pow 30 3) 3)) d1) |
| 318.0ms | (* (+ (pow (pow d2 3) 3) (pow (pow 30 3) 3)) d1) |
| 258.0ms | (+ (* (* d2 d2) (* d2 d2)) (- (* (- (* 30 30) (* d2 30)) (- (* 30 30) (* d2 30))) (* (* d2 d2) (- (* 30 30) (* d2 30))))) |
| 226.0ms | (* (- (* (pow d2 3) (pow d2 3)) (* (pow 30 3) (pow 30 3))) d1) |
| 212.0ms | (* (- (* (pow d2 3) (pow d2 3)) (* (pow 30 3) (pow 30 3))) d1) |
4 alts after pruning (0 fresh and 4 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b
| 9155× | (pre true 80) |
| 9027× | (body real 80) |
| 47× | (body real 1280) |
| 46× | (body real 640) |
| 21× | (body real 320) |
| 14× | (body real 160) |