Details

Time bar (total: 6.6s)

analyze389.0ms (5.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%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)

sample2.4s (36.2%)

Results
2.3s8256×body128valid
1.0msbody128invalid
Compiler

Compiled 95 to 59 computations (37.9% saved)

simplify64.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

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

localize29.0ms (0.4%)

Local error

Found 4 expressions with local error:

NewErrorProgram
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.0b
(pow.f64 (hypot.f64 a b) 4)
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))

series160.0ms (2.4%)

Counts
4 → 96
Calls

4 calls:

65.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))
58.0ms
(pow.f64 (hypot.f64 a b) 4)
21.0ms
(fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3)))
15.0ms
(*.f64 (*.f64 b b) (+.f64 a 3))

rewrite116.0ms (1.7%)

Algorithm
batch-egg-rewrite
Rules
307×expm1-udef_binary64
306×log1p-udef_binary64
176×add-sqr-sqrt_binary64
173×log1p-expm1-u_binary64
173×expm1-log1p-u_binary64
Counts
4 → 101
Calls

4 calls:

111.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))
111.0ms
(pow.f64 (hypot.f64 a b) 4)
110.0ms
(fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3)))
110.0ms
(*.f64 (*.f64 b b) (+.f64 a 3))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01770
137170
2430570
3509670
000
100

simplify116.0ms (1.8%)

Algorithm
egg-herbie
Rules
730×associate-*l*_binary64
719×fma-def_binary64
624×fma-neg_binary64
505×associate-+l+_binary64
341×distribute-lft-out_binary64
Counts
197 → 149
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0631855
12071761
27101597
329671573
451161573

prune359.0ms (5.4%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New1481149
Fresh011
Picked101
Done000
Total1492151
Error
0b
Counts
151 → 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 (+.f64 (pow.f64 a 4) (+.f64 (*.f64 2 (*.f64 (pow.f64 a 2) (pow.f64 b 2))) (pow.f64 b 4))) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
Compiler

Compiled 4637 to 2698 computations (41.8% saved)

localize38.0ms (0.6%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(*.f64 2 (*.f64 (pow.f64 a 2) (pow.f64 b 2)))
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))
1.6b
(*.f64 (pow.f64 a 2) (pow.f64 b 2))

series55.0ms (0.8%)

Counts
2 → 0
Calls

2 calls:

29.0ms
(*.f64 2 (*.f64 (pow.f64 a 2) (pow.f64 b 2)))
25.0ms
(*.f64 (pow.f64 a 2) (pow.f64 b 2))

rewrite91.0ms (1.4%)

Algorithm
batch-egg-rewrite
Rules
634×log1p-expm1-u_binary64
634×expm1-log1p-u_binary64
379×log-prod_binary64
132×expm1-udef_binary64
132×log1p-udef_binary64
Counts
2 → 36
Calls

2 calls:

89.0ms
(*.f64 2 (*.f64 (pow.f64 a 2) (pow.f64 b 2)))
89.0ms
(*.f64 (pow.f64 a 2) (pow.f64 b 2))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0817
116617
2169117
3501317
000
100

simplify10.0ms (0.1%)

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
000
100

prune270.0ms (4.1%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New1030103
Fresh011
Picked011
Done000
Total1032105
Error
0b
Counts
105 → 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 (+.f64 (pow.f64 a 4) (+.f64 (*.f64 2 (*.f64 (pow.f64 a 2) (pow.f64 b 2))) (pow.f64 b 4))) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
Compiler

Compiled 4108 to 2699 computations (34.3% saved)

localize27.0ms (0.4%)

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

series106.0ms (1.6%)

Counts
4 → 84
Calls

4 calls:

53.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)))))
24.0ms
(pow.f64 (+.f64 (*.f64 a a) (*.f64 b b)) 2)
23.0ms
(*.f64 (*.f64 b b) (+.f64 3 a))
5.0ms
(*.f64 (*.f64 a a) (-.f64 1 a))

rewrite135.0ms (2%)

Algorithm
batch-egg-rewrite
Rules
777×prod-diff_binary64
200×log1p-expm1-u_binary64
200×expm1-log1p-u_binary64
198×add-sqr-sqrt_binary64
192×add-log-exp_binary64
Counts
4 → 85
Calls

4 calls:

131.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)))))
131.0ms
(*.f64 (*.f64 a a) (-.f64 1 a))
131.0ms
(pow.f64 (+.f64 (*.f64 a a) (*.f64 b b)) 2)
131.0ms
(*.f64 (*.f64 b b) (+.f64 3 a))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01867
141963
2465563
3611363
000
100

simplify144.0ms (2.2%)

Algorithm
egg-herbie
Rules
712×associate-*l*_binary64
576×fma-def_binary64
550×unswap-sqr_binary64
455×associate-*r*_binary64
392×cancel-sign-sub-inv_binary64
Counts
169 → 128
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0521546
11691502
25371319
320891305
444951305
557341305

prune299.0ms (4.5%)

Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New1280128
Fresh000
Picked011
Done011
Total1282130
Error
0b
Counts
130 → 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 (+.f64 (pow.f64 a 4) (+.f64 (*.f64 2 (*.f64 (pow.f64 a 2) (pow.f64 b 2))) (pow.f64 b 4))) (fma.f64 4 (fma.f64 (*.f64 a a) (-.f64 1 a) (*.f64 (*.f64 b b) (+.f64 a 3))) -1))
Compiler

Compiled 4504 to 2628 computations (41.7% saved)

regimes1.7s (26.1%)

Accuracy

Total 0.0b remaining (37.4%)

Threshold costs 0.0b (37.4%)

Counts
182 → 1
Compiler

Compiled 25792 to 18180 computations (29.5% saved)

simplify3.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
02450
13550
23850
34050
44150
54050

end88.0ms (1.3%)

Compiler

Compiled 140 to 98 computations (30% saved)

Profiling

Loading profile data...