Details

Time bar (total: 2.1s)

analyze1.0ms (0.1%)

Algorithm
search
Search
TrueOtherFalseIter
0%0%100%0
0%0%100%1
Compiler

Compiled 24 to 15 computations (37.5% saved)

sample957.0ms (45%)

Symmetry

(sort a b)

Results
922.0ms8256×body128valid
Compiler

Compiled 57 to 34 computations (40.4% saved)

simplify10.0ms (0.5%)

Algorithm
egg-herbie
Rules
70×fma-def_binary64
24×associate-+l+_binary64
18×associate-+r+_binary64
10×distribute-rgt-in_binary64
*-commutative_binary64
Counts
1 → 1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0510
11210
22610
34610
48110
510110
611710
713010
813210
913210

prune1.0ms (0.1%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
0.0b
Counts
2 → 1
Alt Table
StatusErrorProgram
0.0b
(*.f64 (+.f64 a b) (+.f64 a b))
Compiler

Compiled 27 to 12 computations (55.6% saved)

localize3.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(*.f64 (+.f64 a b) (+.f64 a b))

series6.0ms (0.3%)

Counts
1 → 24
Calls

1 calls:

6.0ms
(*.f64 (+.f64 a b) (+.f64 a b))

rewrite9.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
19×*-un-lft-identity_binary64
pow1_binary64
add-sqr-sqrt_binary64
distribute-lft-out_binary64
swap-sqr_binary64
Counts
1 → 42
Calls

1 calls:

6.0ms
(*.f64 (+.f64 a b) (+.f64 a b))

simplify50.0ms (2.4%)

Algorithm
egg-herbie
Rules
728×associate-+l+_binary64
594×unswap-sqr_binary64
430×distribute-rgt-in_binary64
422×distribute-lft-in_binary64
327×fma-def_binary64
Counts
66 → 64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
067994
1200853
2739757
32462692
45240692

prune43.0ms (2%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New62264
Fresh000
Picked101
Done000
Total63265
Error
0b
Counts
65 → 2
Alt Table
StatusErrorProgram
0.6b
(/.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 a b)) (+.f64 (*.f64 a a) (-.f64 (*.f64 b b) (*.f64 a b))))
0.0b
(+.f64 (*.f64 a (+.f64 a b)) (*.f64 b (+.f64 a b)))
Compiler

Compiled 959 to 298 computations (68.9% saved)

localize7.0ms (0.3%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(*.f64 a (+.f64 a b))
0.0b
(*.f64 b (+.f64 a b))
0.0b
(+.f64 (*.f64 a (+.f64 a b)) (*.f64 b (+.f64 a b)))

series21.0ms (1%)

Counts
3 → 72
Calls

3 calls:

9.0ms
(*.f64 a (+.f64 a b))
7.0ms
(+.f64 (*.f64 a (+.f64 a b)) (*.f64 b (+.f64 a b)))
5.0ms
(*.f64 b (+.f64 a b))

rewrite19.0ms (0.9%)

Algorithm
rewrite-expression-head
Rules
12×associate-*r/_binary64
11×*-un-lft-identity_binary64
11×add-sqr-sqrt_binary64
associate-*r*_binary64
flip-+_binary64
Counts
3 → 73
Calls

3 calls:

5.0ms
(+.f64 (*.f64 a (+.f64 a b)) (*.f64 b (+.f64 a b)))
4.0ms
(*.f64 a (+.f64 a b))
4.0ms
(*.f64 b (+.f64 a b))

simplify94.0ms (4.4%)

Algorithm
egg-herbie
Rules
873×fma-neg_binary64
401×*-commutative_binary64
387×associate-+l+_binary64
371×cancel-sign-sub-inv_binary64
370×associate-+r+_binary64
Counts
145 → 131
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01211613
13801512
215361408
333001408
448691408
549581408

prune94.0ms (4.4%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New1310131
Fresh011
Picked011
Done000
Total1312133
Error
0b
Counts
133 → 2
Alt Table
StatusErrorProgram
0.6b
(/.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 a b)) (+.f64 (*.f64 a a) (-.f64 (*.f64 b b) (*.f64 a b))))
0.0b
(+.f64 (*.f64 a (+.f64 a b)) (*.f64 b (+.f64 a b)))
Compiler

Compiled 2326 to 515 computations (77.9% saved)

localize14.0ms (0.7%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(-.f64 (*.f64 b b) (*.f64 a b))
0.0b
(+.f64 (*.f64 a a) (-.f64 (*.f64 b b) (*.f64 a b)))
0.3b
(*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 a b))
0.5b
(/.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 a b)) (+.f64 (*.f64 a a) (-.f64 (*.f64 b b) (*.f64 a b))))

series45.0ms (2.1%)

Counts
4 → 96
Calls

4 calls:

21.0ms
(/.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 a b)) (+.f64 (*.f64 a a) (-.f64 (*.f64 b b) (*.f64 a b))))
9.0ms
(*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 a b))
9.0ms
(+.f64 (*.f64 a a) (-.f64 (*.f64 b b) (*.f64 a b)))
6.0ms
(-.f64 (*.f64 b b) (*.f64 a b))

rewrite48.0ms (2.2%)

Algorithm
rewrite-expression-head
Rules
20×*-un-lft-identity_binary64
14×flip-+_binary64
14×flip3-+_binary64
11×add-cbrt-cube_binary64
11×add-log-exp_binary64
Counts
4 → 106
Calls

4 calls:

19.0ms
(/.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 a b)) (+.f64 (*.f64 a a) (-.f64 (*.f64 b b) (*.f64 a b))))
12.0ms
(*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 a b))
7.0ms
(+.f64 (*.f64 a a) (-.f64 (*.f64 b b) (*.f64 a b)))
3.0ms
(-.f64 (*.f64 b b) (*.f64 a b))

simplify162.0ms (7.6%)

Algorithm
egg-herbie
Rules
509×times-frac_binary64
366×fma-neg_binary64
216×cancel-sign-sub-inv_binary64
216×unswap-sqr_binary64
204×distribute-rgt-in_binary64
Counts
202 → 206
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01863553
15493247
224903236
345363236
449733236
550003236
649553236

prune143.0ms (6.7%)

Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New2060206
Fresh000
Picked011
Done011
Total2062208
Error
0b
Counts
208 → 2
Alt Table
StatusErrorProgram
0.6b
(/.f64 (*.f64 (+.f64 (pow.f64 a 3) (pow.f64 b 3)) (+.f64 a b)) (+.f64 (*.f64 a a) (-.f64 (*.f64 b b) (*.f64 a b))))
0.0b
(+.f64 (*.f64 a (+.f64 a b)) (*.f64 b (+.f64 a b)))
Compiler

Compiled 6550 to 2461 computations (62.4% saved)

regimes340.0ms (16%)

Accuracy

Total 0.0b remaining (40.2%)

Threshold costs 0.0b (40.2%)

Counts
81 → 1
Compiler

Compiled 5666 to 3200 computations (43.5% saved)

simplify3.0ms (0.1%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
0716
11116
21116

end56.0ms (2.6%)

Remove

(sort a b)

Compiler

Compiled 90 to 45 computations (50% saved)

Profiling

Loading profile data...