Details

Time bar (total: 2.5s)

analyze58.0ms (2.3%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
50%50%0.1%3
50%50%0.1%4
62.4%37.5%0.1%5
62.4%31.2%6.3%6
68.7%21.9%9.5%7
68.7%17.2%14.1%8
71.8%11.7%16.5%9
71.8%9%19.2%10
73.4%6%20.6%11
73.4%4.6%22%12
74.1%3.1%22.8%13
74.1%2.3%23.5%14
Compiler

Compiled 9 to 7 computations (22.2% saved)

sample2.0s (78.7%)

Symmetry

(sort a x)

Results
714.0ms1485×body2048valid
567.0ms1806×body1024valid
276.0ms3122×body128valid
265.0ms1189×body512valid
99.0ms654×body256valid
15.0ms171×body128invalid
Compiler

Compiled 26 to 20 computations (23.1% saved)

simplify19.0ms (0.7%)

Algorithm
egg-herbie
Rules
440×unswap-sqr_binary64
329×associate-*l*_binary64
275×associate-+l+_binary64
252×associate-*r*_binary64
201×associate-/l/_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
076
1166
2236
3356
4706
51756
65566
723316
Stop Event
node limit
Counts
1 → 2

prune5.0ms (0.2%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Error
0.0b
Counts
3 → 1
Alt Table
StatusErrorProgram
0.0b
(expm1.f64 (*.f64 a x))
Compiler

Compiled 24 to 15 computations (37.5% saved)

localize3.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(expm1.f64 (*.f64 a x))

series5.0ms (0.2%)

Counts
1 → 24
Calls

1 calls:

5.0ms
(expm1.f64 (*.f64 a x))

rewrite28.0ms (1.1%)

Algorithm
batch-egg-rewrite
Rules
405×log1p-expm1-u_binary64
405×expm1-log1p-u_binary64
342×pow1_binary64
285×unpow-prod-down_binary64
236×log-prod_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
056
1966
211236
Stop Event
node limit
Counts
1 → 36
Calls

1 calls:

27.0ms
(expm1.f64 (*.f64 a x))

simplify34.0ms (1.4%)

Algorithm
egg-herbie
Rules
882×fma-def_binary64
844×distribute-lft-out_binary64
307×*-commutative_binary64
300×unswap-sqr_binary64
172×associate-*l*_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
030284
187284
2242278
31040262
43195248
54880248
Stop Event
node limit
Counts
60 → 45

prune20.0ms (0.8%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New44145
Fresh000
Picked011
Done000
Total44246
Error
0b
Counts
46 → 2
Alt Table
StatusErrorProgram
18.2b
(fma.f64 x (fma.f64 x (*.f64 1/2 (*.f64 a a)) a) (*.f64 1/6 (pow.f64 (*.f64 a x) 3)))
0.0b
(expm1.f64 (*.f64 a x))
Compiler

Compiled 560 to 254 computations (54.6% saved)

localize10.0ms (0.4%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(pow.f64 (*.f64 a x) 3)
0.2b
(*.f64 1/2 (*.f64 a a))
3.8b
(fma.f64 x (*.f64 1/2 (*.f64 a a)) a)
8.0b
(fma.f64 x (fma.f64 x (*.f64 1/2 (*.f64 a a)) a) (*.f64 1/6 (pow.f64 (*.f64 a x) 3)))

series38.0ms (1.5%)

Counts
4 → 84
Calls

4 calls:

17.0ms
(fma.f64 x (fma.f64 x (*.f64 1/2 (*.f64 a a)) a) (*.f64 1/6 (pow.f64 (*.f64 a x) 3)))
10.0ms
(pow.f64 (*.f64 a x) 3)
8.0ms
(fma.f64 x (*.f64 1/2 (*.f64 a a)) a)
2.0ms
(*.f64 1/2 (*.f64 a a))

rewrite54.0ms (2.2%)

Algorithm
batch-egg-rewrite
Rules
605×log-prod_binary64
272×prod-diff_binary64
222×expm1-udef_binary64
222×log1p-udef_binary64
195×log-pow_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01349
127149
2309849
Stop Event
node limit
Counts
4 → 104
Calls

4 calls:

52.0ms
(pow.f64 (*.f64 a x) 3)
52.0ms
(*.f64 1/2 (*.f64 a a))
52.0ms
(fma.f64 x (*.f64 1/2 (*.f64 a a)) a)
52.0ms
(fma.f64 x (fma.f64 x (*.f64 1/2 (*.f64 a a)) a) (*.f64 1/6 (pow.f64 (*.f64 a x) 3)))

simplify111.0ms (4.4%)

Algorithm
egg-herbie
Rules
937×fma-def_binary64
755×unswap-sqr_binary64
535×*-commutative_binary64
350×sqr-pow_binary64
164×distribute-lft-out_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
0231158
1631122
21711076
36811056
416051032
532891032
634821032
736811032
838621032
941981032
1044151032
1147091032
Stop Event
node limit
Counts
188 → 119

prune71.0ms (2.8%)

Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New1190119
Fresh000
Picked011
Done011
Total1192121
Error
0b
Counts
121 → 2
Alt Table
StatusErrorProgram
18.2b
(fma.f64 x (fma.f64 x (*.f64 1/2 (*.f64 a a)) a) (*.f64 1/6 (pow.f64 (*.f64 a x) 3)))
0.0b
(expm1.f64 (*.f64 a x))
Compiler

Compiled 2724 to 1471 computations (46% saved)

regimes40.0ms (1.6%)

Accuracy

Total 0.0b remaining (10.4%)

Threshold costs 0.0b (10.4%)

Counts
8 → 1
Compiler

Compiled 495 to 319 computations (35.6% saved)

simplify2.0ms (0.1%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
056
166
Stop Event
saturated

end42.0ms (1.7%)

Remove

(sort a x)

Compiler

Compiled 49 to 32 computations (34.7% saved)

Profiling

Loading profile data...