Details

Time bar (total: 5.5s)

analyze519.0ms (9.4%)

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

Results
884.0ms6280×body128valid
389.0ms519×body4096valid
351.0ms663×body2048valid
186.0ms422×body1024valid
79.0ms239×body512valid
32.0ms133×body256valid
Compiler

Compiled 57 to 40 computations (29.8% saved)

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

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

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

series71.0ms (1.3%)

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)
11.0ms
(hypot.f64 re im)

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)))
3.0ms
(-.f64 (hypot.f64 re im) re)
0.0ms
(hypot.f64 re im)

simplify92.0ms (1.7%)

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

prune89.0ms (1.6%)

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
49.6b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.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))))
56.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) 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))))
Compiler

Compiled 3313 to 2168 computations (34.6% saved)

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

series147.0ms (2.6%)

Counts
3 → 26
Calls

3 calls:

88.0ms
(sqrt.f64 (*.f64 2 (fma.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)) (neg.f64 re))))
40.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))

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

simplify72.0ms (1.3%)

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

prune129.0ms (2.3%)

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
49.6b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.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))))
56.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) 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))))
Compiler

Compiled 5662 to 3301 computations (41.7% saved)

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

rewrite28.0ms (0.5%)

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:

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

simplify116.0ms (2.1%)

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

prune97.0ms (1.8%)

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))))
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))))))
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))))
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
Compiler

Compiled 2895 to 2438 computations (15.8% saved)

localize15.0ms (0.3%)

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

series40.0ms (0.7%)

Counts
4 → 36
Calls

4 calls:

25.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)))
6.0ms
(*.f64 (sqrt.f64 (sqrt.f64 2)) im)
3.0ms
(*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im))

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

19.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)))
10.0ms
(*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im)))
7.0ms
(*.f64 (sqrt.f64 (sqrt.f64 2)) (*.f64 (sqrt.f64 (sqrt.f64 2)) im))
5.0ms
(*.f64 (sqrt.f64 (sqrt.f64 2)) im)

simplify100.0ms (1.8%)

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

prune173.0ms (3.1%)

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.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)))))
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))))
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))))
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))))))
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)))))
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
Compiler

Compiled 4403 to 3888 computations (11.7% saved)

regimes1.5s (27.6%)

Accuracy

Total 6.2b remaining (97.2%)

Threshold costs 0b (0%)

Counts
110 → 2
Compiler

Compiled 17524 to 15277 computations (12.8% saved)

bsearch6.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
14166
24666
34866
44966
54866

end178.0ms (3.2%)

Compiler

Compiled 318 to 263 computations (17.3% saved)

Profiling

Loading profile data...