Details

Time bar (total: 5.4s)

analyze29.0ms (0.5%)

Algorithm
search
Search
TrueOtherFalseIter
0%18.7%81.3%0
0%18.7%81.3%1
0%18.7%81.3%2
0%18.7%81.3%3
0%18.7%81.3%4
4.7%14%81.3%5
5.3%13.5%81.3%6
18.1%0.6%81.3%7
18.1%0.6%81.3%8
18.6%0.1%81.3%9
18.6%0.1%81.3%10
18.7%0%81.3%11
18.7%0%81.3%12
18.7%0%81.3%13
18.7%0%81.3%14
Compiler

Compiled 28 to 17 computations (39.3% saved)

sample2.4s (44.6%)

Results
2.1s8256×body128valid
Compiler

Compiled 73 to 43 computations (41.1% saved)

simplify93.0ms (1.7%)

Algorithm
egg-herbie
Rules
917×times-frac_binary64
816×unsub-neg_binary64
772×fma-def_binary64
484×fma-neg_binary64
376×sub-neg_binary64
Counts
1 → 2
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01020
12420
25520
311220
427120
565720
6123420
7262020
8328820
9465220
10507520

prune5.0ms (0.1%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Error
22.5b
Counts
3 → 1
Alt Table
StatusErrorProgram
22.5b
(/.f64 (*.f64 (-.f64 x y) (+.f64 x y)) (fma.f64 x x (*.f64 y y)))
Compiler

Compiled 63 to 27 computations (57.1% saved)

localize16.0ms (0.3%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 x x (*.f64 y y))
22.2b
(/.f64 (*.f64 (-.f64 x y) (+.f64 x y)) (fma.f64 x x (*.f64 y y)))

series43.0ms (0.8%)

Counts
2 → 48
Calls

2 calls:

31.0ms
(/.f64 (*.f64 (-.f64 x y) (+.f64 x y)) (fma.f64 x x (*.f64 y y)))
13.0ms
(fma.f64 x x (*.f64 y y))

rewrite82.0ms (1.5%)

Algorithm
batch-egg-rewrite
Rules
932×prod-diff_binary64
189×log1p-udef_binary64
108×add-sqr-sqrt_binary64
103×log1p-expm1-u_binary64
103×expm1-log1p-u_binary64
Counts
2 → 67
Calls

2 calls:

79.0ms
(fma.f64 x x (*.f64 y y))
79.0ms
(/.f64 (*.f64 (-.f64 x y) (+.f64 x y)) (fma.f64 x x (*.f64 y y)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0928
120826
2298726
3515126
000
100

simplify78.0ms (1.4%)

Algorithm
egg-herbie
Rules
817×fma-neg_binary64
528×associate-*l/_binary64
454×associate-*r/_binary64
387×fma-def_binary64
330×cancel-sign-sub-inv_binary64
Counts
115 → 87
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
037738
1111678
2312642
31210609
44403594
55036594

prune103.0ms (1.9%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New84387
Fresh000
Picked011
Done000
Total84488
Error
0.0b
Counts
88 → 4
Alt Table
StatusErrorProgram
22.8b
(-.f64 (/.f64 x (/.f64 (pow.f64 (hypot.f64 x y) 2) (+.f64 x y))) (/.f64 y (/.f64 (pow.f64 (hypot.f64 x y) 2) (+.f64 x y))))
47.4b
1
22.5b
(/.f64 (*.f64 (-.f64 x y) (+.f64 x y)) (fma.f64 x x (*.f64 y y)))
0.0b
(*.f64 (/.f64 (-.f64 x y) (hypot.f64 x y)) (/.f64 (+.f64 x y) (hypot.f64 x y)))
Compiler

Compiled 1659 to 648 computations (60.9% saved)

localize15.0ms (0.3%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(*.f64 (/.f64 (-.f64 x y) (hypot.f64 x y)) (/.f64 (+.f64 x y) (hypot.f64 x y)))
0.0b
(/.f64 (-.f64 x y) (hypot.f64 x y))
0.0b
(/.f64 (+.f64 x y) (hypot.f64 x y))

series84.0ms (1.5%)

Counts
3 → 72
Calls

3 calls:

47.0ms
(*.f64 (/.f64 (-.f64 x y) (hypot.f64 x y)) (/.f64 (+.f64 x y) (hypot.f64 x y)))
19.0ms
(/.f64 (-.f64 x y) (hypot.f64 x y))
18.0ms
(/.f64 (+.f64 x y) (hypot.f64 x y))

rewrite204.0ms (3.8%)

Algorithm
batch-egg-rewrite
Rules
805×prod-diff_binary64
260×egg-rr
200×log1p-udef_binary64
111×add-sqr-sqrt_binary64
106×log1p-expm1-u_binary64
Counts
3 → 260
Calls

3 calls:

184.0ms
(*.f64 (/.f64 (-.f64 x y) (hypot.f64 x y)) (/.f64 (+.f64 x y) (hypot.f64 x y)))
184.0ms
(/.f64 (-.f64 x y) (hypot.f64 x y))
184.0ms
(/.f64 (+.f64 x y) (hypot.f64 x y))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0942
121439
2327139
3527639
000
100

simplify164.0ms (3%)

Algorithm
egg-herbie
Rules
425×distribute-neg-frac_binary64
389×times-frac_binary64
325×sub-neg_binary64
252×fma-def_binary64
246×unswap-sqr_binary64
Counts
332 → 320
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0781324
12701252
28821152
336681098
449821098
549751098
649951098
749661098

prune422.0ms (7.8%)

Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New3182320
Fresh202
Picked011
Done011
Total3204324
Error
0b
Counts
324 → 4
Alt Table
StatusErrorProgram
22.5b
(/.f64 (*.f64 (-.f64 x y) (+.f64 x y)) (fma.f64 x x (*.f64 y y)))
0.0b
(/.f64 (-.f64 x y) (/.f64 (hypot.f64 x y) (/.f64 (+.f64 x y) (hypot.f64 x y))))
0.0b
(/.f64 (+.f64 x y) (*.f64 (hypot.f64 x y) (/.f64 (hypot.f64 x y) (-.f64 x y))))
0.0b
(*.f64 (/.f64 (-.f64 x y) (hypot.f64 x y)) (/.f64 (+.f64 x y) (hypot.f64 x y)))
Compiler

Compiled 12748 to 2873 computations (77.5% saved)

localize15.0ms (0.3%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(/.f64 (+.f64 x y) (*.f64 (hypot.f64 x y) (/.f64 (hypot.f64 x y) (-.f64 x y))))
0.0b
(*.f64 (hypot.f64 x y) (/.f64 (hypot.f64 x y) (-.f64 x y)))
0.0b
(/.f64 (hypot.f64 x y) (-.f64 x y))

series80.0ms (1.5%)

Counts
3 → 72
Calls

3 calls:

45.0ms
(/.f64 (+.f64 x y) (*.f64 (hypot.f64 x y) (/.f64 (hypot.f64 x y) (-.f64 x y))))
18.0ms
(/.f64 (hypot.f64 x y) (-.f64 x y))
17.0ms
(*.f64 (hypot.f64 x y) (/.f64 (hypot.f64 x y) (-.f64 x y)))

rewrite115.0ms (2.1%)

Algorithm
batch-egg-rewrite
Rules
650×prod-diff_binary64
200×expm1-udef_binary64
200×log1p-udef_binary64
109×add-sqr-sqrt_binary64
104×log1p-expm1-u_binary64
Counts
3 → 103
Calls

3 calls:

107.0ms
(/.f64 (+.f64 x y) (*.f64 (hypot.f64 x y) (/.f64 (hypot.f64 x y) (-.f64 x y))))
107.0ms
(*.f64 (hypot.f64 x y) (/.f64 (hypot.f64 x y) (-.f64 x y)))
107.0ms
(/.f64 (hypot.f64 x y) (-.f64 x y))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0948
121042
2313742
3508042
000
100

simplify110.0ms (2%)

Algorithm
egg-herbie
Rules
966×fma-neg_binary64
434×times-frac_binary64
258×fma-def_binary64
224×sub-neg_binary64
223×associate-/l*_binary64
Counts
175 → 155
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0871233
12741185
28891102
337981053
449351053
549691053

prune192.0ms (3.5%)

Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New1550155
Fresh011
Picked011
Done022
Total1554159
Error
0b
Counts
159 → 4
Alt Table
StatusErrorProgram
22.5b
(/.f64 (*.f64 (-.f64 x y) (+.f64 x y)) (fma.f64 x x (*.f64 y y)))
0.0b
(/.f64 (-.f64 x y) (/.f64 (hypot.f64 x y) (/.f64 (+.f64 x y) (hypot.f64 x y))))
0.0b
(/.f64 (+.f64 x y) (*.f64 (hypot.f64 x y) (/.f64 (hypot.f64 x y) (-.f64 x y))))
0.0b
(*.f64 (/.f64 (-.f64 x y) (hypot.f64 x y)) (/.f64 (+.f64 x y) (hypot.f64 x y)))
Compiler

Compiled 3033 to 1120 computations (63.1% saved)

localize14.0ms (0.3%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(/.f64 (-.f64 x y) (/.f64 (hypot.f64 x y) (/.f64 (+.f64 x y) (hypot.f64 x y))))
0.0b
(/.f64 (+.f64 x y) (hypot.f64 x y))
0.0b
(/.f64 (hypot.f64 x y) (/.f64 (+.f64 x y) (hypot.f64 x y)))

series76.0ms (1.4%)

Counts
2 → 48
Calls

2 calls:

58.0ms
(/.f64 (-.f64 x y) (/.f64 (hypot.f64 x y) (/.f64 (+.f64 x y) (hypot.f64 x y))))
17.0ms
(/.f64 (hypot.f64 x y) (/.f64 (+.f64 x y) (hypot.f64 x y)))

rewrite146.0ms (2.7%)

Algorithm
batch-egg-rewrite
Rules
282×fma-def_binary64
206×expm1-udef_binary64
206×log1p-udef_binary64
181×log-pow_binary64
177×fma-neg_binary64
Counts
2 → 110
Calls

2 calls:

140.0ms
(/.f64 (-.f64 x y) (/.f64 (hypot.f64 x y) (/.f64 (+.f64 x y) (hypot.f64 x y))))
140.0ms
(/.f64 (hypot.f64 x y) (/.f64 (+.f64 x y) (hypot.f64 x y)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0938
121832
2345032
3499332
4500032
000
100

simplify88.0ms (1.6%)

Algorithm
egg-herbie
Rules
572×fma-neg_binary64
384×associate-/l/_binary64
335×times-frac_binary64
333×distribute-rgt-neg-in_binary64
330×distribute-lft-neg-in_binary64
Counts
158 → 136
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
057828
1173786
2511750
32204699
44887684
55057684

prune239.0ms (4.4%)

Pruning

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New1950195
Fresh000
Picked011
Done033
Total1954199
Error
0b
Counts
199 → 4
Alt Table
StatusErrorProgram
22.5b
(/.f64 (*.f64 (-.f64 x y) (+.f64 x y)) (fma.f64 x x (*.f64 y y)))
0.0b
(/.f64 (-.f64 x y) (/.f64 (hypot.f64 x y) (/.f64 (+.f64 x y) (hypot.f64 x y))))
0.0b
(/.f64 (+.f64 x y) (*.f64 (hypot.f64 x y) (/.f64 (hypot.f64 x y) (-.f64 x y))))
0.0b
(*.f64 (/.f64 (-.f64 x y) (hypot.f64 x y)) (/.f64 (+.f64 x y) (hypot.f64 x y)))
Compiler

Compiled 4165 to 1529 computations (63.3% saved)

regimes419.0ms (7.7%)

Accuracy

Total 0.0b remaining (60.5%)

Threshold costs 0.0b (60.5%)

Counts
90 → 1
Compiler

Compiled 4546 to 2555 computations (43.8% saved)

simplify4.0ms (0.1%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
*-commutative_binary64
sub-neg_binary64
neg-sub0_binary64
neg-mul-1_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0922
11322
21822
32022
42122
52122

end163.0ms (3%)

Compiler

Compiled 101 to 48 computations (52.5% saved)

Profiling

Loading profile data...