Details

Time bar (total: 4.6s)

analyze509.0ms (11.1%)

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.0s (43.5%)

Results
783.0ms6250×body128valid
464.0ms686×body2048valid
336.0ms526×body4096valid
266.0ms442×body1024valid
77.0ms243×body512valid
24.0ms109×body256valid
Compiler

Compiled 57 to 40 computations (29.8% saved)

simplify31.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
13.9b
Counts
3 → 2
Alt Table
StatusErrorProgram
14.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
41.4b
(*.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)

localize6.0ms (0.1%)

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)

series82.0ms (1.8%)

Counts
3 → 56
Calls

3 calls:

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

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

simplify88.0ms (1.9%)

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

prune92.0ms (2%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1306136
Fresh101
Picked011
Done000
Total1317138
Error
0.2b
Counts
138 → 7
Alt Table
StatusErrorProgram
14.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
53.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
14.3b
(*.f64 1/2 (*.f64 (sqrt.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))) (sqrt.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))))
16.6b
(*.f64 1/2 (expm1.f64 (log1p.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))))
17.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re)))))
51.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 2)) (sqrt.f64 1/2)) -1/16))))
45.4b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
Compiler

Compiled 3387 to 2220 computations (34.5% saved)

localize12.0ms (0.3%)

Local error

Found 4 expressions with local error:

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

series94.0ms (2%)

Counts
2 → 32
Calls

2 calls:

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

rewrite32.0ms (0.7%)

Algorithm
rewrite-expression-head
Rules
80×sqrt-pow1_binary64
63×pow1_binary64
31×sqrt-prod_binary64
28×sqrt-div_binary64
28×add-sqr-sqrt_binary64
Counts
2 → 104
Calls

2 calls:

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

simplify122.0ms (2.7%)

Algorithm
egg-herbie
Rules
787×times-frac_binary64
385×cancel-sign-sub-inv_binary64
284×fma-neg_binary64
236×associate-*r*_binary64
232×associate-*l*_binary64
Counts
136 → 159
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
03154120
18193789
225593619
349753619
449643619

prune342.0ms (7.4%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New4120412
Fresh055
Picked011
Done011
Total4127419
Error
0.2b
Counts
419 → 7
Alt Table
StatusErrorProgram
14.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
53.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
14.3b
(*.f64 1/2 (*.f64 (sqrt.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))) (sqrt.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))))
16.6b
(*.f64 1/2 (expm1.f64 (log1p.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))))
17.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re)))))
51.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 2)) (sqrt.f64 1/2)) -1/16))))
45.4b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
Compiler

Compiled 15442 to 9849 computations (36.2% saved)

localize9.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series191.0ms (4.1%)

Counts
2 → 16
Calls

2 calls:

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

rewrite2.0ms (0%)

Algorithm
rewrite-expression-head
Rules
expm1-log1p-u_binary64
*-un-lft-identity_binary64
add-sqr-sqrt_binary64
add-cube-cbrt_binary64
add-cbrt-cube_binary64
Counts
2 → 22
Calls

2 calls:

0.0ms
(expm1.f64 (log1p.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))))
0.0ms
(log1p.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))

simplify54.0ms (1.2%)

Algorithm
egg-herbie
Rules
916×associate-/l*_binary64
784×fma-def_binary64
288×cancel-sign-sub-inv_binary64
234×associate-/r/_binary64
180×fma-neg_binary64
Counts
38 → 58
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01891632
15461465
220561423
354981423

prune114.0ms (2.5%)

Pruning

7 alts after pruning (4 fresh and 3 done)

PrunedKeptTotal
New1550155
Fresh044
Picked011
Done022
Total1557162
Error
0.2b
Counts
162 → 7
Alt Table
StatusErrorProgram
14.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
53.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
14.3b
(*.f64 1/2 (*.f64 (sqrt.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))) (sqrt.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))))
16.6b
(*.f64 1/2 (expm1.f64 (log1p.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))))
17.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re)))))
51.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 2)) (sqrt.f64 1/2)) -1/16))))
45.4b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
Compiler

Compiled 4834 to 3470 computations (28.2% saved)

localize9.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 re im)
0.0b
(sqrt.f64 (hypot.f64 re im))
0.0b
(sqrt.f64 (*.f64 2 (fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re))))
17.5b
(fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re))

series144.0ms (3.1%)

Counts
3 → 26
Calls

3 calls:

86.0ms
(sqrt.f64 (*.f64 2 (fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re))))
39.0ms
(fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re))
19.0ms
(sqrt.f64 (hypot.f64 re im))

rewrite5.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
pow1_binary64
add-sqr-sqrt_binary64
sqrt-prod_binary64
*-un-lft-identity_binary64
add-cube-cbrt_binary64
Counts
3 → 38
Calls

3 calls:

2.0ms
(sqrt.f64 (*.f64 2 (fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re))))
1.0ms
(sqrt.f64 (hypot.f64 re im))
1.0ms
(fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re))

simplify101.0ms (2.2%)

Algorithm
egg-herbie
Rules
630×fma-def_binary64
337×associate-/l*_binary64
311×times-frac_binary64
291×fma-neg_binary64
289×cancel-sign-sub-inv_binary64
Counts
64 → 99
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02061414
15181316
215851263
349271261
450241261

prune144.0ms (3.1%)

Pruning

7 alts after pruning (3 fresh and 4 done)

PrunedKeptTotal
New2070207
Fresh033
Picked011
Done033
Total2077214
Error
0.2b
Counts
214 → 7
Alt Table
StatusErrorProgram
14.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
53.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
14.3b
(*.f64 1/2 (*.f64 (sqrt.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))) (sqrt.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))))
16.6b
(*.f64 1/2 (expm1.f64 (log1p.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))))
17.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re)))))
51.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 2)) (sqrt.f64 1/2)) -1/16))))
45.4b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
Compiler

Compiled 5635 to 3271 computations (42% saved)

regimes240.0ms (5.2%)

Accuracy

Total 7.2b remaining (97.2%)

Threshold costs 0b (0%)

Counts
25 → 2
Compiler

Compiled 3090 to 2341 computations (24.2% saved)

bsearch40.0ms (0.9%)

Steps
ItersRangePoint
10
3.246039163223559e-76
1.7203817805254752e-63
1.6953129666289624e-63
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
02343
13343
23743
33943
44043
53943

end118.0ms (2.6%)

Compiler

Compiled 191 to 150 computations (21.5% saved)

Profiling

Loading profile data...