Details

Time bar (total: 5.2s)

analyze518.0ms (9.9%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%50%50%2
0%50%50%3
0%50%50%4
0%50%50%5
0%37.5%62.5%6
0%37.5%62.5%7
0%31.2%68.8%8
0%31.2%68.8%9
0%27.7%72.3%10
0%27.5%72.5%11
0%25.7%74.3%12
0%25.5%74.5%13
0%24.6%75.4%14
Compiler

Compiled 23 to 20 computations (13% saved)

sample2.2s (41.7%)

Results
1.3s8256×body128valid
553.0ms611×body8192exit
58.0ms412×body128invalid
Compiler

Compiled 45 to 39 computations (13.3% saved)

simplify98.0ms (1.9%)

Algorithm
egg-herbie
Rules
1035×fma-def_binary64
742×fma-neg_binary64
189×distribute-rgt-in_binary64
173×cancel-sign-sub-inv_binary64
156×distribute-lft-in_binary64
Counts
1 → 2
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01524
13221
27519
316819
435819
567819
690119
7144619
8191419
9187319
10191619
11191519
12191219
13246519
14246519
15232119

prune4.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.1b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.1b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))
0.2b
(*.f64 (-.f64 a (/.f64 1 3)) (+.f64 1 (*.f64 (/.f64 1 (sqrt.f64 (*.f64 9 (-.f64 a (/.f64 1 3))))) rand)))
Compiler

Compiled 109 to 91 computations (16.5% saved)

localize8.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(fma.f64 a 9 -3)
0.1b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))
0.2b
(/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))
0.4b
(sqrt.f64 (fma.f64 a 9 -3))

series74.0ms (1.4%)

Counts
4 → 50
Calls

4 calls:

35.0ms
(/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))
28.0ms
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))
10.0ms
(sqrt.f64 (fma.f64 a 9 -3))
2.0ms
(fma.f64 a 9 -3)

rewrite23.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
27×add-sqr-sqrt_binary64
26×*-un-lft-identity_binary64
22×add-cube-cbrt_binary64
18×times-frac_binary64
15×sqrt-prod_binary64
Counts
4 → 99
Calls

4 calls:

14.0ms
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))
3.0ms
(/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))
1.0ms
(sqrt.f64 (fma.f64 a 9 -3))
0.0ms
(fma.f64 a 9 -3)

simplify106.0ms (2%)

Algorithm
egg-herbie
Rules
754×fma-def_binary64
652×distribute-rgt-in_binary64
401×times-frac_binary64
187×cancel-sign-sub-inv_binary64
151×fma-neg_binary64
Counts
149 → 162
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02422971
16482791
221982639
349752621
449642621

prune206.0ms (3.9%)

Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New15111162
Fresh101
Picked101
Done000
Total15311164
Error
0.0b
Counts
164 → 11
Alt Table
StatusErrorProgram
0.6b
(*.f64 (sqrt.f64 (-.f64 a 1/3)) (*.f64 (sqrt.f64 (-.f64 a 1/3)) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3))))))
0.3b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 (/.f64 rand (fabs.f64 (cbrt.f64 (fma.f64 a 9 -3)))) (sqrt.f64 (cbrt.f64 (fma.f64 a 9 -3))))))
33.6b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 (sqrt.f64 rand) (/.f64 (sqrt.f64 (fma.f64 a 9 -3)) (sqrt.f64 rand)))))
11.1b
(-.f64 (+.f64 a (*.f64 (*.f64 a rand) (sqrt.f64 (/.f64 1 (-.f64 (*.f64 9 a) 3))))) (+.f64 (*.f64 1/3 (*.f64 rand (sqrt.f64 (/.f64 1 (-.f64 (*.f64 9 a) 3))))) 1/3))
3.2b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 rand (cbrt.f64 (pow.f64 (sqrt.f64 (fma.f64 a 9 -3)) 3)))))
1.3b
(*.f64 (*.f64 (cbrt.f64 (*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))) (cbrt.f64 (*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3))))))) (cbrt.f64 (*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))))
47.4b
(cbrt.f64 (pow.f64 (*.f64 (+.f64 a -1/3) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3))))) 3))
0.2b
(+.f64 a (fma.f64 rand (*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 a -1/3)) -1/3))
42.9b
(/.f64 (*.f64 (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))) (-.f64 (pow.f64 a 3) 1/27)) (+.f64 (*.f64 a a) (+.f64 (*.f64 1/3 1/3) (*.f64 a 1/3))))
0.1b
(+.f64 (+.f64 a -1/3) (*.f64 (+.f64 a -1/3) (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))
11.2b
(*.f64 (*.f64 (sqrt.f64 (-.f64 a 1/3)) (sqrt.f64 (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))) (*.f64 (sqrt.f64 (-.f64 a 1/3)) (sqrt.f64 (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))))
Compiler

Compiled 4286 to 3331 computations (22.3% saved)

localize8.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(fma.f64 a 9 -3)
0.2b
(/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))
0.4b
(sqrt.f64 (fma.f64 a 9 -3))
7.0b
(*.f64 (+.f64 a -1/3) (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3))))

series37.0ms (0.7%)

Counts
1 → 16
Calls

1 calls:

37.0ms
(*.f64 (+.f64 a -1/3) (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3))))

rewrite13.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt_binary64
22×associate-*r*_binary64
20×times-frac_binary64
17×*-un-lft-identity_binary64
15×add-cube-cbrt_binary64
Counts
1 → 49
Calls

1 calls:

9.0ms
(*.f64 (+.f64 a -1/3) (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3))))

simplify125.0ms (2.4%)

Algorithm
egg-herbie
Rules
429×associate-*l*_binary64
351×associate-/l*_binary64
343×fma-def_binary64
306×associate-*r/_binary64
296×associate-*l/_binary64
Counts
65 → 85
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01501455
13841345
213451327
343851327
446401327
549881327

prune246.0ms (4.7%)

Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1753178
Fresh5510
Picked011
Done000
Total1809189
Error
0.0b
Counts
189 → 9
Alt Table
StatusErrorProgram
11.1b
(+.f64 (+.f64 a -1/3) (/.f64 (*.f64 (+.f64 a -1/3) rand) (sqrt.f64 (fma.f64 a 9 -3))))
42.9b
(/.f64 (*.f64 (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))) (-.f64 (pow.f64 a 3) 1/27)) (+.f64 (*.f64 a a) (+.f64 (*.f64 1/3 1/3) (*.f64 a 1/3))))
0.3b
(+.f64 (+.f64 a -1/3) (*.f64 (/.f64 (+.f64 -1/3 a) (fabs.f64 (cbrt.f64 (fma.f64 a 9 -3)))) (/.f64 rand (sqrt.f64 (cbrt.f64 (fma.f64 a 9 -3))))))
47.4b
(cbrt.f64 (pow.f64 (*.f64 (+.f64 a -1/3) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3))))) 3))
0.6b
(*.f64 (sqrt.f64 (-.f64 a 1/3)) (*.f64 (sqrt.f64 (-.f64 a 1/3)) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3))))))
0.2b
(+.f64 a (fma.f64 rand (*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 a -1/3)) -1/3))
33.6b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 (sqrt.f64 rand) (/.f64 (sqrt.f64 (fma.f64 a 9 -3)) (sqrt.f64 rand)))))
0.2b
(+.f64 (+.f64 a -1/3) (*.f64 (sqrt.f64 (+.f64 a -1/3)) (*.f64 (sqrt.f64 (+.f64 a -1/3)) (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3))))))
0.1b
(+.f64 (+.f64 a -1/3) (*.f64 (+.f64 a -1/3) (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))
Compiler

Compiled 4706 to 3511 computations (25.4% saved)

localize11.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(sqrt.f64 (/.f64 1 (fma.f64 a 9 -3)))
0.2b
(fma.f64 rand (*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 a -1/3)) -1/3)
0.3b
(*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 a -1/3))
0.5b
(/.f64 1 (fma.f64 a 9 -3))

series65.0ms (1.2%)

Counts
4 → 36
Calls

4 calls:

35.0ms
(fma.f64 rand (*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 a -1/3)) -1/3)
15.0ms
(*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 a -1/3))
13.0ms
(sqrt.f64 (/.f64 1 (fma.f64 a 9 -3)))
3.0ms
(/.f64 1 (fma.f64 a 9 -3))

rewrite21.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
41×add-sqr-sqrt_binary64
32×*-un-lft-identity_binary64
31×times-frac_binary64
29×sqrt-prod_binary64
28×add-cube-cbrt_binary64
Counts
4 → 117
Calls

4 calls:

10.0ms
(*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 a -1/3))
2.0ms
(/.f64 1 (fma.f64 a 9 -3))
2.0ms
(sqrt.f64 (/.f64 1 (fma.f64 a 9 -3)))
0.0ms
(fma.f64 rand (*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 a -1/3)) -1/3)

simplify108.0ms (2.1%)

Algorithm
egg-herbie
Rules
826×fma-def_binary64
571×times-frac_binary64
332×distribute-rgt-in_binary64
293×distribute-lft-in_binary64
237×fma-neg_binary64
Counts
153 → 198
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02433027
16562737
219752681
349162673
449302673

prune275.0ms (5.3%)

Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New1935198
Fresh437
Picked011
Done011
Total19710207
Error
0b
Counts
207 → 10
Alt Table
StatusErrorProgram
0.2b
(+.f64 a (fma.f64 rand (*.f64 (sqrt.f64 (*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 a -1/3))) (sqrt.f64 (*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 a -1/3)))) -1/3))
0.2b
(+.f64 a (fma.f64 rand (*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 a -1/3)) -1/3))
0.3b
(+.f64 (+.f64 a -1/3) (*.f64 (/.f64 (+.f64 -1/3 a) (fabs.f64 (cbrt.f64 (fma.f64 a 9 -3)))) (/.f64 rand (sqrt.f64 (cbrt.f64 (fma.f64 a 9 -3))))))
3.0b
(+.f64 a (fma.f64 rand (*.f64 (cbrt.f64 (pow.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) 3)) (+.f64 a -1/3)) -1/3))
0.6b
(*.f64 (sqrt.f64 (-.f64 a 1/3)) (*.f64 (sqrt.f64 (-.f64 a 1/3)) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3))))))
0.2b
(+.f64 a (fma.f64 rand (/.f64 (+.f64 -1/3 a) (sqrt.f64 (fma.f64 a 9 -3))) -1/3))
1.0b
(+.f64 a (fma.f64 rand (*.f64 (sqrt.f64 (/.f64 1/9 a)) (+.f64 a -1/3)) -1/3))
42.9b
(/.f64 (*.f64 (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))) (-.f64 (pow.f64 a 3) 1/27)) (+.f64 (*.f64 a a) (+.f64 (*.f64 1/3 1/3) (*.f64 a 1/3))))
0.1b
(+.f64 (+.f64 a -1/3) (*.f64 (+.f64 a -1/3) (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))
20.2b
(+.f64 a (expm1.f64 (log1p.f64 (fma.f64 rand (*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 a -1/3)) -1/3))))
Compiler

Compiled 5310 to 4197 computations (21% saved)

localize14.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(fma.f64 a 9 -3)
0.2b
(fma.f64 rand (/.f64 (+.f64 -1/3 a) (sqrt.f64 (fma.f64 a 9 -3))) -1/3)
0.3b
(/.f64 (+.f64 -1/3 a) (sqrt.f64 (fma.f64 a 9 -3)))
0.4b
(sqrt.f64 (fma.f64 a 9 -3))

series52.0ms (1%)

Counts
2 → 20
Calls

2 calls:

36.0ms
(fma.f64 rand (/.f64 (+.f64 -1/3 a) (sqrt.f64 (fma.f64 a 9 -3))) -1/3)
16.0ms
(/.f64 (+.f64 -1/3 a) (sqrt.f64 (fma.f64 a 9 -3)))

rewrite14.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
33×*-un-lft-identity_binary64
24×times-frac_binary64
19×add-sqr-sqrt_binary64
19×add-cube-cbrt_binary64
15×sqrt-prod_binary64
Counts
2 → 60
Calls

2 calls:

5.0ms
(/.f64 (+.f64 -1/3 a) (sqrt.f64 (fma.f64 a 9 -3)))
0.0ms
(fma.f64 rand (/.f64 (+.f64 -1/3 a) (sqrt.f64 (fma.f64 a 9 -3))) -1/3)

simplify118.0ms (2.3%)

Algorithm
egg-herbie
Rules
598×fma-neg_binary64
465×fma-def_binary64
416×times-frac_binary64
312×associate-/l*_binary64
249×associate-+l+_binary64
Counts
80 → 80
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01662087
14221851
212051802
344551796
449841796
549951796
649401796

prune172.0ms (3.3%)

Pruning

10 alts after pruning (7 fresh and 3 done)

PrunedKeptTotal
New1172119
Fresh257
Picked011
Done022
Total11910129
Error
0b
Counts
129 → 10
Alt Table
StatusErrorProgram
3.0b
(+.f64 a (fma.f64 rand (*.f64 (cbrt.f64 (pow.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) 3)) (+.f64 a -1/3)) -1/3))
0.2b
(+.f64 a (fma.f64 rand (*.f64 (sqrt.f64 (/.f64 (+.f64 -1/3 a) (sqrt.f64 (fma.f64 a 9 -3)))) (sqrt.f64 (/.f64 (+.f64 -1/3 a) (sqrt.f64 (fma.f64 a 9 -3))))) -1/3))
20.2b
(+.f64 a (expm1.f64 (log1p.f64 (fma.f64 rand (/.f64 (+.f64 -1/3 a) (sqrt.f64 (fma.f64 a 9 -3))) -1/3))))
0.3b
(+.f64 (+.f64 a -1/3) (*.f64 (/.f64 (+.f64 -1/3 a) (fabs.f64 (cbrt.f64 (fma.f64 a 9 -3)))) (/.f64 rand (sqrt.f64 (cbrt.f64 (fma.f64 a 9 -3))))))
0.6b
(*.f64 (sqrt.f64 (-.f64 a 1/3)) (*.f64 (sqrt.f64 (-.f64 a 1/3)) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3))))))
0.2b
(+.f64 a (fma.f64 rand (/.f64 (+.f64 -1/3 a) (sqrt.f64 (fma.f64 a 9 -3))) -1/3))
0.2b
(+.f64 a (fma.f64 rand (*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 a -1/3)) -1/3))
1.0b
(+.f64 a (fma.f64 rand (*.f64 (sqrt.f64 (/.f64 1/9 a)) (+.f64 a -1/3)) -1/3))
42.9b
(/.f64 (*.f64 (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))) (-.f64 (pow.f64 a 3) 1/27)) (+.f64 (*.f64 a a) (+.f64 (*.f64 1/3 1/3) (*.f64 a 1/3))))
0.1b
(+.f64 (+.f64 a -1/3) (*.f64 (+.f64 a -1/3) (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))
Compiler

Compiled 2925 to 2256 computations (22.9% saved)

regimes553.0ms (10.6%)

Accuracy

Total 0.1b remaining (89.3%)

Threshold costs 0.1b (89.3%)

Counts
113 → 1
Compiler

Compiled 10546 to 8354 computations (20.8% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01222
11522
21522

end171.0ms (3.3%)

Compiler

Compiled 242 to 189 computations (21.9% saved)

Profiling

Loading profile data...