Time bar (total: 1.9s)
| 1× | search |
| True | Other | False | Iter |
|---|---|---|---|
| 0% | 99.9% | 0.1% | 0 |
| 0% | 99.9% | 0.1% | 1 |
| 0% | 99.9% | 0.1% | 2 |
| 0% | 99.9% | 0.1% | 3 |
| 0% | 99.9% | 0.1% | 4 |
| 25% | 74.9% | 0.1% | 5 |
| 25% | 62.4% | 12.6% | 6 |
| 25% | 50% | 25.1% | 7 |
| 31.2% | 37.5% | 31.3% | 8 |
| 39% | 24.2% | 36.8% | 9 |
| 42.9% | 18.3% | 38.7% | 10 |
| 47.2% | 11.9% | 40.9% | 11 |
| 49.4% | 9.1% | 41.6% | 12 |
Compiled 10 to 6 computations (40% saved)
| 726.0ms | 8256× | body | 256 | valid |
| 28.0ms | 332× | body | 256 | invalid |
| 2× | egg-herbie |
| 856× | fma-def_binary64 |
| 576× | distribute-rgt-in_binary64 |
| 560× | unsub-neg_binary64 |
| 508× | fma-neg_binary64 |
| 432× | distribute-rgt-out--_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 20 |
| 1 | 25 | 20 |
| 2 | 47 | 20 |
| 3 | 103 | 20 |
| 4 | 273 | 20 |
| 5 | 821 | 20 |
| 6 | 2115 | 20 |
| 7 | 3862 | 20 |
| 8 | 5608 | 20 |
| 9 | 6168 | 20 |
| 10 | 6281 | 20 |
| 11 | 6395 | 20 |
| 12 | 6475 | 20 |
| 13 | 6475 | 20 |
| 14 | 7856 | 20 |
| 0 | 2 | 2 |
| 1× | saturated |
| 1× | node limit |
| Inputs |
|---|
0 |
1 |
| Outputs |
|---|
0 |
1 |
| Inputs |
|---|
(-.f64 (*.f64 a a) (*.f64 b b)) |
(-.f64 (*.f64 b b) (*.f64 a a)) |
| Outputs |
|---|
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(-.f64 (*.f64 b b) (*.f64 a a)) |
Compiled 11 to 7 computations (36.4% saved)
| 1× | egg-herbie |
| 697× | fma-def_binary64 |
| 611× | unsub-neg_binary64 |
| 582× | fma-neg_binary64 |
| 443× | distribute-rgt-out--_binary64 |
| 409× | distribute-rgt-out_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 10 |
| 1 | 15 | 10 |
| 2 | 27 | 10 |
| 3 | 56 | 10 |
| 4 | 133 | 10 |
| 5 | 382 | 10 |
| 6 | 832 | 10 |
| 7 | 1661 | 10 |
| 8 | 3915 | 10 |
| 9 | 5409 | 10 |
| 10 | 6280 | 10 |
| 11 | 6701 | 10 |
| 12 | 6947 | 10 |
| 13 | 7062 | 10 |
| 14 | 7062 | 10 |
| 1× | node limit |
| Inputs |
|---|
(-.f64 (*.f64 a a) (*.f64 b b)) |
| Outputs |
|---|
(-.f64 (*.f64 a a) (*.f64 b b)) |
Compiled 9 to 5 computations (44.4% saved)
2 alts after pruning (2 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 0 | 1 | 1 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 0 | 0 |
| Done | 0 | 0 | 0 |
| Total | 0 | 2 | 2 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.0b | (-.f64 (*.f64 a a) (*.f64 b b)) |
Compiled 9 to 5 computations (44.4% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (-.f64 (*.f64 a a) (*.f64 b b)) |
Compiled 17 to 5 computations (70.6% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | a | @ | 0 | (-.f64 (*.f64 a a) (*.f64 b b)) |
| 1.0ms | a | @ | inf | (-.f64 (*.f64 a a) (*.f64 b b)) |
| 0.0ms | b | @ | 0 | (-.f64 (*.f64 a a) (*.f64 b b)) |
| 0.0ms | b | @ | inf | (-.f64 (*.f64 a a) (*.f64 b b)) |
| 0.0ms | b | @ | -inf | (-.f64 (*.f64 a a) (*.f64 b b)) |
| 1× | batch-egg-rewrite |
| 733× | pow1_binary64 |
| 684× | add-log-exp_binary64 |
| 684× | log1p-expm1-u_binary64 |
| 684× | expm1-log1p-u_binary64 |
| 667× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 10 |
| 1 | 139 | 10 |
| 2 | 1985 | 10 |
| 1× | node limit |
| Inputs |
|---|
(-.f64 (*.f64 a a) (*.f64 b b)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (*.f64 b (neg.f64 b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (*.f64 (*.f64 b (neg.f64 b)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (+.f64 (*.f64 b (neg.f64 b)) (fma.f64 (neg.f64 b) b (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (*.f64 b (neg.f64 b)) 1 (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (neg.f64 (pow.f64 (cbrt.f64 b) 2)) (cbrt.f64 (pow.f64 b 4)) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (*.f64 (fma.f64 (neg.f64 b) b (*.f64 b b)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (+.f64 (fma.f64 (neg.f64 b) b (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 b (neg.f64 b)) (*.f64 a a))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (fma.f64 (neg.f64 b) b (*.f64 b b)) (-.f64 (*.f64 a a) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (-.f64 (*.f64 a a) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) (pow.f64 (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 2) (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 a 6) (pow.f64 b 6)) (/.f64 1 (+.f64 (pow.f64 a 4) (+.f64 (pow.f64 b 4) (pow.f64 (*.f64 a b) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 a 4) (pow.f64 b 4)) (/.f64 1 (fma.f64 a a (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 a b) (-.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 a b) (+.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 a 4) (+.f64 (pow.f64 b 4) (pow.f64 (*.f64 a b) 2))) (-.f64 (pow.f64 a 6) (pow.f64 b 6))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 a a (*.f64 b b)) (-.f64 (pow.f64 a 4) (pow.f64 b 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 a 6) (pow.f64 b 6)) (+.f64 (pow.f64 a 4) (+.f64 (pow.f64 b 4) (pow.f64 (*.f64 a b) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 a 4) (pow.f64 b 4)) (fma.f64 a a (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 a 6) (pow.f64 b 6))) (neg.f64 (+.f64 (pow.f64 a 4) (+.f64 (pow.f64 b 4) (pow.f64 (*.f64 a b) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 a 4) (pow.f64 b 4))) (neg.f64 (fma.f64 a a (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 a 6) (pow.f64 (*.f64 b (neg.f64 b)) 3)) (+.f64 (pow.f64 a 4) (-.f64 (*.f64 (*.f64 b (neg.f64 b)) (*.f64 b (neg.f64 b))) (*.f64 (*.f64 a a) (*.f64 b (neg.f64 b))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 3) (pow.f64 (fma.f64 (neg.f64 b) b (*.f64 b b)) 3)) (+.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 2) (-.f64 (*.f64 (fma.f64 (neg.f64 b) b (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b))) (*.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 a 4) (*.f64 (*.f64 b (neg.f64 b)) (*.f64 b (neg.f64 b)))) (-.f64 (*.f64 a a) (*.f64 b (neg.f64 b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 2) (*.f64 (fma.f64 (neg.f64 b) b (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b)))) (-.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 a a (*.f64 b (neg.f64 b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 a a) (*.f64 b (neg.f64 b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 2) (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) (fma.f64 (neg.f64 b) b (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 a 4)) (pow.f64 (cbrt.f64 a) 2) (*.f64 b (neg.f64 b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) (fma.f64 (neg.f64 b) b (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b))))))) |
| 1× | egg-herbie |
| 897× | fma-neg_binary64 |
| 692× | distribute-rgt-neg-in_binary64 |
| 674× | fma-def_binary64 |
| 606× | distribute-lft-neg-in_binary64 |
| 486× | unswap-sqr_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 228 |
| 1 | 21 | 210 |
| 2 | 42 | 210 |
| 3 | 87 | 210 |
| 4 | 223 | 210 |
| 5 | 763 | 210 |
| 6 | 1792 | 210 |
| 7 | 5169 | 210 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(pow.f64 a 2) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(pow.f64 a 2) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(pow.f64 a 2) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
| Outputs |
|---|
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(pow.f64 a 2) |
(*.f64 a a) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(pow.f64 a 2) |
(*.f64 a a) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(pow.f64 a 2) |
(*.f64 a a) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (pow.f64 a 2)) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
Compiled 777 to 233 computations (70% saved)
4 alts after pruning (4 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 47 | 4 | 51 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 48 | 4 | 52 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.0b | (*.f64 (-.f64 a b) (+.f64 a b)) |
| ▶ | 25.6b | (*.f64 a a) |
| ▶ | 0.2b | (fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b))) |
| ▶ | 27.1b | (*.f64 b (neg.f64 b)) |
Compiled 36 to 20 computations (44.4% saved)
Compiled 6 to 3 computations (50% saved)
Compiled 9 to 4 computations (55.6% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (-.f64 a b) (+.f64 a b)) |
Compiled 17 to 5 computations (70.6% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | a | @ | -inf | (*.f64 (-.f64 a b) (+.f64 a b)) |
| 1.0ms | a | @ | 0 | (*.f64 (-.f64 a b) (+.f64 a b)) |
| 0.0ms | a | @ | inf | (*.f64 (-.f64 a b) (+.f64 a b)) |
| 0.0ms | b | @ | inf | (*.f64 (-.f64 a b) (+.f64 a b)) |
| 0.0ms | b | @ | 0 | (*.f64 (-.f64 a b) (+.f64 a b)) |
| 1× | batch-egg-rewrite |
| 863× | pow1_binary64 |
| 807× | add-log-exp_binary64 |
| 807× | log1p-expm1-u_binary64 |
| 807× | expm1-log1p-u_binary64 |
| 788× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 10 |
| 1 | 140 | 10 |
| 2 | 2219 | 10 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 (-.f64 a b) (+.f64 a b)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (neg.f64 (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (*.f64 (neg.f64 b) b))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (fma.f64 (neg.f64 b) b (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a (-.f64 a b)) (*.f64 b (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 b (-.f64 a b)) (*.f64 a (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a (+.f64 a b)) (*.f64 (neg.f64 b) (+.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 a (-.f64 a b)) 1) (*.f64 (*.f64 b (-.f64 a b)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (+.f64 a b) a) (*.f64 (+.f64 a b) (neg.f64 b)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (*.f64 a a) (*.f64 b b))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (-.f64 (*.f64 a a) (*.f64 b b))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 2) (-.f64 (*.f64 a a) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (fma.f64 a a (*.f64 b (+.f64 a b))) (fma.f64 a a (*.f64 b (-.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (+.f64 a b) (fma.f64 a a (*.f64 b (-.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (pow.f64 a 3) (pow.f64 b 3)) (-.f64 (*.f64 a a) (*.f64 b b))) (-.f64 (pow.f64 a 3) (pow.f64 b 3)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (-.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (fma.f64 a a (*.f64 b (-.f64 b a))) (fma.f64 a a (*.f64 b (+.f64 a b)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (-.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (-.f64 a b) (fma.f64 a a (*.f64 b (+.f64 a b)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (-.f64 (*.f64 a a) (*.f64 b b))) (+.f64 (pow.f64 a 3) (pow.f64 b 3)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (*.f64 a a) 3) (pow.f64 (*.f64 b b) 3)) (+.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (+.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 b b)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 a (-.f64 a b)) 3) (pow.f64 (*.f64 b (-.f64 a b)) 3)) (+.f64 (*.f64 (*.f64 a (-.f64 a b)) (*.f64 a (-.f64 a b))) (-.f64 (*.f64 (*.f64 b (-.f64 a b)) (*.f64 b (-.f64 a b))) (*.f64 (*.f64 a (-.f64 a b)) (*.f64 b (-.f64 a b))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (*.f64 (*.f64 b b) (*.f64 b b))) (+.f64 (*.f64 a a) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 a (-.f64 a b)) (*.f64 a (-.f64 a b))) (*.f64 (*.f64 b (-.f64 a b)) (*.f64 b (-.f64 a b)))) (-.f64 (*.f64 a (-.f64 a b)) (*.f64 b (-.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 a b)) (fma.f64 a a (*.f64 b (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (+.f64 a b)) (+.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (-.f64 a b)) (fma.f64 a a (*.f64 b (-.f64 b a))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (*.f64 a a) (*.f64 b b)) (-.f64 a b)) (-.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 a b) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (fma.f64 a a (*.f64 b (-.f64 b a))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 a b) (-.f64 (*.f64 a a) (*.f64 b b))) (-.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 a b) (-.f64 (pow.f64 a 3) (pow.f64 b 3))) (fma.f64 a a (*.f64 b (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 a b) (-.f64 (*.f64 a a) (*.f64 b b))) (+.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (-.f64 a b)) (+.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (-.f64 (*.f64 a a) (*.f64 b b)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (-.f64 a b) 3) (pow.f64 (+.f64 a b) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (+.f64 a b) 3) (pow.f64 (-.f64 a b) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (-.f64 (*.f64 a a) (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 a a (neg.f64 (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 a (-.f64 a b) (*.f64 b (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b))))))) |
| 1× | egg-herbie |
| 520× | unswap-sqr_binary64 |
| 471× | associate-*l*_binary64 |
| 391× | unsub-neg_binary64 |
| 387× | fma-neg_binary64 |
| 359× | associate-*r*_binary64 |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 24 | 300 |
| 1 | 72 | 192 |
| 2 | 220 | 180 |
| 3 | 324 | 180 |
| 4 | 724 | 180 |
| 5 | 2730 | 180 |
| 6 | 5799 | 180 |
| 7 | 7509 | 180 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(pow.f64 a 2) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(pow.f64 a 2) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(pow.f64 a 2) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 a (*.f64 -1 a)) b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2))) |
| Outputs |
|---|
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 (+.f64 b a) (-.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 (+.f64 b a) (-.f64 a b)) |
(pow.f64 a 2) |
(*.f64 a a) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)) |
(*.f64 a a) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 (+.f64 b a) (-.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 (+.f64 b a) (-.f64 a b)) |
(pow.f64 a 2) |
(*.f64 a a) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)) |
(*.f64 a a) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 (+.f64 b a) (-.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 (+.f64 b a) (-.f64 a b)) |
(pow.f64 a 2) |
(*.f64 a a) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)) |
(*.f64 a a) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 (+.f64 b a) (-.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 (+.f64 b a) (-.f64 a b)) |
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 a (*.f64 -1 a)) b)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 (+.f64 b a) (-.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 (+.f64 b a) (-.f64 a b)) |
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 (+.f64 b a) (-.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 (+.f64 b a) (-.f64 a b)) |
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b))) |
| ✓ | 37.4b | (fma.f64 (neg.f64 b) b (*.f64 b b)) |
Compiled 36 to 8 computations (77.8% saved)
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | b | @ | -inf | (fma.f64 (neg.f64 b) b (*.f64 b b)) |
| 1.0ms | b | @ | inf | (fma.f64 (neg.f64 b) b (*.f64 b b)) |
| 1.0ms | b | @ | 0 | (fma.f64 (neg.f64 b) b (*.f64 b b)) |
| 0.0ms | a | @ | 0 | (fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b))) |
| 0.0ms | a | @ | -inf | (fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b))) |
| 1× | batch-egg-rewrite |
| 806× | pow1_binary64 |
| 749× | add-log-exp_binary64 |
| 748× | log1p-expm1-u_binary64 |
| 748× | expm1-log1p-u_binary64 |
| 732× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 30 |
| 1 | 198 | 14 |
| 2 | 2953 | 14 |
| 1× | node limit |
| Inputs |
|---|
(fma.f64 (neg.f64 b) b (*.f64 b b)) |
(fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 b b) (*.f64 b b))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 b (+.f64 b b))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 b (+.f64 b b))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 b (+.f64 b b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 b (+.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 b (+.f64 b b))) (pow.f64 (cbrt.f64 (*.f64 b (+.f64 b b))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 b (+.f64 b b))) 2) (cbrt.f64 (*.f64 b (+.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 b (+.f64 b b))) (sqrt.f64 (*.f64 b (+.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 b b) 3) (pow.f64 (*.f64 b b) 3)) (+.f64 (pow.f64 b 4) (-.f64 (pow.f64 b 4) (pow.f64 b 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 b 4) (pow.f64 b 4)) (-.f64 (*.f64 b b) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 b (+.f64 b b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 b (+.f64 b b)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 b (+.f64 b b))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 b (+.f64 b b))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 b (+.f64 b b)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 b (+.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 b (+.f64 b b)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 b (+.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 b (+.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 b (+.f64 b b)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 b (+.f64 b b)) (pow.f64 (+.f64 b a) 2))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (*.f64 b b))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a a) (*.f64 (neg.f64 (cbrt.f64 (pow.f64 b 4))) (cbrt.f64 (*.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 b (+.f64 b a)) (*.f64 a (+.f64 b a)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (pow.f64 (+.f64 b a) 2) (*.f64 b (+.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (pow.f64 (+.f64 b a) 2) (fma.f64 (*.f64 b b) 1 (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (pow.f64 (+.f64 b a) 2) (fma.f64 (neg.f64 (cbrt.f64 (*.f64 b b))) (cbrt.f64 (pow.f64 b 4)) (*.f64 b b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a (+.f64 b a)) (*.f64 b (+.f64 b a)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (+.f64 b a) b) (*.f64 (+.f64 b a) a))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (+.f64 b a) a) (*.f64 (+.f64 b a) b))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 (pow.f64 (+.f64 b a) 2) (*.f64 b b)) (*.f64 b b))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (*.f64 a a) (*.f64 b b))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (pow.f64 (+.f64 b a) 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 b a) (+.f64 b a))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (pow.f64 (+.f64 b a) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 b a)) 2) (cbrt.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 b a)) 2) (*.f64 (cbrt.f64 (+.f64 b a)) (+.f64 b a)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 2)) (pow.f64 (cbrt.f64 (+.f64 b a)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 b a)) (*.f64 (sqrt.f64 (+.f64 b a)) (+.f64 b a)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (+.f64 b a) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (+.f64 b a) (sqrt.f64 (+.f64 b a))) (sqrt.f64 (+.f64 b a)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (+.f64 b a) (pow.f64 (cbrt.f64 (+.f64 b a)) 2)) (cbrt.f64 (+.f64 b a)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (+.f64 b a) 3) (+.f64 b a))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 2) (pow.f64 (+.f64 b a) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (fma.f64 a a (*.f64 b (+.f64 b a))) (fma.f64 a a (*.f64 b (+.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (fma.f64 a a (*.f64 b (-.f64 b a))) (fma.f64 a a (*.f64 b (-.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (fma.f64 a a (*.f64 b (-.f64 b a))) (fma.f64 a a (*.f64 b (+.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (pow.f64 (+.f64 b a) 2)) (+.f64 (pow.f64 a 3) (pow.f64 b 3)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (pow.f64 (+.f64 b a) 2) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (+.f64 b a) (fma.f64 a a (*.f64 b (-.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (pow.f64 (+.f64 b a) 2) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (*.f64 (+.f64 b a) (fma.f64 a a (*.f64 b (+.f64 b a)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (*.f64 a a) 3) (pow.f64 (*.f64 b b) 3)) (+.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (+.f64 (pow.f64 b 4) (*.f64 (*.f64 a a) (*.f64 b b)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 3) (pow.f64 (*.f64 b (+.f64 b b)) 3)) (+.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 2) (-.f64 (pow.f64 (*.f64 b (+.f64 b b)) 2) (*.f64 (pow.f64 (+.f64 b a) 2) (*.f64 b (+.f64 b b))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (pow.f64 b 4)) (pow.f64 (+.f64 b a) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 2) (pow.f64 (*.f64 b (+.f64 b b)) 2)) (-.f64 (pow.f64 (+.f64 b a) 2) (*.f64 b (+.f64 b b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 b a)) (fma.f64 a a (*.f64 b (+.f64 b a))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 b a)) (fma.f64 a a (*.f64 b (-.f64 b a))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 b a) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (fma.f64 a a (*.f64 b (+.f64 b a))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 b a) (+.f64 (pow.f64 a 3) (pow.f64 b 3))) (fma.f64 a a (*.f64 b (-.f64 b a))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 b a) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (cbrt.f64 (+.f64 b a)) 2) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 b a) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 (+.f64 b a) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (pow.f64 (+.f64 b a) 2) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (+.f64 b a) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 (+.f64 b a) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (pow.f64 (+.f64 b a) 2))))))) |
| 1× | egg-herbie |
| 841× | fma-neg_binary64 |
| 567× | difference-of-squares_binary64 |
| 453× | fma-def_binary64 |
| 411× | unsub-neg_binary64 |
| 371× | distribute-rgt-in_binary64 |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 35 | 384 |
| 1 | 102 | 204 |
| 2 | 405 | 192 |
| 3 | 585 | 192 |
| 4 | 1162 | 192 |
| 5 | 2749 | 192 |
| 6 | 6681 | 192 |
| 1× | node limit |
| Inputs |
|---|
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
(+.f64 (pow.f64 b 2) (*.f64 -2 (pow.f64 b 2))) |
(+.f64 (pow.f64 b 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)))) |
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)))) |
(pow.f64 a 2) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)) |
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)))) |
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)))) |
(pow.f64 a 2) |
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (*.f64 -2 (pow.f64 b 2))))) |
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (*.f64 -2 (pow.f64 b 2))))) |
(pow.f64 a 2) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 a (*.f64 -1 a)) b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2))) |
| Outputs |
|---|
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
(+.f64 (pow.f64 b 2) (*.f64 -2 (pow.f64 b 2))) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (pow.f64 b 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)))) |
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 b (neg.f64 b) (*.f64 a a)) |
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)))) |
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 b (neg.f64 b) (*.f64 a a)) |
(pow.f64 a 2) |
(*.f64 a a) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)) |
(*.f64 a a) |
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)))) |
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 b (neg.f64 b) (*.f64 a a)) |
(+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (+.f64 (*.f64 -2 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)))) |
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 b (neg.f64 b) (*.f64 a a)) |
(pow.f64 a 2) |
(*.f64 a a) |
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2)) |
(*.f64 a a) |
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (*.f64 -2 (pow.f64 b 2))))) |
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 b (neg.f64 b) (*.f64 a a)) |
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (+.f64 (pow.f64 b 2) (+.f64 (pow.f64 a 2) (*.f64 -2 (pow.f64 b 2))))) |
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 b (neg.f64 b) (*.f64 a a)) |
(pow.f64 a 2) |
(*.f64 a a) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)) |
(*.f64 a a) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 b (neg.f64 b) (*.f64 a a)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 b (neg.f64 b) (*.f64 a a)) |
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 a (*.f64 -1 a)) b)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 b (neg.f64 b) (*.f64 a a)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 b (neg.f64 b) (*.f64 a a)) |
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2))) |
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 b (neg.f64 b) (*.f64 a a)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2))) |
(+.f64 (+.f64 (*.f64 b b) (*.f64 a a)) (fma.f64 -2 (*.f64 b b) (*.f64 (*.f64 0 b) a))) |
(-.f64 (fma.f64 a a 0) (*.f64 b b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 b (neg.f64 b) (*.f64 a a)) |
Compiled 2118 to 800 computations (62.2% saved)
4 alts after pruning (1 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 141 | 1 | 142 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 3 | 3 |
| Total | 142 | 4 | 146 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (-.f64 a b) (+.f64 a b)) |
| ▶ | 0.0b | (fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b))) |
| ✓ | 25.6b | (*.f64 a a) |
| ✓ | 27.1b | (*.f64 b (neg.f64 b)) |
Compiled 32 to 17 computations (46.9% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 b (-.f64 a b)) |
| ✓ | 0.0b | (fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b))) |
Compiled 22 to 5 computations (77.3% saved)
12 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | a | @ | -inf | (fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b))) |
| 0.0ms | a | @ | 0 | (fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b))) |
| 0.0ms | a | @ | -inf | (*.f64 b (-.f64 a b)) |
| 0.0ms | b | @ | -inf | (fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b))) |
| 0.0ms | b | @ | -inf | (*.f64 b (-.f64 a b)) |
| 1× | batch-egg-rewrite |
| 755× | pow1_binary64 |
| 701× | add-log-exp_binary64 |
| 701× | log1p-expm1-u_binary64 |
| 701× | expm1-log1p-u_binary64 |
| 685× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 21 |
| 1 | 131 | 17 |
| 2 | 1851 | 17 |
| 1× | node limit |
| Inputs |
|---|
(fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b))) |
(*.f64 b (-.f64 a b)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 b (-.f64 a b)) (*.f64 a (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a (-.f64 a b)) (*.f64 b (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 a (-.f64 a b)) 1) (*.f64 b (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (-.f64 a b) (+.f64 a b))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 a b) (+.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (-.f64 a b) (+.f64 a b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 (-.f64 a b) (+.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))) (pow.f64 (cbrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))) 2) (cbrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))) (sqrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 a (-.f64 a b)) 3) (pow.f64 (*.f64 b (-.f64 a b)) 3)) (+.f64 (*.f64 (*.f64 a (-.f64 a b)) (*.f64 a (-.f64 a b))) (-.f64 (pow.f64 (*.f64 b (-.f64 a b)) 2) (*.f64 (*.f64 a (-.f64 a b)) (*.f64 b (-.f64 a b))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 a (-.f64 a b)) (*.f64 a (-.f64 a b))) (pow.f64 (*.f64 b (-.f64 a b)) 2)) (-.f64 (*.f64 a (-.f64 a b)) (*.f64 b (-.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (-.f64 a b) (+.f64 a b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (-.f64 a b) (+.f64 a b)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (-.f64 a b) (+.f64 a b))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (-.f64 a b) (+.f64 a b)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 (-.f64 a b) (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (-.f64 a b) (+.f64 a b)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (-.f64 a b) (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (-.f64 a b) (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (-.f64 a b) (+.f64 a b)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a b) (*.f64 (neg.f64 b) b))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 a b) (*.f64 b (neg.f64 b)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 b (-.f64 a b))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (pow.f64 a 3) (pow.f64 b 3)) b) (fma.f64 a a (*.f64 b (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (*.f64 a a) (*.f64 b b)) b) (+.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 b (-.f64 (pow.f64 a 3) (pow.f64 b 3))) (fma.f64 a a (*.f64 b (+.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 b (-.f64 (*.f64 a a) (*.f64 b b))) (+.f64 a b))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 b (-.f64 a b)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 b (-.f64 a b)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 b (-.f64 a b))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 b (-.f64 a b))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 b (-.f64 a b)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 b) (-.f64 a b)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 b (-.f64 a b)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 b 3) (pow.f64 (-.f64 a b) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (-.f64 a b) 3) (pow.f64 b 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 b (-.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 b (-.f64 a b))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 b (-.f64 a b)))))))) |
| 1× | egg-herbie |
| 648× | unswap-sqr_binary64 |
| 514× | associate-*l*_binary64 |
| 429× | distribute-rgt-in_binary64 |
| 387× | associate-*r*_binary64 |
| 376× | distribute-rgt-neg-in_binary64 |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 30 | 510 |
| 1 | 91 | 402 |
| 2 | 307 | 336 |
| 3 | 432 | 336 |
| 4 | 964 | 336 |
| 5 | 3531 | 336 |
| 6 | 7361 | 336 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(pow.f64 a 2) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(pow.f64 a 2) |
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2))) |
(pow.f64 a 2) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 a (*.f64 -1 a)) b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2))) |
(*.f64 a b) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(*.f64 -1 (pow.f64 b 2)) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(*.f64 a b) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(*.f64 a b) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
| Outputs |
|---|
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 b (*.f64 -1 b)) a)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(pow.f64 a 2) |
(*.f64 a a) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a)) |
(*.f64 a a) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 b (*.f64 -1 b)) a))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(pow.f64 a 2) |
(*.f64 a a) |
(+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2)) |
(*.f64 a a) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 b (*.f64 -1 b)) a)) (pow.f64 a 2))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(pow.f64 a 2) |
(*.f64 a a) |
(+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b)) |
(*.f64 a a) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 (+.f64 a (*.f64 -1 a)) b)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (pow.f64 a 2) (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b))) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (+.f64 (*.f64 -1 (*.f64 (+.f64 a (*.f64 -1 a)) b)) (pow.f64 a 2))) |
(fma.f64 -1 (*.f64 b b) (+.f64 (*.f64 (*.f64 0 b) a) (*.f64 a a))) |
(fma.f64 -1 (*.f64 b b) (*.f64 a a)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 a a (*.f64 b (neg.f64 b))) |
(*.f64 a b) |
(*.f64 b a) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(*.f64 -1 (pow.f64 b 2)) |
(neg.f64 (*.f64 b b)) |
(*.f64 b (neg.f64 b)) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(+.f64 (*.f64 a b) (*.f64 -1 (pow.f64 b 2))) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(*.f64 a b) |
(*.f64 b a) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(*.f64 a b) |
(*.f64 b a) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
(+.f64 (*.f64 -1 (pow.f64 b 2)) (*.f64 a b)) |
(fma.f64 a b (neg.f64 (*.f64 b b))) |
(-.f64 (*.f64 b a) (*.f64 b b)) |
(*.f64 b (-.f64 a b)) |
Compiled 804 to 288 computations (64.2% saved)
4 alts after pruning (0 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 61 | 0 | 61 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 3 | 3 |
| Total | 61 | 4 | 65 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (-.f64 a b) (+.f64 a b)) |
| ✓ | 0.0b | (fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b))) |
| ✓ | 25.6b | (*.f64 a a) |
| ✓ | 27.1b | (*.f64 b (neg.f64 b)) |
Compiled 32 to 17 computations (46.9% saved)
| Inputs |
|---|
(*.f64 a a) |
(*.f64 b (neg.f64 b)) |
(*.f64 (-.f64 a b) (+.f64 a b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(fma.f64 (-.f64 a b) a (*.f64 b (-.f64 a b))) |
(fma.f64 (+.f64 a b) (-.f64 a b) (fma.f64 (neg.f64 b) b (*.f64 b b))) |
| Outputs |
|---|
(*.f64 (-.f64 a b) (+.f64 a b)) |
7 calls:
| 6.0ms | a |
| 5.0ms | b |
| 4.0ms | (-.f64 (*.f64 a a) (*.f64 b b)) |
| 3.0ms | (*.f64 a a) |
| 3.0ms | (*.f64 b b) |
| Error | Segments | Branch |
|---|---|---|
| 0.0b | 1 | a |
| 0.0b | 1 | b |
| 0.0b | 1 | (-.f64 (*.f64 a a) (*.f64 b b)) |
| 0.0b | 1 | (*.f64 a a) |
| 0.0b | 1 | (*.f64 a a) |
| 0.0b | 1 | (*.f64 b b) |
| 0.0b | 1 | (*.f64 b b) |
Compiled 82 to 35 computations (57.3% saved)
Total -44.1b remaining (-564%)
Threshold costs -44.1b (-564%)
| Inputs |
|---|
(*.f64 a a) |
(*.f64 b (neg.f64 b)) |
| Outputs |
|---|
(*.f64 a a) |
(*.f64 b (neg.f64 b)) |
(*.f64 a a) |
(*.f64 b (neg.f64 b)) |
(*.f64 a a) |
3 calls:
| 15.0ms | a |
| 11.0ms | b |
| 4.0ms | (*.f64 a a) |
| Error | Segments | Branch |
|---|---|---|
| 7.8b | 5 | a |
| 11.1b | 3 | b |
| 10.1b | 2 | (*.f64 a a) |
Compiled 20 to 12 computations (40% saved)
| 4× | binary-search |
| Time | Left | Right |
|---|---|---|
| 15.0ms | 4.252027937258248e-27 | 1.484730151645835e-26 |
| 15.0ms | 2.4308901448215397e-59 | 1.0391782529757913e-58 |
| 15.0ms | 5.370415733418478e-100 | 8.25044664562966e-91 |
| 15.0ms | -3.0921163998040793e-51 | -4.479290351535437e-52 |
Compiled 14 to 9 computations (35.7% saved)
| 1× | egg-herbie |
| 4× | +-commutative_binary64 |
| 4× | *-commutative_binary64 |
| 3× | sub-neg_binary64 |
| 2× | neg-sub0_binary64 |
| 2× | neg-mul-1_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 22 | 62 |
| 1 | 32 | 62 |
| 2 | 37 | 62 |
| 3 | 40 | 62 |
| 4 | 41 | 62 |
| 1× | done |
| 1× | saturated |
| Inputs |
|---|
(*.f64 (-.f64 a b) (+.f64 a b)) |
(if (<=.f64 a -5210205826708739/1684996666696914987166688442938726917102321526408785780068975640576) (*.f64 a a) (if (<=.f64 a 661266106266779/1231312693637327475383720003129487931408741852202045208373384168882678805359287831606695820465153613775207124697088) (*.f64 b (neg.f64 b)) (if (<=.f64 a 2748807114993049/113078212145816597093331040047546785012958969400039613319782796882727665664) (*.f64 a a) (if (<=.f64 a 5926461975364371/1393796574908163946345982392040522594123776) (*.f64 b (neg.f64 b)) (*.f64 a a))))) |
(*.f64 a a) |
| Outputs |
|---|
(*.f64 (-.f64 a b) (+.f64 a b)) |
(if (<=.f64 a -5210205826708739/1684996666696914987166688442938726917102321526408785780068975640576) (*.f64 a a) (if (<=.f64 a 661266106266779/1231312693637327475383720003129487931408741852202045208373384168882678805359287831606695820465153613775207124697088) (*.f64 b (neg.f64 b)) (if (<=.f64 a 2748807114993049/113078212145816597093331040047546785012958969400039613319782796882727665664) (*.f64 a a) (if (<=.f64 a 5926461975364371/1393796574908163946345982392040522594123776) (*.f64 b (neg.f64 b)) (*.f64 a a))))) |
(*.f64 a a) |
Compiled 49 to 25 computations (49% saved)
Compiled 45 to 20 computations (55.6% saved)
Loading profile data...