Details

Time bar (total: 5.1s)

sample1.0s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 74.609375%

Results
12.0ms195×body80valid
6.0ms22×body2560valid
4.0ms11×body5120valid
3.0ms15×body1280valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 37.5b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
1.0b
(+ (sqrt (+ (* re re) (* im im))) re)
28.0b
(sqrt (+ (* re re) (* im im)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-log-exp
*-un-lft-identity
add-sqr-sqrt
add-cube-cbrt
add-exp-log flip3-+ sqrt-div sqrt-prod add-cbrt-cube flip-+
sqrt-pow1
+-commutative pow1/2 associate-*r/ sum-log
rem-sqrt-square pow-prod-down distribute-lft-out
Counts
4 → 51
Calls
4 calls:
4.0ms
(+ (* re re) (* im im))
8.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series46.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(+ (* re re) (* im im))
25.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify97.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 3 (91.0ms)

IterNodesCost
0277428
11024399
23458393
35002391

prune118.0ms

Filtered
52 candidates to 63 candidates (-21.2%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New57663
Fresh000
Picked011
Done000
Total57764

Merged error: 16.5b

Counts
64 → 7

localize15.0ms

Local error

Found 4 expressions with local error:

1.0b
(+ (sqrt (+ (* re re) (* im im))) re)
28.0b
(sqrt (+ (* re re) (* im im)))
28.0b
(sqrt (+ (* re re) (* im im)))
28.0b
(sqrt (+ (* re re) (* im im)))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
*-un-lft-identity sqrt-prod
pow1 add-cube-cbrt
sqrt-div add-log-exp
add-exp-log flip3-+ add-cbrt-cube flip-+
rem-sqrt-square sqrt-pow1 pow1/2
+-commutative sum-log distribute-lft-out
Counts
4 → 57
Calls
4 calls:
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series25.0ms

Counts
4 → 12
Calls
4 calls:
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify84.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (29.0ms)

IterNodesCost
0141392
1358380
2866376
32557375
45001375

prune183.0ms

Filtered
61 candidates to 69 candidates (-13.1%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New68169
Fresh055
Picked101
Done011
Total69776

Merged error: 16.5b

Counts
76 → 7

localize22.0ms

Local error

Found 4 expressions with local error:

14.6b
(+ (exp (log (sqrt (+ (* re re) (* im im))))) re)
28.0b
(sqrt (+ (* re re) (* im im)))
28.0b
(sqrt (+ (* re re) (* im im)))
28.0b
(sqrt (+ (* re re) (* im im)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
*-un-lft-identity sqrt-prod
pow1 add-cube-cbrt
sqrt-div add-log-exp
add-exp-log flip3-+ add-cbrt-cube flip-+
rem-sqrt-square sqrt-pow1 pow1/2
+-commutative sum-log distribute-lft-out
Counts
4 → 57
Calls
4 calls:
9.0ms
(+ (exp (log (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series25.0ms

Counts
4 → 12
Calls
4 calls:
7.0ms
(+ (exp (log (sqrt (+ (* re re) (* im im))))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify86.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 4 (79.0ms)

IterNodesCost
0148441
1379399
2892395
32614394
45001393

prune188.0ms

Filtered
62 candidates to 69 candidates (-11.3%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New68169
Fresh055
Picked101
Done011
Total69776

Merged error: 16.5b

Counts
76 → 7

localize31.0ms

Local error

Found 4 expressions with local error:

28.0b
(sqrt (+ (* re re) (* im im)))
28.0b
(sqrt (+ (* re re) (* im im)))
28.0b
(sqrt (+ (* re re) (* im im)))
28.0b
(sqrt (+ (* re re) (* im im)))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity sqrt-div
add-exp-log rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 add-cbrt-cube flip-+ add-log-exp
Counts
4 → 60
Calls
4 calls:
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series26.0ms

Counts
4 → 12
Calls
4 calls:
6.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify144.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 5 (138.0ms)

IterNodesCost
089400
1215388
2503388
31265388
44227388
55002384

prune169.0ms

Filtered
60 candidates to 72 candidates (-20.0%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New71172
Fresh055
Picked101
Done011
Total72779

Merged error: 16.5b

Counts
79 → 7

regimes648.0ms

Accuracy

56.6% (9.1b remaining)

Error of 27.2b against oracle of 18.1b and baseline of 39.0b

bsearch103.0ms

Steps
ItersRangePoint
8
9.03567328328406e+126
2.8337051363940888e+131
8.325258196494308e+130
10
-4.4587291624847184e-241
-7.768456259363856e-259
-2.606775090128557e-250
10
-2.827145857664849e-159
-4.602855931631007e-171
-5.789437331010863e-171

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04726
14726

end0.0ms

sample2.0s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 74.609375%

Results
290.0ms6037×body80valid
185.0ms666×body2560valid
108.0ms469×body1280valid
102.0ms305×body5120valid
53.0ms293×body640valid
22.0ms154×body320valid
7.0ms76×body160valid

Profiling

Loading profile data...