Details

Time bar (total: 7.3s)

analyze733.0ms (10%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
50%50%0.1%3
50%50%0.1%4
62.4%37.5%0.1%5
62.4%37.5%0.1%6
68.7%31.2%0.1%7
68.7%31.2%0.1%8
71.8%28.1%0.1%9
71.8%28.1%0.1%10
73.4%26.5%0.1%11
73.4%26.5%0.1%12
74.1%25.8%0.1%13
74.1%25.8%0.1%14
Compiler

Compiled 18 to 13 computations (27.8% saved)

sample2.5s (34.7%)

Results
1.1s6286×body128valid
538.0ms676×body2048valid
433.0ms495×body4096valid
250.0ms444×body1024valid
108.0ms236×body512valid
34.0ms119×body256valid
Compiler

Compiled 53 to 38 computations (28.3% saved)

simplify13.0ms (0.2%)

Algorithm
egg-herbie
Rules
fma-def_binary64
*-commutative_binary64
+-commutative_binary64
distribute-lft-in_binary64
distribute-rgt-in_binary64
Counts
1 → 2
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01315
12515
22915
33115
43115

prune10.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

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

localize12.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 re im)
0.5b
(sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im))))
0.6b
(+.f64 re (hypot.f64 re im))

series117.0ms (1.6%)

Counts
3 → 56
Calls

3 calls:

76.0ms
(sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im))))
21.0ms
(hypot.f64 re im)
20.0ms
(+.f64 re (hypot.f64 re im))

rewrite16.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
pow1_binary64
*-un-lft-identity_binary64
add-log-exp_binary64
add-sqr-sqrt_binary64
add-cube-cbrt_binary64
Counts
3 → 42
Calls

3 calls:

8.0ms
(sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im))))
4.0ms
(+.f64 re (hypot.f64 re im))
1.0ms
(hypot.f64 re im)

simplify139.0ms (1.9%)

Algorithm
egg-herbie
Rules
615×fma-def_binary64
531×fma-neg_binary64
460×associate-*r*_binary64
385×associate-*l*_binary64
294×cancel-sign-sub-inv_binary64
Counts
98 → 118
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01881829
15141737
214651673
349901673
453081673

prune173.0ms (2.4%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1117118
Fresh101
Picked101
Done000
Total1137120
Error
6.5b
Counts
120 → 7
Alt Table
StatusErrorProgram
14.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (*.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)))))))
49.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
54.2b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))))
17.2b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (exp.f64 (log.f64 (+.f64 re (hypot.f64 re im)))))))
47.3b
(*.f64 1/2 (*.f64 2 (sqrt.f64 re)))
49.2b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 im)))
44.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
Compiler

Compiled 2655 to 1821 computations (31.4% saved)

localize17.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 re im)
0.5b
(sqrt.f64 (*.f64 2 (+.f64 re (*.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im))))))
0.5b
(*.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)))
8.1b
(+.f64 re (*.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im))))

series140.0ms (1.9%)

Counts
3 → 56
Calls

3 calls:

69.0ms
(sqrt.f64 (*.f64 2 (+.f64 re (*.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im))))))
47.0ms
(+.f64 re (*.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im))))
23.0ms
(*.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)))

rewrite38.0ms (0.5%)

Algorithm
rewrite-expression-head
Rules
28×add-sqr-sqrt_binary64
21×pow1_binary64
19×sqrt-prod_binary64
12×*-un-lft-identity_binary64
12×add-cube-cbrt_binary64
Counts
3 → 84
Calls

3 calls:

18.0ms
(*.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)))
6.0ms
(sqrt.f64 (*.f64 2 (+.f64 re (*.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im))))))
4.0ms
(+.f64 re (*.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im))))

simplify190.0ms (2.6%)

Algorithm
egg-herbie
Rules
865×fma-neg_binary64
680×fma-def_binary64
324×cancel-sign-sub-inv_binary64
255×associate-/l*_binary64
239×times-frac_binary64
Counts
140 → 181
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02172236
15672078
216811994
346731994
453301994

prune377.0ms (5.1%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New2572259
Fresh246
Picked011
Done000
Total2597266
Error
6.5b
Counts
266 → 7
Alt Table
StatusErrorProgram
54.2b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))))
13.6b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))
14.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (*.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)))))))
49.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
15.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im))))))))
17.2b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (exp.f64 (log.f64 (+.f64 re (hypot.f64 re im)))))))
44.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
Compiler

Compiled 6343 to 3592 computations (43.4% saved)

localize14.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 re im)
0.4b
(*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im))))
0.6b
(+.f64 re (hypot.f64 re im))

series77.0ms (1.1%)

Counts
1 → 8
Calls

1 calls:

77.0ms
(*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im))))

rewrite15.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
15×add-sqr-sqrt_binary64
11×sqrt-prod_binary64
associate-*r*_binary64
*-un-lft-identity_binary64
associate-*l*_binary64
Counts
1 → 36
Calls

1 calls:

11.0ms
(*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im))))

simplify149.0ms (2%)

Algorithm
egg-herbie
Rules
767×fma-neg_binary64
450×associate-*r*_binary64
420×associate-*l*_binary64
310×fma-def_binary64
242×distribute-rgt-neg-in_binary64
Counts
44 → 50
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01311011
1313991
2914951
33063927
44881923
55148923

prune191.0ms (2.6%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New1370137
Fresh055
Picked011
Done011
Total1377144
Error
6.5b
Counts
144 → 7
Alt Table
StatusErrorProgram
54.2b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))))
13.6b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))
14.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (*.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)))))))
49.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
15.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im))))))))
17.2b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (exp.f64 (log.f64 (+.f64 re (hypot.f64 re im)))))))
44.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
Compiler

Compiled 3108 to 2064 computations (33.6% saved)

localize21.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im))))
0.4b
(*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im)))
0.5b
(sqrt.f64 (*.f64 2 (+.f64 re (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im)))))))
8.3b
(+.f64 re (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im)))))

series265.0ms (3.6%)

Counts
4 → 80
Calls

4 calls:

99.0ms
(*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im)))
92.0ms
(sqrt.f64 (*.f64 2 (+.f64 re (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im)))))))
42.0ms
(*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im))))
31.0ms
(+.f64 re (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im)))))

rewrite66.0ms (0.9%)

Algorithm
rewrite-expression-head
Rules
53×sqrt-pow1_binary64
53×pow1_binary64
45×add-sqr-sqrt_binary64
38×sqrt-prod_binary64
36×pow-prod-up_binary64
Counts
4 → 131
Calls

4 calls:

23.0ms
(*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im))))
10.0ms
(*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im)))
5.0ms
(+.f64 re (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im)))))
4.0ms
(sqrt.f64 (*.f64 2 (+.f64 re (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im)))))))

simplify269.0ms (3.7%)

Algorithm
egg-herbie
Rules
529×fma-neg_binary64
493×cancel-sign-sub-inv_binary64
257×associate-/l*_binary64
243×associate-*r*_binary64
239×times-frac_binary64
Counts
211 → 268
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
03263990
18643675
226323479
348463475
450433475

prune315.0ms (4.3%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New2671268
Fresh044
Picked101
Done022
Total2687275
Error
6.5b
Counts
275 → 7
Alt Table
StatusErrorProgram
54.2b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))))
13.6b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))
14.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (*.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)))))))
17.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (expm1.f64 (log1p.f64 (+.f64 re (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im))))))))))
49.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
17.2b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (exp.f64 (log.f64 (+.f64 re (hypot.f64 re im)))))))
44.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
Compiler

Compiled 7599 to 3904 computations (48.6% saved)

regimes1.2s (15.7%)

Accuracy

Total 3.3b remaining (32.8%)

Threshold costs 0b (0%)

Counts
68 → 3
Compiler

Compiled 7407 to 5624 computations (24.1% saved)

bsearch4.0ms (0.1%)

Compiler

Compiled 12 to 7 computations (41.7% saved)

simplify7.0ms (0.1%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
+-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03694
14794
24794

end268.0ms (3.6%)

Compiler

Compiled 229 to 152 computations (33.6% saved)

Profiling

Loading profile data...