Details

Time bar (total: 7.6s)

analyze1.1s (13.9%)

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.2s (55.5%)

Results
1.2s1892×body1024valid
1.0s1555×body1024invalid
864.0ms4983×body128valid
395.0ms925×body512valid
325.0ms778×body512invalid
143.0ms453×body256valid
120.0ms389×body256invalid
110.0ms651×body128invalid
3.0msbody2048valid
1.0msbody2048invalid
Compiler

Compiled 46 to 32 computations (30.4% saved)

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

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

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

Compiled 108 to 70 computations (35.2% saved)

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

18 calls:

7.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
6.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
5.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))
a2
0

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

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

prune100.0ms (1.3%)

Pruning

8 alts after pruning (8 fresh and 0 done)

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

Compiled 2343 to 1487 computations (36.5% saved)

localize10.0ms (0.1%)

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)

series103.0ms (1.3%)

Counts
4 → 48
Calls

18 calls:

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

rewrite64.0ms (0.8%)

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

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

prune106.0ms (1.4%)

Pruning

8 alts after pruning (7 fresh and 1 done)

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

series168.0ms (2.2%)

Counts
4 → 108
Calls

27 calls:

16.0ms
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
th
inf
12.0ms
(*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2)))
a2
-inf
11.0ms
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
a1
0
10.0ms
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
a1
-inf
9.0ms
(*.f64 (cos.f64 th) (*.f64 (hypot.f64 a1 a2) (*.f64 (hypot.f64 a1 a2) (pow.f64 2 -1/2))))
a2
inf

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

simplify53.0ms (0.7%)

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

prune153.0ms (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.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.8b
(/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (pow.f64 (hypot.f64 a1 a2) 2)))
28.5b
(*.f64 (cos.f64 th) (sqrt.f64 (/.f64 (pow.f64 (pow.f64 (hypot.f64 a1 a2) 2) 2) 2)))
0.4b
(*.f64 (sqrt.f64 1/2) (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)))
Compiler

Compiled 4881 to 2936 computations (39.8% saved)

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

series80.0ms (1.1%)

Counts
3 → 96
Calls

24 calls:

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

rewrite48.0ms (0.6%)

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

simplify43.0ms (0.6%)

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

prune85.0ms (1.1%)

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.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.8b
(/.f64 (cos.f64 th) (/.f64 (sqrt.f64 2) (pow.f64 (hypot.f64 a1 a2) 2)))
28.5b
(*.f64 (cos.f64 th) (sqrt.f64 (/.f64 (pow.f64 (pow.f64 (hypot.f64 a1 a2) 2) 2) 2)))
0.4b
(*.f64 (sqrt.f64 1/2) (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)))
Compiler

Compiled 2295 to 1355 computations (41% saved)

regimes757.0ms (9.9%)

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

end252.0ms (3.3%)

Stop Event
fuel
Compiler

Compiled 171 to 123 computations (28.1% saved)

Profiling

Loading profile data...