Details

Time bar (total: 2.8s)

sample26.0ms

Algorithm
intervals
Results
6.0ms196×body80valid
5.0ms27×body2560valid
2.0ms16×body1280valid
1.0msbody640valid
1.0msbody5120valid
0.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0248
1308
2338
3338

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.6b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.3b
(+ (sqrt (+ (* re re) (* im im))) re)
28.2b
(sqrt (+ (* re re) (* im im)))

rewrite53.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
add-sqr-sqrt fma-def add-log-exp
add-cube-cbrt sqrt-prod
pow1
add-exp-log expm1-log1p-u flip3-+ add-cbrt-cube flip-+ log1p-expm1-u
+-commutative sqrt-div sum-log
rem-sqrt-square sqrt-pow1 pow1/2 hypot-def distribute-lft-out
Counts
3 → 52
Calls
3 calls:
8.0ms
(+ (* re re) (* im im))
36.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series118.0ms

Counts
3 → 9
Calls
3 calls:
28.0ms
(+ (* re re) (* im im))
52.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify68.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (63.0ms)

IterNodesCost
0194279
1769246
22332233
35002230

prune187.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 8.1b

localize8.0ms

Local error

Found 2 expressions with local error:

0.0b
(hypot re im)
0.3b
(+ re (hypot re im))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
add-log-exp
add-sqr-sqrt add-cube-cbrt fma-def
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
+-commutative hypot-udef flip3-+ sum-log flip-+ distribute-lft-out
Counts
2 → 27
Calls
2 calls:
0.0ms
(hypot re im)
6.0ms
(+ re (hypot re im))

series116.0ms

Counts
2 → 6
Calls
2 calls:
53.0ms
(hypot re im)
63.0ms
(+ re (hypot re im))

simplify73.0ms

Algorithm
egg-herbie
Counts
33 → 33
Iterations

Useful iterations: 1 (5.0ms)

IterNodesCost
08884
117678
237078
3100478
4313878
5500178

prune101.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 8.1b

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot re im)
0.0b
(hypot re im)
0.5b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
8.1b
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
25×add-sqr-sqrt
19×pow1
18×sqrt-prod
13×add-cube-cbrt *-un-lft-identity
sqrt-pow1 pow1/2 swap-sqr
add-exp-log associate-*r* associate-*l* add-cbrt-cube add-log-exp
pow-prod-up
expm1-log1p-u log1p-expm1-u unswap-sqr
fma-def pow-prod-down pow-sqr
hypot-udef
+-commutative pow2 flip3-+ pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod flip-+
Counts
4 → 87
Calls
4 calls:
0.0ms
(hypot re im)
0.0ms
(hypot re im)
13.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
6.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

series212.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(hypot re im)
53.0ms
(hypot re im)
48.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
64.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

simplify174.0ms

Algorithm
egg-herbie
Counts
99 → 99
Iterations

Useful iterations: 2 (23.0ms)

IterNodesCost
0171341
1603286
23648275
35001275

prune259.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 8.1b

localize15.0ms

Local error

Found 2 expressions with local error:

0.0b
(hypot re im)
0.3b
(+ re (* (sqrt 1) (hypot re im)))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
add-log-exp
add-sqr-sqrt add-cube-cbrt fma-def *-un-lft-identity
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
+-commutative hypot-udef flip3-+ sum-log flip-+
Counts
2 → 26
Calls
2 calls:
0.0ms
(hypot re im)
6.0ms
(+ re (* (sqrt 1) (hypot re im)))

series111.0ms

Counts
2 → 6
Calls
2 calls:
52.0ms
(hypot re im)
58.0ms
(+ re (* (sqrt 1) (hypot re im)))

simplify104.0ms

Algorithm
egg-herbie
Counts
32 → 32
Iterations

Useful iterations: 3 (29.0ms)

IterNodesCost
0110123
1299107
2873106
33652103
45001103

prune109.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 8.1b

regimes108.0ms

Accuracy

22.2% (4.3b remaining)

Error of 12.0b against oracle of 7.6b and baseline of 13.2b

bsearch141.0ms

Steps
ItersRangePoint
9
-1.257508563021492e-70
-2.656711351641578e-76
-1.941232155667052e-71
7
-1.989428328455626e-07
-1.1960025753651706e-08
-1.0136200979503546e-07
9
-1.621829926510464e+42
-8.804681707553006e+35
-1.7761354360071877e+40

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 1 (1.0ms)

IterNodesCost
04130
14615
24915
34915

end0.0ms

sample704.0ms

Algorithm
intervals
Results
199.0ms6034×body80valid
133.0ms716×body2560valid
67.0ms463×body1280valid
62.0ms279×body5120valid
30.0ms262×body640valid
16.0ms158×body320valid
5.0ms88×body160valid