Details

Time bar (total: 4.2s)

analyze465.0ms (11%)

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

Results
783.0ms6286×body128valid
340.0ms676×body2048valid
300.0ms495×body4096valid
178.0ms444×body1024valid
71.0ms236×body512valid
27.0ms119×body256valid
Compiler

Compiled 53 to 38 computations (28.3% saved)

simplify10.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
13.7b
Counts
3 → 1
Alt Table
StatusErrorProgram
13.7b
(*.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.1%)

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

series71.0ms (1.7%)

Counts
3 → 56
Calls

3 calls:

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

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

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

simplify77.0ms (1.8%)

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

prune83.0ms (1.9%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1117118
Fresh000
Picked101
Done000
Total1127119
Error
6.5b
Counts
119 → 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)))
49.2b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 im)))
44.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
54.6b
(*.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)))
Compiler

Compiled 2655 to 1821 computations (31.4% saved)

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

series72.0ms (1.7%)

Counts
3 → 56
Calls

3 calls:

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

rewrite18.0ms (0.4%)

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:

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

simplify89.0ms (2.1%)

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

prune168.0ms (4%)

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.6b
(*.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)))
44.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 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)))))))
Compiler

Compiled 6343 to 3592 computations (43.4% saved)

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

series47.0ms (1.1%)

Counts
1 → 8
Calls

1 calls:

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

simplify75.0ms (1.8%)

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

prune91.0ms (2.2%)

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.6b
(*.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)))
44.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 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)))))))
Compiler

Compiled 3108 to 2064 computations (33.6% saved)

localize10.0ms (0.2%)

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

series128.0ms (3%)

Counts
4 → 80
Calls

4 calls:

54.0ms
(*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im)))
49.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)))))))
13.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)))))
13.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))))

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

12.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))))
8.0ms
(*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im)))
3.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)))))))
3.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)))))

simplify123.0ms (2.9%)

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

prune175.0ms (4.1%)

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.6b
(*.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)))
44.7b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
17.2b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (exp.f64 (log.f64 (+.f64 re (hypot.f64 re im)))))))
Compiler

Compiled 7599 to 3904 computations (48.6% saved)

regimes620.0ms (14.6%)

Accuracy

Total 3.3b remaining (32.8%)

Threshold costs 0b (0%)

Counts
68 → 3
Compiler

Compiled 7407 to 5624 computations (24.1% saved)

bsearch2.0ms (0%)

Compiler

Compiled 12 to 7 computations (41.7% saved)

simplify3.0ms (0.1%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
03591
14691
24491

end108.0ms (2.5%)

Compiler

Compiled 227 to 148 computations (34.8% saved)

Profiling

Loading profile data...