Details

Time bar (total: 8.5s)

analyze1.0s (12.3%)

Algorithm
search
Search
TrueOtherFalseIter
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
0%99.9%0.1%5
25%74.9%0.1%6
25%74.9%0.1%7
25%74.9%0.1%8
25%74.9%0.1%9
25%64%11.1%10
31.2%54.6%14.2%11
39%44.1%16.9%12
39%41.5%19.5%13
42.9%37%20.1%14
Compiler

Compiled 23 to 16 computations (30.4% saved)

sample4.8s (56.5%)

Results
1.2s1778×body1024valid
1.0s1552×body1024invalid
988.0ms956×body512valid
818.0ms5029×body128valid
361.0ms837×body512invalid
153.0ms486×body256valid
118.0ms384×body256invalid
117.0ms662×body128invalid
7.0msbody2048valid
Compiler

Compiled 46 to 32 computations (30.4% saved)

preprocess30.0ms (0.4%)

Algorithm
egg-herbie
Rules
96×fma-def_binary64
70×*-commutative_binary64
57×associate-/l*_binary64
30×associate-/r/_binary64
26×distribute-rgt-out_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02580
16972
216072
324372
432172
537572
642072
747472
848072
033
133
Stop Event
unsound
saturated
Symmetry

(sort a1 a2)

Compiler

Compiled 22 to 15 computations (31.8% saved)

simplify10.0ms (0.1%)

Algorithm
egg-herbie
Rules
32×fma-def_binary64
23×*-commutative_binary64
20×associate-/l*_binary64
11×associate-/r/_binary64
associate-*r/_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01320
12718
25818
38818
411518
513518
615218
717018
817218
Stop Event
saturated
Counts
1 → 2

prune4.0ms (0%)

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 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.5b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
Compiler

Compiled 108 to 70 computations (35.2% saved)

localize10.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 a1 a1 (*.f64 a2 a2))
0.1b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.4b
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))

series69.0ms (0.8%)

Counts
3 → 84
Calls

21 calls:

8.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
th
-inf
6.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
th
inf
5.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
th
0
5.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
a1
-inf
4.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
a1
inf

rewrite50.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
523×log-prod_binary64
195×expm1-udef_binary64
195×log1p-udef_binary64
182×pow3_binary64
171×log-pow_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01139
122436
2272936
Stop Event
node limit
Counts
3 → 94

simplify49.0ms (0.6%)

Algorithm
egg-herbie
Rules
488×associate-/r/_binary64
338×unswap-sqr_binary64
331×fma-neg_binary64
276×sub-neg_binary64
206×associate-/l/_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0691517
12011427
26041383
327571341
Stop Event
node limit
Counts
178 → 122

prune108.0ms (1.3%)

Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New1175122
Fresh101
Picked101
Done000
Total1195124
Error
0b
Counts
124 → 5
Alt Table
StatusErrorProgram
0.4b
(*.f64 (cos.f64 th) (+.f64 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
0.4b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
0.4b
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
0.4b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
0.4b
(/.f64 (/.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (pow.f64 2 1/4)) (pow.f64 2 1/4))
Compiler

Compiled 2265 to 1449 computations (36% saved)

localize12.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f64 (cos.f64 th) (+.f64 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
0.1b
(*.f64 (/.f64 a1 (sqrt.f64 2)) a1)
0.3b
(/.f64 (*.f64 a2 a2) (sqrt.f64 2))
0.5b
(/.f64 a1 (sqrt.f64 2))

series78.0ms (0.9%)

Counts
4 → 60
Calls

18 calls:

9.0ms
(*.f64 (cos.f64 th) (+.f64 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
a2
0
8.0ms
(*.f64 (cos.f64 th) (+.f64 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
th
-inf
7.0ms
(*.f64 (cos.f64 th) (+.f64 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
th
inf
6.0ms
(*.f64 (cos.f64 th) (+.f64 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
th
0
6.0ms
(*.f64 (cos.f64 th) (+.f64 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
a1
0

rewrite67.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
252×expm1-udef_binary64
252×log1p-udef_binary64
222×fma-neg_binary64
147×add-sqr-sqrt_binary64
143×*-un-lft-identity_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01349
128647
2413647
Stop Event
node limit
Counts
4 → 115

simplify43.0ms (0.5%)

Algorithm
egg-herbie
Rules
485×associate-/r/_binary64
338×unswap-sqr_binary64
331×fma-neg_binary64
276×sub-neg_binary64
205×associate-/l/_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0641250
11961250
25981076
327451046
Stop Event
node limit
Counts
175 → 134

prune105.0ms (1.2%)

Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New1340134
Fresh044
Picked011
Done000
Total1345139
Error
0b
Counts
139 → 5
Alt Table
StatusErrorProgram
0.4b
(*.f64 (cos.f64 th) (+.f64 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
0.4b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
0.4b
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
0.4b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
0.4b
(/.f64 (/.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (pow.f64 2 1/4)) (pow.f64 2 1/4))
Compiler

Compiled 3068 to 2009 computations (34.5% saved)

localize10.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 a1 a2)
0.0b
(pow.f64 (hypot.f64 a1 a2) 2)
0.1b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
0.4b
(*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2))

series161.0ms (1.9%)

Counts
4 → 108
Calls

27 calls:

9.0ms
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
a1
-inf
9.0ms
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
a2
inf
9.0ms
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
th
-inf
8.0ms
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
a2
-inf
8.0ms
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
th
inf

rewrite50.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
533×log-prod_binary64
208×pow1/3_binary64
207×expm1-udef_binary64
207×log1p-udef_binary64
189×pow3_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01242
124940
2278240
Stop Event
node limit
Counts
4 → 105

simplify48.0ms (0.6%)

Algorithm
egg-herbie
Rules
653×fma-def_binary64
546×associate-*r*_binary64
530×associate-*l*_binary64
451×cancel-sign-sub-inv_binary64
184×times-frac_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01121905
13651696
212591648
Stop Event
node limit
Counts
213 → 163

prune125.0ms (1.5%)

Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New1630163
Fresh033
Picked011
Done011
Total1635168
Error
0b
Counts
168 → 5
Alt Table
StatusErrorProgram
0.4b
(*.f64 (cos.f64 th) (+.f64 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
0.4b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
0.4b
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
0.4b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
0.4b
(/.f64 (/.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (pow.f64 2 1/4)) (pow.f64 2 1/4))
Compiler

Compiled 3227 to 2032 computations (37% saved)

localize10.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (pow.f64 a1 2) (pow.f64 a2 2))
0.2b
(*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th))
0.4b
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))

series72.0ms (0.9%)

Counts
3 → 70
Calls

24 calls:

6.0ms
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
th
-inf
6.0ms
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
th
inf
5.0ms
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
th
0
5.0ms
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
a1
inf
5.0ms
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
a2
-inf

rewrite64.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
634×prod-diff_binary64
220×log1p-udef_binary64
130×add-sqr-sqrt_binary64
128×pow1_binary64
126×*-un-lft-identity_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01245
126136
2341936
Stop Event
node limit
Counts
3 → 101

simplify54.0ms (0.6%)

Algorithm
egg-herbie
Rules
375×fma-def_binary64
293×cancel-sign-sub-inv_binary64
280×associate--l+_binary64
257×associate-*r*_binary64
238×associate--r+_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0831646
12651562
29311229
349171229
Stop Event
node limit
Counts
171 → 134

prune104.0ms (1.2%)

Pruning

5 alts after pruning (2 fresh and 3 done)

PrunedKeptTotal
New1340134
Fresh022
Picked011
Done022
Total1345139
Error
0b
Counts
139 → 5
Alt Table
StatusErrorProgram
0.4b
(*.f64 (cos.f64 th) (+.f64 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
0.4b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
0.4b
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
0.4b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
0.4b
(/.f64 (/.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (pow.f64 2 1/4)) (pow.f64 2 1/4))
Compiler

Compiled 2603 to 1613 computations (38% saved)

regimes1.1s (12.7%)

Accuracy

Total 0.4b remaining (93%)

Threshold costs 0.4b (93%)

Counts
131 → 1
Compiler

Compiled 17253 to 13466 computations (21.9% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
+-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01325
11625
Stop Event
saturated

end237.0ms (2.8%)

Stop Event
fuel
Compiler

Compiled 162 to 122 computations (24.7% saved)

Profiling

Loading profile data...