



Bits error versus a




Bits error versus b
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Final simplification0.0
herbie shell --seed 2019022 +o rules:numerics
(FPCore (a b)
:name "Expression 4, p15"
:pre (and (<= 5 a 10) (<= 0 b 0.001))
:herbie-target
(+ (+ (+ (* b a) (* b b)) (* b a)) (* a a))
(* (+ a b) (+ a b)))
Time bar (total: 3.5s)Debug log
| 7.0ms | 256× | body | 80 | valid |
| 6.0ms | 256× | pre | 80 | true |
| 22.0ms | (* (+ a b) (+ a b)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.0b | (* (+ a b) (+ a b)) |
| 6× | flip-+ |
| 6× | flip3-+ |
| 6× | pow1 |
| 4× | frac-times |
| 3× | add-cube-cbrt |
| 3× | add-exp-log |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | add-cbrt-cube |
| 3× | *-un-lft-identity |
| 3× | add-sqr-sqrt |
| 2× | associate-*r/ |
| 2× | associate-*l/ |
| 1× | add-log-exp |
| 1× | log1p-expm1-u |
| 1× | cbrt-unprod |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | pow-plus |
| 1× | distribute-lft-in |
| 1× | expm1-log1p-u |
| 1× | distribute-rgt-in |
| 1× | pow2 |
| 4.0ms | (* (+ a b) (+ a b)) |
| 13.0ms | (* (+ a b) (+ a b)) |
| 298.0ms | (* (- (* a a) (* b b)) (+ (pow a 3) (pow b 3))) |
| 267.0ms | (* (+ (* a a) (- (* b b) (* a b))) (+ (* a a) (- (* b b) (* a b)))) |
| 206.0ms | (* (+ (pow a 3) (pow b 3)) (+ (pow a 3) (pow b 3))) |
| 204.0ms | (* (+ (pow a 3) (pow b 3)) (+ a b)) |
| 176.0ms | (* (- a b) (+ (* a a) (- (* b b) (* a b)))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 1 expressions with local error:
| 0.0b | (fma (fma 2 a b) b (* a a)) |
| 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 (fma 2 a b) b (* a a)) |
| 21.0ms | (fma (fma 2 a b) b (* a a)) |
| 54.0ms | (+ (pow a 2) (+ (pow b 2) (* 2 (* a b)))) |
| 51.0ms | (+ (pow a 2) (+ (pow b 2) (* 2 (* a b)))) |
| 48.0ms | (+ (pow a 2) (+ (pow b 2) (* 2 (* a b)))) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b
| 339.0ms | 8000× | body | 80 | valid |
| 292.0ms | 8000× | pre | 80 | true |