Details

Time bar (total: 4.5s)

analyze186.0ms (4.2%)

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%56.2%18.8%7
25%48.4%26.6%8
25%35.1%39.9%9
28.1%18.3%53.6%10
31.6%12.3%56.1%11
33.4%5.9%60.8%12
35.2%3.8%61%13
36.1%2.9%61%14
Compiler

Compiled 34 to 22 computations (35.3% saved)

sample1.4s (31.6%)

Results
1.4s8256×body128valid
0.0msbody128invalid
Compiler

Compiled 101 to 65 computations (35.6% saved)

simplify59.0ms (1.3%)

Algorithm
egg-herbie
Rules
725×fma-def_binary64
669×unsub-neg_binary64
596×cancel-sign-sub-inv_binary64
340×+-commutative_binary64
277×fma-neg_binary64
Counts
1 → 2
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
02042
16340
217036
354236
4186732
5328132
6488132
7495832

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 1 (*.f64 3 a)))))) 1)
0.0b
(+.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1))) (pow.f64 (hypot.f64 a b) 4)) -1)
Compiler

Compiled 172 to 108 computations (37.2% saved)

localize13.0ms (0.3%)

Local error

Found 4 expressions with local error:

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

series50.0ms (1.1%)

Counts
4 → 84
Calls

4 calls:

27.0ms
(fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1))) (pow.f64 (hypot.f64 a b) 4))
11.0ms
(fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1)))
10.0ms
(*.f64 (*.f64 b b) (fma.f64 a -3 1))
1.0ms
(fma.f64 a -3 1)

rewrite124.0ms (2.8%)

Algorithm
batch-egg-rewrite
Rules
440×prod-diff_binary64
320×fma-udef_binary64
233×expm1-udef_binary64
233×log1p-udef_binary64
209×log-pow_binary64
Counts
4 → 94
Calls

4 calls:

120.0ms
(fma.f64 a -3 1)
120.0ms
(fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1)))
120.0ms
(fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1))) (pow.f64 (hypot.f64 a b) 4))
120.0ms
(*.f64 (*.f64 b b) (fma.f64 a -3 1))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01464
128364
2297264
3489764
4499364
5494464
000
100

simplify80.0ms (1.8%)

Algorithm
egg-herbie
Rules
645×fma-def_binary64
541×+-commutative_binary64
524×sub-neg_binary64
420×associate--l+_binary64
415×fma-neg_binary64
Counts
178 → 139
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0591651
11951531
25881259
323201236
442661236
550791236

prune183.0ms (4.1%)

Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New1354139
Fresh101
Picked101
Done000
Total1374141
Error
0b
Counts
141 → 4
Alt Table
StatusErrorProgram
8.9b
(+.f64 (-.f64 (+.f64 (*.f64 4 (pow.f64 a 2)) (+.f64 (*.f64 2 (*.f64 (pow.f64 a 2) (pow.f64 b 2))) (+.f64 (*.f64 4 (pow.f64 b 2)) (pow.f64 b 4)))) (*.f64 12 (*.f64 a (pow.f64 b 2)))) -1)
23.8b
(+.f64 (/.f64 (-.f64 (*.f64 (*.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1)))) (*.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1))))) (pow.f64 (hypot.f64 b a) 8)) (-.f64 (*.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1)))) (pow.f64 (hypot.f64 b a) 4))) -1)
0.4b
(+.f64 (pow.f64 (cbrt.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1))) (pow.f64 (hypot.f64 b a) 4))) 3) -1)
0.2b
(+.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) 1)) (pow.f64 (hypot.f64 a b) 4)) -1)
Compiler

Compiled 4039 to 2286 computations (43.4% saved)

localize11.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

series73.0ms (1.6%)

Counts
4 → 96
Calls

4 calls:

28.0ms
(fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) 1)) (pow.f64 (hypot.f64 a b) 4))
26.0ms
(pow.f64 (hypot.f64 a b) 4)
10.0ms
(hypot.f64 a b)
8.0ms
(fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) 1))

rewrite54.0ms (1.2%)

Algorithm
batch-egg-rewrite
Rules
865×log1p-expm1-u_binary64
865×expm1-log1p-u_binary64
346×prod-diff_binary64
103×add-sqr-sqrt_binary64
98×add-cbrt-cube_binary64
Counts
4 → 81
Calls

4 calls:

53.0ms
(hypot.f64 a b)
53.0ms
(pow.f64 (hypot.f64 a b) 4)
52.0ms
(fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) 1))
52.0ms
(fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) 1)) (pow.f64 (hypot.f64 a b) 4))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01245
122445
2224445
3587145
000
100

simplify85.0ms (1.9%)

Algorithm
egg-herbie
Rules
550×fma-def_binary64
526×cancel-sign-sub-inv_binary64
494×fma-neg_binary64
280×associate-+l+_binary64
228×neg-mul-1_binary64
Counts
177 → 146
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0801864
12581742
27991616
331821616
447791616
550801616

prune175.0ms (3.9%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New1451146
Fresh123
Picked011
Done000
Total1464150
Error
0b
Counts
150 → 4
Alt Table
StatusErrorProgram
8.9b
(+.f64 (-.f64 (+.f64 (*.f64 4 (pow.f64 a 2)) (+.f64 (*.f64 2 (*.f64 (pow.f64 a 2) (pow.f64 b 2))) (+.f64 (*.f64 4 (pow.f64 b 2)) (pow.f64 b 4)))) (*.f64 12 (*.f64 a (pow.f64 b 2)))) -1)
23.8b
(+.f64 (/.f64 (-.f64 (*.f64 (*.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1)))) (*.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1))))) (pow.f64 (hypot.f64 b a) 8)) (-.f64 (*.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1)))) (pow.f64 (hypot.f64 b a) 4))) -1)
0.6b
(+.f64 (pow.f64 (cbrt.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 b b)) (pow.f64 (hypot.f64 a b) 4))) 3) -1)
0.2b
(+.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) 1)) (pow.f64 (hypot.f64 a b) 4)) -1)
Compiler

Compiled 3931 to 2056 computations (47.7% saved)

localize14.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 a (fma.f64 a a a) (*.f64 b b))
0.0b
(fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 b b)) (pow.f64 (hypot.f64 a b) 4))
0.6b
(pow.f64 (cbrt.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 b b)) (pow.f64 (hypot.f64 a b) 4))) 3)
11.9b
(cbrt.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 b b)) (pow.f64 (hypot.f64 a b) 4)))

series422.0ms (9.4%)

Counts
4 → 96
Calls

4 calls:

305.0ms
(pow.f64 (cbrt.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 b b)) (pow.f64 (hypot.f64 a b) 4))) 3)
76.0ms
(cbrt.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 b b)) (pow.f64 (hypot.f64 a b) 4)))
28.0ms
(fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 b b)) (pow.f64 (hypot.f64 a b) 4))
12.0ms
(fma.f64 a (fma.f64 a a a) (*.f64 b b))

rewrite127.0ms (2.8%)

Algorithm
batch-egg-rewrite
Rules
491×log-prod_binary64
342×prod-diff_binary64
224×fma-udef_binary64
200×expm1-udef_binary64
200×log1p-udef_binary64
Counts
4 → 138
Calls

4 calls:

123.0ms
(fma.f64 a (fma.f64 a a a) (*.f64 b b))
123.0ms
(fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 b b)) (pow.f64 (hypot.f64 a b) 4))
123.0ms
(pow.f64 (cbrt.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 b b)) (pow.f64 (hypot.f64 a b) 4))) 3)
123.0ms
(cbrt.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 b b)) (pow.f64 (hypot.f64 a b) 4)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01380
125380
2258480
3492680
4498480
5490880
000
100

simplify96.0ms (2.1%)

Algorithm
egg-herbie
Rules
638×fma-def_binary64
390×associate-+l+_binary64
378×associate-*r*_binary64
235×associate-*l*_binary64
183×associate-/l*_binary64
Counts
234 → 179
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
04426220
114805731
252865731

prune375.0ms (8.4%)

Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New1790179
Fresh022
Picked011
Done011
Total1794183
Error
0b
Counts
183 → 4
Alt Table
StatusErrorProgram
8.9b
(+.f64 (-.f64 (+.f64 (*.f64 4 (pow.f64 a 2)) (+.f64 (*.f64 2 (*.f64 (pow.f64 a 2) (pow.f64 b 2))) (+.f64 (*.f64 4 (pow.f64 b 2)) (pow.f64 b 4)))) (*.f64 12 (*.f64 a (pow.f64 b 2)))) -1)
23.8b
(+.f64 (/.f64 (-.f64 (*.f64 (*.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1)))) (*.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1))))) (pow.f64 (hypot.f64 b a) 8)) (-.f64 (*.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1)))) (pow.f64 (hypot.f64 b a) 4))) -1)
0.6b
(+.f64 (pow.f64 (cbrt.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 b b)) (pow.f64 (hypot.f64 a b) 4))) 3) -1)
0.2b
(+.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) 1)) (pow.f64 (hypot.f64 a b) 4)) -1)
Compiler

Compiled 10196 to 6684 computations (34.4% saved)

localize15.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(*.f64 4 (pow.f64 a 2))
0.2b
(*.f64 12 (*.f64 a (pow.f64 b 2)))
0.4b
(*.f64 a (pow.f64 b 2))
2.4b
(*.f64 (pow.f64 a 2) (pow.f64 b 2))

series31.0ms (0.7%)

Counts
4 → 0
Calls

4 calls:

11.0ms
(*.f64 (pow.f64 a 2) (pow.f64 b 2))
10.0ms
(*.f64 12 (*.f64 a (pow.f64 b 2)))
7.0ms
(*.f64 a (pow.f64 b 2))
2.0ms
(*.f64 4 (pow.f64 a 2))

rewrite63.0ms (1.4%)

Algorithm
batch-egg-rewrite
Rules
538×log-prod_binary64
277×pow2_binary64
233×pow-unpow_binary64
195×pow1/3_binary64
194×pow3_binary64
Counts
4 → 77
Calls

4 calls:

61.0ms
(*.f64 4 (pow.f64 a 2))
61.0ms
(*.f64 12 (*.f64 a (pow.f64 b 2)))
61.0ms
(*.f64 a (pow.f64 b 2))
61.0ms
(*.f64 (pow.f64 a 2) (pow.f64 b 2))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01231
124631
2246931
3516831
000
100

simplify7.0ms (0.2%)

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
000
100

prune135.0ms (3%)

Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New77077
Fresh011
Picked011
Done022
Total77481
Error
0b
Counts
81 → 4
Alt Table
StatusErrorProgram
8.9b
(+.f64 (-.f64 (+.f64 (*.f64 4 (pow.f64 a 2)) (+.f64 (*.f64 2 (*.f64 (pow.f64 a 2) (pow.f64 b 2))) (+.f64 (*.f64 4 (pow.f64 b 2)) (pow.f64 b 4)))) (*.f64 12 (*.f64 a (pow.f64 b 2)))) -1)
23.8b
(+.f64 (/.f64 (-.f64 (*.f64 (*.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1)))) (*.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1))))) (pow.f64 (hypot.f64 b a) 8)) (-.f64 (*.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) (fma.f64 a -3 1)))) (pow.f64 (hypot.f64 b a) 4))) -1)
0.6b
(+.f64 (pow.f64 (cbrt.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 b b)) (pow.f64 (hypot.f64 a b) 4))) 3) -1)
0.2b
(+.f64 (fma.f64 4 (fma.f64 a (fma.f64 a a a) (*.f64 (*.f64 b b) 1)) (pow.f64 (hypot.f64 a b) 4)) -1)
Compiler

Compiled 3121 to 2319 computations (25.7% saved)

regimes564.0ms (12.6%)

Accuracy

Total 0.0b remaining (46.7%)

Threshold costs 0.0b (46.7%)

Counts
94 → 1
Compiler

Compiled 11259 to 7919 computations (29.7% saved)

simplify2.0ms (0.1%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01632
12032
21932

end118.0ms (2.6%)

Compiler

Compiled 198 to 127 computations (35.9% saved)

Profiling

Loading profile data...