Details

Time bar (total: 4.4s)

analyze477.0ms (10.8%)

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.8s (40.8%)

Results
795.0ms6317×body128valid
357.0ms660×body2048valid
307.0ms503×body4096valid
184.0ms408×body1024valid
80.0ms245×body512valid
26.0ms123×body256valid
Compiler

Compiled 57 to 40 computations (29.8% saved)

simplify22.0ms (0.5%)

Algorithm
egg-herbie
Rules
201×fma-def_binary64
142×fma-neg_binary64
51×distribute-rgt-in_binary64
43×cancel-sign-sub-inv_binary64
27×sub-neg_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01315
12015
23315
35315
48015
510915
618015
728615
841015
949315
1061015
1168215
1270515
1374415
1479315
1585615
1689215
1790115
Stop Event
saturated
Counts
1 → 2

prune4.0ms (0.1%)

Pruning

1 alts after pruning (1 fresh and 0 done)

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

Compiled 51 to 37 computations (27.5% saved)

localize6.0ms (0.1%)

Local error

Found 2 expressions with local error:

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

series39.0ms (0.9%)

Counts
2 → 32
Calls

2 calls:

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

rewrite45.0ms (1%)

Algorithm
batch-egg-rewrite
Rules
811×log1p-expm1-u_binary64
811×expm1-log1p-u_binary64
410×prod-diff_binary64
86×add-sqr-sqrt_binary64
82×add-cbrt-cube_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0819
117319
2218619
Stop Event
node limit
Counts
2 → 74
Calls

2 calls:

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

simplify30.0ms (0.7%)

Algorithm
egg-herbie
Rules
527×fma-def_binary64
371×associate-*l*_binary64
337×associate-/l*_binary64
311×times-frac_binary64
236×cancel-sign-sub-inv_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01401017
1421994
21460945
Stop Event
node limit
Counts
106 → 119

prune79.0ms (1.8%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1136119
Fresh000
Picked011
Done000
Total1137120
Error
0.1b
Counts
120 → 7
Alt Table
StatusErrorProgram
52.1b
(*.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 1/2)) (sqrt.f64 2)) -1/16))))
47.9b
(*.f64 1/2 (*.f64 (*.f64 im (sqrt.f64 2)) (*.f64 (sqrt.f64 1/2) (sqrt.f64 (/.f64 1 re)))))
47.9b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
31.1b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (-.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 (/.f64 1 im)) (*.f64 re 1/2)))))
12.8b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
56.9b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 1/2 (*.f64 (/.f64 im re) im) (*.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) -1/8)))))
56.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 (/.f64 1/2 re) (*.f64 im im)))))
Compiler

Compiled 2797 to 1912 computations (31.6% saved)

localize12.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(-.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 (/.f64 1 im)) (*.f64 re 1/2)))
0.2b
(sqrt.f64 (/.f64 1 im))
0.3b
(*.f64 (sqrt.f64 (/.f64 1 im)) (*.f64 re 1/2))
0.4b
(*.f64 (sqrt.f64 2) (-.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 (/.f64 1 im)) (*.f64 re 1/2))))

series54.0ms (1.2%)

Counts
4 → 36
Calls

4 calls:

22.0ms
(*.f64 (sqrt.f64 2) (-.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 (/.f64 1 im)) (*.f64 re 1/2))))
14.0ms
(-.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 (/.f64 1 im)) (*.f64 re 1/2)))
13.0ms
(*.f64 (sqrt.f64 (/.f64 1 im)) (*.f64 re 1/2))
5.0ms
(sqrt.f64 (/.f64 1 im))

rewrite86.0ms (1.9%)

Algorithm
batch-egg-rewrite
Rules
915×prod-diff_binary64
234×egg-rr
136×add-sqr-sqrt_binary64
131×log1p-expm1-u_binary64
131×expm1-log1p-u_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01457
129446
2356046
Stop Event
node limit
Counts
4 → 234
Calls

4 calls:

80.0ms
(-.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 (/.f64 1 im)) (*.f64 re 1/2)))
80.0ms
(sqrt.f64 (/.f64 1 im))
80.0ms
(*.f64 (sqrt.f64 (/.f64 1 im)) (*.f64 re 1/2))
80.0ms
(*.f64 (sqrt.f64 2) (-.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 (/.f64 1 im)) (*.f64 re 1/2))))

simplify59.0ms (1.3%)

Algorithm
egg-herbie
Rules
401×fma-def_binary64
385×fma-neg_binary64
154×cancel-sign-sub-inv_binary64
138×associate-*l*_binary64
127×associate-*r*_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
021609
148591
2115528
3319528
4558528
5761528
61051528
71320528
81822528
92015528
102123528
112123528
Stop Event
saturated
Counts
270 → 246

prune196.0ms (4.5%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New2460246
Fresh055
Picked011
Done011
Total2467253
Error
0.1b
Counts
253 → 7
Alt Table
StatusErrorProgram
52.1b
(*.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 1/2)) (sqrt.f64 2)) -1/16))))
47.9b
(*.f64 1/2 (*.f64 (*.f64 im (sqrt.f64 2)) (*.f64 (sqrt.f64 1/2) (sqrt.f64 (/.f64 1 re)))))
47.9b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
31.1b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (-.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 (/.f64 1 im)) (*.f64 re 1/2)))))
12.8b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
56.9b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 1/2 (*.f64 (/.f64 im re) im) (*.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) -1/8)))))
56.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 (/.f64 1/2 re) (*.f64 im im)))))
Compiler

Compiled 8388 to 5555 computations (33.8% saved)

localize9.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(sqrt.f64 (/.f64 1 re))
0.2b
(*.f64 (*.f64 im (sqrt.f64 2)) (*.f64 (sqrt.f64 1/2) (sqrt.f64 (/.f64 1 re))))
0.2b
(*.f64 (sqrt.f64 1/2) (sqrt.f64 (/.f64 1 re)))
0.4b
(*.f64 im (sqrt.f64 2))

series35.0ms (0.8%)

Counts
4 → 24
Calls

4 calls:

21.0ms
(*.f64 (*.f64 im (sqrt.f64 2)) (*.f64 (sqrt.f64 1/2) (sqrt.f64 (/.f64 1 re))))
7.0ms
(*.f64 (sqrt.f64 1/2) (sqrt.f64 (/.f64 1 re)))
4.0ms
(sqrt.f64 (/.f64 1 re))
3.0ms
(*.f64 im (sqrt.f64 2))

rewrite45.0ms (1%)

Algorithm
batch-egg-rewrite
Rules
574×log-prod_binary64
203×expm1-udef_binary64
203×log1p-udef_binary64
191×log-pow_binary64
189×pow3_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01338
126328
2291828
Stop Event
node limit
Counts
4 → 91
Calls

4 calls:

44.0ms
(sqrt.f64 (/.f64 1 re))
44.0ms
(*.f64 (*.f64 im (sqrt.f64 2)) (*.f64 (sqrt.f64 1/2) (sqrt.f64 (/.f64 1 re))))
44.0ms
(*.f64 (sqrt.f64 1/2) (sqrt.f64 (/.f64 1 re)))
44.0ms
(*.f64 im (sqrt.f64 2))

simplify14.0ms (0.3%)

Algorithm
egg-herbie
Rules
26×associate-*l*_binary64
16×associate-*r*_binary64
14×*-commutative_binary64
1-exp_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
013300
122300
243300
382300
486300
Stop Event
saturated
Counts
115 → 94

prune88.0ms (2%)

Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New87794
Fresh404
Picked101
Done022
Total929101
Error
0b
Counts
101 → 9
Alt Table
StatusErrorProgram
47.8b
(*.f64 1/2 (+.f64 0 (*.f64 im (sqrt.f64 (*.f64 2 (/.f64 1/2 re))))))
12.8b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
47.9b
(*.f64 1/2 (*.f64 (*.f64 im (sqrt.f64 2)) (*.f64 (sqrt.f64 1/2) (pow.f64 (sqrt.f64 (pow.f64 re -1/2)) 2))))
51.3b
(*.f64 1/2 (*.f64 (*.f64 im (sqrt.f64 2)) (cbrt.f64 (pow.f64 (sqrt.f64 (/.f64 1/2 re)) 3))))
47.9b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (*.f64 (*.f64 im (sqrt.f64 1/2)) (sqrt.f64 (/.f64 1 re)))))
47.8b
(*.f64 1/2 (pow.f64 (sqrt.f64 (*.f64 im (sqrt.f64 (*.f64 2 (/.f64 1/2 re))))) 2))
48.0b
(*.f64 1/2 (pow.f64 (cbrt.f64 (*.f64 im (sqrt.f64 (*.f64 2 (/.f64 1/2 re))))) 3))
31.1b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (-.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 (/.f64 1 im)) (*.f64 re 1/2)))))
47.9b
(*.f64 1/2 (*.f64 (*.f64 im (sqrt.f64 2)) (*.f64 (sqrt.f64 1/2) (pow.f64 re -1/2))))
Compiler

Compiled 1777 to 1511 computations (15% saved)

localize8.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series39.0ms (0.9%)

Counts
4 → 36
Calls

4 calls:

15.0ms
(*.f64 1/2 (+.f64 0 (*.f64 im (sqrt.f64 (*.f64 2 (/.f64 1/2 re))))))
12.0ms
(*.f64 im (sqrt.f64 (*.f64 2 (/.f64 1/2 re))))
11.0ms
(sqrt.f64 (*.f64 2 (/.f64 1/2 re)))
1.0ms
(*.f64 2 (/.f64 1/2 re))

rewrite57.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
494×log-prod_binary64
182×expm1-udef_binary64
182×log1p-udef_binary64
165×pow3_binary64
160×log-pow_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01231
126331
2287231
Stop Event
node limit
Counts
4 → 141
Calls

4 calls:

51.0ms
(*.f64 1/2 (+.f64 0 (*.f64 im (sqrt.f64 (*.f64 2 (/.f64 1/2 re))))))
51.0ms
(*.f64 2 (/.f64 1/2 re))
51.0ms
(sqrt.f64 (*.f64 2 (/.f64 1/2 re)))
51.0ms
(*.f64 im (sqrt.f64 (*.f64 2 (/.f64 1/2 re))))

simplify13.0ms (0.3%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
associate-*r*_binary64
associate-*l*_binary64
1-exp_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
09300
115300
222300
324300
Stop Event
saturated
Counts
177 → 144

prune93.0ms (2.1%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New1413144
Fresh516
Picked101
Done022
Total1476153
Error
0b
Counts
153 → 6
Alt Table
StatusErrorProgram
47.8b
(*.f64 (sqrt.f64 (/.f64 1 re)) (*.f64 im 1/2))
48.0b
(*.f64 1/2 (pow.f64 (cbrt.f64 (*.f64 im (sqrt.f64 (*.f64 2 (/.f64 1/2 re))))) 3))
31.1b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (-.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 (/.f64 1 im)) (*.f64 re 1/2)))))
12.8b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
47.8b
(*.f64 1/2 (+.f64 0 (fma.f64 (*.f64 im (sqrt.f64 2)) (sqrt.f64 (/.f64 1/2 re)) 0)))
47.8b
(*.f64 1/2 (+.f64 0 (fma.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 im) (/.f64 1 (sqrt.f64 re))) 0)))
Compiler

Compiled 2238 to 1644 computations (26.5% saved)

regimes993.0ms (22.5%)

Accuracy

Total 5.7b remaining (98.2%)

Threshold costs 0b (0%)

Counts
100 → 2
Compiler

Compiled 10652 to 8954 computations (15.9% saved)

bsearch3.0ms (0.1%)

Compiler

Compiled 12 to 7 computations (41.7% 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
02447
13347
23847
34047
44147
Stop Event
saturated

end97.0ms (2.2%)

Compiler

Compiled 154 to 118 computations (23.4% saved)

Profiling

Loading profile data...