Details

Time bar (total: 4.8s)

analyze524.0ms (11%)

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.9s (40.2%)

Results
885.0ms6228×body128valid
339.0ms653×body2048valid
337.0ms545×body4096valid
191.0ms454×body1024valid
80.0ms246×body512valid
27.0ms130×body256valid
Compiler

Compiled 57 to 40 computations (29.8% saved)

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

3 alts after pruning (3 fresh and 0 done)

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

series68.0ms (1.4%)

Counts
3 → 56
Calls

3 calls:

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

rewrite12.0ms (0.2%)

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)

simplify86.0ms (1.8%)

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

prune86.0ms (1.8%)

Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New1324136
Fresh101
Picked011
Done000
Total1335138
Error
0.1b
Counts
138 → 5
Alt Table
StatusErrorProgram
14.1b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re))))
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 2)) (sqrt.f64 1/2)) -1/16))))
46.6b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
13.9b
(*.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)))))
Compiler

Compiled 3303 to 2166 computations (34.4% 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.2b
(-.f64 (hypot.f64 re im) re)
0.3b
(*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re)))

series71.0ms (1.5%)

Counts
2 → 16
Calls

2 calls:

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

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

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

prune173.0ms (3.6%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New1872189
Fresh123
Picked011
Done011
Total1886194
Error
0.1b
Counts
194 → 6
Alt Table
StatusErrorProgram
14.1b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re))))
55.3b
(*.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.6b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 (/.f64 1 re)))))
46.6b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
13.9b
(*.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)))))
Compiler

Compiled 4883 to 3215 computations (34.2% saved)

localize9.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series50.0ms (1%)

Counts
4 → 12
Calls

4 calls:

23.0ms
(*.f64 (sqrt.f64 2) (*.f64 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 (/.f64 1 re))))
19.0ms
(*.f64 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 (/.f64 1 re)))
5.0ms
(sqrt.f64 (/.f64 1 re))
3.0ms
(*.f64 (sqrt.f64 1/2) im)

rewrite30.0ms (0.6%)

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 → 115
Calls

4 calls:

9.0ms
(*.f64 (sqrt.f64 2) (*.f64 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 (/.f64 1 re))))
8.0ms
(*.f64 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 (/.f64 1 re)))
4.0ms
(*.f64 (sqrt.f64 1/2) im)
3.0ms
(sqrt.f64 (/.f64 1 re))

simplify123.0ms (2.6%)

Algorithm
egg-herbie
Rules
414×unswap-sqr_binary64
403×*-commutative_binary64
315×sqr-pow_binary64
297×pow-sqr_binary64
280×associate-/l*_binary64
Counts
127 → 143
Iterations

Useful iterations: 6 (0.0ms)

IterNodesCost
01251867
12501756
27921756
313021756
423891756
532271756
644941416
748381416
849491416

prune120.0ms (2.5%)

Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New1376143
Fresh213
Picked101
Done022
Total1409149
Error
0.0b
Counts
149 → 9
Alt Table
StatusErrorProgram
46.5b
(*.f64 1/2 (*.f64 im (sqrt.f64 (/.f64 1 re))))
46.5b
(*.f64 1/2 (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 (/.f64 1 re))))))
47.3b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (*.f64 (*.f64 (sqrt.f64 1/2) im) (exp.f64 (log.f64 (sqrt.f64 (/.f64 1 re)))))))
46.5b
(*.f64 1/2 (*.f64 (sqrt.f64 (*.f64 im (sqrt.f64 (/.f64 1 re)))) (sqrt.f64 (*.f64 im (sqrt.f64 (/.f64 1 re))))))
14.1b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re))))
46.5b
(*.f64 1/2 (*.f64 (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (*.f64 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 (/.f64 1 re))))))
54.3b
(*.f64 1/2 (cbrt.f64 (pow.f64 (*.f64 im (sqrt.f64 (/.f64 1 re))) 3)))
13.9b
(*.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)))))
Compiler

Compiled 3105 to 2615 computations (15.8% saved)

localize7.0ms (0.1%)

Local error

Found 2 expressions with local error:

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

series13.0ms (0.3%)

Counts
1 → 12
Calls

1 calls:

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

rewrite9.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
19×add-sqr-sqrt_binary64
16×associate-*r*_binary64
16×sqrt-prod_binary64
11×times-frac_binary64
11×*-un-lft-identity_binary64
Counts
1 → 37
Calls

1 calls:

7.0ms
(*.f64 im (sqrt.f64 (/.f64 1 re)))

simplify89.0ms (1.9%)

Algorithm
egg-herbie
Rules
652×unswap-sqr_binary64
253×log-div_binary64
229×sqr-pow_binary64
220×associate-/l*_binary64
204×associate-/l/_binary64
Counts
49 → 52
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
054548
189530
2208530
3272530
4401530
5659530
6906530
72394530
83784530
94718530
104996530
114898530

prune52.0ms (1.1%)

Pruning

7 alts after pruning (4 fresh and 3 done)

PrunedKeptTotal
New82284
Fresh426
Picked011
Done022
Total86793
Error
0.0b
Counts
93 → 7
Alt Table
StatusErrorProgram
46.5b
(*.f64 1/2 (*.f64 im (sqrt.f64 (/.f64 1 re))))
46.5b
(*.f64 1/2 (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 (/.f64 1 re))))))
46.4b
(*.f64 1/2 (/.f64 im (sqrt.f64 re)))
46.5b
(*.f64 1/2 (*.f64 (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (*.f64 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 (/.f64 1 re))))))
14.1b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (-.f64 (hypot.f64 re im) re))))
47.8b
(*.f64 1/2 (exp.f64 (+.f64 (log.f64 im) (log.f64 (sqrt.f64 (/.f64 1 re))))))
13.9b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
Compiler

Compiled 1281 to 956 computations (25.4% saved)

regimes1.1s (22.7%)

Accuracy

Total 6.3b remaining (98.3%)

Threshold costs 0b (0%)

Counts
111 → 2
Compiler

Compiled 15420 to 12831 computations (16.8% saved)

bsearch4.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
02244
12944
23444
33644
43744
53744

end98.0ms (2.1%)

Compiler

Compiled 164 to 128 computations (22% saved)

Profiling

Loading profile data...