Details

Time bar (total: 8.0s)

analyze1.1s (13.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.4s (55.3%)

Symmetry

(sort a1 a2)

Results
1.2s1849×body1024valid
1.1s1602×body1024invalid
823.0ms5012×body128valid
406.0ms917×body512valid
357.0ms831×body512invalid
140.0ms470×body256valid
118.0ms698×body128invalid
116.0ms390×body256invalid
8.0msbody2048valid
Compiler

Compiled 68 to 47 computations (30.9% saved)

simplify9.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
Counts
1 → 2
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01320
12718
25318
37618
410318
511718
613218
713418
813618
913618

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

Compiled 108 to 70 computations (35.2% saved)

localize30.0ms (0.4%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 th)
0.2b
(*.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))

series64.0ms (0.8%)

Counts
3 → 64
Calls

3 calls:

46.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
16.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))
1.0ms
(cos.f64 th)

rewrite56.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
523×log-prod_binary64
198×pow1/3_binary64
195×expm1-udef_binary64
195×log1p-udef_binary64
181×pow3_binary64
Counts
3 → 90
Calls

3 calls:

54.0ms
(cos.f64 th)
54.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
54.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01134
122332
2259532
3500632

simplify57.0ms (0.7%)

Algorithm
egg-herbie
Rules
478×associate-/r/_binary64
446×fma-neg_binary64
338×unswap-sqr_binary64
316×sub-neg_binary64
212×associate-/l/_binary64
Counts
154 → 119
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0781369
11971311
26281263
324551221
453111221

prune98.0ms (1.2%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1127119
Fresh101
Picked011
Done000
Total1138121
Error
0b
Counts
121 → 8
Alt Table
StatusErrorProgram
0.7b
(*.f64 (cos.f64 th) (*.f64 (/.f64 1 (pow.f64 2 1/4)) (/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 1/4))))
0.4b
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
0.5b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
17.7b
(pow.f64 (*.f64 (/.f64 (hypot.f64 a1 a2) (pow.f64 2 1/4)) (sqrt.f64 (cos.f64 th))) 2)
0.4b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
0.5b
(/.f64 (/.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (pow.f64 2 1/4)) (pow.f64 2 1/4))
1.1b
(/.f64 (/.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (cbrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))
0.4b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
Compiler

Compiled 2369 to 1490 computations (37.1% saved)

localize10.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 th)
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))

series71.0ms (0.9%)

Counts
2 → 64
Calls

2 calls:

48.0ms
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
23.0ms
(*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th))

rewrite61.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
634×prod-diff_binary64
220×expm1-udef_binary64
220×log1p-udef_binary64
125×add-sqr-sqrt_binary64
122×log1p-expm1-u_binary64
Counts
2 → 66
Calls

2 calls:

60.0ms
(*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th))
60.0ms
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01235
125829
2312829
3492429

simplify136.0ms (1.7%)

Algorithm
egg-herbie
Rules
585×sub-neg_binary64
376×fma-def_binary64
338×unswap-sqr_binary64
293×cancel-sign-sub-inv_binary64
280×associate--l+_binary64
Counts
130 → 96
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0831622
12301538
28521205
338691205
448891205
549791205

prune99.0ms (1.2%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New1223125
Fresh426
Picked011
Done011
Total1267133
Error
0b
Counts
133 → 7
Alt Table
StatusErrorProgram
0.4b
(*.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (pow.f64 2 -1/2))
0.4b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
0.4b
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
0.5b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
17.7b
(pow.f64 (*.f64 (/.f64 (hypot.f64 a1 a2) (pow.f64 2 1/4)) (sqrt.f64 (cos.f64 th))) 2)
0.6b
(*.f64 (/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 1/4)) (/.f64 (cos.f64 th) (pow.f64 2 1/4)))
0.4b
(*.f64 (/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (/.f64 (sqrt.f64 2) (cos.f64 th))) 1)
Compiler

Compiled 2598 to 1697 computations (34.7% saved)

localize10.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 th)
0.0b
(pow.f64 (hypot.f64 a1 a2) 2)
0.3b
(/.f64 (sqrt.f64 2) (cos.f64 th))
0.3b
(/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (/.f64 (sqrt.f64 2) (cos.f64 th)))

series132.0ms (1.7%)

Counts
3 → 64
Calls

3 calls:

87.0ms
(/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (/.f64 (sqrt.f64 2) (cos.f64 th)))
38.0ms
(pow.f64 (hypot.f64 a1 a2) 2)
7.0ms
(/.f64 (sqrt.f64 2) (cos.f64 th))

rewrite67.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
569×log-prod_binary64
201×expm1-udef_binary64
201×log1p-udef_binary64
184×log-pow_binary64
150×prod-diff_binary64
Counts
3 → 123
Calls

3 calls:

64.0ms
(pow.f64 (hypot.f64 a1 a2) 2)
64.0ms
(/.f64 (sqrt.f64 2) (cos.f64 th))
64.0ms
(/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (/.f64 (sqrt.f64 2) (cos.f64 th)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01132
123332
2279232
3512432

simplify53.0ms (0.7%)

Algorithm
egg-herbie
Rules
492×associate-/r/_binary64
338×unswap-sqr_binary64
331×fma-neg_binary64
276×sub-neg_binary64
246×associate-*r*_binary64
Counts
187 → 150
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0801449
12011409
26521051
325251004
452661004

prune146.0ms (1.8%)

Pruning

7 alts after pruning (4 fresh and 3 done)

PrunedKeptTotal
New1781179
Fresh134
Picked011
Done022
Total1797186
Error
0b
Counts
186 → 7
Alt Table
StatusErrorProgram
0.4b
(*.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (pow.f64 2 -1/2))
0.4b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
15.7b
(*.f64 (/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (sqrt.f64 (/.f64 2 (pow.f64 (cos.f64 th) 2)))) 1)
0.4b
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
0.5b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
0.6b
(*.f64 (/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 1/4)) (/.f64 (cos.f64 th) (pow.f64 2 1/4)))
0.4b
(*.f64 (/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (/.f64 (sqrt.f64 2) (cos.f64 th))) 1)
Compiler

Compiled 3719 to 2418 computations (35% saved)

localize11.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series145.0ms (1.8%)

Counts
2 → 72
Calls

2 calls:

81.0ms
(*.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (pow.f64 2 -1/2))
63.0ms
(*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th))

rewrite51.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
533×log-prod_binary64
298×pow2_binary64
208×pow1/3_binary64
207×expm1-udef_binary64
207×log1p-udef_binary64
Counts
2 → 40
Calls

2 calls:

50.0ms
(*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th))
49.0ms
(*.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (pow.f64 2 -1/2))
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01230
124829
2260329
3505529

simplify71.0ms (0.9%)

Algorithm
egg-herbie
Rules
793×fma-def_binary64
593×cancel-sign-sub-inv_binary64
531×associate-*l*_binary64
522×associate-*r*_binary64
341×associate--l+_binary64
Counts
112 → 72
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0871532
12611323
210111266
343081266
450311266

prune120.0ms (1.5%)

Pruning

7 alts after pruning (3 fresh and 4 done)

PrunedKeptTotal
New1470147
Fresh033
Picked011
Done033
Total1477154
Error
0b
Counts
154 → 7
Alt Table
StatusErrorProgram
0.4b
(*.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (pow.f64 2 -1/2))
0.4b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
15.7b
(*.f64 (/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (sqrt.f64 (/.f64 2 (pow.f64 (cos.f64 th) 2)))) 1)
0.4b
(/.f64 (*.f64 (+.f64 (pow.f64 a1 2) (pow.f64 a2 2)) (cos.f64 th)) (sqrt.f64 2))
0.5b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
0.6b
(*.f64 (/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 1/4)) (/.f64 (cos.f64 th) (pow.f64 2 1/4)))
0.4b
(*.f64 (/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (/.f64 (sqrt.f64 2) (cos.f64 th))) 1)
Compiler

Compiled 2878 to 1786 computations (37.9% saved)

regimes876.0ms (11%)

Accuracy

Total 0.4b remaining (90.7%)

Threshold costs 0.4b (90.7%)

Counts
100 → 1
Compiler

Compiled 13071 to 10275 computations (21.4% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01118
11218
21218

end121.0ms (1.5%)

Remove

(sort a1 a2)

Compiler

Compiled 176 to 130 computations (26.1% saved)

Profiling

Loading profile data...