Details

Time bar (total: 5.4s)

analyze507.0ms (9.5%)

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 (35.9%)

Results
873.0ms6280×body128valid
352.0ms663×body2048valid
325.0ms519×body4096valid
211.0ms422×body1024valid
75.0ms239×body512valid
33.0ms133×body256valid
Compiler

Compiled 57 to 40 computations (29.8% saved)

simplify28.0ms (0.5%)

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

prune5.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

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

Counts
3 → 56
Calls

3 calls:

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

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

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

simplify88.0ms (1.6%)

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

prune104.0ms (1.9%)

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
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
13.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re)))))
54.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))))
49.6b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
56.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
Compiler

Compiled 3313 to 2168 computations (34.6% saved)

localize9.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series156.0ms (2.9%)

Counts
3 → 26
Calls

3 calls:

93.0ms
(sqrt.f64 (*.f64 2 (fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re))))
42.0ms
(fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re))
21.0ms
(sqrt.f64 (hypot.f64 re im))

rewrite4.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))
0.0ms
(fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re))

simplify66.0ms (1.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

prune142.0ms (2.7%)

Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New2070207
Fresh033
Picked011
Done011
Total2075212
Error
0.1b
Counts
212 → 5
Alt Table
StatusErrorProgram
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
13.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re)))))
54.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))))
49.6b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
56.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
Compiler

Compiled 5662 to 3301 computations (41.7% 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))

series39.0ms (0.7%)

Counts
4 → 0
Calls

4 calls:

24.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))
5.0ms
(sqrt.f64 (/.f64 1 re))
3.0ms
(*.f64 (sqrt.f64 2) im)

rewrite32.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 → 114
Calls

4 calls:

12.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))
4.0ms
(*.f64 (sqrt.f64 2) im)
3.0ms
(sqrt.f64 (/.f64 1 re))

simplify101.0ms (1.9%)

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 (1.9%)

Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New1167123
Fresh112
Picked101
Done022
Total11810128
Error
0.0b
Counts
128 → 10
Alt Table
StatusErrorProgram
49.8b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (expm1.f64 (log1p.f64 (sqrt.f64 (/.f64 1 re))))))
49.6b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (*.f64 (sqrt.f64 (sqrt.f64 2)) (sqrt.f64 im)) (*.f64 (sqrt.f64 (sqrt.f64 2)) (sqrt.f64 im)))) (sqrt.f64 (/.f64 1 re))))
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
13.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re)))))
49.7b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (*.f64 (sqrt.f64 2) (*.f64 (cbrt.f64 im) (cbrt.f64 im))) (cbrt.f64 im))) (sqrt.f64 (/.f64 1 re))))
49.5b
(*.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))))
56.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
49.6b
(*.f64 1/2 (*.f64 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 (sqrt.f64 re)))) (sqrt.f64 (/.f64 1 (sqrt.f64 re)))))
49.6b
(*.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)))))
49.6b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (*.f64 (fabs.f64 (cbrt.f64 (/.f64 1 re))) (sqrt.f64 (cbrt.f64 (/.f64 1 re))))))
Compiler

Compiled 2895 to 2438 computations (15.8% saved)

localize12.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series44.0ms (0.8%)

Counts
4 → 36
Calls

4 calls:

30.0ms
(*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im))) (sqrt.f64 (/.f64 1 re)))
6.0ms
(*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im)))
5.0ms
(*.f64 (sqrt.f64 (sqrt.f64 2)) im)
3.0ms
(*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im))

rewrite50.0ms (0.9%)

Algorithm
rewrite-expression-head
Rules
37×sqrt-prod_binary64
34×add-cbrt-cube_binary64
34×add-exp-log_binary64
34×pow1_binary64
27×add-sqr-sqrt_binary64
Counts
4 → 120
Calls

4 calls:

16.0ms
(*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im))) (sqrt.f64 (/.f64 1 re)))
11.0ms
(*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im)))
9.0ms
(*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im))
5.0ms
(*.f64 (sqrt.f64 (sqrt.f64 2)) im)

simplify101.0ms (1.9%)

Algorithm
egg-herbie
Rules
746×associate-/l*_binary64
609×*-commutative_binary64
357×associate-/r*_binary64
331×associate-*l*_binary64
320×unswap-sqr_binary64
Counts
156 → 166
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01402349
13012120
211332120
319392120
443462120
552052120

prune126.0ms (2.3%)

Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New1615166
Fresh527
Picked101
Done022
Total1679176
Error
0.0b
Counts
176 → 9
Alt Table
StatusErrorProgram
49.5b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (*.f64 (sqrt.f64 (sqrt.f64 2)) (sqrt.f64 (sqrt.f64 2))) im)) (sqrt.f64 (/.f64 1 re))))
49.6b
(*.f64 1/2 (*.f64 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 (sqrt.f64 re)))) (sqrt.f64 (/.f64 1 (sqrt.f64 re)))))
49.5b
(*.f64 1/2 (*.f64 (sqrt.f64 1/2) (*.f64 (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.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))))
13.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re)))))
49.6b
(*.f64 1/2 (*.f64 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im))) (sqrt.f64 (/.f64 1 (*.f64 (cbrt.f64 re) (cbrt.f64 re))))) (sqrt.f64 (/.f64 1 (cbrt.f64 re)))))
50.4b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 (sqrt.f64 2)) (exp.f64 (log.f64 (*.f64 im (sqrt.f64 (sqrt.f64 2))))))) (sqrt.f64 (/.f64 1 re))))
58.3b
(*.f64 1/2 (cbrt.f64 (*.f64 (*.f64 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im))) (sqrt.f64 (/.f64 1 re))) (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im))) (sqrt.f64 (/.f64 1 re)))) (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im))) (sqrt.f64 (/.f64 1 re))))))
49.6b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (*.f64 (fabs.f64 (cbrt.f64 (/.f64 1 re))) (sqrt.f64 (cbrt.f64 (/.f64 1 re))))))
Compiler

Compiled 4403 to 3888 computations (11.7% saved)

regimes1.4s (26.9%)

Accuracy

Total 6.2b remaining (97.2%)

Threshold costs 0b (0%)

Counts
110 → 2
Compiler

Compiled 17524 to 15277 computations (12.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
03066
14166
24666
34866
44966
54866

end171.0ms (3.2%)

Compiler

Compiled 318 to 263 computations (17.3% saved)

Profiling

Loading profile data...