Details

Time bar (total: 3.5s)

analyze665.0ms (19.2%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
0%99.9%0.1%3
0%99.9%0.1%4
0%99.9%0.1%5
0%99.9%0.1%6
12.5%87.4%0.1%7
25%74.9%0.1%8
31.2%64%4.8%9
31.2%42.1%26.7%10
35.9%37.1%27.1%11
38.2%32.2%29.6%12
47.8%21.6%30.6%13
50.2%19%30.8%14
Compiler

Compiled 19 to 9 computations (52.6% saved)

sample920.0ms (26.6%)

Symmetry

(sort x y)

Results
837.0ms8256×body128valid
48.0ms500×body128invalid
Compiler

Compiled 56 to 26 computations (53.6% saved)

simplify7.0ms (0.2%)

Algorithm
egg-herbie
Rules
32×fma-def_binary64
*-commutative_binary64
associate-+l+_binary64
associate-*r*_binary64
+-commutative_binary64
Counts
1 → 2
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0920
11715
23411
35411
46811
57211
67011

prune3.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.0b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.1b
(fma.f64 z (*.f64 z 3) (*.f64 x y))
0.1b
(+.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z z)) (*.f64 z z)) (*.f64 z z))
Compiler

Compiled 84 to 41 computations (51.2% saved)

localize6.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (*.f64 x y) (*.f64 z z))
0.0b
(+.f64 (+.f64 (*.f64 x y) (*.f64 z z)) (*.f64 z z))
0.1b
(+.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z z)) (*.f64 z z)) (*.f64 z z))

series32.0ms (0.9%)

Counts
3 → 108
Calls

3 calls:

15.0ms
(+.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z z)) (*.f64 z z)) (*.f64 z z))
10.0ms
(+.f64 (+.f64 (*.f64 x y) (*.f64 z z)) (*.f64 z z))
7.0ms
(+.f64 (*.f64 x y) (*.f64 z z))

rewrite79.0ms (2.3%)

Algorithm
batch-egg-rewrite
Rules
853×fma-def_binary64
351×fma-neg_binary64
237×egg-rr
197×expm1-udef_binary64
197×log1p-udef_binary64
Counts
3 → 237
Calls

3 calls:

74.0ms
(+.f64 (*.f64 x y) (*.f64 z z))
74.0ms
(+.f64 (+.f64 (*.f64 x y) (*.f64 z z)) (*.f64 z z))
74.0ms
(+.f64 (+.f64 (+.f64 (*.f64 x y) (*.f64 z z)) (*.f64 z z)) (*.f64 z z))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0942
121034
2294734
3497534
000
100

simplify193.0ms (5.6%)

Algorithm
egg-herbie
Rules
1104×sqr-pow_binary64
661×fabs-mul_binary64
628×pow-sqr_binary64
611×cube-prod_binary64
310×cube-mult_binary64
Counts
345 → 250
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
013942
127942
249942
380942
4154942
5367942
6484942
7724942
8759942
9869942
10987942
111152942
121312942
131539942
141872942
152266942
162824942
173508942
183733942
193998942
204090942
214124942
224145942
234828942

prune182.0ms (5.3%)

Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New2455250
Fresh011
Picked101
Done000
Total2466252
Error
0b
Counts
252 → 6
Alt Table
StatusErrorProgram
0.0b
(fma.f64 x y (fma.f64 z z (*.f64 (*.f64 z z) 2)))
0.1b
(fma.f64 z (*.f64 z 3) (*.f64 x y))
0.2b
(fma.f64 (hypot.f64 z z) (hypot.f64 z z) (fma.f64 x y (*.f64 z z)))
1.1b
(fma.f64 (cbrt.f64 (fma.f64 x y (*.f64 (*.f64 z z) 2))) (pow.f64 (cbrt.f64 (fma.f64 x y (*.f64 (*.f64 z z) 2))) 2) (*.f64 z z))
11.7b
(fma.f64 (pow.f64 (cbrt.f64 z) 2) (+.f64 (cbrt.f64 (pow.f64 z 4)) (cbrt.f64 (pow.f64 z 4))) (fma.f64 x y (*.f64 z z)))
29.5b
(pow.f64 (hypot.f64 z (hypot.f64 z (hypot.f64 z (sqrt.f64 (*.f64 x y))))) 2)
Compiler

Compiled 5100 to 1781 computations (65.1% saved)

localize7.0ms (0.2%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 x y (fma.f64 z z (*.f64 (*.f64 z z) 2)))
0.1b
(fma.f64 z z (*.f64 (*.f64 z z) 2))

series15.0ms (0.4%)

Counts
2 → 48
Calls

2 calls:

12.0ms
(fma.f64 x y (fma.f64 z z (*.f64 (*.f64 z z) 2)))
3.0ms
(fma.f64 z z (*.f64 (*.f64 z z) 2))

rewrite49.0ms (1.4%)

Algorithm
batch-egg-rewrite
Rules
749×log1p-expm1-u_binary64
749×expm1-log1p-u_binary64
339×prod-diff_binary64
89×add-sqr-sqrt_binary64
83×add-log-exp_binary64
Counts
2 → 50
Calls

2 calls:

48.0ms
(fma.f64 x y (fma.f64 z z (*.f64 (*.f64 z z) 2)))
48.0ms
(fma.f64 z z (*.f64 (*.f64 z z) 2))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0926
118018
2197118
3522018
000
100

simplify184.0ms (5.3%)

Algorithm
egg-herbie
Rules
1108×sqr-pow_binary64
573×fabs-mul_binary64
560×cube-prod_binary64
536×pow-sqr_binary64
454×associate-*l*_binary64
Counts
98 → 54
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
010429
119429
232429
353429
4101429
5238429
6718429
71143429
81145429
91293429
101463429
111645429
121868429
132153429
142572429
153137429
163823429
174041429
184285429
194367429
204400429
214421429
224990429

prune49.0ms (1.4%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New51354
Fresh325
Picked011
Done000
Total54660
Error
0b
Counts
60 → 6
Alt Table
StatusErrorProgram
0.0b
(fma.f64 x y (fma.f64 z z (*.f64 (*.f64 z z) 2)))
0.5b
(fma.f64 x y (*.f64 (cbrt.f64 (*.f64 (*.f64 z z) 3)) (pow.f64 (cbrt.f64 (*.f64 (*.f64 z z) 3)) 2)))
0.1b
(fma.f64 x y (*.f64 z (+.f64 z (*.f64 z 2))))
0.2b
(fma.f64 (hypot.f64 z z) (hypot.f64 z z) (fma.f64 x y (*.f64 z z)))
1.1b
(fma.f64 (cbrt.f64 (fma.f64 x y (*.f64 (*.f64 z z) 2))) (pow.f64 (cbrt.f64 (fma.f64 x y (*.f64 (*.f64 z z) 2))) 2) (*.f64 z z))
0.3b
(fma.f64 x y (pow.f64 (hypot.f64 z (*.f64 z (sqrt.f64 2))) 2))
Compiler

Compiled 886 to 466 computations (47.4% saved)

localize6.0ms (0.2%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 x y (*.f64 z (+.f64 z (*.f64 z 2))))
0.2b
(*.f64 z (+.f64 z (*.f64 z 2)))

series12.0ms (0.4%)

Counts
2 → 48
Calls

2 calls:

10.0ms
(fma.f64 x y (*.f64 z (+.f64 z (*.f64 z 2))))
2.0ms
(*.f64 z (+.f64 z (*.f64 z 2)))

rewrite60.0ms (1.7%)

Algorithm
batch-egg-rewrite
Rules
467×log-prod_binary64
333×fma-def_binary64
253×pow2_binary64
177×pow1/3_binary64
175×expm1-udef_binary64
Counts
2 → 87
Calls

2 calls:

58.0ms
(fma.f64 x y (*.f64 z (+.f64 z (*.f64 z 2))))
58.0ms
(*.f64 z (+.f64 z (*.f64 z 2)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0924
119318
2239018
3495518
000
100

simplify173.0ms (5%)

Algorithm
egg-herbie
Rules
1108×sqr-pow_binary64
573×fabs-mul_binary64
560×cube-prod_binary64
536×pow-sqr_binary64
454×associate-*l*_binary64
Counts
135 → 92
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
010429
119429
232429
353429
4101429
5238429
6718429
71143429
81145429
91293429
101463429
111645429
121868429
132153429
142572429
153137429
163823429
174041429
184285429
194367429
204400429
214421429
224990429

prune83.0ms (2.4%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New90292
Fresh224
Picked011
Done011
Total92698
Error
0b
Counts
98 → 6
Alt Table
StatusErrorProgram
7.8b
(fma.f64 x y (/.f64 (*.f64 (*.f64 (*.f64 z 3) (*.f64 z -1)) z) (*.f64 z -1)))
0.2b
(fma.f64 (hypot.f64 z z) (hypot.f64 z z) (fma.f64 x y (*.f64 z z)))
0.0b
(fma.f64 x y (fma.f64 z z (*.f64 (*.f64 z z) 2)))
0.1b
(fma.f64 x y (*.f64 z (+.f64 z (*.f64 z 2))))
0.4b
(fma.f64 x y (fma.f64 (pow.f64 (cbrt.f64 (*.f64 z (+.f64 z z))) 2) (cbrt.f64 (*.f64 z (+.f64 z z))) (*.f64 z z)))
0.3b
(fma.f64 x y (pow.f64 (hypot.f64 z (*.f64 z (sqrt.f64 2))) 2))
Compiler

Compiled 1500 to 687 computations (54.2% saved)

localize10.0ms (0.3%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 x y (*.f64 z z))
0.1b
(hypot.f64 z z)
0.1b
(fma.f64 (hypot.f64 z z) (hypot.f64 z z) (fma.f64 x y (*.f64 z z)))

series36.0ms (1%)

Counts
3 → 84
Calls

3 calls:

26.0ms
(fma.f64 (hypot.f64 z z) (hypot.f64 z z) (fma.f64 x y (*.f64 z z)))
7.0ms
(fma.f64 x y (*.f64 z z))
3.0ms
(hypot.f64 z z)

rewrite51.0ms (1.5%)

Algorithm
batch-egg-rewrite
Rules
676×log1p-expm1-u_binary64
676×expm1-log1p-u_binary64
308×prod-diff_binary64
142×expm1-udef_binary64
142×log1p-udef_binary64
Counts
3 → 68
Calls

3 calls:

50.0ms
(fma.f64 x y (*.f64 z z))
50.0ms
(hypot.f64 z z)
50.0ms
(fma.f64 (hypot.f64 z z) (hypot.f64 z z) (fma.f64 x y (*.f64 z z)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0830
115929
2176929
3511229
000
100

simplify120.0ms (3.5%)

Algorithm
egg-herbie
Rules
940×fma-def_binary64
617×unswap-sqr_binary64
538×fma-neg_binary64
313×distribute-rgt-in_binary64
308×distribute-rgt-neg-in_binary64
Counts
152 → 82
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
019925
143677
294677
3204677
4548677
5918677
61619677
72233677
83117677
93784677
104301677
114791677
124795677

prune75.0ms (2.2%)

Pruning

6 alts after pruning (3 fresh and 3 done)

PrunedKeptTotal
New1060106
Fresh033
Picked011
Done022
Total1066112
Error
0b
Counts
112 → 6
Alt Table
StatusErrorProgram
7.8b
(fma.f64 x y (/.f64 (*.f64 (*.f64 (*.f64 z 3) (*.f64 z -1)) z) (*.f64 z -1)))
0.2b
(fma.f64 (hypot.f64 z z) (hypot.f64 z z) (fma.f64 x y (*.f64 z z)))
0.0b
(fma.f64 x y (fma.f64 z z (*.f64 (*.f64 z z) 2)))
0.1b
(fma.f64 x y (*.f64 z (+.f64 z (*.f64 z 2))))
0.4b
(fma.f64 x y (fma.f64 (pow.f64 (cbrt.f64 (*.f64 z (+.f64 z z))) 2) (cbrt.f64 (*.f64 z (+.f64 z z))) (*.f64 z z)))
0.3b
(fma.f64 x y (pow.f64 (hypot.f64 z (*.f64 z (sqrt.f64 2))) 2))
Compiler

Compiled 1841 to 431 computations (76.6% saved)

regimes351.0ms (10.1%)

Accuracy

Total 0.0b remaining (85.2%)

Threshold costs 0.0b (85.2%)

Counts
57 → 1
Compiler

Compiled 5714 to 3584 computations (37.3% saved)

simplify4.0ms (0.1%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0915
11015
21015

end84.0ms (2.4%)

Remove

(sort x y)

Compiler

Compiled 156 to 89 computations (42.9% saved)

Profiling

Loading profile data...