Details

Time bar (total: 7.7s)

analyze1.0ms (0%)

Algorithm
search
Search
TrueOtherFalseIter
0%100%0%0
100%0%0%1
Compiler

Compiled 14 to 13 computations (7.1% saved)

sample2.1s (27.7%)

Results
1.0s2101×body2048valid
464.0ms4365×body128valid
396.0ms1020×body1024valid
149.0ms515×body512valid
48.0ms255×body256valid
Compiler

Compiled 41 to 38 computations (7.3% saved)

simplify8.0ms (0.1%)

Algorithm
egg-herbie
Rules
sub-neg_binary64
fma-def_binary64
+-commutative_binary64
*-commutative_binary64
associate-+l-_binary64
Counts
1 → 2
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01018
12215
22715
33515
44215
55215
66015
76915
87215
95315

prune3.0ms (0%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Error
13.5b
Counts
3 → 1
Alt Table
StatusErrorProgram
13.5b
(-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))
Compiler

Compiled 45 to 41 computations (8.9% saved)

localize6.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(/.f64 1/2 (hypot.f64 1 x))
0.0b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))
2.1b
(-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))

series13.0ms (0.2%)

Counts
3 → 36
Calls

3 calls:

6.0ms
(-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))
4.0ms
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))
3.0ms
(/.f64 1/2 (hypot.f64 1 x))

rewrite88.0ms (1.1%)

Algorithm
batch-egg-rewrite
Rules
466×prod-diff_binary64
406×log-prod_binary64
205×fma-def_binary64
170×expm1-udef_binary64
169×log1p-udef_binary64
Counts
3 → 100
Calls

3 calls:

86.0ms
(/.f64 1/2 (hypot.f64 1 x))
86.0ms
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))
86.0ms
(-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0934
120034
2240834
3493334
4509434

simplify66.0ms (0.9%)

Algorithm
egg-herbie
Rules
717×fma-neg_binary64
480×sub-neg_binary64
479×times-frac_binary64
353×fma-def_binary64
210×associate--l+_binary64
Counts
136 → 162
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0108784
1354766
21067746
33436746
44852746
55215746

prune132.0ms (1.7%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New1593162
Fresh000
Picked101
Done000
Total1603163
Error
0.0b
Counts
163 → 3
Alt Table
StatusErrorProgram
34.6b
(fma.f64 (pow.f64 x 4) -11/128 (*.f64 1/8 (*.f64 x x)))
13.0b
(/.f64 (-.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))) (+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))))
13.0b
(*.f64 (-.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))) (/.f64 1 (+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
Compiler

Compiled 3076 to 2742 computations (10.9% saved)

localize9.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(*.f64 (-.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))) (/.f64 1 (+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
0.0b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))
0.0b
(+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))
1.6b
(-.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))

series26.0ms (0.3%)

Counts
3 → 36
Calls

3 calls:

18.0ms
(*.f64 (-.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))) (/.f64 1 (+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
4.0ms
(+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))
3.0ms
(-.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))

rewrite77.0ms (1%)

Algorithm
batch-egg-rewrite
Rules
492×prod-diff_binary64
228×expm1-udef_binary64
228×log1p-udef_binary64
132×add-sqr-sqrt_binary64
131×egg-rr
Counts
3 → 131
Calls

3 calls:

75.0ms
(*.f64 (-.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))) (/.f64 1 (+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
75.0ms
(+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))
75.0ms
(-.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01252
127340
2341440
3496640

simplify55.0ms (0.7%)

Algorithm
egg-herbie
Rules
788×fma-def_binary64
455×distribute-rgt-in_binary64
407×distribute-lft-in_binary64
222×cancel-sign-sub-inv_binary64
178×associate-/r*_binary64
Counts
167 → 195
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02061608
16641428
223551385
351621385

prune321.0ms (4.2%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New2461247
Fresh112
Picked011
Done000
Total2473250
Error
0.0b
Counts
250 → 3
Alt Table
StatusErrorProgram
34.6b
(fma.f64 (pow.f64 x 4) -11/128 (*.f64 1/8 (*.f64 x x)))
13.0b
(*.f64 (*.f64 (-.f64 1/4 (/.f64 1/4 (+.f64 1 (*.f64 x x)))) (/.f64 1 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))) (/.f64 1 (+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
13.0b
(*.f64 (-.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))) (/.f64 1 (+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
Compiler

Compiled 7783 to 6937 computations (10.9% saved)

localize16.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(*.f64 (-.f64 1/4 (/.f64 1/4 (+.f64 1 (*.f64 x x)))) (/.f64 1 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))
0.0b
(/.f64 1 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))
0.6b
(/.f64 1/4 (+.f64 1 (*.f64 x x)))
1.5b
(-.f64 1/4 (/.f64 1/4 (+.f64 1 (*.f64 x x))))

series11.0ms (0.1%)

Counts
4 → 48
Calls

4 calls:

3.0ms
(*.f64 (-.f64 1/4 (/.f64 1/4 (+.f64 1 (*.f64 x x)))) (/.f64 1 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))
3.0ms
(-.f64 1/4 (/.f64 1/4 (+.f64 1 (*.f64 x x))))
3.0ms
(/.f64 1/4 (+.f64 1 (*.f64 x x)))
2.0ms
(/.f64 1 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))

rewrite79.0ms (1%)

Algorithm
batch-egg-rewrite
Rules
443×prod-diff_binary64
260×log1p-udef_binary64
154×add-sqr-sqrt_binary64
151×log1p-expm1-u_binary64
151×expm1-log1p-u_binary64
Counts
4 → 141
Calls

4 calls:

76.0ms
(*.f64 (-.f64 1/4 (/.f64 1/4 (+.f64 1 (*.f64 x x)))) (/.f64 1 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))
76.0ms
(/.f64 1 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))
76.0ms
(/.f64 1/4 (+.f64 1 (*.f64 x x)))
76.0ms
(-.f64 1/4 (/.f64 1/4 (+.f64 1 (*.f64 x x))))
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01461
132442
2390442
3509842

simplify109.0ms (1.4%)

Algorithm
egg-herbie
Rules
863×fma-neg_binary64
435×fma-def_binary64
368×times-frac_binary64
324×sub-neg_binary64
225×distribute-rgt-neg-in_binary64
Counts
189 → 209
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
096729
1327715
2894695
32650695
44851695
54972695
64999695
74931695

prune312.0ms (4%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New2081209
Fresh011
Picked101
Done011
Total2093212
Error
0b
Counts
212 → 3
Alt Table
StatusErrorProgram
13.0b
(*.f64 (*.f64 (/.f64 (-.f64 1/16 (*.f64 (/.f64 -1/4 (fma.f64 x x 1)) (/.f64 -1/4 (fma.f64 x x 1)))) (-.f64 1/4 (/.f64 -1/4 (fma.f64 x x 1)))) (/.f64 1 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))) (/.f64 1 (+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
34.6b
(fma.f64 (pow.f64 x 4) -11/128 (*.f64 1/8 (*.f64 x x)))
13.0b
(*.f64 (-.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))) (/.f64 1 (+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
Compiler

Compiled 7543 to 6501 computations (13.8% saved)

localize19.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(/.f64 1 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))
0.1b
(*.f64 (/.f64 -1/4 (fma.f64 x x 1)) (/.f64 -1/4 (fma.f64 x x 1)))
0.6b
(/.f64 -1/4 (fma.f64 x x 1))
1.5b
(-.f64 1/16 (*.f64 (/.f64 -1/4 (fma.f64 x x 1)) (/.f64 -1/4 (fma.f64 x x 1))))

series10.0ms (0.1%)

Counts
3 → 36
Calls

3 calls:

4.0ms
(/.f64 -1/4 (fma.f64 x x 1))
3.0ms
(*.f64 (/.f64 -1/4 (fma.f64 x x 1)) (/.f64 -1/4 (fma.f64 x x 1)))
3.0ms
(-.f64 1/16 (*.f64 (/.f64 -1/4 (fma.f64 x x 1)) (/.f64 -1/4 (fma.f64 x x 1))))

rewrite52.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
851×log1p-expm1-u_binary64
851×expm1-log1p-u_binary64
104×egg-rr
92×add-sqr-sqrt_binary64
90×add-cbrt-cube_binary64
Counts
3 → 104
Calls

3 calls:

50.0ms
(*.f64 (/.f64 -1/4 (fma.f64 x x 1)) (/.f64 -1/4 (fma.f64 x x 1)))
50.0ms
(/.f64 -1/4 (fma.f64 x x 1))
50.0ms
(-.f64 1/16 (*.f64 (/.f64 -1/4 (fma.f64 x x 1)) (/.f64 -1/4 (fma.f64 x x 1))))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0933
120033
2218533
3518433

simplify78.0ms (1%)

Algorithm
egg-herbie
Rules
578×cancel-sign-sub-inv_binary64
526×associate-/r*_binary64
491×fma-neg_binary64
353×sub-neg_binary64
259×div-sub_binary64
Counts
140 → 147
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
068621
1224615
2610603
31702603
44394603
54780603
65049603

prune484.0ms (6.3%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New2950295
Fresh011
Picked011
Done011
Total2953298
Error
0b
Counts
298 → 3
Alt Table
StatusErrorProgram
13.0b
(*.f64 (*.f64 (/.f64 (-.f64 1/16 (*.f64 (/.f64 -1/4 (fma.f64 x x 1)) (/.f64 -1/4 (fma.f64 x x 1)))) (-.f64 1/4 (/.f64 -1/4 (fma.f64 x x 1)))) (/.f64 1 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))) (/.f64 1 (+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
34.6b
(fma.f64 (pow.f64 x 4) -11/128 (*.f64 1/8 (*.f64 x x)))
13.0b
(*.f64 (-.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))) (/.f64 1 (+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
Compiler

Compiled 14974 to 12567 computations (16.1% saved)

regimes3.5s (44.8%)

Accuracy

Total 0.2b remaining (78%)

Threshold costs 0.2b (78%)

Counts
250 → 2
Compiler

Compiled 53891 to 47598 computations (11.7% saved)

bsearch11.0ms (0.1%)

Compiler

Compiled 4 to 3 computations (25% saved)

simplify4.0ms (0%)

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
03487
14587
25487
35887
46087
55887

end122.0ms (1.6%)

Compiler

Compiled 200 to 167 computations (16.5% saved)

Profiling

Loading profile data...