



Bits error versus t
Results
| Original | 61.8 |
|---|---|
| Target | 50.6 |
| Herbie | 0.3 |
Initial program 61.8
Simplified57.6
Taylor expanded around inf 0.3
Final simplification0.3
herbie shell --seed 2019022 +o rules:numerics
(FPCore (t)
:name "fma_test1"
:pre (<= 0.9 t 1.1)
:herbie-target
(fma (+ 1 (* t 2e-16)) (+ 1 (* t 2e-16)) (- -1 (* 2 (* t 2e-16))))
(+ (* (+ 1 (* t 2e-16)) (+ 1 (* t 2e-16))) (- -1 (* 2 (* t 2e-16)))))
Time bar (total: 4.3s)Debug log
| 22.0ms | 194× | body | 160 | valid |
| 11.0ms | 62× | body | 320 | valid |
| 5.0ms | 256× | pre | 80 | true |
| 306.0ms | (+ (* (+ 1 (* t 2e-16)) (+ 1 (* t 2e-16))) (- -1 (* 2 (* t 2e-16)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 57.6b
Found 2 expressions with local error:
| 52.9b | (fma -2 (* 2e-16 t) (fma (fma t 2e-16 1) (fma t 2e-16 1) -1)) |
| 49.6b | (fma (fma t 2e-16 1) (fma t 2e-16 1) -1) |
| 2× | add-log-exp |
| 2× | log1p-expm1-u |
| 2× | fma-udef |
| 2× | add-cube-cbrt |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | *-un-lft-identity |
| 2× | pow1 |
| 2× | expm1-log1p-u |
| 2× | add-sqr-sqrt |
| 0.0ms | (fma -2 (* 2e-16 t) (fma (fma t 2e-16 1) (fma t 2e-16 1) -1)) |
| 0.0ms | (fma (fma t 2e-16 1) (fma t 2e-16 1) -1) |
| 88.0ms | (fma -2 (* 2e-16 t) (fma (fma t 2e-16 1) (fma t 2e-16 1) -1)) |
| 66.0ms | (fma (fma t 2e-16 1) (fma t 2e-16 1) -1) |
| 24.0ms | (+ (* 4e-16 t) (* 3.9999999999999997e-32 (pow t 2))) |
| 24.0ms | (+ (* 4e-16 t) (* 3.9999999999999997e-32 (pow t 2))) |
| 15.0ms | (+ (* 4e-16 t) (* 3.9999999999999997e-32 (pow t 2))) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 5.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.4b
Found 1 expressions with local error:
| 0.3b | (* 3.9999999999999997e-32 (pow t 2)) |
| 4× | associate-*r* |
| 2× | add-cube-cbrt |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | unpow2 |
| 1× | log1p-expm1-u |
| 1× | *-commutative |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 2.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 23.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 3.0ms | (cbrt (pow t 2)) |
| 3.0ms | (sqrt (pow t 2)) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.1b
Found 1 expressions with local error:
| 0.3b | (* (* 3.9999999999999997e-32 t) t) |
| 1× | add-log-exp |
| 1× | log1p-expm1-u |
| 1× | add-cube-cbrt |
| 1× | *-commutative |
| 1× | add-exp-log |
| 1× | associate-*l* |
| 1× | add-cbrt-cube |
| 1× | *-un-lft-identity |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1× | add-sqr-sqrt |
| 2.0ms | (* (* 3.9999999999999997e-32 t) t) |
| 12.0ms | (* (* 3.9999999999999997e-32 t) t) |
| 6.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 4.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 3.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.5b | (* (sqrt (* (* 3.9999999999999997e-32 t) t)) (sqrt (* (* 3.9999999999999997e-32 t) t))) |
| 0.3b | (* (* 3.9999999999999997e-32 t) t) |
| 0.3b | (* (* 3.9999999999999997e-32 t) t) |
| 0.1b | (sqrt (* (* 3.9999999999999997e-32 t) t)) |
| 9× | pow1 |
| 6× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | associate-*l* |
| 6× | add-cbrt-cube |
| 6× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 5× | pow1/2 |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | associate-*r* |
| 4× | expm1-log1p-u |
| 3× | sqrt-prod |
| 3× | *-commutative |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | sqrt-unprod |
| 1× | pow-plus |
| 1× | rem-square-sqrt |
| 1× | pow2 |
| 15.0ms | (* (sqrt (* (* 3.9999999999999997e-32 t) t)) (sqrt (* (* 3.9999999999999997e-32 t) t))) |
| 3.0ms | (* (* 3.9999999999999997e-32 t) t) |
| 2.0ms | (* (* 3.9999999999999997e-32 t) t) |
| 1.0ms | (sqrt (* (* 3.9999999999999997e-32 t) t)) |
| 60.0ms | (* (sqrt (* (* 3.9999999999999997e-32 t) t)) (sqrt (* (* 3.9999999999999997e-32 t) t))) |
| 33.0ms | (sqrt (* (* 3.9999999999999997e-32 t) t)) |
| 19.0ms | (* (* 3.9999999999999997e-32 t) t) |
| 18.0ms | (* (* 3.9999999999999997e-32 t) t) |
| 325.0ms | (* (* (* (sqrt (* (* 3.9999999999999997e-32 t) t)) (sqrt (* (* 3.9999999999999997e-32 t) t))) (sqrt (* (* 3.9999999999999997e-32 t) t))) (* (* (sqrt (* (* 3.9999999999999997e-32 t) t)) (sqrt (* (* 3.9999999999999997e-32 t) t))) (sqrt (* (* 3.9999999999999997e-32 t) t)))) |
| 64.0ms | (* (* (* 3.9999999999999997e-32 t) t) (* (* 3.9999999999999997e-32 t) t)) |
| 43.0ms | (* (* (* 3.9999999999999997e-32 t) t) (* (* 3.9999999999999997e-32 t) t)) |
| 12.0ms | (* -1 (* t (sqrt 3.9999999999999997e-32))) |
| 11.0ms | (cbrt (sqrt (* (* 3.9999999999999997e-32 t) t))) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 0.0b
0% (0.3b remaining)
Error of 0.3b against oracle of 0.0b and baseline of 0.3b
| 939.0ms | 6003× | body | 160 | valid |
| 538.0ms | 1997× | body | 320 | valid |
| 246.0ms | 8000× | pre | 80 | true |