Details

Time bar (total: 4.2s)

analyze120.0ms (2.8%)

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
6.2%31.2%62.5%6
9.4%28.1%62.5%7
14%17.2%68.8%8
14.8%16.4%68.8%9
17.6%9.8%72.7%10
18.1%8.8%73.1%11
19.6%5.2%75.2%12
20%4.5%75.5%13
20.7%2.7%76.6%14
Compiler

Compiled 23 to 20 computations (13% saved)

sample1.5s (34.9%)

Results
1.1s8256×body128valid
72.0ms565×body128invalid
Compiler

Compiled 68 to 59 computations (13.2% saved)

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

Compiled 109 to 91 computations (16.5% saved)

localize9.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series67.0ms (1.6%)

Counts
4 → 50
Calls

4 calls:

32.0ms
(/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))
24.0ms
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 rand (sqrt.f64 (fma.f64 a 9 -3)))))
9.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)

simplify105.0ms (2.5%)

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 → 195
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02422971
16482791
221982639
349752621
449642621

prune382.0ms (9%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1896195
Fresh011
Picked101
Done000
Total1907197
Error
0b
Counts
197 → 7
Alt Table
StatusErrorProgram
0.2b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 (/.f64 rand (sqrt.f64 (sqrt.f64 (fma.f64 a 9 -3)))) (sqrt.f64 (sqrt.f64 (fma.f64 a 9 -3))))))
48.8b
(*.f64 (sqrt.f64 (/.f64 1 (fma.f64 9 a -3))) (*.f64 rand (+.f64 a -1/3)))
0.5b
(*.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))))))
9.3b
(/.f64 (*.f64 (+.f64 a -1/3) (-.f64 1 (/.f64 (*.f64 rand rand) (fma.f64 9 a -3)))) (-.f64 1 (/.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 9 a -3)))))
0.1b
(*.f64 (-.f64 a (/.f64 1 3)) (+.f64 1 (*.f64 (/.f64 1 (sqrt.f64 (*.f64 9 (-.f64 a (/.f64 1 3))))) rand)))
0.2b
(*.f64 (-.f64 a 1/3) (+.f64 1 (/.f64 1 (/.f64 (sqrt.f64 (fma.f64 a 9 -3)) rand))))
Compiler

Compiled 4688 to 3632 computations (22.5% saved)

localize8.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series76.0ms (1.8%)

Counts
4 → 48
Calls

4 calls:

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

rewrite20.0ms (0.5%)

Algorithm
rewrite-expression-head
Rules
43×add-sqr-sqrt_binary64
38×times-frac_binary64
36×*-un-lft-identity_binary64
34×add-cube-cbrt_binary64
25×sqrt-prod_binary64
Counts
4 → 115
Calls

4 calls:

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

simplify88.0ms (2.1%)

Algorithm
egg-herbie
Rules
545×associate-/l*_binary64
489×fma-def_binary64
422×times-frac_binary64
321×distribute-rgt-in_binary64
308×distribute-lft-in_binary64
Counts
163 → 211
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02222948
15542766
219072703
351582703

prune275.0ms (6.5%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New2101211
Fresh246
Picked011
Done000
Total2126218
Error
0b
Counts
218 → 6
Alt Table
StatusErrorProgram
0.2b
(+.f64 (+.f64 a -1/3) (*.f64 (/.f64 (+.f64 -1/3 a) (sqrt.f64 (sqrt.f64 (fma.f64 a 9 -3)))) (/.f64 rand (sqrt.f64 (sqrt.f64 (fma.f64 9 a -3))))))
0.5b
(*.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))))))
9.3b
(/.f64 (*.f64 (+.f64 a -1/3) (-.f64 1 (/.f64 (*.f64 rand rand) (fma.f64 9 a -3)))) (-.f64 1 (/.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 9 a -3)))))
0.1b
(*.f64 (-.f64 a (/.f64 1 3)) (+.f64 1 (*.f64 (/.f64 1 (sqrt.f64 (*.f64 9 (-.f64 a (/.f64 1 3))))) rand)))
48.8b
(*.f64 (sqrt.f64 (/.f64 1 (fma.f64 9 a -3))) (*.f64 rand (+.f64 a -1/3)))
Compiler

Compiled 5318 to 3969 computations (25.4% saved)

localize10.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series80.0ms (1.9%)

Counts
4 → 41
Calls

4 calls:

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

rewrite55.0ms (1.3%)

Algorithm
rewrite-expression-head
Rules
40×add-sqr-sqrt_binary64
29×*-un-lft-identity_binary64
28×times-frac_binary64
26×associate-*l*_binary64
24×add-cube-cbrt_binary64
Counts
4 → 134
Calls

4 calls:

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

simplify113.0ms (2.7%)

Algorithm
egg-herbie
Rules
682×distribute-rgt-in_binary64
675×times-frac_binary64
199×associate-*r*_binary64
193×cancel-sign-sub-inv_binary64
178×associate-*l*_binary64
Counts
175 → 249
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02813587
17713326
227673268
354413268

prune288.0ms (6.8%)

Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New2472249
Fresh314
Picked011
Done011
Total2505255
Error
0b
Counts
255 → 5
Alt Table
StatusErrorProgram
0.2b
(+.f64 (+.f64 a -1/3) (*.f64 (/.f64 (+.f64 -1/3 a) (sqrt.f64 (sqrt.f64 (fma.f64 a 9 -3)))) (/.f64 rand (sqrt.f64 (sqrt.f64 (fma.f64 9 a -3))))))
0.2b
(*.f64 (-.f64 a (/.f64 1 3)) (+.f64 1 (*.f64 (/.f64 1/3 (sqrt.f64 (-.f64 a (/.f64 1 3)))) rand)))
0.1b
(+.f64 -1/3 (fma.f64 1/3 (*.f64 rand (sqrt.f64 (-.f64 a 1/3))) a))
0.1b
(+.f64 (+.f64 a -1/3) (*.f64 (+.f64 a -1/3) (/.f64 rand (sqrt.f64 (fma.f64 9 a -3)))))
0.1b
(*.f64 (-.f64 a (/.f64 1 3)) (+.f64 1 (*.f64 (/.f64 1 (sqrt.f64 (*.f64 9 (-.f64 a (/.f64 1 3))))) rand)))
Compiler

Compiled 7606 to 6410 computations (15.7% saved)

localize7.0ms (0.2%)

Local error

Found 3 expressions with local error:

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

series40.0ms (1%)

Counts
3 → 26
Calls

3 calls:

17.0ms
(*.f64 rand (sqrt.f64 (-.f64 a 1/3)))
13.0ms
(fma.f64 1/3 (*.f64 rand (sqrt.f64 (-.f64 a 1/3))) a)
10.0ms
(sqrt.f64 (-.f64 a 1/3))

rewrite12.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt_binary64
11×sqrt-prod_binary64
11×*-un-lft-identity_binary64
associate-*r*_binary64
add-cube-cbrt_binary64
Counts
3 → 57
Calls

3 calls:

6.0ms
(*.f64 rand (sqrt.f64 (-.f64 a 1/3)))
3.0ms
(sqrt.f64 (-.f64 a 1/3))
0.0ms
(fma.f64 1/3 (*.f64 rand (sqrt.f64 (-.f64 a 1/3))) a)

simplify76.0ms (1.8%)

Algorithm
egg-herbie
Rules
485×fma-neg_binary64
291×times-frac_binary64
275×associate-*l*_binary64
262×associate-*r*_binary64
232×fma-def_binary64
Counts
83 → 114
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01341213
13101141
29011131
330881107
448291105
549501105

prune128.0ms (3%)

Pruning

5 alts after pruning (2 fresh and 3 done)

PrunedKeptTotal
New1140114
Fresh022
Picked011
Done022
Total1145119
Error
0b
Counts
119 → 5
Alt Table
StatusErrorProgram
0.2b
(+.f64 (+.f64 a -1/3) (*.f64 (/.f64 (+.f64 -1/3 a) (sqrt.f64 (sqrt.f64 (fma.f64 a 9 -3)))) (/.f64 rand (sqrt.f64 (sqrt.f64 (fma.f64 9 a -3))))))
0.2b
(*.f64 (-.f64 a (/.f64 1 3)) (+.f64 1 (*.f64 (/.f64 1/3 (sqrt.f64 (-.f64 a (/.f64 1 3)))) rand)))
0.1b
(+.f64 -1/3 (fma.f64 1/3 (*.f64 rand (sqrt.f64 (-.f64 a 1/3))) a))
0.1b
(+.f64 (+.f64 a -1/3) (*.f64 (+.f64 a -1/3) (/.f64 rand (sqrt.f64 (fma.f64 9 a -3)))))
0.1b
(*.f64 (-.f64 a (/.f64 1 3)) (+.f64 1 (*.f64 (/.f64 1 (sqrt.f64 (*.f64 9 (-.f64 a (/.f64 1 3))))) rand)))
Compiler

Compiled 2177 to 1665 computations (23.5% saved)

regimes562.0ms (13.3%)

Accuracy

Total 0.1b remaining (84.1%)

Threshold costs 0.1b (84.1%)

Counts
128 → 1
Compiler

Compiled 9955 to 8003 computations (19.6% saved)

simplify2.0ms (0.1%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01124
11724
21824
31724

end101.0ms (2.4%)

Compiler

Compiled 133 to 107 computations (19.5% saved)

Profiling

Loading profile data...