Details

Time bar (total: 5.9s)

analyze178.0ms (3%)

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
25%74.9%0.1%5
25%68.7%6.3%6
25%53.1%22%7
25%46.8%28.2%8
25%33.6%41.5%9
28.1%18%54%10
31.6%12.1%56.3%11
33.4%5.9%60.8%12
35.2%3.8%61%13
36.1%2.9%61%14
Compiler

Compiled 32 to 20 computations (37.5% saved)

sample1.3s (21.6%)

Results
1.2s8256×body128valid
0.0msbody128invalid
Compiler

Compiled 95 to 59 computations (37.9% saved)

simplify59.0ms (1%)

Algorithm
egg-herbie
Rules
620×fma-def_binary64
556×cancel-sign-sub-inv_binary64
552×unswap-sqr_binary64
357×unsub-neg_binary64
344×+-commutative_binary64
Counts
1 → 2
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01939
15737
216837
349237
4160433
5289133
6430933
7521433

prune7.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.0b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
0.2b
(-.f64 (+.f64 (pow.f64 (+.f64 (*.f64 a a) (*.f64 b b)) 2) (*.f64 4 (+.f64 (*.f64 (*.f64 a a) (-.f64 1 a)) (*.f64 (*.f64 b b) (+.f64 3 a))))) 1)
Compiler

Compiled 166 to 104 computations (37.3% saved)

localize13.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(pow.f64 (hypot.f64 a b) 4)
0.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
0.1b
(fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3)))
0.7b
(*.f64 (*.f64 b b) (+.f64 a 3))

series83.0ms (1.4%)

Counts
4 → 96
Calls

4 calls:

33.0ms
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
32.0ms
(pow.f64 (hypot.f64 a b) 4)
10.0ms
(fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3)))
8.0ms
(*.f64 (*.f64 b b) (+.f64 a 3))

rewrite21.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
13×*-un-lft-identity_binary64
10×add-sqr-sqrt_binary64
10×add-exp-log_binary64
10×pow1_binary64
add-cube-cbrt_binary64
Counts
4 → 78
Calls

4 calls:

6.0ms
(*.f64 (*.f64 b b) (+.f64 a 3))
4.0ms
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
2.0ms
(pow.f64 (hypot.f64 a b) 4)
0.0ms
(fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3)))

simplify79.0ms (1.3%)

Algorithm
egg-herbie
Rules
574×associate-+l+_binary64
469×distribute-rgt-in_binary64
453×distribute-lft-in_binary64
338×associate--l+_binary64
219×cancel-sign-sub-inv_binary64
Counts
174 → 162
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01743413
14643143
215563045
350743045

prune192.0ms (3.3%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New1593162
Fresh101
Picked011
Done000
Total1604164
Error
0b
Counts
164 → 4
Alt Table
StatusErrorProgram
0.5b
(fma.f64 (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
0.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
14.3b
(fma.f64 (*.f64 a a) 4 (+.f64 (*.f64 (pow.f64 a 3) (-.f64 a 4)) -1))
13.6b
(/.f64 (-.f64 (pow.f64 (hypot.f64 a b) 8) (*.f64 (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1))) (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1)))
Compiler

Compiled 5025 to 2938 computations (41.5% saved)

localize15.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3)))
0.2b
(fma.f64 (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
0.7b
(*.f64 (*.f64 b b) (+.f64 a 3))
0.8b
(pow.f64 (sqrt.f64 (hypot.f64 a b)) 4)

series116.0ms (2%)

Counts
2 → 24
Calls

2 calls:

66.0ms
(pow.f64 (sqrt.f64 (hypot.f64 a b)) 4)
50.0ms
(fma.f64 (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))

rewrite12.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
unpow-prod-down_binary64
*-un-lft-identity_binary64
add-sqr-sqrt_binary64
add-cube-cbrt_binary64
pow1_binary64
Counts
2 → 35
Calls

2 calls:

2.0ms
(pow.f64 (sqrt.f64 (hypot.f64 a b)) 4)
0.0ms
(fma.f64 (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))

simplify102.0ms (1.7%)

Algorithm
egg-herbie
Rules
686×fma-neg_binary64
616×fma-def_binary64
481×cancel-sign-sub-inv_binary64
444×associate-+l+_binary64
324×exp-prod_binary64
Counts
59 → 77
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01081278
12611065
27861021
33146982
44485981
54887981
65059981

prune242.0ms (4.1%)

Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New1870187
Fresh022
Picked011
Done011
Total1874191
Error
0b
Counts
191 → 4
Alt Table
StatusErrorProgram
0.5b
(fma.f64 (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
0.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
14.3b
(fma.f64 (*.f64 a a) 4 (+.f64 (*.f64 (pow.f64 a 3) (-.f64 a 4)) -1))
13.6b
(/.f64 (-.f64 (pow.f64 (hypot.f64 a b) 8) (*.f64 (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1))) (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1)))
Compiler

Compiled 6444 to 3363 computations (47.8% saved)

localize17.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(*.f64 (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1))
0.7b
(*.f64 (+.f64 3 a) (*.f64 b b))
3.8b
(-.f64 (pow.f64 (hypot.f64 a b) 8) (*.f64 (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1)))
12.7b
(/.f64 (-.f64 (pow.f64 (hypot.f64 a b) 8) (*.f64 (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1))) (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1)))

series584.0ms (10%)

Counts
4 → 96
Calls

4 calls:

490.0ms
(/.f64 (-.f64 (pow.f64 (hypot.f64 a b) 8) (*.f64 (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1))) (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1)))
48.0ms
(-.f64 (pow.f64 (hypot.f64 a b) 8) (*.f64 (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1)))
38.0ms
(*.f64 (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1))
8.0ms
(*.f64 (+.f64 3 a) (*.f64 b b))

rewrite48.0ms (0.8%)

Algorithm
rewrite-expression-head
Rules
84×add-sqr-sqrt_binary64
48×difference-of-squares_binary64
44×*-un-lft-identity_binary64
42×times-frac_binary64
28×add-cube-cbrt_binary64
Counts
4 → 160
Calls

4 calls:

10.0ms
(/.f64 (-.f64 (pow.f64 (hypot.f64 a b) 8) (*.f64 (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1))) (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1)))
5.0ms
(*.f64 (+.f64 3 a) (*.f64 b b))
4.0ms
(-.f64 (pow.f64 (hypot.f64 a b) 8) (*.f64 (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1)))
3.0ms
(*.f64 (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1))

simplify309.0ms (5.3%)

Algorithm
egg-herbie
Rules
583×times-frac_binary64
342×+-commutative_binary64
298×fma-def_binary64
294×associate-+r+_binary64
210×*-commutative_binary64
Counts
256 → 353
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0103726974
1331926095
2498626095

prune1.1s (19.2%)

Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New4390439
Fresh011
Picked011
Done022
Total4394443
Error
0b
Counts
443 → 4
Alt Table
StatusErrorProgram
0.5b
(fma.f64 (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
0.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
14.3b
(fma.f64 (*.f64 a a) 4 (+.f64 (*.f64 (pow.f64 a 3) (-.f64 a 4)) -1))
13.6b
(/.f64 (-.f64 (pow.f64 (hypot.f64 a b) 8) (*.f64 (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1))) (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1)))
Compiler

Compiled 48396 to 31107 computations (35.7% saved)

localize8.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 (*.f64 a a) 4 (+.f64 (*.f64 (pow.f64 a 3) (-.f64 a 4)) -1))
0.1b
(*.f64 (pow.f64 a 3) (-.f64 a 4))

series6.0ms (0.1%)

Counts
2 → 24
Calls

2 calls:

3.0ms
(*.f64 (pow.f64 a 3) (-.f64 a 4))
3.0ms
(fma.f64 (*.f64 a a) 4 (+.f64 (*.f64 (pow.f64 a 3) (-.f64 a 4)) -1))

rewrite12.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
29×add-sqr-sqrt_binary64
22×*-un-lft-identity_binary64
20×add-cube-cbrt_binary64
18×prod-diff_binary64
13×distribute-lft-in_binary64
Counts
2 → 73
Calls

2 calls:

8.0ms
(*.f64 (pow.f64 a 3) (-.f64 a 4))
0.0ms
(fma.f64 (*.f64 a a) 4 (+.f64 (*.f64 (pow.f64 a 3) (-.f64 a 4)) -1))

simplify81.0ms (1.4%)

Algorithm
egg-herbie
Rules
790×fma-neg_binary64
528×exp-prod_binary64
509×unswap-sqr_binary64
356×*-commutative_binary64
319×fma-def_binary64
Counts
97 → 112
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01401505
12471218
29051214
323801177
443981177
551461177

prune195.0ms (3.3%)

Pruning

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New1120112
Fresh000
Picked011
Done033
Total1124116
Error
0b
Counts
116 → 4
Alt Table
StatusErrorProgram
0.5b
(fma.f64 (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (pow.f64 (sqrt.f64 (hypot.f64 a b)) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
0.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
14.3b
(fma.f64 (*.f64 a a) 4 (+.f64 (*.f64 (pow.f64 a 3) (-.f64 a 4)) -1))
13.6b
(/.f64 (-.f64 (pow.f64 (hypot.f64 a b) 8) (*.f64 (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1))) (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 (-.f64 (fma.f64 a a (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 a 3)) 4 -1)))
Compiler

Compiled 2685 to 1890 computations (29.6% saved)

regimes974.0ms (16.6%)

Accuracy

Total 0.0b remaining (74.2%)

Threshold costs 0.0b (74.2%)

Counts
155 → 1
Compiler

Compiled 25643 to 17327 computations (32.4% saved)

simplify2.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
01630
12230
22530
32730
42830
52730

end114.0ms (1.9%)

Compiler

Compiled 186 to 123 computations (33.9% saved)

Profiling

Loading profile data...