Details

Time bar (total: 4.1s)

analyze38.0ms (0.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
25%25%50%4
25%25%50%5
25%12.5%62.5%6
25%12.5%62.5%7
25%6.2%68.8%8
25%6.2%68.8%9
25%3.1%71.9%10
25%3.1%71.9%11
25%1.6%73.5%12
25%1.6%73.5%13
25%0.8%74.2%14
Compiler

Compiled 23 to 20 computations (13% saved)

sample1.2s (30%)

Results
934.0ms8256×body128valid
35.0ms249×body128invalid
Compiler

Compiled 68 to 59 computations (13.2% saved)

simplify95.0ms (2.3%)

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.3b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.3b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))
0.3b
(*.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)

localize9.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))

series67.0ms (1.6%)

Counts
4 → 50
Calls

4 calls:

31.0ms
(/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))
25.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)

rewrite20.0ms (0.5%)

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:

11.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)

simplify109.0ms (2.7%)

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

prune188.0ms (4.6%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1557162
Fresh101
Picked011
Done000
Total1568164
Error
0.3b
Counts
164 → 8
Alt Table
StatusErrorProgram
0.4b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 rand (*.f64 (fabs.f64 (cbrt.f64 (fma.f64 a 9 -3))) (sqrt.f64 (cbrt.f64 (fma.f64 a 9 -3)))))))
0.3b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))
1.5b
(*.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)))))))
0.8b
(*.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))))))
7.6b
(-.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))
0.3b
(*.f64 (-.f64 a 1/3) (+.f64 1 (*.f64 rand (sqrt.f64 (/.f64 1 (-.f64 (*.f64 9 a) 3))))))
0.3b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 1 (/.f64 (sqrt.f64 (fma.f64 a 9 -3)) rand))))
0.5b
(*.f64 (-.f64 a 1/3) (+.f64 1 (*.f64 (*.f64 (cbrt.f64 rand) (cbrt.f64 rand)) (/.f64 (cbrt.f64 rand) (sqrt.f64 (fma.f64 a 9 -3))))))
Compiler

Compiled 4111 to 3189 computations (22.4% saved)

localize10.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series72.0ms (1.8%)

Counts
4 → 38
Calls

4 calls:

33.0ms
(*.f64 rand (sqrt.f64 (/.f64 1 (-.f64 (*.f64 9 a) 3))))
25.0ms
(*.f64 (-.f64 a 1/3) (+.f64 1 (*.f64 rand (sqrt.f64 (/.f64 1 (-.f64 (*.f64 9 a) 3))))))
11.0ms
(sqrt.f64 (/.f64 1 (-.f64 (*.f64 9 a) 3)))
3.0ms
(/.f64 1 (-.f64 (*.f64 9 a) 3))

rewrite33.0ms (0.8%)

Algorithm
rewrite-expression-head
Rules
47×add-sqr-sqrt_binary64
34×*-un-lft-identity_binary64
33×sqrt-prod_binary64
31×times-frac_binary64
30×add-cube-cbrt_binary64
Counts
4 → 138
Calls

4 calls:

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

simplify92.0ms (2.2%)

Algorithm
egg-herbie
Rules
682×distribute-rgt-in_binary64
494×times-frac_binary64
251×cancel-sign-sub-inv_binary64
202×associate-*r*_binary64
202×fma-neg_binary64
Counts
176 → 255
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02913684
18073416
228233149
352513149

prune351.0ms (8.6%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New2523255
Fresh246
Picked101
Done101
Total2567263
Error
0.0b
Counts
263 → 7
Alt Table
StatusErrorProgram
0.3b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 1 (/.f64 (sqrt.f64 (fma.f64 a 9 -3)) rand))))
0.8b
(*.f64 (sqrt.f64 (-.f64 a 1/3)) (*.f64 (fma.f64 rand (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) 1) (sqrt.f64 (+.f64 -1/3 a))))
0.3b
(*.f64 (-.f64 a 1/3) (+.f64 1 (*.f64 rand (sqrt.f64 (/.f64 1/9 a)))))
7.6b
(-.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))
0.4b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 rand (*.f64 (fabs.f64 (cbrt.f64 (fma.f64 a 9 -3))) (sqrt.f64 (cbrt.f64 (fma.f64 a 9 -3)))))))
0.8b
(*.f64 (+.f64 (sqrt.f64 a) (sqrt.f64 1/3)) (*.f64 (fma.f64 rand (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) 1) (-.f64 (sqrt.f64 a) (sqrt.f64 1/3))))
0.5b
(*.f64 (-.f64 a 1/3) (+.f64 1 (*.f64 (*.f64 (cbrt.f64 rand) (cbrt.f64 rand)) (/.f64 (cbrt.f64 rand) (sqrt.f64 (fma.f64 a 9 -3))))))
Compiler

Compiled 6915 to 5641 computations (18.4% saved)

localize8.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series54.0ms (1.3%)

Counts
4 → 26
Calls

4 calls:

25.0ms
(*.f64 (-.f64 a 1/3) (+.f64 1 (*.f64 rand (sqrt.f64 (/.f64 1/9 a)))))
16.0ms
(*.f64 rand (sqrt.f64 (/.f64 1/9 a)))
6.0ms
(sqrt.f64 (/.f64 1/9 a))
6.0ms
(/.f64 1/9 a)

rewrite24.0ms (0.6%)

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

4 calls:

8.0ms
(*.f64 rand (sqrt.f64 (/.f64 1/9 a)))
6.0ms
(*.f64 (-.f64 a 1/3) (+.f64 1 (*.f64 rand (sqrt.f64 (/.f64 1/9 a)))))
2.0ms
(/.f64 1/9 a)
2.0ms
(sqrt.f64 (/.f64 1/9 a))

simplify116.0ms (2.8%)

Algorithm
egg-herbie
Rules
635×distribute-rgt-in_binary64
620×distribute-lft-in_binary64
540×fma-def_binary64
191×fma-neg_binary64
167×associate-*l*_binary64
Counts
150 → 176
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02012299
14512080
214862070
348642043
449542043

prune296.0ms (7.2%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1733176
Fresh336
Picked011
Done000
Total1767183
Error
0.0b
Counts
183 → 7
Alt Table
StatusErrorProgram
0.3b
(*.f64 (-.f64 a 1/3) (+.f64 1 (*.f64 rand (sqrt.f64 (/.f64 1/9 a)))))
7.6b
(-.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))
0.4b
(+.f64 a (fma.f64 rand (fma.f64 1/3 (sqrt.f64 a) (*.f64 (sqrt.f64 (/.f64 1 a)) -1/9)) -1/3))
0.5b
(*.f64 (-.f64 a 1/3) (+.f64 1 (*.f64 (*.f64 (cbrt.f64 rand) (cbrt.f64 rand)) (*.f64 (cbrt.f64 rand) (sqrt.f64 (/.f64 1/9 a))))))
0.4b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 (*.f64 1/3 rand) (sqrt.f64 a))))
0.8b
(*.f64 (+.f64 (sqrt.f64 a) (sqrt.f64 1/3)) (*.f64 (fma.f64 rand (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) 1) (-.f64 (sqrt.f64 a) (sqrt.f64 1/3))))
0.3b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 1 (/.f64 (sqrt.f64 (fma.f64 a 9 -3)) rand))))
Compiler

Compiled 3730 to 2794 computations (25.1% saved)

localize12.0ms (0.3%)

Local error

Found 4 expressions with local error:

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

series80.0ms (2%)

Counts
3 → 50
Calls

3 calls:

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

rewrite46.0ms (1.1%)

Algorithm
rewrite-expression-head
Rules
156×times-frac_binary64
100×*-un-lft-identity_binary64
99×add-sqr-sqrt_binary64
95×add-cube-cbrt_binary64
48×sqrt-prod_binary64
Counts
3 → 189
Calls

3 calls:

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

simplify180.0ms (4.4%)

Algorithm
egg-herbie
Rules
854×fma-def_binary64
625×distribute-rgt-in_binary64
210×cancel-sign-sub-inv_binary64
173×fma-neg_binary64
135×associate-*r*_binary64
Counts
239 → 269
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02865671
17375018
225504808
348874790
449424790

prune341.0ms (8.3%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New2911292
Fresh145
Picked011
Done101
Total2936299
Error
0.0b
Counts
299 → 6
Alt Table
StatusErrorProgram
0.3b
(+.f64 a (fma.f64 rand (*.f64 (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) (+.f64 -1/3 a)) -1/3))
0.4b
(+.f64 a (fma.f64 rand (fma.f64 1/3 (sqrt.f64 a) (*.f64 (sqrt.f64 (/.f64 1 a)) -1/9)) -1/3))
0.5b
(*.f64 (-.f64 a 1/3) (+.f64 1 (*.f64 (*.f64 (cbrt.f64 rand) (cbrt.f64 rand)) (*.f64 (cbrt.f64 rand) (sqrt.f64 (/.f64 1/9 a))))))
0.4b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 (*.f64 1/3 rand) (sqrt.f64 a))))
0.8b
(*.f64 (+.f64 (sqrt.f64 a) (sqrt.f64 1/3)) (*.f64 (fma.f64 rand (sqrt.f64 (/.f64 1 (fma.f64 a 9 -3))) 1) (-.f64 (sqrt.f64 a) (sqrt.f64 1/3))))
0.3b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 1 (/.f64 (sqrt.f64 (fma.f64 a 9 -3)) rand))))
Compiler

Compiled 7783 to 6112 computations (21.5% saved)

regimes506.0ms (12.3%)

Accuracy

Total 0.2b remaining (91.6%)

Threshold costs 0.2b (91.6%)

Counts
113 → 1
Compiler

Compiled 9118 to 7294 computations (20% saved)

simplify2.0ms (0.1%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
+-commutative_binary64
sub-neg_binary64
*-rgt-identity_binary64
1-exp_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01627
12927
23127
32827

end111.0ms (2.7%)

Compiler

Compiled 151 to 117 computations (22.5% saved)

Profiling

Loading profile data...