Details

Time bar (total: 3.7s)

analyze64.0ms (1.7%)

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

Symmetry

(sort a x)

Results
784.0ms1511×body2048valid
604.0ms1789×body1024valid
301.0ms3131×body128valid
270.0ms1162×body512valid
107.0ms663×body256valid
13.0ms139×body128invalid
Compiler

Compiled 26 to 20 computations (23.1% saved)

simplify78.0ms (2.1%)

Algorithm
egg-herbie
Rules
571×fma-neg_binary64
455×*-commutative_binary64
440×unswap-sqr_binary64
344×associate-*l*_binary64
274×associate-+l+_binary64
Counts
1 → 2
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
076
1166
2236
3356
4706
51606
64326
715646
834906
949546
1049936
1148746

prune3.0ms (0.1%)

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

Counts
1 → 24
Calls

1 calls:

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

rewrite76.0ms (2.1%)

Algorithm
batch-egg-rewrite
Rules
736×log1p-udef_binary64
405×log1p-expm1-u_binary64
405×expm1-log1p-u_binary64
342×pow1_binary64
287×unpow-prod-down_binary64
Counts
1 → 37
Calls

1 calls:

75.0ms
(expm1.f64 (*.f64 a x))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
056
1956
210806
346626
458836

simplify58.0ms (1.6%)

Algorithm
egg-herbie
Rules
1324×distribute-lft-out_binary64
882×fma-def_binary64
423×associate-/l/_binary64
368×*-commutative_binary64
362×associate-/r/_binary64
Counts
61 → 44
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
030284
186284
2234278
3888262
42148248
52915248
63566248
75038248

prune19.0ms (0.5%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New43144
Fresh000
Picked011
Done000
Total43245
Error
0.0b
Counts
45 → 2
Alt Table
StatusErrorProgram
46.4b
(*.f64 (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3) (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3))
0.0b
(expm1.f64 (*.f64 a x))
Compiler

Compiled 558 to 258 computations (53.8% saved)

localize8.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f64 (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3) (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3))
0.2b
(pow.f64 (expm1.f64 (*.f64 a x)) 3)
11.1b
(pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3)
19.4b
(sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3))

series616.0ms (16.7%)

Counts
4 → 80
Calls

4 calls:

559.0ms
(pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3)
33.0ms
(sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3))
18.0ms
(pow.f64 (expm1.f64 (*.f64 a x)) 3)
6.0ms
(*.f64 (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3) (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3))

rewrite52.0ms (1.4%)

Algorithm
batch-egg-rewrite
Rules
781×log1p-expm1-u_binary64
781×expm1-log1p-u_binary64
157×log1p-udef_binary64
98×egg-rr
94×add-sqr-sqrt_binary64
Counts
4 → 98
Calls

4 calls:

50.0ms
(*.f64 (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3) (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3))
50.0ms
(pow.f64 (expm1.f64 (*.f64 a x)) 3)
50.0ms
(pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3)
50.0ms
(sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3))
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01143
122632
2208932
3483632

simplify96.0ms (2.6%)

Algorithm
egg-herbie
Rules
502×fma-neg_binary64
356×associate-*l*_binary64
348×associate-*r*_binary64
322×distribute-lft-in_binary64
317×distribute-rgt-in_binary64
Counts
178 → 116
Iterations

Useful iterations: 5 (0.0ms)

IterNodesCost
050968
1140968
2414930
31822920
42833894
54245864
64970864
75200864

prune118.0ms (3.2%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New2031204
Fresh000
Picked011
Done011
Total2033206
Error
0b
Counts
206 → 3
Alt Table
StatusErrorProgram
46.4b
(*.f64 (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3) (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3))
0.0b
(expm1.f64 (*.f64 a x))
52.9b
(*.f64 (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3) (log.f64 (exp.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))))))
Compiler

Compiled 4479 to 2418 computations (46% saved)

localize31.0ms (0.8%)

Local error

Found 4 expressions with local error:

NewErrorProgram
4.3b
(log.f64 (exp.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))
8.5b
(sqrt.f64 (expm1.f64 (*.f64 a x)))
11.1b
(pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3)
19.4b
(sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3))

series42.0ms (1.1%)

Counts
2 → 32
Calls

2 calls:

26.0ms
(log.f64 (exp.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))
16.0ms
(sqrt.f64 (expm1.f64 (*.f64 a x)))

rewrite49.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
536×log1p-expm1-u_binary64
536×expm1-log1p-u_binary64
429×unpow-prod-down_binary64
311×log-prod_binary64
163×pow2_binary64
Counts
2 → 84
Calls

2 calls:

48.0ms
(log.f64 (exp.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))
48.0ms
(sqrt.f64 (expm1.f64 (*.f64 a x)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0816
113016
2144116
3529116

simplify85.0ms (2.3%)

Algorithm
egg-herbie
Rules
571×fma-neg_binary64
455×*-commutative_binary64
440×unswap-sqr_binary64
344×associate-*l*_binary64
274×associate-+l+_binary64
Counts
116 → 44
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
08256
117256
224256
336256
471256
5161256
6433256
71565256
83491256
94955256
104994256
114875256

prune45.0ms (1.2%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New99099
Fresh000
Picked011
Done022
Total993102
Error
0b
Counts
102 → 3
Alt Table
StatusErrorProgram
46.4b
(*.f64 (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3) (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3))
0.0b
(expm1.f64 (*.f64 a x))
52.9b
(*.f64 (pow.f64 (sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3)) 1/3) (log.f64 (exp.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))))))
Compiler

Compiled 2137 to 881 computations (58.8% saved)

regimes44.0ms (1.2%)

Accuracy

Total 0.0b remaining (8.5%)

Threshold costs 0.0b (8.5%)

Counts
8 → 1
Compiler

Compiled 635 to 439 computations (30.9% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
056
166
266

end58.0ms (1.6%)

Remove

(sort a x)

Compiler

Compiled 70 to 48 computations (31.4% saved)

Profiling

Loading profile data...