Details

Time bar (total: 4.6s)

analyze542.0ms (11.7%)

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)

sample2.1s (45.4%)

Results
903.0ms6320×body128valid
424.0ms634×body2048valid
413.0ms517×body4096valid
194.0ms428×body1024valid
74.0ms220×body512valid
32.0ms137×body256valid
Compiler

Compiled 57 to 40 computations (29.8% saved)

simplify29.0ms (0.6%)

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

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Error
11.3b
Counts
3 → 1
Alt Table
StatusErrorProgram
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
Compiler

Compiled 51 to 37 computations (27.5% saved)

localize7.0ms (0.2%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.2b
(sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))
0.8b
(-.f64 (hypot.f64 re im) re)

series43.0ms (0.9%)

Counts
2 → 32
Calls

2 calls:

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

rewrite54.0ms (1.2%)

Algorithm
batch-egg-rewrite
Rules
811×log1p-expm1-u_binary64
811×expm1-log1p-u_binary64
410×prod-diff_binary64
85×add-sqr-sqrt_binary64
81×add-log-exp_binary64
Counts
2 → 74
Calls

2 calls:

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

Useful iterations: 0 (0.0ms)

IterNodesCost
0819
117219
2205319
3573519

simplify45.0ms (1%)

Algorithm
egg-herbie
Rules
529×fma-def_binary64
374×associate-*l*_binary64
337×associate-/l*_binary64
311×times-frac_binary64
237×associate-/r*_binary64
Counts
106 → 119
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01401017
1419994
21385945
35001945

prune85.0ms (1.8%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1136119
Fresh000
Picked011
Done000
Total1137120
Error
0.2b
Counts
120 → 7
Alt Table
StatusErrorProgram
55.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
54.4b
(*.f64 1/2 (+.f64 (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 9))) (-.f64 (*.f64 1/32 (/.f64 (*.f64 (sqrt.f64 2) (pow.f64 im 5)) (sqrt.f64 1/2))) (*.f64 1/256 (/.f64 (*.f64 (sqrt.f64 2) (pow.f64 im 5)) (sqrt.f64 1/2)))))) (*.f64 (/.f64 (*.f64 (pow.f64 im 3) (sqrt.f64 2)) (sqrt.f64 1/2)) (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 5))) -1/16))))
50.0b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
43.8b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 (+.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 re)) (-.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 re))))))
27.5b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 im)))
11.7b
(*.f64 1/2 (pow.f64 (pow.f64 (*.f64 (-.f64 (hypot.f64 re im) re) 2) 1/4) 2))
Compiler

Compiled 2837 to 1941 computations (31.6% saved)

localize10.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.2b
(pow.f64 (*.f64 (-.f64 (hypot.f64 re im) re) 2) 1/4)
0.4b
(pow.f64 (pow.f64 (*.f64 (-.f64 (hypot.f64 re im) re) 2) 1/4) 2)
0.8b
(-.f64 (hypot.f64 re im) re)

series73.0ms (1.6%)

Counts
2 → 48
Calls

2 calls:

42.0ms
(pow.f64 (pow.f64 (*.f64 (-.f64 (hypot.f64 re im) re) 2) 1/4) 2)
31.0ms
(pow.f64 (*.f64 (-.f64 (hypot.f64 re im) re) 2) 1/4)

rewrite50.0ms (1.1%)

Algorithm
batch-egg-rewrite
Rules
468×log-prod_binary64
410×prod-diff_binary64
204×fma-def_binary64
182×expm1-udef_binary64
182×log1p-udef_binary64
Counts
2 → 56
Calls

2 calls:

49.0ms
(pow.f64 (*.f64 (-.f64 (hypot.f64 re im) re) 2) 1/4)
49.0ms
(pow.f64 (pow.f64 (*.f64 (-.f64 (hypot.f64 re im) re) 2) 1/4) 2)
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01026
122625
2246825
3497525

simplify73.0ms (1.6%)

Algorithm
egg-herbie
Rules
834×associate-/r*_binary64
643×fma-def_binary64
332×associate-/r/_binary64
241×cancel-sign-sub-inv_binary64
163×unswap-sqr_binary64
Counts
104 → 140
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02642943
16772871
222072535
357682535

prune205.0ms (4.4%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New2163219
Fresh235
Picked101
Done011
Total2197226
Error
0.1b
Counts
226 → 7
Alt Table
StatusErrorProgram
50.0b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
49.9b
(*.f64 1/2 (pow.f64 (*.f64 (sqrt.f64 im) (pow.f64 (/.f64 1 re) 1/4)) 2))
55.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
11.6b
(*.f64 1/2 (*.f64 (pow.f64 (pow.f64 (-.f64 (hypot.f64 re im) re) 1/4) 2) (pow.f64 (pow.f64 2 1/4) 2)))
52.0b
(*.f64 1/2 (pow.f64 (fma.f64 (*.f64 (/.f64 (*.f64 im im) (*.f64 re re)) (*.f64 (sqrt.f64 im) (pow.f64 (/.f64 1 re) 1/4))) -1/16 (*.f64 (sqrt.f64 im) (pow.f64 (/.f64 1 re) 1/4))) 2))
54.4b
(*.f64 1/2 (+.f64 (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 9))) (-.f64 (*.f64 1/32 (/.f64 (*.f64 (sqrt.f64 2) (pow.f64 im 5)) (sqrt.f64 1/2))) (*.f64 1/256 (/.f64 (*.f64 (sqrt.f64 2) (pow.f64 im 5)) (sqrt.f64 1/2)))))) (*.f64 (/.f64 (*.f64 (pow.f64 im 3) (sqrt.f64 2)) (sqrt.f64 1/2)) (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 5))) -1/16))))
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
Compiler

Compiled 6692 to 4933 computations (26.3% saved)

localize13.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.4b
(*.f64 (pow.f64 (pow.f64 (-.f64 (hypot.f64 re im) re) 1/4) 2) (pow.f64 (pow.f64 2 1/4) 2))
0.4b
(pow.f64 (pow.f64 (-.f64 (hypot.f64 re im) re) 1/4) 2)
0.8b
(-.f64 (hypot.f64 re im) re)
1.0b
(pow.f64 (pow.f64 2 1/4) 2)

series63.0ms (1.4%)

Counts
3 → 32
Calls

3 calls:

42.0ms
(pow.f64 (pow.f64 (-.f64 (hypot.f64 re im) re) 1/4) 2)
21.0ms
(*.f64 (pow.f64 (pow.f64 (-.f64 (hypot.f64 re im) re) 1/4) 2) (pow.f64 (pow.f64 2 1/4) 2))
0.0ms
(pow.f64 (pow.f64 2 1/4) 2)

rewrite60.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
527×log-prod_binary64
410×prod-diff_binary64
243×fma-def_binary64
202×expm1-udef_binary64
202×log1p-udef_binary64
Counts
3 → 72
Calls

3 calls:

58.0ms
(*.f64 (pow.f64 (pow.f64 (-.f64 (hypot.f64 re im) re) 1/4) 2) (pow.f64 (pow.f64 2 1/4) 2))
58.0ms
(pow.f64 (pow.f64 (-.f64 (hypot.f64 re im) re) 1/4) 2)
58.0ms
(pow.f64 (pow.f64 2 1/4) 2)
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01230
127024
2274324
3543824

simplify68.0ms (1.5%)

Algorithm
egg-herbie
Rules
579×associate-/l*_binary64
478×fma-def_binary64
460×associate-/r*_binary64
256×cancel-sign-sub-inv_binary64
248×fma-neg_binary64
Counts
104 → 123
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01761697
15201593
216121415
348981415
449751415

prune166.0ms (3.6%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New2002202
Fresh145
Picked011
Done011
Total2018209
Error
0.0b
Counts
209 → 8
Alt Table
StatusErrorProgram
50.0b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
49.9b
(*.f64 1/2 (pow.f64 (*.f64 (sqrt.f64 im) (pow.f64 (/.f64 1 re) 1/4)) 2))
49.9b
(*.f64 1/2 (*.f64 (pow.f64 (*.f64 (sqrt.f64 im) (pow.f64 (/.f64 1/2 re) 1/4)) 2) (pow.f64 (pow.f64 2 1/4) 2)))
55.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
11.6b
(*.f64 1/2 (*.f64 (pow.f64 (pow.f64 (-.f64 (hypot.f64 re im) re) 1/4) 2) (pow.f64 (pow.f64 2 1/4) 2)))
52.0b
(*.f64 1/2 (pow.f64 (fma.f64 (*.f64 (/.f64 (*.f64 im im) (*.f64 re re)) (*.f64 (sqrt.f64 im) (pow.f64 (/.f64 1 re) 1/4))) -1/16 (*.f64 (sqrt.f64 im) (pow.f64 (/.f64 1 re) 1/4))) 2))
49.8b
(*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 re)) im))
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
Compiler

Compiled 5706 to 4141 computations (27.4% saved)

localize5.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(sqrt.f64 (/.f64 1 re))
0.1b
(*.f64 (sqrt.f64 (/.f64 1 re)) im)

series17.0ms (0.4%)

Counts
2 → 0
Calls

2 calls:

13.0ms
(*.f64 (sqrt.f64 (/.f64 1 re)) im)
4.0ms
(sqrt.f64 (/.f64 1 re))

rewrite44.0ms (0.9%)

Algorithm
batch-egg-rewrite
Rules
543×log1p-expm1-u_binary64
543×expm1-log1p-u_binary64
453×unpow-prod-down_binary64
296×log-prod_binary64
161×pow2_binary64
Counts
2 → 69
Calls

2 calls:

42.0ms
(sqrt.f64 (/.f64 1 re))
42.0ms
(*.f64 (sqrt.f64 (/.f64 1 re)) im)
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0715
113710
2147410
3538910

simplify6.0ms (0.1%)

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
000
100

prune33.0ms (0.7%)

Pruning

6 alts after pruning (3 fresh and 3 done)

PrunedKeptTotal
New67269
Fresh415
Picked011
Done022
Total71677
Error
0.0b
Counts
77 → 6
Alt Table
StatusErrorProgram
11.6b
(*.f64 1/2 (*.f64 (pow.f64 (pow.f64 (-.f64 (hypot.f64 re im) re) 1/4) 2) (pow.f64 (pow.f64 2 1/4) 2)))
52.0b
(*.f64 1/2 (pow.f64 (fma.f64 (*.f64 (/.f64 (*.f64 im im) (*.f64 re re)) (*.f64 (sqrt.f64 im) (pow.f64 (/.f64 1 re) 1/4))) -1/16 (*.f64 (sqrt.f64 im) (pow.f64 (/.f64 1 re) 1/4))) 2))
49.8b
(*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 re)) im))
49.9b
(*.f64 1/2 (pow.f64 (sqrt.f64 (/.f64 im (sqrt.f64 re))) 2))
49.8b
(*.f64 1/2 (/.f64 im (sqrt.f64 re)))
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
Compiler

Compiled 916 to 652 computations (28.8% saved)

regimes721.0ms (15.6%)

Accuracy

Total 6.3b remaining (98.6%)

Threshold costs 0b (0%)

Counts
70 → 2
Compiler

Compiled 8760 to 7042 computations (19.6% saved)

bsearch2.0ms (0%)

Compiler

Compiled 15 to 10 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
02550
13450
23950
34150
44250
54250

end99.0ms (2.2%)

Compiler

Compiled 162 to 121 computations (25.3% saved)

Profiling

Loading profile data...