Details

Time bar (total: 1.7s)

analyze132.0ms (8%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
0%99.9%0.1%3
0%99.9%0.1%4
25%74.9%0.1%5
37.5%62.4%0.1%6
56.2%43.7%0.1%7
65.6%34.3%0.1%8
76.5%23.4%0.1%9
82%18%0.1%10
87.8%12.1%0.1%11
90.7%9.2%0.1%12
93.8%6.1%0.1%13
95.3%4.6%0.1%14
Compiler

Compiled 11 to 7 computations (36.4% saved)

sample951.0ms (57.3%)

Symmetry

(sort re im)

Results
803.0ms8256×body128valid
Compiler

Compiled 32 to 20 computations (37.5% saved)

simplify6.0ms (0.3%)

Algorithm
egg-herbie
Rules
hypot-def_binary64
fma-def_binary64
+-commutative_binary64
Counts
1 → 2
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
074
1104
2124
3124

prune100.0ms (6%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.0b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.0b
(hypot.f64 re im)
34.2b
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im)))
Compiler

Compiled 43 to 25 computations (41.9% saved)

localize2.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 re im)

series12.0ms (0.7%)

Counts
1 → 24
Calls

1 calls:

11.0ms
(hypot.f64 re im)

rewrite1.0ms (0%)

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity_binary64
add-sqr-sqrt_binary64
add-cube-cbrt_binary64
add-cbrt-cube_binary64
add-exp-log_binary64
Counts
1 → 10
Calls

1 calls:

0.0ms
(hypot.f64 re im)

simplify55.0ms (3.3%)

Algorithm
egg-herbie
Rules
943×fma-neg_binary64
529×cancel-sign-sub-inv_binary64
273×associate-/r/_binary64
262×distribute-rgt-neg-in_binary64
259×distribute-lft-neg-in_binary64
Counts
34 → 42
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
064568
1177541
2507525
32142525
44490525
55063525

prune40.0ms (2.4%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New40242
Fresh101
Picked011
Done000
Total41344
Error
0b
Counts
44 → 3
Alt Table
StatusErrorProgram
0.0b
(hypot.f64 re im)
34.2b
(sqrt.f64 (fma.f64 im im (*.f64 re re)))
37.2b
(neg.f64 (fma.f64 1/2 (/.f64 (*.f64 im im) re) re))
Compiler

Compiled 585 to 351 computations (40% saved)

localize4.0ms (0.3%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 im im (*.f64 re re))
32.1b
(sqrt.f64 (fma.f64 im im (*.f64 re re)))

series19.0ms (1.1%)

Counts
2 → 48
Calls

2 calls:

12.0ms
(sqrt.f64 (fma.f64 im im (*.f64 re re)))
6.0ms
(fma.f64 im im (*.f64 re re))

rewrite2.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt_binary64
*-un-lft-identity_binary64
sqrt-prod_binary64
add-cube-cbrt_binary64
pow1_binary64
Counts
2 → 26
Calls

2 calls:

1.0ms
(sqrt.f64 (fma.f64 im im (*.f64 re re)))
0.0ms
(fma.f64 im im (*.f64 re re))

simplify63.0ms (3.8%)

Algorithm
egg-herbie
Rules
727×fma-neg_binary64
529×cancel-sign-sub-inv_binary64
262×distribute-rgt-neg-in_binary64
259×distribute-lft-neg-in_binary64
243×distribute-neg-frac_binary64
Counts
74 → 77
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
078970
1192838
2561817
32302817
44604791
54971791

prune28.0ms (1.7%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New77077
Fresh011
Picked011
Done011
Total77380
Error
0b
Counts
80 → 3
Alt Table
StatusErrorProgram
0.0b
(hypot.f64 re im)
34.2b
(sqrt.f64 (fma.f64 im im (*.f64 re re)))
37.2b
(neg.f64 (fma.f64 1/2 (/.f64 (*.f64 im im) re) re))
Compiler

Compiled 966 to 465 computations (51.9% saved)

localize6.0ms (0.3%)

Local error

Found 1 expressions with local error:

NewErrorProgram
7.5b
(/.f64 (*.f64 im im) re)

series11.0ms (0.7%)

Counts
1 → 24
Calls

1 calls:

11.0ms
(/.f64 (*.f64 im im) re)

rewrite4.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
add-cbrt-cube_binary64
add-exp-log_binary64
associate-/r*_binary64
*-un-lft-identity_binary64
times-frac_binary64
Counts
1 → 23
Calls

1 calls:

3.0ms
(/.f64 (*.f64 im im) re)

simplify68.0ms (4.1%)

Algorithm
egg-herbie
Rules
544×associate-/r/_binary64
390×associate-*r/_binary64
327×div-sub_binary64
320×associate-*r*_binary64
295×unswap-sqr_binary64
Counts
47 → 29
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
048429
1102384
2283384
3934384
42005384
52978384
64495384
74955384

prune13.0ms (0.8%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New29029
Fresh000
Picked011
Done022
Total29332
Error
0b
Counts
32 → 3
Alt Table
StatusErrorProgram
0.0b
(hypot.f64 re im)
34.2b
(sqrt.f64 (fma.f64 im im (*.f64 re re)))
37.2b
(neg.f64 (fma.f64 1/2 (/.f64 (*.f64 im im) re) re))
Compiler

Compiled 415 to 185 computations (55.4% saved)

regimes95.0ms (5.8%)

Accuracy

Total 0.0b remaining (14.8%)

Threshold costs 0.0b (14.8%)

Counts
7 → 1
Compiler

Compiled 461 to 293 computations (36.4% saved)

simplify2.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
044
144

end45.0ms (2.7%)

Remove

(sort re im)

Compiler

Compiled 45 to 27 computations (40% saved)

Profiling

Loading profile data...