Details

Time bar (total: 4.1s)

analyze458.0ms (11.1%)

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.8s (43.4%)

Results
800.0ms6279×body128valid
355.0ms671×body2048valid
334.0ms548×body4096valid
169.0ms408×body1024valid
73.0ms236×body512valid
27.0ms114×body256valid
Compiler

Compiled 53 to 38 computations (28.3% saved)

simplify6.0ms (0.1%)

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

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

localize8.0ms (0.2%)

Local error

Found 2 expressions with local error:

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

series53.0ms (1.3%)

Counts
2 → 32
Calls

2 calls:

42.0ms
(sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im))))
11.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
fma-def_binary64
Counts
2 → 32
Calls

2 calls:

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

simplify64.0ms (1.6%)

Algorithm
egg-herbie
Rules
862×fma-neg_binary64
517×fma-def_binary64
437×associate-*r*_binary64
361×associate-*l*_binary64
244×cancel-sign-sub-inv_binary64
Counts
64 → 79
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01611270
14351196
212551148
346831148
454131148

prune62.0ms (1.5%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New72779
Fresh000
Picked011
Done000
Total72880
Error
5.2b
Counts
80 → 8
Alt Table
StatusErrorProgram
11.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 (sqrt.f64 (+.f64 re (hypot.f64 re im))) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))))
11.2b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))
13.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (*.f64 (cbrt.f64 re) (cbrt.f64 re)) (cbrt.f64 re) (hypot.f64 re im)))))
46.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
47.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
49.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (/.f64 (-.f64 (*.f64 re re) (*.f64 (hypot.f64 re im) (hypot.f64 re im))) (-.f64 re (hypot.f64 re im))))))
54.9b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))))
Compiler

Compiled 1914 to 1300 computations (32.1% saved)

localize7.0ms (0.2%)

Local error

Found 3 expressions with local error:

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

series70.0ms (1.7%)

Counts
2 → 16
Calls

2 calls:

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

rewrite19.0ms (0.5%)

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt_binary64
15×sqrt-prod_binary64
11×*-un-lft-identity_binary64
associate-*r*_binary64
add-cube-cbrt_binary64
Counts
2 → 55
Calls

2 calls:

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

simplify72.0ms (1.7%)

Algorithm
egg-herbie
Rules
608×fma-neg_binary64
601×fma-def_binary64
441×times-frac_binary64
335×associate-/l*_binary64
318×cancel-sign-sub-inv_binary64
Counts
71 → 84
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01811642
14611585
214871518
345391518
449971518

prune100.0ms (2.4%)

Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New1311132
Fresh066
Picked011
Done011
Total1319140
Error
5.2b
Counts
140 → 9
Alt Table
StatusErrorProgram
11.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 (sqrt.f64 (+.f64 re (hypot.f64 re im))) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))))
11.2b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))
13.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (*.f64 (cbrt.f64 re) (cbrt.f64 re)) (cbrt.f64 re) (hypot.f64 re im)))))
46.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
47.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
54.9b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (*.f64 (/.f64 (*.f64 im im) re) -1/2))))
49.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (/.f64 (-.f64 (*.f64 re re) (*.f64 (hypot.f64 re im) (hypot.f64 re im))) (-.f64 re (hypot.f64 re im))))))
54.9b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))))
Compiler

Compiled 3256 to 2125 computations (34.7% saved)

localize8.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series56.0ms (1.4%)

Counts
2 → 32
Calls

2 calls:

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

rewrite32.0ms (0.8%)

Algorithm
rewrite-expression-head
Rules
32×sqrt-div_binary64
27×sqrt-prod_binary64
26×add-sqr-sqrt_binary64
24×*-un-lft-identity_binary64
23×pow1_binary64
Counts
2 → 88
Calls

2 calls:

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

simplify104.0ms (2.5%)

Algorithm
egg-herbie
Rules
513×fma-def_binary64
488×fma-neg_binary64
312×*-commutative_binary64
244×cancel-sign-sub-inv_binary64
227×associate-/l*_binary64
Counts
120 → 149
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02212490
15042295
214892211
344322186
449972186
549632186

prune223.0ms (5.4%)

Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New3121313
Fresh156
Picked011
Done022
Total3139322
Error
5.2b
Counts
322 → 9
Alt Table
StatusErrorProgram
11.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 (sqrt.f64 (+.f64 re (hypot.f64 re im))) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))))
11.2b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))
13.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (*.f64 (cbrt.f64 re) (cbrt.f64 re)) (cbrt.f64 re) (hypot.f64 re im)))))
46.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
47.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
49.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 (sqrt.f64 (+.f64 re (hypot.f64 re im))) (sqrt.f64 (/.f64 (-.f64 (*.f64 re re) (*.f64 (hypot.f64 re im) (hypot.f64 re im))) (-.f64 re (hypot.f64 re im))))))))
54.9b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (*.f64 (/.f64 (*.f64 im im) re) -1/2))))
54.9b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))))
Compiler

Compiled 8971 to 4447 computations (50.4% saved)

localize9.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(sqrt.f64 (*.f64 2 (fma.f64 (*.f64 (cbrt.f64 re) (cbrt.f64 re)) (cbrt.f64 re) (hypot.f64 re im))))
0.5b
(*.f64 (cbrt.f64 re) (cbrt.f64 re))
0.6b
(cbrt.f64 re)
12.9b
(fma.f64 (*.f64 (cbrt.f64 re) (cbrt.f64 re)) (cbrt.f64 re) (hypot.f64 re im))

series212.0ms (5.1%)

Counts
4 → 56
Calls

4 calls:

73.0ms
(sqrt.f64 (*.f64 2 (fma.f64 (*.f64 (cbrt.f64 re) (cbrt.f64 re)) (cbrt.f64 re) (hypot.f64 re im))))
57.0ms
(cbrt.f64 re)
44.0ms
(fma.f64 (*.f64 (cbrt.f64 re) (cbrt.f64 re)) (cbrt.f64 re) (hypot.f64 re im))
38.0ms
(*.f64 (cbrt.f64 re) (cbrt.f64 re))

rewrite12.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
21×add-sqr-sqrt_binary64
19×cbrt-prod_binary64
14×pow1_binary64
13×*-un-lft-identity_binary64
13×add-cube-cbrt_binary64
Counts
4 → 78
Calls

4 calls:

4.0ms
(*.f64 (cbrt.f64 re) (cbrt.f64 re))
2.0ms
(cbrt.f64 re)
2.0ms
(sqrt.f64 (*.f64 2 (fma.f64 (*.f64 (cbrt.f64 re) (cbrt.f64 re)) (cbrt.f64 re) (hypot.f64 re im))))
0.0ms
(fma.f64 (*.f64 (cbrt.f64 re) (cbrt.f64 re)) (cbrt.f64 re) (hypot.f64 re im))

simplify115.0ms (2.8%)

Algorithm
egg-herbie
Rules
710×fma-def_binary64
702×associate-/l*_binary64
325×cancel-sign-sub-inv_binary64
294×fma-neg_binary64
220×unswap-sqr_binary64
Counts
134 → 161
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02111923
15181757
218671664
346671645
448621645
549851645
649621645

prune128.0ms (3.1%)

Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New1961197
Fresh055
Picked101
Done033
Total1979206
Error
5.2b
Counts
206 → 9
Alt Table
StatusErrorProgram
54.9b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (*.f64 (/.f64 (*.f64 im im) re) -1/2))))
13.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 (*.f64 (*.f64 (cbrt.f64 re) (cbrt.f64 re)) (cbrt.f64 re)) (hypot.f64 re im)))))
11.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (+.f64 re (hypot.f64 re im)))))
11.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 (sqrt.f64 (+.f64 re (hypot.f64 re im))) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))))
46.6b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (neg.f64 im))))
47.3b
(*.f64 1/2 (sqrt.f64 (*.f64 2 im)))
49.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 (sqrt.f64 (+.f64 re (hypot.f64 re im))) (sqrt.f64 (/.f64 (-.f64 (*.f64 re re) (*.f64 (hypot.f64 re im) (hypot.f64 re im))) (-.f64 re (hypot.f64 re im))))))))
54.9b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))))
11.2b
(*.f64 1/2 (*.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 re (hypot.f64 re im)))))
Compiler

Compiled 4508 to 2361 computations (47.6% saved)

regimes376.0ms (9.1%)

Accuracy

Total 3.2b remaining (30.6%)

Threshold costs 0b (0%)

Counts
37 → 3
Compiler

Compiled 4591 to 3514 computations (23.5% saved)

bsearch1.0ms (0%)

Compiler

Compiled 12 to 7 computations (41.7% saved)

simplify3.0ms (0.1%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
03598
14598
24598

end129.0ms (3.1%)

Compiler

Compiled 274 to 174 computations (36.5% saved)

Profiling

Loading profile data...