Details

Time bar (total: 7.0s)

analyze847.0ms (12.2%)

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)

sample3.5s (49.9%)

Results
1.5s6233×body128valid
743.0ms585×body4096valid
617.0ms635×body2048valid
352.0ms462×body1024valid
125.0ms208×body512valid
59.0ms133×body256valid
Compiler

Compiled 57 to 40 computations (29.8% saved)

simplify55.0ms (0.8%)

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

prune13.0ms (0.2%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
16.5b
Counts
3 → 2
Alt Table
StatusErrorProgram
16.5b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
40.3b
(*.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)

localize12.0ms (0.2%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 re im)
0.6b
(-.f64 (hypot.f64 re im) re)

series44.0ms (0.6%)

Counts
2 → 48
Calls

2 calls:

24.0ms
(hypot.f64 re im)
20.0ms
(-.f64 (hypot.f64 re im) re)

rewrite142.0ms (2%)

Algorithm
batch-egg-rewrite
Rules
578×log1p-expm1-u_binary64
578×expm1-log1p-u_binary64
410×prod-diff_binary64
329×fma-udef_binary64
205×fma-def_binary64
Counts
2 → 103
Calls

2 calls:

138.0ms
(hypot.f64 re im)
138.0ms
(-.f64 (hypot.f64 re im) re)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0511
111111
2142711
3485611
4482611
5497911
000
100

simplify104.0ms (1.5%)

Algorithm
egg-herbie
Rules
313×distribute-rgt-neg-in_binary64
308×distribute-lft-neg-in_binary64
288×sub-neg_binary64
280×distribute-neg-frac_binary64
256×associate-/l/_binary64
Counts
151 → 160
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
080973
1260947
2769923
32933923
44807923
54946923

prune173.0ms (2.5%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New1582160
Fresh011
Picked011
Done000
Total1584162
Error
9.6b
Counts
162 → 4
Alt Table
StatusErrorProgram
16.5b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
53.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
40.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re))))
33.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
Compiler

Compiled 3185 to 1896 computations (40.5% saved)

localize7.0ms (0.1%)

prune9.0ms (0.1%)

Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New000
Fresh022
Picked011
Done011
Total044
Error
9.6b
Counts
4 → 4
Alt Table
StatusErrorProgram
16.5b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
53.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
40.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re))))
33.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
Compiler

Compiled 82 to 64 computations (22% saved)

localize17.0ms (0.3%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (*.f64 re re) (*.f64 im im))
0.6b
(-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re)
28.3b
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))

series56.0ms (0.8%)

Counts
3 → 72
Calls

3 calls:

24.0ms
(-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re)
21.0ms
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))
11.0ms
(+.f64 (*.f64 re re) (*.f64 im im))

rewrite100.0ms (1.4%)

Algorithm
batch-egg-rewrite
Rules
918×log1p-expm1-u_binary64
918×expm1-log1p-u_binary64
104×egg-rr
89×add-sqr-sqrt_binary64
85×add-log-exp_binary64
Counts
3 → 104
Calls

3 calls:

96.0ms
(+.f64 (*.f64 re re) (*.f64 im im))
96.0ms
(-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re)
96.0ms
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0819
118018
2227418
3549618
000
100

simplify117.0ms (1.7%)

Algorithm
egg-herbie
Rules
313×distribute-rgt-neg-in_binary64
308×distribute-lft-neg-in_binary64
288×sub-neg_binary64
280×distribute-neg-frac_binary64
256×associate-/l/_binary64
Counts
176 → 166
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0811177
12621115
27731091
329371091
448111091
549501091

prune189.0ms (2.7%)

Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New1660166
Fresh011
Picked011
Done022
Total1664170
Error
9.6b
Counts
170 → 4
Alt Table
StatusErrorProgram
16.5b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
53.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
40.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re))))
33.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
Compiler

Compiled 3222 to 2111 computations (34.5% saved)

localize15.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))
0.4b
(*.f64 1/2 (/.f64 (pow.f64 im 2) re))
6.7b
(/.f64 (pow.f64 im 2) re)
17.2b
(sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re))))

series95.0ms (1.4%)

Counts
4 → 36
Calls

4 calls:

28.0ms
(sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re))))
23.0ms
(*.f64 1/2 (/.f64 (pow.f64 im 2) re))
23.0ms
(/.f64 (pow.f64 im 2) re)
21.0ms
(*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))

rewrite103.0ms (1.5%)

Algorithm
batch-egg-rewrite
Rules
810×log1p-expm1-u_binary64
810×expm1-log1p-u_binary64
130×egg-rr
89×add-sqr-sqrt_binary64
85×add-log-exp_binary64
Counts
4 → 130
Calls

4 calls:

99.0ms
(*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))
99.0ms
(*.f64 1/2 (/.f64 (pow.f64 im 2) re))
99.0ms
(/.f64 (pow.f64 im 2) re)
99.0ms
(sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re))))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01033
119430
2213530
3498430
000
100

simplify105.0ms (1.5%)

Algorithm
egg-herbie
Rules
688×fma-def_binary64
564×fma-neg_binary64
489×associate-*l*_binary64
434×unswap-sqr_binary64
423×associate-*r/_binary64
Counts
166 → 117
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
012284
123284
240284
373284
4154284
5407284
61269284
72910284
83967284
94874284
104864284

prune710.0ms (10.2%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New1134117
Fresh000
Picked101
Done123
Total1156121
Error
0.1b
Counts
121 → 6
Alt Table
StatusErrorProgram
43.4b
(*.f64 1/2 (expm1.f64 (log1p.f64 (/.f64 im (sqrt.f64 re)))))
16.5b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
50.6b
(*.f64 1/2 (sqrt.f64 (/.f64 im (/.f64 re im))))
43.5b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (*.f64 (/.f64 im (sqrt.f64 re)) (sqrt.f64 1/2))))
40.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re))))
43.3b
(*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 re)) im))
Compiler

Compiled 1745 to 1072 computations (38.6% saved)

regimes406.0ms (5.8%)

Accuracy

Total 6.3b remaining (97.8%)

Threshold costs 0b (0%)

Counts
21 → 2
Compiler

Compiled 1900 to 1473 computations (22.5% saved)

bsearch1.0ms (0%)

Compiler

Compiled 15 to 10 computations (33.3% saved)

simplify6.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
02449
13249
23749
33949
44049
54049

end167.0ms (2.4%)

Compiler

Compiled 141 to 104 computations (26.2% saved)

Profiling

Loading profile data...