Details

Time bar (total: 4.4s)

analyze20.0ms (0.4%)

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)

sample2.8s (64.1%)

Results
1.8s4074×body1024valid
557.0ms1970×body512valid
209.0ms404×body2048valid
193.0ms972×body256valid
84.0ms836×body128valid
Compiler

Compiled 30 to 16 computations (46.7% saved)

preprocess33.0ms (0.7%)

Algorithm
egg-herbie
Rules
720×fma-def_binary64
478×fma-neg_binary64
464×times-frac_binary64
264×associate-*l*_binary64
226×associate-*r*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0822
12022
23522
35922
413322
533622
687822
7256922
011
Stop Event
saturated
node limit
Compiler

Compiled 14 to 7 computations (50% saved)

simplify20.0ms (0.5%)

Algorithm
egg-herbie
Rules
720×fma-def_binary64
478×fma-neg_binary64
464×times-frac_binary64
264×associate-*l*_binary64
226×associate-*r*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0822
12022
23522
35922
413322
533622
687822
7256922
Stop Event
node limit
Counts
1 → 1

prune2.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
56.7b
Counts
2 → 1
Alt Table
StatusErrorProgram
56.7b
(/.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)

localize12.0ms (0.3%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
0.3b
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
5.6b
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))

series18.0ms (0.4%)

Counts
3 → 24
Calls

9 calls:

7.0ms
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
x
-inf
6.0ms
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
x
inf
1.0ms
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
x
0
1.0ms
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
x
0
1.0ms
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
x
0

rewrite98.0ms (2.2%)

Algorithm
egg-rewrite
batch-egg-rewrite
Rules
97×add-sqr-sqrt_binary64
92×log1p-expm1-u_binary64
92×expm1-log1p-u_binary64
91×add-cbrt-cube_binary64
91×add-log-exp_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0818
118618
2366218
066
11306
221316
066
083
11863
236623
083
066
11296
221306
066
Stop Event
iter limit
unsound
iter limit
unsound
iter limit
unsound
unsound
Counts
3 → 37

simplify30.0ms (0.7%)

Algorithm
egg-herbie
Rules
783×fma-def_binary64
695×fma-neg_binary64
507×unswap-sqr_binary64
471×associate-*l*_binary64
377×associate-*r*_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
050321
1138317
2352311
31114309
43894309
Stop Event
node limit
Counts
61 → 64

prune44.0ms (1%)

Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New60464
Fresh000
Picked101
Done000
Total61465
Error
0b
Counts
65 → 4
Alt Table
StatusErrorProgram
0.0b
(tanh.f64 x)
1.4b
(/.f64 (fma.f64 x (fma.f64 x (*.f64 x 1/3) 2) (fma.f64 1/60 (pow.f64 x 5) (*.f64 1/2520 (pow.f64 x 7)))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
1.8b
(fma.f64 (pow.f64 x 5) 2/15 (fma.f64 (pow.f64 x 3) -1/3 x))
0.0b
(expm1.f64 (log1p.f64 (tanh.f64 x)))
Compiler

Compiled 1024 to 467 computations (54.4% saved)

localize3.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(expm1.f64 (log1p.f64 (tanh.f64 x)))
0.0b
(tanh.f64 x)
0.2b
(log1p.f64 (tanh.f64 x))

series504.0ms (11.3%)

Counts
3 → 36
Calls

9 calls:

233.0ms
(log1p.f64 (tanh.f64 x))
x
-inf
231.0ms
(log1p.f64 (tanh.f64 x))
x
inf
11.0ms
(expm1.f64 (log1p.f64 (tanh.f64 x)))
x
inf
9.0ms
(tanh.f64 x)
x
-inf
8.0ms
(expm1.f64 (log1p.f64 (tanh.f64 x)))
x
-inf

rewrite42.0ms (0.9%)

Algorithm
batch-egg-rewrite
Rules
509×expm1-log1p-u_binary64
508×log1p-expm1-u_binary64
243×unpow-prod-down_binary64
224×log-prod_binary64
138×egg-rr
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0511
19411
2129111
Stop Event
node limit
Counts
3 → 138

simplify44.0ms (1%)

Algorithm
egg-herbie
Rules
547×fma-def_binary64
542×associate-*l*_binary64
491×associate-*r*_binary64
436×cancel-sign-sub-inv_binary64
254×fma-neg_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
048724
1135700
2353688
31152682
44933682
Stop Event
node limit
Counts
174 → 101

prune60.0ms (1.3%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New1001101
Fresh213
Picked101
Done000
Total1032105
Error
0b
Counts
105 → 2
Alt Table
StatusErrorProgram
0.1b
(expm1.f64 (log1p.f64 (*.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x))))))
0.0b
(tanh.f64 x)
Compiler

Compiled 1260 to 850 computations (32.5% saved)

localize6.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(tanh.f64 x)

prune33.0ms (0.7%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New63063
Fresh011
Picked011
Done000
Total63265
Error
0b
Counts
65 → 2
Alt Table
StatusErrorProgram
0.1b
(expm1.f64 (log1p.f64 (*.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x))))))
0.0b
(tanh.f64 x)
Compiler

Compiled 713 to 491 computations (31.1% saved)

localize10.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series318.0ms (7.2%)

Counts
4 → 48
Calls

12 calls:

149.0ms
(log1p.f64 (*.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x)))))
x
-inf
148.0ms
(log1p.f64 (*.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x)))))
x
inf
4.0ms
(*.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x))))
x
-inf
4.0ms
(*.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x))))
x
inf
3.0ms
(/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x)))
x
-inf

rewrite51.0ms (1.2%)

Algorithm
batch-egg-rewrite
Rules
519×prod-diff_binary64
217×fma-def_binary64
199×expm1-udef_binary64
199×log1p-udef_binary64
115×add-sqr-sqrt_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01254
125154
2295854
Stop Event
node limit
Counts
4 → 96

simplify42.0ms (0.9%)

Algorithm
egg-herbie
Rules
508×cancel-sign-sub-inv_binary64
359×fma-neg_binary64
326×sub-neg_binary64
272×unswap-sqr_binary64
253×fma-def_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
069649
1190612
2509598
31710598
44145598
Stop Event
node limit
Counts
144 → 131

prune81.0ms (1.8%)

Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New1310131
Fresh000
Picked011
Done011
Total1312133
Error
0b
Counts
133 → 2
Alt Table
StatusErrorProgram
0.1b
(expm1.f64 (log1p.f64 (*.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x))))))
0.0b
(tanh.f64 x)
Compiler

Compiled 2397 to 1657 computations (30.9% saved)

regimes86.0ms (1.9%)

Accuracy

Total 0.0b remaining (40%)

Threshold costs 0.0b (40%)

Counts
57 → 1
Compiler

Compiled 1524 to 1158 computations (24% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0711
Stop Event
saturated

end39.0ms (0.9%)

Stop Event
done
Compiler

Compiled 33 to 28 computations (15.2% saved)

Profiling

Loading profile data...