Details

Time bar (total: 3.7s)

analyze19.0ms (0.5%)

Algorithm
search
Search
TrueOtherFalseIter
0%100%0%0
0%100%0%1
0%100%0%2
50%50%0%3
50%25%25%4
50%12.5%37.5%5
50%6.2%43.8%6
50%3.1%46.9%7
50%1.6%48.5%8
50%1.6%48.5%9
50.4%1.2%48.5%10
50.4%1.2%48.5%11
50.4%1.1%48.6%12
50.4%1%48.6%13
50.5%0.9%48.6%14
Compiler

Compiled 15 to 8 computations (46.7% saved)

sample3.2s (85.2%)

Results
2.0s4080×body1024valid
560.0ms1958×body512valid
232.0ms413×body2048valid
189.0ms991×body256valid
85.0ms814×body128valid
0.0msbody128invalid
Compiler

Compiled 44 to 23 computations (47.7% saved)

prune2.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
58.4b
Counts
2 → 1
Alt Table
StatusErrorProgram
58.4b
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Compiler

Compiled 42 to 21 computations (50% saved)

localize6.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
1.5b
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
6.1b
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))

series19.0ms (0.5%)

Counts
3 → 24
Calls

3 calls:

15.0ms
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
2.0ms
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
2.0ms
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))

rewrite110.0ms (3%)

Algorithm
egg-rewrite
batch-egg-rewrite
Rules
97×add-sqr-sqrt_binary64
92×log1p-expm1-u_binary64
92×expm1-log1p-u_binary64
91×add-log-exp_binary64
89×add-cbrt-cube_binary64
Counts
3 → 37
Calls

3 calls:

109.0ms
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
109.0ms
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
109.0ms
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0818
118618
22618
066
11306
2716
066
11306
083
11863
2263
083
11863
066
11296
2196
066
11296

prune33.0ms (0.9%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New59261
Fresh000
Picked101
Done000
Total60262
Error
0b
Counts
62 → 2
Alt Table
StatusErrorProgram
1.9b
(-.f64 (+.f64 (*.f64 2/15 (pow.f64 x 5)) x) (*.f64 1/3 (pow.f64 x 3)))
0.0b
(tanh.f64 x)
Compiler

Compiled 915 to 404 computations (55.8% saved)

localize1.0ms (0%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(tanh.f64 x)

series20.0ms (0.5%)

Counts
1 → 12
Calls

1 calls:

20.0ms
(tanh.f64 x)

rewrite106.0ms (2.9%)

Algorithm
batch-egg-rewrite
Rules
804×log1p-udef_binary64
435×log1p-expm1-u_binary64
435×expm1-log1p-u_binary64
373×pow1_binary64
199×unpow-prod-down_binary64
Counts
1 → 52
Calls

1 calls:

105.0ms
(tanh.f64 x)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
033
1753
210583
348133
462273

prune27.0ms (0.7%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New63164
Fresh101
Picked011
Done000
Total64266
Error
0b
Counts
66 → 2
Alt Table
StatusErrorProgram
0.0b
(tanh.f64 x)
0.0b
(/.f64 (expm1.f64 (*.f64 x 2)) (+.f64 1 (exp.f64 (*.f64 x 2))))
Compiler

Compiled 688 to 431 computations (37.4% saved)

localize6.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(expm1.f64 (*.f64 x 2))
0.0b
(+.f64 1 (exp.f64 (*.f64 x 2)))
0.0b
(/.f64 (expm1.f64 (*.f64 x 2)) (+.f64 1 (exp.f64 (*.f64 x 2))))

series13.0ms (0.4%)

Counts
3 → 36
Calls

3 calls:

10.0ms
(/.f64 (expm1.f64 (*.f64 x 2)) (+.f64 1 (exp.f64 (*.f64 x 2))))
2.0ms
(expm1.f64 (*.f64 x 2))
2.0ms
(+.f64 1 (exp.f64 (*.f64 x 2)))

rewrite60.0ms (1.6%)

Algorithm
batch-egg-rewrite
Rules
834×log1p-expm1-u_binary64
834×expm1-log1p-u_binary64
97×prod-diff_binary64
92×egg-rr
87×add-sqr-sqrt_binary64
Counts
3 → 92
Calls

3 calls:

58.0ms
(expm1.f64 (*.f64 x 2))
58.0ms
(+.f64 1 (exp.f64 (*.f64 x 2)))
58.0ms
(/.f64 (expm1.f64 (*.f64 x 2)) (+.f64 1 (exp.f64 (*.f64 x 2))))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0932
118432
2215232
3530132

prune60.0ms (1.6%)

Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New1280128
Fresh000
Picked011
Done011
Total1282130
Error
0b
Counts
130 → 2
Alt Table
StatusErrorProgram
0.0b
(tanh.f64 x)
0.0b
(/.f64 (expm1.f64 (*.f64 x 2)) (+.f64 1 (exp.f64 (*.f64 x 2))))
Compiler

Compiled 2016 to 1205 computations (40.2% saved)

regimes29.0ms (0.8%)

Accuracy

Total 0.0b remaining (41.1%)

Threshold costs 0.0b (41.1%)

Counts
14 → 1
Compiler

Compiled 364 to 264 computations (27.5% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
033
133

end35.0ms (1%)

Compiler

Compiled 21 to 16 computations (23.8% saved)

Profiling

Loading profile data...