Details

Time bar (total: 4.4s)

analyze202.0ms (4.6%)

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.4s (31.7%)

Results
1.3s8256×body128valid
1.0msbody128invalid
Compiler

Compiled 95 to 59 computations (37.9% saved)

simplify64.0ms (1.5%)

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

prune5.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.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)
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))
Compiler

Compiled 166 to 104 computations (37.3% saved)

localize13.0ms (0.3%)

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.5b
(*.f64 (*.f64 b b) (+.f64 a 3))

series102.0ms (2.3%)

Counts
4 → 96
Calls

4 calls:

42.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))
38.0ms
(pow.f64 (hypot.f64 a b) 4)
13.0ms
(fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3)))
9.0ms
(*.f64 (*.f64 b b) (+.f64 a 3))

rewrite21.0ms (0.5%)

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:

9.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))
6.0ms
(*.f64 (*.f64 b b) (+.f64 a 3))
1.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)))

simplify82.0ms (1.9%)

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

prune182.0ms (4.2%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New1602162
Fresh011
Picked011
Done000
Total1604164
Error
0b
Counts
164 → 4
Alt Table
StatusErrorProgram
12.9b
(+.f64 -1 (*.f64 (*.f64 b b) (+.f64 (*.f64 b b) (+.f64 (*.f64 a 4) 12))))
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))
39.7b
(*.f64 (sqrt.f64 (+.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))) (sqrt.f64 (+.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 4993 to 2914 computations (41.6% saved)

localize15.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(+.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)))))
0.1b
(*.f64 (*.f64 a a) (-.f64 1 a))
0.4b
(pow.f64 (+.f64 (*.f64 a a) (*.f64 b b)) 2)
0.5b
(*.f64 (*.f64 b b) (+.f64 3 a))

series55.0ms (1.3%)

Counts
4 → 84
Calls

4 calls:

30.0ms
(+.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)))))
12.0ms
(pow.f64 (+.f64 (*.f64 a a) (*.f64 b b)) 2)
10.0ms
(*.f64 (*.f64 b b) (+.f64 3 a))
3.0ms
(*.f64 (*.f64 a a) (-.f64 1 a))

rewrite33.0ms (0.7%)

Algorithm
rewrite-expression-head
Rules
29×*-un-lft-identity_binary64
29×add-sqr-sqrt_binary64
24×add-cube-cbrt_binary64
18×prod-diff_binary64
15×distribute-lft-in_binary64
Counts
4 → 121
Calls

4 calls:

10.0ms
(*.f64 (*.f64 a a) (-.f64 1 a))
6.0ms
(+.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)))))
6.0ms
(*.f64 (*.f64 b b) (+.f64 3 a))
3.0ms
(pow.f64 (+.f64 (*.f64 a a) (*.f64 b b)) 2)

simplify93.0ms (2.1%)

Algorithm
egg-herbie
Rules
511×associate-+l+_binary64
383×associate-*l*_binary64
299×associate-*r*_binary64
268×cancel-sign-sub-inv_binary64
211×unswap-sqr_binary64
Counts
205 → 209
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02413743
16003419
223883054
348823054

prune228.0ms (5.2%)

Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New2081209
Fresh112
Picked011
Done011
Total2094213
Error
0b
Counts
213 → 4
Alt Table
StatusErrorProgram
12.9b
(+.f64 -1 (*.f64 (*.f64 b b) (+.f64 (*.f64 b b) (+.f64 (*.f64 a 4) 12))))
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)
0.2b
(-.f64 (*.f64 (sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4))) (sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4)))) 1)
Compiler

Compiled 7799 to 3997 computations (48.7% saved)

localize16.0ms (0.4%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b)))
0.3b
(*.f64 (sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4))) (sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4))))
0.5b
(*.f64 (+.f64 3 a) (*.f64 b b))
7.3b
(sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4)))

series130.0ms (3%)

Counts
4 → 96
Calls

4 calls:

74.0ms
(sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4)))
35.0ms
(*.f64 (sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4))) (sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4))))
11.0ms
(fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b)))
9.0ms
(*.f64 (+.f64 3 a) (*.f64 b b))

rewrite24.0ms (0.6%)

Algorithm
rewrite-expression-head
Rules
32×add-sqr-sqrt_binary64
25×pow1_binary64
21×sqrt-prod_binary64
16×*-un-lft-identity_binary64
14×add-cube-cbrt_binary64
Counts
4 → 102
Calls

4 calls:

8.0ms
(*.f64 (+.f64 3 a) (*.f64 b b))
5.0ms
(*.f64 (sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4))) (sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4))))
1.0ms
(sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4)))
0.0ms
(fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b)))

simplify145.0ms (3.3%)

Algorithm
egg-herbie
Rules
536×cancel-sign-sub-inv_binary64
380×fma-def_binary64
360×associate-*r*_binary64
279×times-frac_binary64
265×associate-+r+_binary64
Counts
198 → 211
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
03417316
19756626
236996452
353266452

prune590.0ms (13.5%)

Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New3360336
Fresh011
Picked011
Done022
Total3364340
Error
0b
Counts
340 → 4
Alt Table
StatusErrorProgram
12.9b
(+.f64 -1 (*.f64 (*.f64 b b) (+.f64 (*.f64 b b) (+.f64 (*.f64 a 4) 12))))
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)
0.2b
(-.f64 (*.f64 (sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4))) (sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4)))) 1)
Compiler

Compiled 21514 to 12048 computations (44% saved)

localize8.0ms (0.2%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(+.f64 -1 (*.f64 (*.f64 b b) (+.f64 (*.f64 b b) (+.f64 (*.f64 a 4) 12))))
0.5b
(*.f64 (*.f64 b b) (+.f64 (*.f64 b b) (+.f64 (*.f64 a 4) 12)))

series32.0ms (0.7%)

Counts
2 → 48
Calls

2 calls:

19.0ms
(+.f64 -1 (*.f64 (*.f64 b b) (+.f64 (*.f64 b b) (+.f64 (*.f64 a 4) 12))))
13.0ms
(*.f64 (*.f64 b b) (+.f64 (*.f64 b b) (+.f64 (*.f64 a 4) 12)))

rewrite13.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
add-cbrt-cube_binary64
add-exp-log_binary64
pow1_binary64
add-sqr-sqrt_binary64
*-un-lft-identity_binary64
Counts
2 → 43
Calls

2 calls:

8.0ms
(*.f64 (*.f64 b b) (+.f64 (*.f64 b b) (+.f64 (*.f64 a 4) 12)))
3.0ms
(+.f64 -1 (*.f64 (*.f64 b b) (+.f64 (*.f64 b b) (+.f64 (*.f64 a 4) 12))))

simplify66.0ms (1.5%)

Algorithm
egg-herbie
Rules
656×fma-def_binary64
615×fma-neg_binary64
455×cancel-sign-sub-inv_binary64
388×unswap-sqr_binary64
259×*-commutative_binary64
Counts
91 → 84
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0921572
12681396
210681391
328821389
450061389

prune90.0ms (2%)

Pruning

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New84084
Fresh000
Picked011
Done033
Total84488
Error
0b
Counts
88 → 4
Alt Table
StatusErrorProgram
12.9b
(+.f64 -1 (*.f64 (*.f64 b b) (+.f64 (*.f64 b b) (+.f64 (*.f64 a 4) 12))))
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)
0.2b
(-.f64 (*.f64 (sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4))) (sqrt.f64 (fma.f64 4 (fma.f64 a (-.f64 a (*.f64 a a)) (*.f64 (+.f64 3 a) (*.f64 b b))) (pow.f64 (hypot.f64 a b) 4)))) 1)
Compiler

Compiled 1976 to 1191 computations (39.7% saved)

regimes679.0ms (15.5%)

Accuracy

Total 0.0b remaining (60.3%)

Threshold costs 0.0b (60.3%)

Counts
129 → 1
Compiler

Compiled 18380 to 12391 computations (32.6% saved)

simplify2.0ms (0.1%)

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
01733
12433
22733
32933
43033
52933

end94.0ms (2.2%)

Compiler

Compiled 172 to 108 computations (37.2% saved)

Profiling

Loading profile data...