Details

Time bar (total: 4.1s)

analyze488.0ms (12.1%)

Algorithm
search
Search
TrueOtherFalseIter
0%50%50%0
0%50%50%1
25%25%50%2
25%25%50%3
31.2%18.7%50%4
31.2%18.7%50%5
34.3%15.6%50%6
34.3%15.6%50%7
35.9%14%50%8
35.9%14%50%9
36.7%13.3%50%10
36.7%13.3%50%11
37.1%12.9%50%12
37.1%12.9%50%13
37.3%12.7%50%14
Compiler

Compiled 20 to 14 computations (30% saved)

sample1.9s (46.7%)

Results
870.0ms6351×body128valid
383.0ms633×body2048valid
311.0ms497×body4096valid
168.0ms407×body1024valid
75.0ms237×body512valid
31.0ms131×body256valid
Compiler

Compiled 57 to 40 computations (29.8% saved)

simplify26.0ms (0.6%)

Algorithm
egg-herbie
Rules
203×fma-def_binary64
142×fma-neg_binary64
51×distribute-rgt-in_binary64
42×cancel-sign-sub-inv_binary64
28×sub-neg_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01315
12015
23315
35015
46915
59815
615115
721115
826315
930515
1034315
1137915
1239615
1341515
1442815
1546515
1647715
1748615
1844915
Stop Event
saturated
Counts
1 → 2

prune4.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
14.0b
Counts
3 → 2
Alt Table
StatusErrorProgram
14.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
41.9b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) re))))
Compiler

Compiled 85 to 61 computations (28.2% saved)

localize6.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(hypot.f64 re im)
0.2b
(sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))
1.6b
(-.f64 (hypot.f64 re im) re)

series71.0ms (1.8%)

Counts
3 → 56
Calls

3 calls:

31.0ms
(sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))
30.0ms
(hypot.f64 re im)
10.0ms
(-.f64 (hypot.f64 re im) re)

rewrite52.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
811×log1p-expm1-u_binary64
811×expm1-log1p-u_binary64
410×prod-diff_binary64
93×egg-rr
85×add-sqr-sqrt_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0823
117223
2205323
3573523
Stop Event
node limit
Counts
3 → 93
Calls

3 calls:

51.0ms
(hypot.f64 re im)
51.0ms
(sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re)))
51.0ms
(-.f64 (hypot.f64 re im) re)

simplify68.0ms (1.7%)

Algorithm
egg-herbie
Rules
618×fma-def_binary64
559×fma-neg_binary64
365×associate-/l*_binary64
347×times-frac_binary64
280×cancel-sign-sub-inv_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01581505
14891464
215851399
347931395
450571395
Stop Event
node limit
Counts
149 → 165

prune112.0ms (2.8%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1605165
Fresh101
Picked011
Done000
Total1616167
Error
0.1b
Counts
167 → 6
Alt Table
StatusErrorProgram
14.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
52.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
51.9b
(*.f64 1/2 (fma.f64 (sqrt.f64 1/2) (*.f64 (*.f64 im (sqrt.f64 2)) (sqrt.f64 (/.f64 1 re))) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 9))) (-.f64 (*.f64 1/32 (/.f64 (*.f64 (sqrt.f64 2) (pow.f64 im 5)) (sqrt.f64 1/2))) (*.f64 1/256 (/.f64 (*.f64 (sqrt.f64 2) (pow.f64 im 5)) (sqrt.f64 1/2)))) (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 5))) (*.f64 (/.f64 (*.f64 (pow.f64 im 3) (sqrt.f64 2)) (sqrt.f64 1/2)) -1/16)))))
46.4b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
31.4b
(*.f64 1/2 (-.f64 (*.f64 (sqrt.f64 2) (sqrt.f64 im)) (*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 2) re) (sqrt.f64 (/.f64 1 im))))))
54.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) -1/8 (fma.f64 1/2 (/.f64 (*.f64 im im) re) (*.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))))))))
Compiler

Compiled 3740 to 2567 computations (31.4% saved)

localize11.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(sqrt.f64 (/.f64 1 im))
0.3b
(*.f64 (*.f64 (sqrt.f64 2) re) (sqrt.f64 (/.f64 1 im)))
0.4b
(*.f64 (sqrt.f64 2) (sqrt.f64 im))
0.5b
(*.f64 (sqrt.f64 2) re)

series30.0ms (0.7%)

Counts
4 → 0
Calls

4 calls:

16.0ms
(*.f64 (*.f64 (sqrt.f64 2) re) (sqrt.f64 (/.f64 1 im)))
6.0ms
(*.f64 (sqrt.f64 2) (sqrt.f64 im))
4.0ms
(*.f64 (sqrt.f64 2) re)
4.0ms
(sqrt.f64 (/.f64 1 im))

rewrite53.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
535×log-prod_binary64
270×pow2_binary64
217×pow-unpow_binary64
192×pow1/3_binary64
187×expm1-udef_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01232
123827
2250527
3522927
Stop Event
node limit
Counts
4 → 98
Calls

4 calls:

51.0ms
(sqrt.f64 (/.f64 1 im))
51.0ms
(*.f64 (*.f64 (sqrt.f64 2) re) (sqrt.f64 (/.f64 1 im)))
51.0ms
(*.f64 (sqrt.f64 2) (sqrt.f64 im))
51.0ms
(*.f64 (sqrt.f64 2) re)

simplify7.0ms (0.2%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
000
100
Stop Event
saturated
Counts
98 → 98

prune77.0ms (1.9%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New98098
Fresh044
Picked011
Done011
Total986104
Error
0.1b
Counts
104 → 6
Alt Table
StatusErrorProgram
14.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
52.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
51.9b
(*.f64 1/2 (fma.f64 (sqrt.f64 1/2) (*.f64 (*.f64 im (sqrt.f64 2)) (sqrt.f64 (/.f64 1 re))) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 9))) (-.f64 (*.f64 1/32 (/.f64 (*.f64 (sqrt.f64 2) (pow.f64 im 5)) (sqrt.f64 1/2))) (*.f64 1/256 (/.f64 (*.f64 (sqrt.f64 2) (pow.f64 im 5)) (sqrt.f64 1/2)))) (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 5))) (*.f64 (/.f64 (*.f64 (pow.f64 im 3) (sqrt.f64 2)) (sqrt.f64 1/2)) -1/16)))))
46.4b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re))))
31.4b
(*.f64 1/2 (-.f64 (*.f64 (sqrt.f64 2) (sqrt.f64 im)) (*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 2) re) (sqrt.f64 (/.f64 1 im))))))
54.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) -1/8 (fma.f64 1/2 (/.f64 (*.f64 im im) re) (*.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))))))))
Compiler

Compiled 2442 to 1979 computations (19% saved)

localize9.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(sqrt.f64 (/.f64 1 re))
0.1b
(*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re)))
0.5b
(*.f64 (sqrt.f64 2) im)
0.6b
(*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im))

series39.0ms (1%)

Counts
4 → 0
Calls

4 calls:

25.0ms
(*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re)))
8.0ms
(*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im))
4.0ms
(sqrt.f64 (/.f64 1 re))
3.0ms
(*.f64 (sqrt.f64 2) im)

rewrite49.0ms (1.2%)

Algorithm
batch-egg-rewrite
Rules
915×log1p-expm1-u_binary64
915×expm1-log1p-u_binary64
117×add-sqr-sqrt_binary64
111×add-log-exp_binary64
110×add-cbrt-cube_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01342
125817
2245817
3550617
Stop Event
node limit
Counts
4 → 74
Calls

4 calls:

48.0ms
(sqrt.f64 (/.f64 1 re))
48.0ms
(*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (sqrt.f64 (/.f64 1 re)))
48.0ms
(*.f64 (sqrt.f64 2) im)
48.0ms
(*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im))

simplify6.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
000
100
Stop Event
saturated
Counts
74 → 74

prune50.0ms (1.2%)

Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New69574
Fresh033
Picked101
Done022
Total701080
Error
0.1b
Counts
80 → 10
Alt Table
StatusErrorProgram
14.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
52.4b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)))))
46.5b
(*.f64 1/2 (pow.f64 (cbrt.f64 (/.f64 im (sqrt.f64 re))) 3))
46.3b
(*.f64 1/2 (/.f64 im (sqrt.f64 re)))
47.3b
(*.f64 1/2 (*.f64 (exp.f64 (log.f64 im)) (sqrt.f64 (/.f64 1 re))))
51.9b
(*.f64 1/2 (fma.f64 (sqrt.f64 1/2) (*.f64 (*.f64 im (sqrt.f64 2)) (sqrt.f64 (/.f64 1 re))) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 9))) (-.f64 (*.f64 1/32 (/.f64 (*.f64 (sqrt.f64 2) (pow.f64 im 5)) (sqrt.f64 1/2))) (*.f64 1/256 (/.f64 (*.f64 (sqrt.f64 2) (pow.f64 im 5)) (sqrt.f64 1/2)))) (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 5))) (*.f64 (/.f64 (*.f64 (pow.f64 im 3) (sqrt.f64 2)) (sqrt.f64 1/2)) -1/16)))))
46.3b
(*.f64 1/2 (*.f64 (pow.f64 im 1) (sqrt.f64 (/.f64 1 re))))
31.4b
(*.f64 1/2 (-.f64 (*.f64 (sqrt.f64 2) (sqrt.f64 im)) (*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 2) re) (sqrt.f64 (/.f64 1 im))))))
54.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) -1/8 (fma.f64 1/2 (/.f64 (*.f64 im im) re) (*.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))))))))
52.2b
(*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 2) im)) (*.f64 (sqrt.f64 (cbrt.f64 (pow.f64 re -2))) (sqrt.f64 (/.f64 1 (cbrt.f64 re))))))
Compiler

Compiled 1425 to 1166 computations (18.2% saved)

localize5.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.1b
(/.f64 im (sqrt.f64 re))

series18.0ms (0.4%)

Counts
1 → 12
Calls

1 calls:

18.0ms
(/.f64 im (sqrt.f64 re))

rewrite39.0ms (1%)

Algorithm
batch-egg-rewrite
Rules
496×log1p-expm1-u_binary64
496×expm1-log1p-u_binary64
399×unpow-prod-down_binary64
262×log-prod_binary64
136×pow2_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
056
11036
212936
350176
Stop Event
node limit
Counts
1 → 66
Calls

1 calls:

38.0ms
(/.f64 im (sqrt.f64 re))

simplify7.0ms (0.2%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
07108
110108
29108
Stop Event
saturated
Counts
78 → 67

prune35.0ms (0.9%)

Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New64367
Fresh437
Picked011
Done022
Total68977
Error
0.1b
Counts
77 → 9
Alt Table
StatusErrorProgram
52.4b
(*.f64 1/2 (sqrt.f64 (/.f64 (*.f64 im im) re)))
47.3b
(*.f64 1/2 (*.f64 (exp.f64 (log.f64 im)) (sqrt.f64 (/.f64 1 re))))
46.3b
(*.f64 1/2 (*.f64 (/.f64 (sqrt.f64 im) 1) (/.f64 (sqrt.f64 im) (sqrt.f64 re))))
51.9b
(*.f64 1/2 (fma.f64 (sqrt.f64 1/2) (*.f64 (*.f64 im (sqrt.f64 2)) (sqrt.f64 (/.f64 1 re))) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 9))) (-.f64 (*.f64 1/32 (/.f64 (*.f64 (sqrt.f64 2) (pow.f64 im 5)) (sqrt.f64 1/2))) (*.f64 1/256 (/.f64 (*.f64 (sqrt.f64 2) (pow.f64 im 5)) (sqrt.f64 1/2)))) (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 re 5))) (*.f64 (/.f64 (*.f64 (pow.f64 im 3) (sqrt.f64 2)) (sqrt.f64 1/2)) -1/16)))))
46.3b
(*.f64 1/2 (*.f64 im (pow.f64 re -1/2)))
31.4b
(*.f64 1/2 (-.f64 (*.f64 (sqrt.f64 2) (sqrt.f64 im)) (*.f64 1/2 (*.f64 (*.f64 (sqrt.f64 2) re) (sqrt.f64 (/.f64 1 im))))))
14.0b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (-.f64 (hypot.f64 re im) re))))
46.3b
(*.f64 1/2 (/.f64 im (sqrt.f64 re)))
54.1b
(*.f64 1/2 (sqrt.f64 (*.f64 2 (fma.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) -1/8 (fma.f64 1/2 (/.f64 (*.f64 im im) re) (*.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))))))))
Compiler

Compiled 1074 to 622 computations (42.1% saved)

regimes738.0ms (18.2%)

Accuracy

Total 5.9b remaining (98.6%)

Threshold costs 0b (0%)

Counts
55 → 2
Compiler

Compiled 6566 to 5210 computations (20.7% saved)

bsearch2.0ms (0%)

Compiler

Compiled 12 to 7 computations (41.7% saved)

simplify3.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
02345
13145
23645
33845
43945
53945
Stop Event
saturated

end152.0ms (3.8%)

Compiler

Compiled 246 to 193 computations (21.5% saved)

Profiling

Loading profile data...