Details

Time bar (total: 6.5s)

analyze431.0ms (6.6%)

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
25%74.9%0.1%6
37.4%62.4%0.1%7
56.2%43.7%0.1%8
56.2%43.7%0.1%9
65.5%34.3%0.1%10
76.5%23.4%0.1%11
76.5%23.4%0.1%12
81.9%17.9%0.1%13
87.8%12.1%0.1%14
Compiler

Compiled 13 to 9 computations (30.8% saved)

sample2.7s (41.5%)

Results
1.4s2033×body1024valid
706.0ms4649×body128valid
402.0ms1053×body512valid
142.0ms518×body256valid
4.0msbody2048valid
Compiler

Compiled 38 to 26 computations (31.6% saved)

simplify16.0ms (0.2%)

Algorithm
egg-herbie
Rules
171×fma-def_binary64
87×fma-neg_binary64
36×cancel-sign-sub-inv_binary64
23×distribute-rgt-neg-in_binary64
20×sub-neg_binary64
Counts
1 → 1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0914
11714
22814
34514
46714
510114
615314
721414
825814
928014
1030014
1130614
1227514

prune2.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
0.1b
Counts
2 → 1
Alt Table
StatusErrorProgram
0.1b
(-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))
Compiler

Compiled 36 to 24 computations (33.3% saved)

localize12.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(sin.f64 y)
0.0b
(-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))
0.1b
(*.f64 z (sin.f64 y))
0.1b
(*.f64 x (cos.f64 y))

series31.0ms (0.5%)

Counts
4 → 88
Calls

4 calls:

16.0ms
(-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))
7.0ms
(*.f64 x (cos.f64 y))
7.0ms
(*.f64 z (sin.f64 y))
2.0ms
(sin.f64 y)

rewrite83.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
518×log-prod_binary64
391×fma-def_binary64
230×egg-rr
190×fma-neg_binary64
184×expm1-udef_binary64
Counts
4 → 230
Calls

4 calls:

77.0ms
(sin.f64 y)
77.0ms
(-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))
77.0ms
(*.f64 z (sin.f64 y))
77.0ms
(*.f64 x (cos.f64 y))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0929
119429
2247529
3498429
000
100

simplify72.0ms (1.1%)

Algorithm
egg-herbie
Rules
762×fma-neg_binary64
738×distribute-rgt-neg-in_binary64
459×sub-neg_binary64
418×*-commutative_binary64
272×fma-def_binary64
Counts
318 → 261
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
065906
1195889
2553864
31732861
43789861
55068861

prune182.0ms (2.8%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New2538261
Fresh000
Picked101
Done000
Total2548262
Error
0.0b
Counts
262 → 8
Alt Table
StatusErrorProgram
20.7b
(fma.f64 (*.f64 (cos.f64 y) (cbrt.f64 (*.f64 x x))) (cbrt.f64 x) (neg.f64 (*.f64 z (sin.f64 y))))
20.7b
(fma.f64 (cbrt.f64 (*.f64 x x)) (*.f64 (cbrt.f64 x) (cos.f64 y)) (neg.f64 (*.f64 z (sin.f64 y))))
34.6b
(fma.f64 (sqrt.f64 (-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))) (sqrt.f64 (-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))) (+.f64 (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y))) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))))
26.0b
(-.f64 (fma.f64 (*.f64 x (*.f64 y y)) -1/2 x) (*.f64 z (sin.f64 y)))
0.8b
(-.f64 (pow.f64 (cbrt.f64 (*.f64 x (cos.f64 y))) 3) (*.f64 z (sin.f64 y)))
10.9b
(-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (-.f64 (exp.f64 (log1p.f64 (sin.f64 y))) 1)))
10.9b
(-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (log.f64 (+.f64 1 (expm1.f64 (sin.f64 y))))))
0.2b
(fma.f64 x (cos.f64 y) (fma.f64 z (neg.f64 (sin.f64 y)) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))))
Compiler

Compiled 5609 to 1343 computations (76.1% saved)

localize16.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(fma.f64 x (cos.f64 y) (fma.f64 z (neg.f64 (sin.f64 y)) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))))
0.1b
(*.f64 z (sin.f64 y))
0.1b
(fma.f64 z (neg.f64 (sin.f64 y)) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y))))
53.0b
(fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))

series62.0ms (1%)

Counts
3 → 84
Calls

3 calls:

28.0ms
(fma.f64 x (cos.f64 y) (fma.f64 z (neg.f64 (sin.f64 y)) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))))
18.0ms
(fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))
17.0ms
(fma.f64 z (neg.f64 (sin.f64 y)) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y))))

rewrite64.0ms (1%)

Algorithm
batch-egg-rewrite
Rules
897×expm1-log1p-u_binary64
708×prod-diff_binary64
114×add-sqr-sqrt_binary64
104×log1p-expm1-u_binary64
103×add-cbrt-cube_binary64
Counts
3 → 68
Calls

3 calls:

62.0ms
(fma.f64 x (cos.f64 y) (fma.f64 z (neg.f64 (sin.f64 y)) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))))
62.0ms
(fma.f64 z (neg.f64 (sin.f64 y)) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y))))
62.0ms
(fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01164
122051
2234651
3519151
000
100

simplify83.0ms (1.3%)

Algorithm
egg-herbie
Rules
760×fma-def_binary64
658×distribute-rgt-neg-in_binary64
566×distribute-lft-neg-in_binary64
436×cancel-sign-sub-inv_binary64
408×fma-neg_binary64
Counts
152 → 87
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
044726
1126720
2335708
3890704
43065704
54465704
64937704

prune83.0ms (1.3%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1110111
Fresh077
Picked011
Done000
Total1118119
Error
0.0b
Counts
119 → 8
Alt Table
StatusErrorProgram
20.7b
(fma.f64 (*.f64 (cos.f64 y) (cbrt.f64 (*.f64 x x))) (cbrt.f64 x) (neg.f64 (*.f64 z (sin.f64 y))))
20.7b
(fma.f64 (cbrt.f64 (*.f64 x x)) (*.f64 (cbrt.f64 x) (cos.f64 y)) (neg.f64 (*.f64 z (sin.f64 y))))
34.6b
(fma.f64 (sqrt.f64 (-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))) (sqrt.f64 (-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))) (+.f64 (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y))) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))))
26.0b
(-.f64 (fma.f64 (*.f64 x (*.f64 y y)) -1/2 x) (*.f64 z (sin.f64 y)))
0.8b
(-.f64 (pow.f64 (cbrt.f64 (*.f64 x (cos.f64 y))) 3) (*.f64 z (sin.f64 y)))
10.9b
(-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (-.f64 (exp.f64 (log1p.f64 (sin.f64 y))) 1)))
10.9b
(-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (log.f64 (+.f64 1 (expm1.f64 (sin.f64 y))))))
0.2b
(fma.f64 x (cos.f64 y) (fma.f64 z (neg.f64 (sin.f64 y)) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))))
Compiler

Compiled 2615 to 766 computations (70.7% saved)

localize9.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f64 z (sin.f64 y))
0.1b
(*.f64 x (cos.f64 y))
0.5b
(cbrt.f64 (*.f64 x (cos.f64 y)))
0.7b
(pow.f64 (cbrt.f64 (*.f64 x (cos.f64 y))) 3)

series874.0ms (13.4%)

Counts
2 → 48
Calls

2 calls:

456.0ms
(pow.f64 (cbrt.f64 (*.f64 x (cos.f64 y))) 3)
418.0ms
(cbrt.f64 (*.f64 x (cos.f64 y)))

rewrite88.0ms (1.4%)

Algorithm
batch-egg-rewrite
Rules
596×log1p-expm1-u_binary64
596×expm1-log1p-u_binary64
319×log-prod_binary64
308×fma-def_binary64
121×expm1-udef_binary64
Counts
2 → 60
Calls

2 calls:

87.0ms
(cbrt.f64 (*.f64 x (cos.f64 y)))
87.0ms
(pow.f64 (cbrt.f64 (*.f64 x (cos.f64 y))) 3)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0814
114614
2157614
3491514
4513614
000
100

simplify65.0ms (1%)

Algorithm
egg-herbie
Rules
545×fma-neg_binary64
351×distribute-rgt-neg-in_binary64
345×distribute-lft-neg-in_binary64
226×unswap-sqr_binary64
210×associate-*r*_binary64
Counts
108 → 85
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
067872
1192865
2511712
31791464
44691456
54965456

prune97.0ms (1.5%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New1330133
Fresh066
Picked011
Done011
Total1338141
Error
0.0b
Counts
141 → 8
Alt Table
StatusErrorProgram
20.7b
(fma.f64 (*.f64 (cos.f64 y) (cbrt.f64 (*.f64 x x))) (cbrt.f64 x) (neg.f64 (*.f64 z (sin.f64 y))))
20.7b
(fma.f64 (cbrt.f64 (*.f64 x x)) (*.f64 (cbrt.f64 x) (cos.f64 y)) (neg.f64 (*.f64 z (sin.f64 y))))
34.6b
(fma.f64 (sqrt.f64 (-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))) (sqrt.f64 (-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))) (+.f64 (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y))) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))))
26.0b
(-.f64 (fma.f64 (*.f64 x (*.f64 y y)) -1/2 x) (*.f64 z (sin.f64 y)))
0.8b
(-.f64 (pow.f64 (cbrt.f64 (*.f64 x (cos.f64 y))) 3) (*.f64 z (sin.f64 y)))
10.9b
(-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (-.f64 (exp.f64 (log1p.f64 (sin.f64 y))) 1)))
10.9b
(-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (log.f64 (+.f64 1 (expm1.f64 (sin.f64 y))))))
0.2b
(fma.f64 x (cos.f64 y) (fma.f64 z (neg.f64 (sin.f64 y)) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))))
Compiler

Compiled 2558 to 1094 computations (57.2% saved)

localize11.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(exp.f64 (log1p.f64 (sin.f64 y)))
0.1b
(*.f64 x (cos.f64 y))
0.2b
(log1p.f64 (sin.f64 y))
2.9b
(-.f64 (exp.f64 (log1p.f64 (sin.f64 y))) 1)

series546.0ms (8.4%)

Counts
3 → 36
Calls

3 calls:

183.0ms
(log1p.f64 (sin.f64 y))
181.0ms
(-.f64 (exp.f64 (log1p.f64 (sin.f64 y))) 1)
181.0ms
(exp.f64 (log1p.f64 (sin.f64 y)))

rewrite55.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
519×expm1-log1p-u_binary64
518×log1p-expm1-u_binary64
313×unpow-prod-down_binary64
236×log-prod_binary64
160×prod-diff_binary64
Counts
3 → 141
Calls

3 calls:

52.0ms
(exp.f64 (log1p.f64 (sin.f64 y)))
52.0ms
(log1p.f64 (sin.f64 y))
52.0ms
(-.f64 (exp.f64 (log1p.f64 (sin.f64 y))) 1)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0715
112014
2131714
3505714
000
100

simplify70.0ms (1.1%)

Algorithm
egg-herbie
Rules
708×fma-def_binary64
399×distribute-rgt-neg-in_binary64
339×distribute-lft-neg-in_binary64
318×cancel-sign-sub-inv_binary64
294×associate-*l*_binary64
Counts
177 → 163
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
042260
1114254
2279242
3807232
42554232
54954232
65063232

prune157.0ms (2.4%)

Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New1870187
Fresh055
Picked011
Done022
Total1878195
Error
0.0b
Counts
195 → 8
Alt Table
StatusErrorProgram
20.7b
(fma.f64 (*.f64 (cos.f64 y) (cbrt.f64 (*.f64 x x))) (cbrt.f64 x) (neg.f64 (*.f64 z (sin.f64 y))))
20.7b
(fma.f64 (cbrt.f64 (*.f64 x x)) (*.f64 (cbrt.f64 x) (cos.f64 y)) (neg.f64 (*.f64 z (sin.f64 y))))
34.6b
(fma.f64 (sqrt.f64 (-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))) (sqrt.f64 (-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (sin.f64 y)))) (+.f64 (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y))) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))))
26.0b
(-.f64 (fma.f64 (*.f64 x (*.f64 y y)) -1/2 x) (*.f64 z (sin.f64 y)))
0.8b
(-.f64 (pow.f64 (cbrt.f64 (*.f64 x (cos.f64 y))) 3) (*.f64 z (sin.f64 y)))
10.9b
(-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (-.f64 (exp.f64 (log1p.f64 (sin.f64 y))) 1)))
10.9b
(-.f64 (*.f64 x (cos.f64 y)) (*.f64 z (log.f64 (+.f64 1 (expm1.f64 (sin.f64 y))))))
0.2b
(fma.f64 x (cos.f64 y) (fma.f64 z (neg.f64 (sin.f64 y)) (fma.f64 z (neg.f64 (sin.f64 y)) (*.f64 z (sin.f64 y)))))
Compiler

Compiled 3715 to 1914 computations (48.5% saved)

regimes579.0ms (8.9%)

Accuracy

Total 0.1b remaining (63.4%)

Threshold costs 0.1b (63.4%)

Counts
135 → 1
Compiler

Compiled 9128 to 6094 computations (33.2% saved)

simplify3.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
+-commutative_binary64
sub-neg_binary64
neg-sub0_binary64
neg-mul-1_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0914
11814
22614
33114
43314
53314

end121.0ms (1.9%)

Compiler

Compiled 187 to 108 computations (42.2% saved)

Profiling

Loading profile data...