Details

Time bar (total: 4.3s)

analyze519.0ms (12%)

Algorithm
search
Search
TrueOtherFalseIter
0%50%50%0
0%50%50%1
25%25%50%2
25%25%50%3
31.2%18.7%50%4
31.2%18.7%50%5
34.3%15.6%50%6
34.3%15.6%50%7
35.9%14%50%8
35.9%14%50%9
36.7%13.3%50%10
36.7%13.3%50%11
37.1%12.9%50%12
37.1%12.9%50%13
37.3%12.7%50%14
Compiler

Compiled 20 to 14 computations (30% saved)

sample1.9s (45.2%)

Results
840.0ms6262×body128valid
380.0ms541×body4096valid
354.0ms680×body2048valid
189.0ms434×body1024valid
110.0ms235×body512valid
22.0ms104×body256valid
Compiler

Compiled 57 to 40 computations (29.8% saved)

simplify28.0ms (0.7%)

Algorithm
egg-herbie
Rules
203×fma-def_binary64
142×fma-neg_binary64
51×distribute-rgt-in_binary64
42×cancel-sign-sub-inv_binary64
28×sub-neg_binary64
Counts
1 → 2
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01315
12015
23315
35015
46915
59815
615115
721115
826315
930515
1034315
1137915
1239615
1341515
1442815
1546515
1647715
1748615
1844915

prune4.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
10.9b
Counts
3 → 2
Alt Table
StatusErrorProgram
10.9b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
37.2b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re))))
Compiler

Compiled 85 to 61 computations (28.2% saved)

localize8.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 re im)
0.0b
(sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))
0.9b
(-.f64 (hypot.f64 re im) re)

series73.0ms (1.7%)

Counts
3 → 56
Calls

3 calls:

46.0ms
(sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))
15.0ms
(-.f64 (hypot.f64 re im) re)
12.0ms
(hypot.f64 re im)

rewrite15.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
13×*-un-lft-identity_binary64
13×add-sqr-sqrt_binary64
11×add-cube-cbrt_binary64
prod-diff_binary64
pow1_binary64
Counts
3 → 55
Calls

3 calls:

6.0ms
(sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))
3.0ms
(-.f64 (hypot.f64 re im) re)
0.0ms
(hypot.f64 re im)

simplify86.0ms (2%)

Algorithm
egg-herbie
Rules
994×fma-neg_binary64
747×times-frac_binary64
413×cancel-sign-sub-inv_binary64
173×fma-def_binary64
158×sub-neg_binary64
Counts
111 → 136
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02382332
16112069
220781999
344661989
450151989

prune96.0ms (2.2%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1324136
Fresh011
Picked011
Done000
Total1326138
Error
0.1b
Counts
138 → 6
Alt Table
StatusErrorProgram
11.3b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re))))
52.6b
(*.f64 1/2 (fma.f64 (sqrt.f64 1/2) (*.f64 (*.f64 im (sqrt.f64 2)) (sqrt.f64 (/.f64 1 re))) (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 5))) (*.f64 (/.f64 (*.f64 (pow.f64 im 3) (sqrt.f64 2)) (sqrt.f64 1/2)) -1/16))))
48.9b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
10.9b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
54.8b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
37.2b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re))))
Compiler

Compiled 3337 to 2190 computations (34.4% saved)

localize7.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 re im)
0.4b
(*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re)))
0.9b
(-.f64 (hypot.f64 re im) re)

series47.0ms (1.1%)

Counts
1 → 8
Calls

1 calls:

47.0ms
(*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re)))

rewrite11.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
17×add-sqr-sqrt_binary64
12×sqrt-prod_binary64
associate-*r*_binary64
*-un-lft-identity_binary64
associate-*l*_binary64
Counts
1 → 37
Calls

1 calls:

9.0ms
(*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re)))

simplify64.0ms (1.5%)

Algorithm
egg-herbie
Rules
960×fma-neg_binary64
515×associate-*l*_binary64
429×fma-def_binary64
260×associate-/l*_binary64
230×times-frac_binary64
Counts
45 → 49
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01481187
13721154
212411113
347101111
455281111

prune114.0ms (2.6%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New1530153
Fresh044
Picked011
Done011
Total1536159
Error
0.1b
Counts
159 → 6
Alt Table
StatusErrorProgram
11.3b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re))))
52.6b
(*.f64 1/2 (fma.f64 (sqrt.f64 1/2) (*.f64 (*.f64 im (sqrt.f64 2)) (sqrt.f64 (/.f64 1 re))) (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 5))) (*.f64 (/.f64 (*.f64 (pow.f64 im 3) (sqrt.f64 2)) (sqrt.f64 1/2)) -1/16))))
48.9b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
10.9b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
54.8b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
37.2b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re))))
Compiler

Compiled 3750 to 2435 computations (35.1% saved)

localize10.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (*.f64 re re) (*.f64 im im))
0.0b
(sqrt.f64 (*.f64 2 (-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re)))
0.9b
(-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re)
30.0b
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))

series83.0ms (1.9%)

Counts
4 → 80
Calls

4 calls:

47.0ms
(sqrt.f64 (*.f64 2 (-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re)))
15.0ms
(-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re)
14.0ms
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))
7.0ms
(+.f64 (*.f64 re re) (*.f64 im im))

rewrite31.0ms (0.7%)

Algorithm
rewrite-expression-head
Rules
25×add-sqr-sqrt_binary64
22×*-un-lft-identity_binary64
20×add-cube-cbrt_binary64
18×prod-diff_binary64
17×sqrt-prod_binary64
Counts
4 → 90
Calls

4 calls:

12.0ms
(sqrt.f64 (*.f64 2 (-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re)))
7.0ms
(-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re)
4.0ms
(+.f64 (*.f64 re re) (*.f64 im im))
3.0ms
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))

simplify153.0ms (3.5%)

Algorithm
egg-herbie
Rules
745×fma-neg_binary64
493×cancel-sign-sub-inv_binary64
252×neg-mul-1_binary64
200×fma-def_binary64
189×distribute-rgt-neg-in_binary64
Counts
170 → 202
Iterations

Useful iterations: 5 (0.0ms)

IterNodesCost
02703076
17042606
225052502
345472488
448562476
548452472
649462472

prune121.0ms (2.8%)

Pruning

7 alts after pruning (4 fresh and 3 done)

PrunedKeptTotal
New2011202
Fresh033
Picked011
Done022
Total2017208
Error
0.1b
Counts
208 → 7
Alt Table
StatusErrorProgram
54.8b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
37.6b
(*.f64 1/2 (/.f64 (sqrt.f64 (*.f64 2 (+.f64 (*.f64 im im) 0))) (sqrt.f64 (+.f64 re (hypot.f64 im re)))))
11.3b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re))))
52.6b
(*.f64 1/2 (fma.f64 (sqrt.f64 1/2) (*.f64 (*.f64 im (sqrt.f64 2)) (sqrt.f64 (/.f64 1 re))) (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 5))) (*.f64 (/.f64 (*.f64 (pow.f64 im 3) (sqrt.f64 2)) (sqrt.f64 1/2)) -1/16))))
48.9b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
10.9b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
37.2b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re))))
Compiler

Compiled 5191 to 2820 computations (45.7% saved)

localize12.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(*.f64 2 (+.f64 (*.f64 im im) 0))
0.3b
(/.f64 (sqrt.f64 (*.f64 2 (+.f64 (*.f64 im im) 0))) (sqrt.f64 (+.f64 re (hypot.f64 im re))))
0.3b
(+.f64 re (hypot.f64 im re))
30.3b
(sqrt.f64 (*.f64 2 (+.f64 (*.f64 im im) 0)))

series68.0ms (1.6%)

Counts
4 → 56
Calls

4 calls:

49.0ms
(/.f64 (sqrt.f64 (*.f64 2 (+.f64 (*.f64 im im) 0))) (sqrt.f64 (+.f64 re (hypot.f64 im re))))
13.0ms
(+.f64 re (hypot.f64 im re))
3.0ms
(sqrt.f64 (*.f64 2 (+.f64 (*.f64 im im) 0)))
3.0ms
(*.f64 2 (+.f64 (*.f64 im im) 0))

rewrite30.0ms (0.7%)

Algorithm
rewrite-expression-head
Rules
37×*-un-lft-identity_binary64
29×sqrt-prod_binary64
28×times-frac_binary64
27×add-sqr-sqrt_binary64
25×add-cube-cbrt_binary64
Counts
4 → 114
Calls

4 calls:

9.0ms
(/.f64 (sqrt.f64 (*.f64 2 (+.f64 (*.f64 im im) 0))) (sqrt.f64 (+.f64 re (hypot.f64 im re))))
5.0ms
(*.f64 2 (+.f64 (*.f64 im im) 0))
4.0ms
(sqrt.f64 (*.f64 2 (+.f64 (*.f64 im im) 0)))
3.0ms
(+.f64 re (hypot.f64 im re))

simplify138.0ms (3.2%)

Algorithm
egg-herbie
Rules
910×fma-def_binary64
512×fma-neg_binary64
508×times-frac_binary64
236×cancel-sign-sub-inv_binary64
217×distribute-rgt-in_binary64
Counts
170 → 214
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02913544
16983372
221313293
345523291
449983291
549633291

prune131.0ms (3%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New2095214
Fresh213
Picked101
Done213
Total2147221
Error
0.0b
Counts
221 → 7
Alt Table
StatusErrorProgram
16.8b
(*.f64 1/2 (/.f64 (sqrt.f64 2) (/.f64 (sqrt.f64 (+.f64 re (hypot.f64 im re))) im)))
16.5b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (/.f64 im (sqrt.f64 (+.f64 re (hypot.f64 im re))))))
16.6b
(*.f64 1/2 (*.f64 (/.f64 (sqrt.f64 2) (sqrt.f64 (sqrt.f64 (+.f64 re (hypot.f64 im re))))) (/.f64 im (sqrt.f64 (sqrt.f64 (+.f64 re (hypot.f64 im re)))))))
37.7b
(*.f64 1/2 (*.f64 (sqrt.f64 (sqrt.f64 (*.f64 2 (*.f64 im im)))) (/.f64 (sqrt.f64 (sqrt.f64 (*.f64 2 (*.f64 im im)))) (sqrt.f64 (+.f64 re (hypot.f64 im re))))))
48.1b
(*.f64 1/2 (/.f64 (/.f64 (sqrt.f64 (*.f64 2 (pow.f64 im 4))) im) (sqrt.f64 (+.f64 re (hypot.f64 im re)))))
10.9b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
54.8b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
Compiler

Compiled 5934 to 3283 computations (44.7% saved)

regimes369.0ms (8.6%)

Accuracy

Total 0.4b remaining (89.9%)

Threshold costs 0.4b (89.9%)

Counts
35 → 2
Compiler

Compiled 4511 to 3445 computations (23.6% saved)

bsearch28.0ms (0.6%)

Steps
ItersRangePoint
9
1.925452034007193e-243
5.086813408843877e-234
4.982407308203682e-234
Compiler

Compiled 3 to 2 computations (33.3% saved)

simplify3.0ms (0.1%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
+-commutative_binary64
sub-neg_binary64
neg-sub0_binary64
neg-mul-1_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02141
12841
23341
33541
43641
53641

end113.0ms (2.6%)

Compiler

Compiled 183 to 130 computations (29% saved)

Profiling

Loading profile data...