Details

Time bar (total: 4.1s)

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.2s (55.1%)

Results
1.1s2143×body2048valid
490.0ms4318×body128valid
422.0ms1047×body1024valid
149.0ms494×body512valid
52.0ms254×body256valid
Compiler

Compiled 41 to 38 computations (7.3% saved)

simplify8.0ms (0.2%)

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.1%)

Pruning

1 alts after pruning (1 fresh and 0 done)

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

Compiled 45 to 41 computations (8.9% saved)

localize8.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series18.0ms (0.5%)

Counts
4 → 48
Calls

4 calls:

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

rewrite25.0ms (0.6%)

Algorithm
rewrite-expression-head
Rules
41×*-un-lft-identity_binary64
36×add-sqr-sqrt_binary64
24×sqrt-prod_binary64
22×add-cube-cbrt_binary64
21×prod-diff_binary64
Counts
4 → 98
Calls

4 calls:

8.0ms
(-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))
6.0ms
(+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))
5.0ms
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))
0.0ms
(hypot.f64 1 x)

simplify106.0ms (2.6%)

Algorithm
egg-herbie
Rules
671×fma-def_binary64
495×associate-*l*_binary64
429×fma-neg_binary64
427×associate-*r*_binary64
268×cancel-sign-sub-inv_binary64
Counts
146 → 181
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02263114
16072734
217332412
348502412
449722412

prune141.0ms (3.5%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New1783181
Fresh000
Picked101
Done000
Total1793182
Error
0.0b
Counts
182 → 3
Alt Table
StatusErrorProgram
16.6b
(/.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))))))
32.2b
(fma.f64 (pow.f64 x 4) -11/128 (*.f64 1/8 (*.f64 x x)))
17.1b
(log1p.f64 (expm1.f64 (-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
Compiler

Compiled 4130 to 3666 computations (11.2% saved)

localize9.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))
0.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))))))
0.0b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))
2.7b
(-.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))

series33.0ms (0.8%)

Counts
3 → 36
Calls

3 calls:

24.0ms
(/.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))))))
5.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)))

rewrite51.0ms (1.3%)

Algorithm
rewrite-expression-head
Rules
116×*-un-lft-identity_binary64
116×add-sqr-sqrt_binary64
80×times-frac_binary64
60×add-cube-cbrt_binary64
39×prod-diff_binary64
Counts
3 → 157
Calls

3 calls:

18.0ms
(/.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))))))
10.0ms
(-.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))
7.0ms
(+.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))

simplify185.0ms (4.5%)

Algorithm
egg-herbie
Rules
565×times-frac_binary64
260×fma-def_binary64
206×associate-*r*_binary64
200×associate-/r*_binary64
184×fma-neg_binary64
Counts
193 → 229
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
04488251
112495965
238875923
350505923

prune293.0ms (7.2%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New2701271
Fresh112
Picked011
Done000
Total2713274
Error
0b
Counts
274 → 3
Alt Table
StatusErrorProgram
16.6b
(/.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))))))
32.2b
(fma.f64 x (*.f64 x 1/8) (*.f64 (pow.f64 x 4) -11/128))
17.1b
(log1p.f64 (expm1.f64 (-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
Compiler

Compiled 10035 to 8974 computations (10.6% saved)

localize10.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))
0.5b
(log1p.f64 (expm1.f64 (-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
0.5b
(expm1.f64 (-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))))
3.2b
(-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))

series22.0ms (0.5%)

Counts
2 → 24
Calls

2 calls:

15.0ms
(expm1.f64 (-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))))
6.0ms
(log1p.f64 (expm1.f64 (-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))

rewrite1.0ms (0%)

Algorithm
rewrite-expression-head
Rules
log1p-expm1-u_binary64
*-un-lft-identity_binary64
add-sqr-sqrt_binary64
add-cube-cbrt_binary64
add-cbrt-cube_binary64
Counts
2 → 22
Calls

2 calls:

0.0ms
(expm1.f64 (-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x))))))
0.0ms
(log1p.f64 (expm1.f64 (-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))

simplify76.0ms (1.9%)

Algorithm
egg-herbie
Rules
554×fma-def_binary64
447×associate-/r*_binary64
447×fma-neg_binary64
370×times-frac_binary64
298×associate-*l*_binary64
Counts
46 → 71
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01491459
14251327
214581228
348931228
451701228

prune152.0ms (3.7%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New1810181
Fresh011
Picked011
Done011
Total1813184
Error
0b
Counts
184 → 3
Alt Table
StatusErrorProgram
16.6b
(/.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))))))
32.2b
(fma.f64 x (*.f64 x 1/8) (*.f64 (pow.f64 x 4) -11/128))
17.1b
(log1p.f64 (expm1.f64 (-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
Compiler

Compiled 4930 to 4441 computations (9.9% saved)

localize6.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 x (*.f64 x 1/8) (*.f64 (pow.f64 x 4) -11/128))
0.1b
(*.f64 (pow.f64 x 4) -11/128)

series7.0ms (0.2%)

Counts
2 → 24
Calls

2 calls:

4.0ms
(fma.f64 x (*.f64 x 1/8) (*.f64 (pow.f64 x 4) -11/128))
3.0ms
(*.f64 (pow.f64 x 4) -11/128)

rewrite5.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt_binary64
associate-*l*_binary64
add-exp-log_binary64
*-un-lft-identity_binary64
add-cube-cbrt_binary64
Counts
2 → 37
Calls

2 calls:

4.0ms
(*.f64 (pow.f64 x 4) -11/128)
0.0ms
(fma.f64 x (*.f64 x 1/8) (*.f64 (pow.f64 x 4) -11/128))

simplify77.0ms (1.9%)

Algorithm
egg-herbie
Rules
461×unsub-neg_binary64
423×*-commutative_binary64
388×distribute-rgt-neg-in_binary64
343×exp-prod_binary64
304×log-prod_binary64
Counts
61 → 63
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
070724
1123683
2317665
31110665
42628659
54199659
65084659

prune37.0ms (0.9%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New63063
Fresh000
Picked011
Done022
Total63366
Error
0b
Counts
66 → 3
Alt Table
StatusErrorProgram
16.6b
(/.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))))))
32.2b
(fma.f64 x (*.f64 x 1/8) (*.f64 (pow.f64 x 4) -11/128))
17.1b
(log1p.f64 (expm1.f64 (-.f64 1 (sqrt.f64 (+.f64 1/2 (/.f64 1/2 (hypot.f64 1 x)))))))
Compiler

Compiled 1027 to 751 computations (26.9% saved)

regimes469.0ms (11.5%)

Accuracy

Total 0.1b remaining (64.4%)

Threshold costs 0.1b (64.4%)

Counts
53 → 2
Compiler

Compiled 7108 to 6387 computations (10.1% saved)

bsearch2.0ms (0%)

Compiler

Compiled 4 to 3 computations (25% saved)

simplify3.0ms (0.1%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
*-commutative_binary64
sub-neg_binary64
distribute-neg-frac_binary64
neg-sub0_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02250
13050
23750
33950
44050
53850

end79.0ms (1.9%)

Compiler

Compiled 113 to 95 computations (15.9% saved)

Profiling

Loading profile data...