Details

Time bar (total: 4.8s)

analyze488.0ms (10.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 (40.3%)

Results
861.0ms6269×body128valid
385.0ms672×body2048valid
370.0ms532×body4096valid
179.0ms410×body1024valid
77.0ms248×body512valid
28.0ms125×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
13.5b
Counts
3 → 1
Alt Table
StatusErrorProgram
13.5b
(*.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 3 expressions with local error:

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

series72.0ms (1.5%)

Counts
3 → 56
Calls

3 calls:

45.0ms
(sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))
14.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:

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

simplify90.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

prune90.0ms (1.9%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1315136
Fresh000
Picked011
Done000
Total1316137
Error
0.2b
Counts
137 → 6
Alt Table
StatusErrorProgram
13.5b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
54.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
13.8b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re))))
16.4b
(*.f64 1/2 (expm1.f64 (log1p.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))))
51.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))))
46.9b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
Compiler

Compiled 3331 to 2188 computations (34.3% saved)

localize7.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(sqrt.f64 (-.f64 (hypot.f64 re im) re))
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)

series72.0ms (1.5%)

Counts
2 → 16
Calls

2 calls:

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

rewrite14.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
22×add-sqr-sqrt_binary64
17×sqrt-prod_binary64
11×*-un-lft-identity_binary64
associate-*r*_binary64
add-cube-cbrt_binary64
Counts
2 → 56
Calls

2 calls:

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

simplify79.0ms (1.6%)

Algorithm
egg-herbie
Rules
778×fma-def_binary64
344×associate-/l*_binary64
291×times-frac_binary64
285×fma-neg_binary64
275×associate-*l/_binary64
Counts
72 → 85
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02021877
15341832
217571756
349351754
450051754

prune123.0ms (2.5%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New1872189
Fresh134
Picked011
Done011
Total1887195
Error
0.2b
Counts
195 → 7
Alt Table
StatusErrorProgram
53.9b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (-.f64 (fma.f64 1/32 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 9))) (/.f64 (pow.f64 im 5) (sqrt.f64 1/2))) (fma.f64 im (*.f64 (sqrt.f64 1/2) (sqrt.f64 (/.f64 1 re))) (*.f64 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 13))) (/.f64 (pow.f64 im 7) (sqrt.f64 1/2))) 1/256))) (fma.f64 1/16 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 5))) (/.f64 (pow.f64 im 3) (sqrt.f64 1/2))) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 9))) (*.f64 1/256 (/.f64 (pow.f64 im 5) (sqrt.f64 1/2))) (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 13))) (+.f64 (*.f64 1/8192 (/.f64 (pow.f64 im 7) (pow.f64 (sqrt.f64 1/2) 5))) (*.f64 5/256 (/.f64 (pow.f64 im 7) (sqrt.f64 1/2))))))))))
46.9b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
13.5b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
54.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
13.8b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re))))
16.4b
(*.f64 1/2 (expm1.f64 (log1p.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))))
46.9b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 (/.f64 1 re)))))
Compiler

Compiled 4911 to 3237 computations (34.1% saved)

localize9.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series193.0ms (4%)

Counts
2 → 16
Calls

2 calls:

148.0ms
(log1p.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
45.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
(log1p.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
0.0ms
(expm1.f64 (log1p.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))))

simplify54.0ms (1.1%)

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

prune150.0ms (3.1%)

Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New1611162
Fresh044
Picked011
Done022
Total1618169
Error
0.2b
Counts
169 → 8
Alt Table
StatusErrorProgram
53.9b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (-.f64 (fma.f64 1/32 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 9))) (/.f64 (pow.f64 im 5) (sqrt.f64 1/2))) (fma.f64 im (*.f64 (sqrt.f64 1/2) (sqrt.f64 (/.f64 1 re))) (*.f64 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 13))) (/.f64 (pow.f64 im 7) (sqrt.f64 1/2))) 1/256))) (fma.f64 1/16 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 5))) (/.f64 (pow.f64 im 3) (sqrt.f64 1/2))) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 9))) (*.f64 1/256 (/.f64 (pow.f64 im 5) (sqrt.f64 1/2))) (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 13))) (+.f64 (*.f64 1/8192 (/.f64 (pow.f64 im 7) (pow.f64 (sqrt.f64 1/2) 5))) (*.f64 5/256 (/.f64 (pow.f64 im 7) (sqrt.f64 1/2))))))))))
46.9b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
13.5b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
54.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
54.0b
(*.f64 1/2 (expm1.f64 (log1p.f64 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (*.f64 im im) re)))))))
13.8b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re))))
16.4b
(*.f64 1/2 (expm1.f64 (log1p.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))))
46.9b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 (/.f64 1 re)))))
Compiler

Compiled 4825 to 3444 computations (28.6% saved)

localize9.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series43.0ms (0.9%)

Counts
4 → 0
Calls

4 calls:

27.0ms
(*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re)))
6.0ms
(*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im))
6.0ms
(sqrt.f64 (/.f64 1 re))
4.0ms
(*.f64 (sqrt.f64 2) im)

rewrite32.0ms (0.7%)

Algorithm
rewrite-expression-head
Rules
33×sqrt-prod_binary64
32×add-sqr-sqrt_binary64
25×*-un-lft-identity_binary64
24×add-cube-cbrt_binary64
22×pow1_binary64
Counts
4 → 114
Calls

4 calls:

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

simplify107.0ms (2.2%)

Algorithm
egg-herbie
Rules
468×associate-/l*_binary64
416×*-commutative_binary64
403×unswap-sqr_binary64
271×sqr-pow_binary64
214×associate-*l*_binary64
Counts
114 → 123
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01211600
12391498
27891498
312861498
426201498
530601498
644731498
750121498

prune100.0ms (2.1%)

Pruning

11 alts after pruning (8 fresh and 3 done)

PrunedKeptTotal
New1176123
Fresh224
Picked101
Done033
Total12011131
Error
0.1b
Counts
131 → 11
Alt Table
StatusErrorProgram
13.8b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re))))
46.9b
(*.f64 1/2 (*.f64 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (sqrt.f64 (/.f64 1 re)))) (sqrt.f64 (sqrt.f64 (/.f64 1 re)))))
13.5b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
54.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
46.8b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im))) (sqrt.f64 (/.f64 1 re))))
16.4b
(*.f64 1/2 (expm1.f64 (log1p.f64 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))))
46.9b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (*.f64 (sqrt.f64 2) im)))) (sqrt.f64 (/.f64 1 re))))
47.0b
(*.f64 1/2 (*.f64 (*.f64 (cbrt.f64 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re)))) (cbrt.f64 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))) (cbrt.f64 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))))
46.9b
(*.f64 1/2 (*.f64 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 (*.f64 (cbrt.f64 re) (cbrt.f64 re))))) (sqrt.f64 (/.f64 1 (cbrt.f64 re)))))
48.0b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (exp.f64 (+.f64 (log.f64 (sqrt.f64 2)) (log.f64 im)))) (sqrt.f64 (/.f64 1 re))))
46.9b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 (/.f64 1 re)))))
Compiler

Compiled 2745 to 2321 computations (15.4% saved)

regimes919.0ms (19%)

Accuracy

Total 5.9b remaining (98.4%)

Threshold costs 0b (0%)

Counts
92 → 2
Compiler

Compiled 13787 to 11502 computations (16.6% saved)

bsearch4.0ms (0.1%)

Compiler

Compiled 12 to 7 computations (41.7% saved)

simplify4.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
03066
14266
24766
34966
45066
54966

end178.0ms (3.7%)

Compiler

Compiled 314 to 259 computations (17.5% saved)

Profiling

Loading profile data...