Details

Time bar (total: 8.3s)

analyze1.1s (12.8%)

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.3s (51.5%)

Symmetry

(sort a1 a2)

Results
1.2s1796×body1024valid
1.0s1583×body1024invalid
827.0ms5056×body128valid
406.0ms941×body512valid
380.0ms871×body512invalid
136.0ms462×body256valid
129.0ms727×body128invalid
112.0ms366×body256invalid
2.0msbody2048valid
Compiler

Compiled 68 to 47 computations (30.9% saved)

simplify11.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.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)

localize8.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))

series74.0ms (0.9%)

Counts
3 → 84
Calls

3 calls:

48.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
19.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))
7.0ms
(fma.f64 a1 a1 (*.f64 a2 a2))

rewrite49.0ms (0.6%)

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

Useful iterations: 1 (0.0ms)

IterNodesCost
01139
122436
2274436
Stop Event
node limit
Counts
3 → 94
Calls

3 calls:

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

simplify46.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

prune118.0ms (1.4%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1166122
Fresh011
Picked101
Done000
Total1177124
Error
0.0b
Counts
124 → 7
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 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
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.2b
(*.f64 (cos.f64 th) (pow.f64 (cbrt.f64 (/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (sqrt.f64 2))) 3))
0.5b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
0.5b
(*.f64 (cos.f64 th) (pow.f64 (/.f64 (hypot.f64 a1 a2) (pow.f64 2 1/4)) 2))
0.6b
(*.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))))
Compiler

Compiled 2349 to 1519 computations (35.3% saved)

localize11.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.2b
(*.f64 (/.f64 a1 (sqrt.f64 2)) a1)
0.3b
(/.f64 (*.f64 a2 a2) (sqrt.f64 2))
0.4b
(/.f64 a1 (sqrt.f64 2))

series79.0ms (0.9%)

Counts
4 → 60
Calls

4 calls:

55.0ms
(*.f64 (cos.f64 th) (+.f64 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
10.0ms
(/.f64 (*.f64 a2 a2) (sqrt.f64 2))
7.0ms
(*.f64 (/.f64 a1 (sqrt.f64 2)) a1)
6.0ms
(/.f64 a1 (sqrt.f64 2))

rewrite68.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
252×expm1-udef_binary64
252×log1p-udef_binary64
222×fma-neg_binary64
143×add-sqr-sqrt_binary64
136×log1p-expm1-u_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01349
128647
2412747
Stop Event
node limit
Counts
4 → 115
Calls

4 calls:

66.0ms
(*.f64 (cos.f64 th) (+.f64 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
66.0ms
(*.f64 (/.f64 a1 (sqrt.f64 2)) a1)
66.0ms
(/.f64 (*.f64 a2 a2) (sqrt.f64 2))
66.0ms
(/.f64 a1 (sqrt.f64 2))

simplify40.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

prune126.0ms (1.5%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1331134
Fresh156
Picked011
Done000
Total1347141
Error
0.0b
Counts
141 → 7
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 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
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.2b
(*.f64 (cos.f64 th) (pow.f64 (cbrt.f64 (/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (sqrt.f64 2))) 3))
0.5b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
0.4b
(*.f64 (cos.f64 th) (+.f64 (pow.f64 (/.f64 a2 (pow.f64 2 1/4)) 2) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
0.6b
(*.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))))
Compiler

Compiled 3162 to 2087 computations (34% saved)

localize12.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(/.f64 a2 (pow.f64 2 1/4))
0.2b
(*.f64 (/.f64 a1 (sqrt.f64 2)) a1)
0.3b
(pow.f64 (/.f64 a2 (pow.f64 2 1/4)) 2)
0.4b
(/.f64 a1 (sqrt.f64 2))

series68.0ms (0.8%)

Counts
2 → 24
Calls

2 calls:

40.0ms
(pow.f64 (/.f64 a2 (pow.f64 2 1/4)) 2)
27.0ms
(/.f64 a2 (pow.f64 2 1/4))

rewrite39.0ms (0.5%)

Algorithm
batch-egg-rewrite
Rules
621×log1p-expm1-u_binary64
621×expm1-log1p-u_binary64
300×log-prod_binary64
121×expm1-udef_binary64
121×log1p-udef_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0717
115516
2178416
Stop Event
node limit
Counts
2 → 78
Calls

2 calls:

38.0ms
(/.f64 a2 (pow.f64 2 1/4))
38.0ms
(pow.f64 (/.f64 a2 (pow.f64 2 1/4)) 2)

simplify64.0ms (0.8%)

Algorithm
egg-herbie
Rules
785×sqr-pow_binary64
422×associate-*l*_binary64
336×cube-prod_binary64
332×pow-sqr_binary64
311×associate-*r*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
010192
121192
240192
394192
4313192
51469192
61663192
71781192
81927192
92117192
102367192
112697192
123129192
133665192
144357192
Stop Event
node limit
Counts
102 → 82

prune129.0ms (1.6%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New1390139
Fresh055
Picked011
Done011
Total1397146
Error
0.0b
Counts
146 → 7
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 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
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.2b
(*.f64 (cos.f64 th) (pow.f64 (cbrt.f64 (/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (sqrt.f64 2))) 3))
0.5b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
0.4b
(*.f64 (cos.f64 th) (+.f64 (pow.f64 (/.f64 a2 (pow.f64 2 1/4)) 2) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
0.6b
(*.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))))
Compiler

Compiled 3198 to 2294 computations (28.3% saved)

localize9.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series122.0ms (1.5%)

Counts
4 → 88
Calls

4 calls:

67.0ms
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
23.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2))
23.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1))
8.0ms
(/.f64 (cos.f64 th) (sqrt.f64 2))

rewrite76.0ms (0.9%)

Algorithm
batch-egg-rewrite
Rules
512×fma-def_binary64
246×expm1-udef_binary64
246×log1p-udef_binary64
243×fma-neg_binary64
164×egg-rr
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01356
128354
2389854
Stop Event
node limit
Counts
4 → 164
Calls

4 calls:

73.0ms
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
73.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2))
73.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1))
73.0ms
(/.f64 (cos.f64 th) (sqrt.f64 2))

simplify58.0ms (0.7%)

Algorithm
egg-herbie
Rules
547×fma-neg_binary64
398×sub-neg_binary64
338×unswap-sqr_binary64
221×associate-*r*_binary64
193×associate-*l*_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0902134
12972126
28591810
334481806
Stop Event
node limit
Counts
252 → 201

prune209.0ms (2.5%)

Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New2401241
Fresh044
Picked011
Done022
Total2408248
Error
0b
Counts
248 → 8
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 (/.f64 (*.f64 a2 a2) (sqrt.f64 2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
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.2b
(*.f64 (cos.f64 th) (pow.f64 (cbrt.f64 (/.f64 (pow.f64 (hypot.f64 a1 a2) 2) (sqrt.f64 2))) 3))
0.5b
(fma.f64 (*.f64 (*.f64 (cos.f64 th) a2) a2) (pow.f64 2 -1/2) (/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (*.f64 a1 a1))))
0.6b
(*.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.5b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
0.4b
(*.f64 (cos.f64 th) (+.f64 (pow.f64 (/.f64 a2 (pow.f64 2 1/4)) 2) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
Compiler

Compiled 6254 to 3577 computations (42.8% saved)

regimes1.3s (15.2%)

Accuracy

Total 0.4b remaining (91.5%)

Threshold costs 0.4b (91.5%)

Counts
151 → 1
Compiler

Compiled 22831 to 17395 computations (23.8% saved)

simplify6.0ms (0.1%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01325
11525
Stop Event
saturated

end277.0ms (3.3%)

Compiler

Compiled 231 to 176 computations (23.8% saved)

Profiling

Loading profile data...