Details

Time bar (total: 3.4s)

analyze13.0ms (0.4%)

Algorithm
search
Search
TrueOtherFalseIter
0%50%50%0
0%50%50%1
0%50%50%2
0%50%50%3
37.5%12.5%50%4
43.7%6.2%50%5
46.9%3.1%50%6
48.4%1.6%50%7
49.2%0.8%50%8
49.6%0.4%50%9
49.8%0.2%50%10
49.9%0.1%50%11
49.9%0%50%12
50%0%50%13
50%0%50%14
Compiler

Compiled 29 to 19 computations (34.5% saved)

sample1.4s (41.7%)

Results
1.3s8256×body128valid
Compiler

Compiled 84 to 55 computations (34.5% saved)

simplify57.0ms (1.7%)

Algorithm
egg-herbie
Rules
581×associate-/r*_binary64
510×distribute-rgt-in_binary64
489×distribute-lft-in_binary64
463×fma-neg_binary64
415×associate-/r/_binary64
Counts
1 → 2
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01131
14026
218517
391513
4234013
5445513
6495813
7507713

prune4.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.3b
Counts
3 → 2
Alt Table
StatusErrorProgram
46.5b
(/.f64 (/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
0.3b
(/.f64 1/4 (-.f64 4 (/.f64 1 (*.f64 i i))))
Compiler

Compiled 107 to 73 computations (31.8% saved)

localize5.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.4b
(/.f64 1/4 (-.f64 4 (/.f64 1 (*.f64 i i))))
0.5b
(/.f64 1 (*.f64 i i))

series5.0ms (0.1%)

Counts
2 → 24
Calls

2 calls:

2.0ms
(/.f64 1/4 (-.f64 4 (/.f64 1 (*.f64 i i))))
2.0ms
(/.f64 1 (*.f64 i i))

rewrite51.0ms (1.5%)

Algorithm
batch-egg-rewrite
Rules
882×log1p-expm1-u_binary64
882×expm1-log1p-u_binary64
92×add-sqr-sqrt_binary64
91×add-cbrt-cube_binary64
91×add-log-exp_binary64
Counts
2 → 48
Calls

2 calls:

50.0ms
(/.f64 1/4 (-.f64 4 (/.f64 1 (*.f64 i i))))
50.0ms
(/.f64 1 (*.f64 i i))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0920
120214
2228814
3537414
000
100

simplify94.0ms (2.8%)

Algorithm
egg-herbie
Rules
590×distribute-rgt-neg-in_binary64
538×distribute-lft-neg-in_binary64
472×associate-*l*_binary64
438×fma-neg_binary64
414×unswap-sqr_binary64
Counts
72 → 65
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
041273
1104271
2280267
3846267
42593267
54622267
64902267
74992267

prune70.0ms (2.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New63265
Fresh011
Picked101
Done000
Total64367
Error
0b
Counts
67 → 3
Alt Table
StatusErrorProgram
46.5b
(/.f64 (/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
30.5b
(neg.f64 (fma.f64 i (*.f64 i (fma.f64 i i 1/4)) (fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8)))))
17.5b
(sqrt.f64 (/.f64 1/16 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2)))
Compiler

Compiled 847 to 700 computations (17.4% saved)

localize7.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.1b
(pow.f64 (-.f64 4 (pow.f64 i -2)) 2)
0.2b
(/.f64 1/16 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2))
8.0b
(sqrt.f64 (/.f64 1/16 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2)))

series8.0ms (0.2%)

Counts
3 → 36
Calls

3 calls:

3.0ms
(sqrt.f64 (/.f64 1/16 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2)))
3.0ms
(/.f64 1/16 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2))
2.0ms
(pow.f64 (-.f64 4 (pow.f64 i -2)) 2)

rewrite58.0ms (1.7%)

Algorithm
batch-egg-rewrite
Rules
429×log-prod_binary64
275×pow2_binary64
190×expm1-udef_binary64
190×log1p-udef_binary64
186×pow1/3_binary64
Counts
3 → 102
Calls

3 calls:

56.0ms
(pow.f64 (-.f64 4 (pow.f64 i -2)) 2)
56.0ms
(/.f64 1/16 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2))
56.0ms
(sqrt.f64 (/.f64 1/16 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01138
124733
2258933
3483133
000
100

simplify61.0ms (1.8%)

Algorithm
egg-herbie
Rules
720×associate-*l*_binary64
529×times-frac_binary64
482×associate-*r*_binary64
447×unswap-sqr_binary64
444×fma-neg_binary64
Counts
138 → 140
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
069534
1188532
2470528
31326528
44032528
55423528

prune125.0ms (3.7%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New1400140
Fresh022
Picked011
Done000
Total1403143
Error
0b
Counts
143 → 3
Alt Table
StatusErrorProgram
46.5b
(/.f64 (/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
30.5b
(neg.f64 (fma.f64 i (*.f64 i (fma.f64 i i 1/4)) (fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8)))))
17.5b
(sqrt.f64 (/.f64 1/16 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2)))
Compiler

Compiled 2165 to 1872 computations (13.5% saved)

localize11.0ms (0.3%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 i (*.f64 i (fma.f64 i i 1/4)) (fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8))))
0.0b
(fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8)))
0.0b
(*.f64 i (fma.f64 i i 1/4))

series11.0ms (0.3%)

Counts
3 → 36
Calls

3 calls:

4.0ms
(fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8)))
4.0ms
(fma.f64 i (*.f64 i (fma.f64 i i 1/4)) (fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8))))
3.0ms
(*.f64 i (fma.f64 i i 1/4))

rewrite85.0ms (2.5%)

Algorithm
batch-egg-rewrite
Rules
534×log-prod_binary64
225×expm1-udef_binary64
225×log1p-udef_binary64
194×log-pow_binary64
187×fma-def_binary64
Counts
3 → 106
Calls

3 calls:

83.0ms
(fma.f64 i (*.f64 i (fma.f64 i i 1/4)) (fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8))))
83.0ms
(fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8)))
83.0ms
(*.f64 i (fma.f64 i i 1/4))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01447
129447
2289247
3496947
000
100

simplify189.0ms (5.6%)

Algorithm
egg-herbie
Rules
748×unswap-sqr_binary64
714×distribute-rgt-out_binary64
623×sqr-pow_binary64
596×distribute-lft-out_binary64
568×*-commutative_binary64
Counts
142 → 121
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
026452
164432
2153420
3411420
41493420
53328420
63320420
73674420
84015420
94425420
104308420
114708420
124703420
134935420
144870420

prune110.0ms (3.2%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New1210121
Fresh011
Picked011
Done011
Total1213124
Error
0b
Counts
124 → 3
Alt Table
StatusErrorProgram
46.5b
(/.f64 (/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
30.5b
(neg.f64 (fma.f64 i (*.f64 i (fma.f64 i i 1/4)) (fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8)))))
17.5b
(sqrt.f64 (/.f64 1/16 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2)))
Compiler

Compiled 3003 to 2141 computations (28.7% saved)

localize10.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1)
0.1b
(*.f64 (*.f64 i i) (*.f64 i i))
16.0b
(/.f64 (/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
42.5b
(/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i)))

series13.0ms (0.4%)

Counts
4 → 48
Calls

4 calls:

5.0ms
(-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1)
3.0ms
(/.f64 (/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
3.0ms
(/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i)))
3.0ms
(*.f64 (*.f64 i i) (*.f64 i i))

rewrite85.0ms (2.5%)

Algorithm
batch-egg-rewrite
Rules
508×prod-diff_binary64
200×log1p-udef_binary64
199×expm1-udef_binary64
161×egg-rr
151×times-frac_binary64
Counts
4 → 161
Calls

4 calls:

82.0ms
(-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1)
82.0ms
(*.f64 (*.f64 i i) (*.f64 i i))
82.0ms
(/.f64 (/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
82.0ms
(/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01161
125548
2354248
3499848
000
100

simplify111.0ms (3.3%)

Algorithm
egg-herbie
Rules
602×distribute-rgt-neg-in_binary64
550×distribute-lft-neg-in_binary64
485×associate-*l*_binary64
444×fma-neg_binary64
414×unswap-sqr_binary64
Counts
209 → 183
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
044408
1110406
2292402
3864402
42624402
54683402
64968402
74932402

prune192.0ms (5.7%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New1830183
Fresh000
Picked011
Done022
Total1833186
Error
0b
Counts
186 → 3
Alt Table
StatusErrorProgram
46.5b
(/.f64 (/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
30.5b
(neg.f64 (fma.f64 i (*.f64 i (fma.f64 i i 1/4)) (fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8)))))
17.5b
(sqrt.f64 (/.f64 1/16 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2)))
Compiler

Compiled 4316 to 2921 computations (32.3% saved)

regimes534.0ms (15.8%)

Accuracy

Total 0.3b remaining (98.5%)

Threshold costs 0.3b (98.5%)

Counts
203 → 1
Compiler

Compiled 7282 to 5633 computations (22.6% saved)

simplify2.0ms (0.1%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
sub-neg_binary64
*-commutative_binary64
neg-sub0_binary64
neg-mul-1_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0913
11113
21513
31713
41813
51813

end63.0ms (1.9%)

Compiler

Compiled 77 to 57 computations (26% saved)

Profiling

Loading profile data...