Details

Time bar (total: 7.7s)

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

Symmetry

(sort a1 a2)

Results
1.3s1892×body1024valid
1.0s1555×body1024invalid
839.0ms4983×body128valid
410.0ms925×body512valid
343.0ms778×body512invalid
133.0ms453×body256valid
119.0ms389×body256invalid
112.0ms651×body128invalid
5.0msbody2048valid
1.0msbody2048invalid
Compiler

Compiled 68 to 47 computations (30.9% saved)

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

prune7.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.4b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.6b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.5b
(*.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
(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))

series66.0ms (0.9%)

Counts
3 → 64
Calls

3 calls:

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

rewrite51.0ms (0.7%)

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
01134
122432
2274432
Stop Event
node limit
Counts
3 → 87
Calls

3 calls:

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

simplify48.0ms (0.6%)

Algorithm
egg-herbie
Rules
446×fma-neg_binary64
338×unswap-sqr_binary64
316×sub-neg_binary64
210×associate-*r*_binary64
206×associate-*l*_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0781369
12331311
26931263
330751263
Stop Event
node limit
Counts
151 → 116

prune105.0ms (1.4%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1088116
Fresh101
Picked101
Done000
Total1108118
Error
0b
Counts
118 → 8
Alt Table
StatusErrorProgram
16.0b
(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 (/.f64 a2 (/.f64 (sqrt.f64 2) a2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
28.5b
(*.f64 (cos.f64 th) (sqrt.f64 (/.f64 (pow.f64 (pow.f64 (hypot.f64 a1 a2) 2) 2) 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))
0.5b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
0.5b
(/.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (sqrt.f64 2))
0.5b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
0.8b
(/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (pow.f64 (hypot.f64 a1 a2) 2)))
Compiler

Compiled 2343 to 1487 computations (36.5% saved)

localize14.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series77.0ms (1%)

Counts
4 → 48
Calls

4 calls:

59.0ms
(*.f64 (cos.f64 th) (+.f64 (/.f64 a2 (/.f64 (sqrt.f64 2) a2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
8.0ms
(*.f64 (/.f64 a1 (sqrt.f64 2)) a1)
6.0ms
(/.f64 a1 (sqrt.f64 2))
3.0ms
(/.f64 (sqrt.f64 2) a2)

rewrite70.0ms (0.9%)

Algorithm
batch-egg-rewrite
Rules
262×expm1-udef_binary64
262×log1p-udef_binary64
148×add-sqr-sqrt_binary64
140×log1p-expm1-u_binary64
140×expm1-log1p-u_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01346
129244
2433544
Stop Event
node limit
Counts
4 → 114
Calls

4 calls:

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

simplify38.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
0641142
11961142
2598968
32745938
Stop Event
node limit
Counts
162 → 130

prune122.0ms (1.6%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1300130
Fresh077
Picked011
Done000
Total1308138
Error
0b
Counts
138 → 8
Alt Table
StatusErrorProgram
16.0b
(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 (/.f64 a2 (/.f64 (sqrt.f64 2) a2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
28.5b
(*.f64 (cos.f64 th) (sqrt.f64 (/.f64 (pow.f64 (pow.f64 (hypot.f64 a1 a2) 2) 2) 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))
0.5b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
0.5b
(/.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (sqrt.f64 2))
0.5b
(*.f64 (cos.f64 th) (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (pow.f64 2 -1/2)))
0.8b
(/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (pow.f64 (hypot.f64 a1 a2) 2)))
Compiler

Compiled 3139 to 2058 computations (34.4% saved)

localize9.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series163.0ms (2.1%)

Counts
4 → 108
Calls

4 calls:

88.0ms
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
46.0ms
(*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2)))
19.0ms
(*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))
9.0ms
(hypot.f64 a1 a2)

rewrite50.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
577×log-prod_binary64
213×expm1-udef_binary64
213×log1p-udef_binary64
194×pow3_binary64
191×log-pow_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01251
124742
2287642
Stop Event
node limit
Counts
4 → 76
Calls

4 calls:

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

simplify59.0ms (0.8%)

Algorithm
egg-herbie
Rules
786×fma-def_binary64
496×cancel-sign-sub-inv_binary64
404×times-frac_binary64
260×fma-neg_binary64
171×distribute-rgt-neg-in_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01462471
14942282
217762234
Stop Event
node limit
Counts
184 → 159

prune173.0ms (2.2%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New2101211
Fresh246
Picked011
Done011
Total2127219
Error
0b
Counts
219 → 7
Alt Table
StatusErrorProgram
16.0b
(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 (/.f64 a2 (/.f64 (sqrt.f64 2) a2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
0.8b
(/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (pow.f64 (hypot.f64 a1 a2) 2)))
0.4b
(*.f64 (sqrt.f64 1/2) (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)))
28.5b
(*.f64 (cos.f64 th) (sqrt.f64 (/.f64 (pow.f64 (pow.f64 (hypot.f64 a1 a2) 2) 2) 2)))
0.5b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
0.5b
(/.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (sqrt.f64 2))
Compiler

Compiled 4881 to 2936 computations (39.8% saved)

localize9.0ms (0.1%)

Local error

Found 4 expressions with local error:

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

series70.0ms (0.9%)

Counts
3 → 96
Calls

3 calls:

40.0ms
(*.f64 (sqrt.f64 1/2) (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)))
24.0ms
(*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th))
6.0ms
(fma.f64 a2 a2 (*.f64 a1 a1))

rewrite55.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
906×log1p-expm1-u_binary64
906×expm1-log1p-u_binary64
106×add-sqr-sqrt_binary64
102×prod-diff_binary64
99×add-log-exp_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01139
121836
2252636
Stop Event
node limit
Counts
3 → 55
Calls

3 calls:

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

simplify42.0ms (0.5%)

Algorithm
egg-herbie
Rules
790×fma-def_binary64
593×cancel-sign-sub-inv_binary64
524×associate-*l*_binary64
516×associate-*r*_binary64
341×associate--l+_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0891736
12991491
211181434
Stop Event
node limit
Counts
151 → 93

prune97.0ms (1.3%)

Pruning

7 alts after pruning (4 fresh and 3 done)

PrunedKeptTotal
New1220122
Fresh044
Picked011
Done022
Total1227129
Error
0b
Counts
129 → 7
Alt Table
StatusErrorProgram
16.0b
(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 (/.f64 a2 (/.f64 (sqrt.f64 2) a2)) (*.f64 (/.f64 a1 (sqrt.f64 2)) a1)))
0.8b
(/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (pow.f64 (hypot.f64 a1 a2) 2)))
0.4b
(*.f64 (sqrt.f64 1/2) (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)))
28.5b
(*.f64 (cos.f64 th) (sqrt.f64 (/.f64 (pow.f64 (pow.f64 (hypot.f64 a1 a2) 2) 2) 2)))
0.5b
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
0.5b
(/.f64 (*.f64 (pow.f64 (hypot.f64 a1 a2) 2) (cos.f64 th)) (sqrt.f64 2))
Compiler

Compiled 2295 to 1355 computations (41% saved)

regimes743.0ms (9.6%)

Accuracy

Total 0.4b remaining (95.4%)

Threshold costs 0.4b (95.4%)

Counts
90 → 1
Compiler

Compiled 11747 to 8906 computations (24.2% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01118
11318
Stop Event
saturated

end254.0ms (3.3%)

Compiler

Compiled 171 to 123 computations (28.1% saved)

Profiling

Loading profile data...