



Bits error versus x
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019022 +o rules:numerics
(FPCore (x)
:name "Expression 3, p15"
:pre (<= 0 x 2)
:herbie-target
(* (* (+ 1.0 x) x) x)
(+ (* x (* x x)) (* x x)))
Time bar (total: 5.8s)Debug log
| 12.0ms | 256× | body | 80 | valid |
| 6.0ms | 256× | pre | 80 | true |
| 62.0ms | (+ (* x (* x x)) (* x x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.0b | (fma (* x x) x (* x x)) |
| 1× | add-log-exp |
| 1× | log1p-expm1-u |
| 1× | fma-udef |
| 1× | add-cube-cbrt |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | *-un-lft-identity |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1× | add-sqr-sqrt |
| 0.0ms | (fma (* x x) x (* x x)) |
| 42.0ms | (fma (* x x) x (* x x)) |
| 11.0ms | (+ (pow x 3) (pow x 2)) |
| 8.0ms | (+ (pow x 3) (pow x 2)) |
| 8.0ms | (+ (pow x 3) (pow x 2)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 30.6b | (log (fma (* x x) x (* x x))) |
| 2.8b | (exp (log (fma (* x x) x (* x x)))) |
| 0.0b | (fma (* x x) x (* x x)) |
| 6× | add-cube-cbrt |
| 6× | *-un-lft-identity |
| 6× | log-prod |
| 6× | add-sqr-sqrt |
| 5× | pow1 |
| 4× | add-exp-log |
| 4× | exp-prod |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | exp-sum |
| 3× | add-cbrt-cube |
| 3× | expm1-log1p-u |
| 2× | log-pow |
| 1× | rem-exp-log |
| 1× | fma-udef |
| 1× | rem-log-exp |
| 3.0ms | (exp (log (fma (* x x) x (* x x)))) |
| 1.0ms | (log (fma (* x x) x (* x x))) |
| 0.0ms | (fma (* x x) x (* x x)) |
| 45.0ms | (exp (log (fma (* x x) x (* x x)))) |
| 38.0ms | (fma (* x x) x (* x x)) |
| 34.0ms | (log (fma (* x x) x (* x x))) |
| 195.0ms | (- (+ (/ 1 x) (log -1)) (+ (* 3 (log (/ -1 x))) (* 1/2 (/ 1 (pow x 2))))) |
| 128.0ms | (- (/ 1 x) (+ (* 3 (log (/ 1 x))) (* 1/2 (/ 1 (pow x 2))))) |
| 72.0ms | (- (+ x (* 2 (log x))) (* 1/2 (pow x 2))) |
| 33.0ms | (exp (* (cbrt (log (fma (* x x) x (* x x)))) (cbrt (log (fma (* x x) x (* x x)))))) |
| 31.0ms | (exp (sqrt (log (fma (* x x) x (* x x))))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 18.9b | (cbrt (* (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) (fma (* x x) x (* x x)))) |
| 0.1b | (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) |
| 0.1b | (* (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) (fma (* x x) x (* x x))) |
| 0.0b | (fma (* x x) x (* x x)) |
| 23× | pow1 |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | pow-prod-up |
| 6× | associate-*r* |
| 6× | pow-plus |
| 5× | fma-udef |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | cbrt-unprod |
| 4× | prod-exp |
| 4× | pow-prod-down |
| 4× | associate-*l* |
| 4× | expm1-log1p-u |
| 3× | pow2 |
| 2× | *-commutative |
| 2× | pow3 |
| 2× | distribute-lft-in |
| 2× | distribute-rgt-in |
| 1× | rem-cbrt-cube |
| 1× | pow1/3 |
| 1× | cbrt-prod |
| 10.0ms | (* (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) (fma (* x x) x (* x x))) |
| 8.0ms | (cbrt (* (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) (fma (* x x) x (* x x)))) |
| 8.0ms | (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) |
| 0.0ms | (fma (* x x) x (* x x)) |
| 34.0ms | (fma (* x x) x (* x x)) |
| 32.0ms | (cbrt (* (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) (fma (* x x) x (* x x)))) |
| 15.0ms | (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) |
| 14.0ms | (* (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) (fma (* x x) x (* x x))) |
| 915.0ms | (* (* (* (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) (fma (* x x) x (* x x))) (* (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) (fma (* x x) x (* x x)))) (* (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) (fma (* x x) x (* x x)))) |
| 523.0ms | (* (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) (* x x)) |
| 360.0ms | (* (* (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) (fma (* x x) x (* x x))) (* (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) (fma (* x x) x (* x x)))) |
| 179.0ms | (+ (log (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x)))) (log (fma (* x x) x (* x x)))) |
| 156.0ms | (* (fma (* x x) x (* x x)) (fma (* x x) x (* x x))) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0.0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b
| 372.0ms | 8000× | body | 80 | valid |
| 183.0ms | 8000× | pre | 80 | true |