Details

Time bar (total: 5.0s)

sample1.1s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 74.609375%

Results
9.0ms191×body80valid
5.0ms20×body2560valid
4.0ms17×body1280valid
4.0ms11×body5120valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 39.1b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
1.2b
(- (sqrt (+ (* re re) (* im im))) re)
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1
*-un-lft-identity
sqrt-prod add-log-exp
add-cube-cbrt sqrt-div
add-exp-log sqrt-pow1 add-cbrt-cube
flip3-- pow1/2 associate-*r/ flip-- difference-of-squares
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+ distribute-lft-out--
Counts
3 → 43
Calls
3 calls:
7.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series41.0ms

Counts
3 → 9
Calls
3 calls:
27.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))

simplify89.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (84.0ms)

IterNodesCost
0234381
1812362
23077355
35001353

prune99.0ms

Filtered
42 candidates to 52 candidates (-23.8%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New46652
Fresh000
Picked101
Done000
Total47653

Merged error: 16.7b

Counts
53 → 6

localize14.0ms

Local error

Found 4 expressions with local error:

0.4b
(pow (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))) 3)
1.2b
(- (sqrt (+ (* re re) (* im im))) re)
13.5b
(cbrt (pow (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))) 3))
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
14×cbrt-prod
13×*-un-lft-identity
11×add-cube-cbrt
pow1
unpow-prod-down cube-prod sqrt-prod
sqrt-div add-log-exp
add-exp-log add-cbrt-cube
cube-div pow-pow associate-*r/
pow-unpow flip3-- sqrt-pow1 flip--
cube-mult cbrt-div pow1/2 unpow3 difference-of-squares sqr-pow
pow-to-exp sub-neg rem-sqrt-square flip3-+ pow1/3 diff-log pow-prod-down pow-exp sqrt-pow2 rem-cbrt-cube flip-+ distribute-lft-out-- rem-cube-cbrt
Counts
4 → 86
Calls
4 calls:
10.0ms
(pow (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))) 3)
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(cbrt (pow (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))) 3))
4.0ms
(sqrt (+ (* re re) (* im im)))

series97.0ms

Counts
4 → 12
Calls
4 calls:
62.0ms
(pow (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))) 3)
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
22.0ms
(cbrt (pow (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))) 3))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify55.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0430918
11846892
25002879

prune144.0ms

Filtered
63 candidates to 98 candidates (-55.6%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New95398
Fresh145
Picked011
Done000
Total968104

Merged error: 16.7b

Counts
104 → 8

localize16.0ms

Local error

Found 4 expressions with local error:

7.8b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
14.5b
(cbrt (pow (sqrt (* 2.0 (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re))) 3))
29.6b
(sqrt (+ (* re re) (* im im)))
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
14×cbrt-prod
12×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
sqrt-prod
pow1 sqrt-div add-log-exp
add-exp-log unpow-prod-down cube-prod add-cbrt-cube
cube-div rem-sqrt-square cbrt-div flip3-- sqrt-pow1 flip3-+ pow1/2 associate-*r/ flip-- flip-+
cube-mult sub-neg pow1/3 diff-log unpow3 rem-cbrt-cube difference-of-squares sqr-pow
Counts
4 → 68
Calls
4 calls:
14.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
7.0ms
(cbrt (pow (sqrt (* 2.0 (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re))) 3))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series43.0ms

Counts
4 → 12
Calls
4 calls:
7.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
22.0ms
(cbrt (pow (sqrt (* 2.0 (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re))) 3))
7.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify122.0ms

Algorithm
egg-herbie
Counts
80 → 80
Iterations

Useful iterations: 2 (26.0ms)

IterNodesCost
03381091
111911008
24656998
35002998

prune139.0ms

Filtered
60 candidates to 80 candidates (-33.3%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New78280
Fresh066
Picked101
Done011
Total79988

Merged error: 16.7b

Counts
88 → 9

localize22.0ms

Local error

Found 4 expressions with local error:

29.6b
(sqrt (+ (* re re) (* im im)))
29.6b
(sqrt (+ (* re re) (* im im)))
29.6b
(sqrt (+ (* re re) (* im im)))
29.6b
(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)))

series23.0ms

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

simplify136.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 5 (130.0ms)

IterNodesCost
089400
1215388
2503388
31265388
44227388
55002384

prune186.0ms

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

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New72072
Fresh077
Picked011
Done011
Total72981

Merged error: 16.7b

Counts
81 → 9

regimes643.0ms

Accuracy

59.5% (8.5b remaining)

Error of 26.0b against oracle of 17.5b and baseline of 38.5b

bsearch3.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05149
15149

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
303.0ms6109×body80valid
181.0ms648×body2560valid
109.0ms477×body1280valid
94.0ms272×body5120valid
47.0ms265×body640valid
23.0ms148×body320valid
7.0ms81×body160valid

Profiling

Loading profile data...