Details

Time bar (total: 3.4s)

analyze240.0ms (7.1%)

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.0s (30.7%)

Results
963.0ms8256×body128valid
1.0msbody128invalid
Compiler

Compiled 59 to 38 computations (35.6% saved)

simplify44.0ms (1.3%)

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)

localize9.0ms (0.3%)

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))

series91.0ms (2.7%)

Counts
3 → 72
Calls

3 calls:

40.0ms
(pow.f64 (hypot.f64 a b) 4)
39.0ms
(+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1))
12.0ms
(hypot.f64 a b)

rewrite58.0ms (1.7%)

Algorithm
batch-egg-rewrite
Rules
99×egg-rr
Counts
3 → 99
Calls

2 calls:

56.0ms
((+.f64 (pow.f64 (hypot.f64 a b) 4) (fma.f64 b (*.f64 b 4) -1)) (hypot.f64 a b) (pow.f64 (hypot.f64 a b) 4))
0.0ms
()
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01028
121228
2241728
3531928
000
100

simplify125.0ms (3.7%)

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
171 → 148
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0691453
12171409
26541303
326461303
442981303
550651303

prune133.0ms (3.9%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New1462148
Fresh101
Picked011
Done000
Total1473150
Error
0b
Counts
150 → 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 3025 to 1961 computations (35.2% saved)

localize15.0ms (0.4%)

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))

series48.0ms (1.4%)

Counts
4 → 84
Calls

4 calls:

22.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))
16.0ms
(fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 2 (*.f64 a a))) (pow.f64 a 4))
8.0ms
(fma.f64 b b (*.f64 2 (*.f64 a a)))
2.0ms
(*.f64 2 (*.f64 a a))

rewrite69.0ms (2%)

Algorithm
batch-egg-rewrite
Rules
93×egg-rr
Counts
4 → 93
Calls

2 calls:

66.0ms
((fma.f64 (*.f64 b b) (fma.f64 b b (*.f64 2 (*.f64 a a))) (pow.f64 a 4)) (+.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)) (*.f64 2 (*.f64 a a)) (fma.f64 b b (*.f64 2 (*.f64 a a))))
0.0ms
()
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01570
130870
2337270
3508170
000
100

simplify89.0ms (2.6%)

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
177 → 118
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0281298
1761254
22131164
36431138
418711138
545941138
648541138
751381138

prune127.0ms (3.8%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New1180118
Fresh011
Picked011
Done011
Total1183121
Error
0b
Counts
121 → 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 3552 to 2014 computations (43.3% saved)

localize15.0ms (0.5%)

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))))

series299.0ms (8.9%)

Counts
3 → 60
Calls

3 calls:

230.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))))
66.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)

rewrite82.0ms (2.4%)

Algorithm
batch-egg-rewrite
Rules
94×egg-rr
Counts
3 → 94
Calls

2 calls:

79.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)))) (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.0ms
()
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01870
138248
2414848
3489948
000
100

simplify89.0ms (2.6%)

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

Useful iterations: 1 (0.0ms)

IterNodesCost
04275470
114625400
254235400

prune369.0ms (10.9%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New2580258
Fresh000
Picked011
Done022
Total2583261
Error
0b
Counts
261 → 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 14177 to 10175 computations (28.2% saved)

regimes353.0ms (10.5%)

Accuracy

Total 0.0b remaining (71%)

Threshold costs 0.0b (71%)

Counts
59 → 1
Compiler

Compiled 7602 to 5439 computations (28.5% saved)

simplify2.0ms (0.1%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01017
11217
21217

end79.0ms (2.3%)

Compiler

Compiled 97 to 67 computations (30.9% saved)

Profiling

Loading profile data...