Details

Time bar (total: 5.3s)

analyze101.0ms (1.9%)

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%50%25.1%6
25%31.2%43.8%7
25%21.9%53.2%8
25%14%61%9
28.1%10.9%61%10
31.6%7.4%61%11
33.4%5.7%61%12
35.2%3.8%61%13
36.1%2.9%61%14
Compiler

Compiled 20 to 13 computations (35% saved)

sample1.5s (28.7%)

Results
1.4s8256×body128valid
1.0msbody128invalid
Compiler

Compiled 59 to 38 computations (35.6% saved)

simplify51.0ms (1%)

Algorithm
egg-herbie
Rules
770×unswap-sqr_binary64
631×associate-*l*_binary64
623×fma-def_binary64
311×fma-neg_binary64
283×sub-neg_binary64
Counts
1 → 2
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01323
13021
26021
315921
451817
5168717
6359717
7502617

prune4.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 b (*.f64 b 4) -1))
0.2b
(-.f64 (+.f64 (pow.f64 (+.f64 (*.f64 a a) (*.f64 b b)) 2) (*.f64 4 (*.f64 b b))) 1)
Compiler

Compiled 97 to 64 computations (34% saved)

localize7.0ms (0.1%)

Local error

Found 3 expressions with local error:

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

series82.0ms (1.6%)

Counts
3 → 72
Calls

3 calls:

38.0ms
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1))
34.0ms
(pow.f64 (hypot.f64 a b) 4)
11.0ms
(hypot.f64 a b)

rewrite209.0ms (4%)

Algorithm
egg-rewrite
Rules
64×egg
39×egg
35×egg
Counts
3 → 138
Calls

3 calls:

75.0ms
(pow.f64 (hypot.f64 a b) 4)
71.0ms
(hypot.f64 a b)
59.0ms
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01017
121217
2241717
3531917
044
1794
28694
347304
456654
067
11257
212537
348647
449947

simplify79.0ms (1.5%)

Algorithm
egg-herbie
Rules
777×fma-neg_binary64
562×cancel-sign-sub-inv_binary64
307×fma-def_binary64
297×neg-mul-1_binary64
289×neg-sub0_binary64
Counts
210 → 187
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0691453
12171409
26541303
326461303
442981303
550651303

prune201.0ms (3.8%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New1852187
Fresh101
Picked011
Done000
Total1863189
Error
0b
Counts
189 → 3
Alt Table
StatusErrorProgram
0.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1))
11.1b
(*.f64 (-.f64 (pow.f64 (hypot.f64 a b) 8) (pow.f64 (fma.f64 b (*.f64 b 4) -1) 2)) (/.f64 1 (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1))))
0.1b
(+.f64 (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 2 (*.f64 a a))) (pow.f64 a 4)) (fma.f64 b (*.f64 b 4) -1))
Compiler

Compiled 3783 to 2422 computations (36% saved)

localize52.0ms (1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 b b (*.f64 2 (*.f64 a a)))
0.0b
(*.f64 2 (*.f64 a a))
0.0b
(+.f64 (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 2 (*.f64 a a))) (pow.f64 a 4)) (fma.f64 b (*.f64 b 4) -1))
0.2b
(fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 2 (*.f64 a a))) (pow.f64 a 4))

series74.0ms (1.4%)

Counts
4 → 84
Calls

4 calls:

44.0ms
(fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 2 (*.f64 a a))) (pow.f64 a 4))
20.0ms
(+.f64 (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 2 (*.f64 a a))) (pow.f64 a 4)) (fma.f64 b (*.f64 b 4) -1))
8.0ms
(fma.f64 b b (*.f64 2 (*.f64 a a)))
2.0ms
(*.f64 2 (*.f64 a a))

rewrite285.0ms (5.4%)

Algorithm
egg-rewrite
Rules
50×egg
50×egg
40×egg
23×egg
Counts
4 → 163
Calls

4 calls:

81.0ms
(*.f64 2 (*.f64 a a))
77.0ms
(fma.f64 b b (*.f64 2 (*.f64 a a)))
70.0ms
(+.f64 (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 2 (*.f64 a a))) (pow.f64 a 4)) (fma.f64 b (*.f64 b 4) -1))
53.0ms
(fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 2 (*.f64 a a))) (pow.f64 a 4))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01121
122121
2220821
3578421
01531
130831
2337231
3508131
057
11017
210507
347077
458357
0711
114011
2149211
3495911
4493611

simplify99.0ms (1.9%)

Algorithm
egg-herbie
Rules
981×fma-def_binary64
744×fma-neg_binary64
352×associate-*l*_binary64
348×unswap-sqr_binary64
347×sub-neg_binary64
Counts
247 → 187
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0281298
1761254
22131164
36431138
418711138
545941138
648541138
751381138

prune185.0ms (3.5%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New1870187
Fresh011
Picked011
Done011
Total1873190
Error
0b
Counts
190 → 3
Alt Table
StatusErrorProgram
0.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1))
11.1b
(*.f64 (-.f64 (pow.f64 (hypot.f64 a b) 8) (pow.f64 (fma.f64 b (*.f64 b 4) -1) 2)) (/.f64 1 (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1))))
0.1b
(+.f64 (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 2 (*.f64 a a))) (pow.f64 a 4)) (fma.f64 b (*.f64 b 4) -1))
Compiler

Compiled 5447 to 3077 computations (43.5% saved)

localize13.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 a b)
0.1b
(/.f64 1 (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1)))
0.1b
(pow.f64 (fma.f64 b (*.f64 b 4) -1) 2)
10.4b
(*.f64 (-.f64 (pow.f64 (hypot.f64 a b) 8) (pow.f64 (fma.f64 b (*.f64 b 4) -1) 2)) (/.f64 1 (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1))))

series261.0ms (5%)

Counts
3 → 60
Calls

3 calls:

199.0ms
(*.f64 (-.f64 (pow.f64 (hypot.f64 a b) 8) (pow.f64 (fma.f64 b (*.f64 b 4) -1) 2)) (/.f64 1 (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1))))
59.0ms
(/.f64 1 (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1)))
3.0ms
(pow.f64 (fma.f64 b (*.f64 b 4) -1) 2)

rewrite246.0ms (4.7%)

Algorithm
egg-rewrite
Rules
76×egg
39×egg
29×egg
Counts
3 → 144
Calls

3 calls:

117.0ms
(/.f64 1 (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1)))
78.0ms
(*.f64 (-.f64 (pow.f64 (hypot.f64 a b) 8) (pow.f64 (fma.f64 b (*.f64 b 4) -1) 2)) (/.f64 1 (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1))))
47.0ms
(pow.f64 (fma.f64 b (*.f64 b 4) -1) 2)
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01839
138217
2414817
3489917
0811
115711
2150011
3539811
01220
125120
2279420
3479620
4473920
5491320

simplify228.0ms (4.3%)

Algorithm
egg-herbie
Rules
537×fma-def_binary64
397×associate-+l+_binary64
345×times-frac_binary64
307×associate-/l*_binary64
251×associate-/r*_binary64
Counts
204 → 203
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
04275470
114625400
254235400

prune815.0ms (15.5%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New3410341
Fresh000
Picked011
Done022
Total3413344
Error
0b
Counts
344 → 3
Alt Table
StatusErrorProgram
0.0b
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1))
11.1b
(*.f64 (-.f64 (pow.f64 (hypot.f64 a b) 8) (pow.f64 (fma.f64 b (*.f64 b 4) -1) 2)) (/.f64 1 (-.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1))))
0.1b
(+.f64 (fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 2 (*.f64 a a))) (pow.f64 a 4)) (fma.f64 b (*.f64 b 4) -1))
Compiler

Compiled 17448 to 12356 computations (29.2% saved)

regimes680.0ms (12.9%)

Accuracy

Total 0.0b remaining (71%)

Threshold costs 0.0b (71%)

Counts
62 → 1
Compiler

Compiled 7794 to 5601 computations (28.1% saved)

simplify2.0ms (0%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01017
11217
21217

end78.0ms (1.5%)

Compiler

Compiled 97 to 67 computations (30.9% saved)

Profiling

Loading profile data...