



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
(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: 4.3s)Debug log
| 10.0ms | 256× | body | 80 | valid |
| 9.0ms | 256× | pre | 80 | true |
| 18.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× | cbrt-unprod |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | pow-plus |
| 1× | distribute-lft-in |
| 1× | distribute-rgt-in |
| 1× | pow2 |
| 4.0ms | (* (+ a b) (+ a b)) |
| 10.0ms | (* (+ a b) (+ a b)) |
| 448.0ms | (* (- (* a a) (* b b)) (+ a b)) |
| 277.0ms | (* (+ (* a a) (- (* b b) (* a b))) (- a b)) |
| 246.0ms | (* (- (* a a) (* b b)) (+ (pow a 3) (pow b 3))) |
| 228.0ms | (* (+ (* a a) (- (* b b) (* a b))) (+ (* a a) (- (* b b) (* a b)))) |
| 150.0ms | (* (+ (pow a 3) (pow b 3)) (- (* a a) (* b b))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 2 expressions with local error:
| 0.0b | (+ (pow a 2) (+ (pow b 2) (* 2 (* a b)))) |
| 0.0b | (+ (pow b 2) (* 2 (* a b))) |
| 9× | add-log-exp |
| 4× | *-un-lft-identity |
| 4× | sum-log |
| 2× | flip-+ |
| 2× | add-cube-cbrt |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | flip3-+ |
| 2× | +-commutative |
| 2× | pow1 |
| 2× | add-sqr-sqrt |
| 1× | distribute-lft-out |
| 1× | associate-+r+ |
| 8.0ms | (+ (pow a 2) (+ (pow b 2) (* 2 (* a b)))) |
| 4.0ms | (+ (pow b 2) (* 2 (* a b))) |
| 30.0ms | (+ (pow b 2) (* 2 (* a b))) |
| 17.0ms | (+ (pow a 2) (+ (pow b 2) (* 2 (* a b)))) |
| 134.0ms | (* (exp (pow a 2)) (exp (+ (pow b 2) (* 2 (* a b))))) |
| 126.0ms | (* (exp (pow a 2)) (* (exp (pow b 2)) (exp (* 2 (* a b))))) |
| 48.0ms | (* (exp (pow b 2)) (exp (* 2 (* a b)))) |
| 46.0ms | (+ (pow a 2) (+ (pow b 2) (* 2 (* a b)))) |
| 45.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
| 318.0ms | 8000× | body | 80 | valid |
| 310.0ms | 8000× | pre | 80 | true |