Details

Time bar (total: 3.6s)

analyze446.0ms (12.4%)

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)

sample1.7s (47.9%)

Results
768.0ms6293×body128valid
324.0ms645×body2048valid
320.0ms537×body4096valid
166.0ms424×body1024valid
81.0ms239×body512valid
29.0ms118×body256valid
Compiler

Compiled 53 to 38 computations (28.3% saved)

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

prune3.0ms (0.1%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Error
11.1b
Counts
3 → 1
Alt Table
StatusErrorProgram
11.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))
Compiler

Compiled 51 to 37 computations (27.5% saved)

localize6.0ms (0.2%)

Local error

Found 3 expressions with local error:

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

series66.0ms (1.8%)

Counts
3 → 56
Calls

3 calls:

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

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

3.0ms
(sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im))))
2.0ms
(+.f64 re (hypot.f64 re im))
0.0ms
(hypot.f64 re im)

simplify75.0ms (2.1%)

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

prune77.0ms (2.1%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1135118
Fresh000
Picked011
Done000
Total1136119
Error
7.9b
Counts
119 → 6
Alt Table
StatusErrorProgram
58.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))))
11.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))
45.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
11.2b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))
14.9b
(*.f64 1/2 (exp.f64 (log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))))
47.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
Compiler

Compiled 2623 to 1798 computations (31.5% saved)

localize7.0ms (0.2%)

Local error

Found 3 expressions with local error:

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

series45.0ms (1.2%)

Counts
1 → 8
Calls

1 calls:

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

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

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

simplify98.0ms (2.7%)

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

prune94.0ms (2.6%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New1361137
Fresh044
Picked011
Done011
Total1367143
Error
7.9b
Counts
143 → 7
Alt Table
StatusErrorProgram
58.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))))
11.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))
45.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
11.2b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))
58.1b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (*.f64 (/.f64 (*.f64 im im) re) -1/2))))
14.9b
(*.f64 1/2 (exp.f64 (log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))))
47.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
Compiler

Compiled 3082 to 2060 computations (33.2% saved)

localize10.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))
0.2b
(sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im))))
0.5b
(+.f64 re (hypot.f64 re im))
3.9b
(exp.f64 (log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im))))))

series101.0ms (2.8%)

Counts
2 → 16
Calls

2 calls:

59.0ms
(log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))
42.0ms
(exp.f64 (log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im))))))

rewrite11.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
10×pow1_binary64
log-prod_binary64
log-pow_binary64
exp-prod_binary64
*-un-lft-identity_binary64
Counts
2 → 43
Calls

2 calls:

5.0ms
(exp.f64 (log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im))))))
4.0ms
(log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))

simplify83.0ms (2.3%)

Algorithm
egg-herbie
Rules
519×fma-def_binary64
491×associate-*l*_binary64
463×associate-/r*_binary64
414×associate-/l*_binary64
276×cancel-sign-sub-inv_binary64
Counts
59 → 85
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01961617
14711406
214701301
348241301
449931301
549301301

prune102.0ms (2.8%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New1622164
Fresh044
Picked101
Done022
Total1638171
Error
7.9b
Counts
171 → 8
Alt Table
StatusErrorProgram
58.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))))
11.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))
45.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
11.2b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))
58.1b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (*.f64 (/.f64 (*.f64 im im) re) -1/2))))
47.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
48.7b
(*.f64 1/2 (exp.f64 (log.f64 (sqrt.f64 (*.f64 2 im)))))
15.3b
(*.f64 1/2 (pow.f64 (E.f64) (log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))))
Compiler

Compiled 4077 to 2813 computations (31% saved)

localize11.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))
0.2b
(sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im))))
0.5b
(+.f64 re (hypot.f64 re im))
4.2b
(pow.f64 (E.f64) (log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im))))))

series79.0ms (2.2%)

Counts
1 → 8
Calls

1 calls:

79.0ms
(pow.f64 (E.f64) (log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im))))))

rewrite21.0ms (0.6%)

Algorithm
rewrite-expression-head
Rules
pow-unpow_binary64
pow1_binary64
log-pow_binary64
unpow-prod-up_binary64
log-prod_binary64
Counts
1 → 30
Calls

1 calls:

19.0ms
(pow.f64 (E.f64) (log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im))))))

simplify92.0ms (2.6%)

Algorithm
egg-herbie
Rules
506×fma-neg_binary64
393×associate-*r*_binary64
348×times-frac_binary64
343×associate-*l*_binary64
342×fma-def_binary64
Counts
38 → 48
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01571136
13831063
210141023
335801023
449261023
549881023
649411023

prune107.0ms (3%)

Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New1622164
Fresh055
Picked101
Done022
Total1639172
Error
7.9b
Counts
172 → 9
Alt Table
StatusErrorProgram
58.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))))
11.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))
45.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
11.2b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))
46.8b
(*.f64 1/2 (pow.f64 (E.f64) (log.f64 (sqrt.f64 (*.f64 2 (neg.f64 im))))))
29.6b
(*.f64 1/2 (cbrt.f64 (pow.f64 (pow.f64 (E.f64) (log.f64 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))) 3)))
58.1b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (*.f64 (/.f64 (*.f64 im im) re) -1/2))))
47.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
48.7b
(*.f64 1/2 (exp.f64 (log.f64 (sqrt.f64 (*.f64 2 im)))))
Compiler

Compiled 4236 to 2812 computations (33.6% saved)

regimes209.0ms (5.8%)

Accuracy

Total 6.1b remaining (45.5%)

Threshold costs 0b (0%)

Counts
32 → 1
Compiler

Compiled 2902 to 2401 computations (17.3% saved)

simplify2.0ms (0%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01015
11315
21315

end106.0ms (2.9%)

Compiler

Compiled 135 to 111 computations (17.8% saved)

Profiling

Loading profile data...