Details

Time bar (total: 3.3s)

analyze7.0ms (0.2%)

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.5s (44.7%)

Results
1.4s8256×body128valid
Compiler

Compiled 84 to 55 computations (34.5% saved)

simplify55.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
0.4b
(/.f64 1/4 (-.f64 4 (/.f64 1 (*.f64 i i))))
46.3b
(/.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))
Compiler

Compiled 107 to 73 computations (31.8% saved)

localize5.0ms (0.2%)

Local error

Found 3 expressions with local error:

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

series8.0ms (0.3%)

Counts
3 → 36
Calls

3 calls:

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

rewrite78.0ms (2.4%)

Algorithm
batch-egg-rewrite
Rules
77×egg-rr
Counts
3 → 77
Calls

2 calls:

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

Useful iterations: 0 (0.0ms)

IterNodesCost
0930
120221
2228821
3537421
000
100

simplify76.0ms (2.3%)

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
113 → 99
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
044372
1108370
2290366
3871366
42646366
54704366
64924366

prune65.0ms (2%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New98199
Fresh011
Picked011
Done000
Total983101
Error
0.0b
Counts
101 → 3
Alt Table
StatusErrorProgram
0.4b
(/.f64 1/4 (-.f64 4 (/.f64 1 (*.f64 i i))))
46.3b
(/.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.6b
(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)))))
Compiler

Compiled 1279 to 1067 computations (16.6% saved)

localize12.0ms (0.3%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8)))
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
(*.f64 i (fma.f64 i i 1/4))

series13.0ms (0.4%)

Counts
3 → 36
Calls

3 calls:

5.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))))
5.0ms
(fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8)))
3.0ms
(*.f64 i (fma.f64 i i 1/4))

rewrite70.0ms (2.1%)

Algorithm
batch-egg-rewrite
Rules
103×egg-rr
Counts
3 → 103
Calls

2 calls:

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01447
129447
2289247
3496947
000
100

simplify184.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
139 → 119
Iterations

Useful iterations: 2 (0.0ms)

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

prune128.0ms (3.9%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New1190119
Fresh011
Picked011
Done011
Total1193122
Error
0.0b
Counts
122 → 3
Alt Table
StatusErrorProgram
0.4b
(/.f64 1/4 (-.f64 4 (/.f64 1 (*.f64 i i))))
46.3b
(/.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.6b
(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)))))
Compiler

Compiled 2940 to 2101 computations (28.5% saved)

localize20.0ms (0.6%)

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))
15.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.4b
(/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i)))

series11.0ms (0.3%)

Counts
4 → 48
Calls

4 calls:

4.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)))
2.0ms
(*.f64 (*.f64 i i) (*.f64 i i))
2.0ms
(-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1)

rewrite89.0ms (2.7%)

Algorithm
batch-egg-rewrite
Rules
159×egg-rr
Counts
4 → 159
Calls

2 calls:

86.0ms
((/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (/.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)) (*.f64 (*.f64 i i) (*.f64 i i)) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
0.0ms
()
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01161
125548
2354248
3499848
000
100

simplify101.0ms (3.1%)

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
207 → 181
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
044408
1110406
2292402
3864402
42624402
54683402
64968402
74932402

prune125.0ms (3.8%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New1801181
Fresh000
Picked101
Done022
Total1813184
Error
0b
Counts
184 → 3
Alt Table
StatusErrorProgram
30.6b
(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)))))
0.4b
(/.f64 1/4 (-.f64 4 (/.f64 1 (*.f64 i i))))
47.3b
(*.f64 (/.f64 (pow.f64 i 4) (fma.f64 i 2 1)) (/.f64 (/.f64 1/4 (*.f64 i i)) (fma.f64 i 2 -1)))
Compiler

Compiled 4294 to 2906 computations (32.3% saved)

localize11.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(/.f64 (/.f64 1/4 (*.f64 i i)) (fma.f64 i 2 -1))
0.5b
(/.f64 1/4 (*.f64 i i))
2.8b
(/.f64 (pow.f64 i 4) (fma.f64 i 2 1))
43.7b
(*.f64 (/.f64 (pow.f64 i 4) (fma.f64 i 2 1)) (/.f64 (/.f64 1/4 (*.f64 i i)) (fma.f64 i 2 -1)))

series13.0ms (0.4%)

Counts
4 → 48
Calls

4 calls:

4.0ms
(/.f64 (/.f64 1/4 (*.f64 i i)) (fma.f64 i 2 -1))
4.0ms
(*.f64 (/.f64 (pow.f64 i 4) (fma.f64 i 2 1)) (/.f64 (/.f64 1/4 (*.f64 i i)) (fma.f64 i 2 -1)))
3.0ms
(/.f64 (pow.f64 i 4) (fma.f64 i 2 1))
2.0ms
(/.f64 1/4 (*.f64 i i))

rewrite108.0ms (3.3%)

Algorithm
batch-egg-rewrite
Rules
156×egg-rr
Counts
4 → 156
Calls

2 calls:

105.0ms
((*.f64 (/.f64 (pow.f64 i 4) (fma.f64 i 2 1)) (/.f64 (/.f64 1/4 (*.f64 i i)) (fma.f64 i 2 -1))) (/.f64 (pow.f64 i 4) (fma.f64 i 2 1)) (/.f64 1/4 (*.f64 i i)) (/.f64 (/.f64 1/4 (*.f64 i i)) (fma.f64 i 2 -1)))
0.0ms
()
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01559
132159
2393659
3484459
000
100

simplify62.0ms (1.9%)

Algorithm
egg-herbie
Rules
863×fma-neg_binary64
673×cancel-sign-sub-inv_binary64
391×unswap-sqr_binary64
343×fma-def_binary64
266×sub-neg_binary64
Counts
204 → 202
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
088699
1258675
2715659
32067643
44122643
54935643

prune199.0ms (6.1%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New2020202
Fresh000
Picked011
Done022
Total2023205
Error
0b
Counts
205 → 3
Alt Table
StatusErrorProgram
30.6b
(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)))))
0.4b
(/.f64 1/4 (-.f64 4 (/.f64 1 (*.f64 i i))))
47.3b
(*.f64 (/.f64 (pow.f64 i 4) (fma.f64 i 2 1)) (/.f64 (/.f64 1/4 (*.f64 i i)) (fma.f64 i 2 -1)))
Compiler

Compiled 4500 to 3293 computations (26.8% saved)

regimes270.0ms (8.2%)

Accuracy

Total 0.3b remaining (99%)

Threshold costs 0.3b (99%)

Counts
113 → 1
Compiler

Compiled 4376 to 3271 computations (25.3% saved)

simplify2.0ms (0.1%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
sub-neg_binary64
*-commutative_binary64
distribute-neg-frac_binary64
neg-sub0_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0913
11313
21913
32113
42213
52013

end103.0ms (3.1%)

Compiler

Compiled 70 to 53 computations (24.3% saved)

Profiling

Loading profile data...