Details

Time bar (total: 5.9s)

sample1.4s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 72.674561%

Results
10.0ms200×body80valid
8.0ms18×body1280valid
5.0ms16×body2560valid
3.0msbody5120valid
1.0msbody640valid
0.0msbody160valid
0.0msbody320valid

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: 39.4b

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)
31.9b
(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)))

series44.0ms

Counts
4 → 12
Calls
4 calls:
5.0ms
(+ (* re re) (* im im))
26.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)))

simplify100.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 3 (94.0ms)

IterNodesCost
0277428
11024399
23458393
35002391

prune124.0ms

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

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New56763
Fresh000
Picked011
Done000
Total56864

Merged error: 15.1b

Counts
64 → 8

localize15.0ms

Local error

Found 4 expressions with local error:

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

rewrite20.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)))

simplify91.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (31.0ms)

IterNodesCost
0141392
1358380
2866376
32557375
45001375

prune115.0ms

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

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New69069
Fresh066
Picked011
Done011
Total69877

Merged error: 15.1b

Counts
77 → 8

localize15.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
8.4b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
31.9b
(sqrt (+ (* re re) (* im im)))
31.9b
(sqrt (+ (* re re) (* im im)))

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
50×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
flip3-+ associate-*r* associate-*l* pow-prod-up flip-+ unswap-sqr
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
+-commutative pow2 pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 124
Calls
4 calls:
14.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
14.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series25.0ms

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

simplify55.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
02671096
1974974
25001950

prune134.0ms

Filtered
74 candidates to 136 candidates (-83.8%)
Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New1351136
Fresh055
Picked011
Done022
Total1359144

Merged error: 15.1b

Counts
144 → 9

localize15.0ms

Local error

Found 4 expressions with local error:

31.9b
(sqrt (* (* (cbrt (+ (* re re) (* im im))) (cbrt (+ (* re re) (* im im)))) (cbrt (+ (* re re) (* im im)))))
33.0b
(cbrt (+ (* re re) (* im im)))
33.0b
(cbrt (+ (* re re) (* im im)))
33.0b
(cbrt (+ (* re re) (* im im)))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
60×cbrt-div
30×flip3-+ flip-+
28×frac-times
26×sqrt-div
24×pow1
15×sqrt-pow1
14×associate-*l/
12×pow1/3
cbrt-prod pow-prod-up
associate-*r/
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
pow-plus
pow-prod-down
add-exp-log add-cbrt-cube add-log-exp
pow-sqr
pow2
pow1/2 pow3 sqrt-prod
Counts
4 → 89
Calls
4 calls:
17.0ms
(sqrt (* (* (cbrt (+ (* re re) (* im im))) (cbrt (+ (* re re) (* im im)))) (cbrt (+ (* re re) (* im im)))))
4.0ms
(cbrt (+ (* re re) (* im im)))
3.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series75.0ms

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

simplify174.0ms

Algorithm
egg-herbie
Counts
101 → 101
Iterations

Useful iterations: 3 (158.0ms)

IterNodesCost
03151558
17271517
232001488
350011400

prune119.0ms

Filtered
64 candidates to 101 candidates (-57.8%)
Pruning

9 alts after pruning (5 fresh and 4 done)

PrunedKeptTotal
New1010101
Fresh055
Picked011
Done033
Total1019110

Merged error: 15.1b

Counts
110 → 9

regimes739.0ms

Accuracy

54.7% (9.4b remaining)

Error of 27.0b against oracle of 17.6b and baseline of 38.4b

bsearch53.0ms

Steps
ItersRangePoint
6
5.968187267600891e+131
3.2652973689964837e+132
2.477348669605469e+132
8
2.0466545128858883e-221
9.836257265161428e-218
3.512382318750746e-220
2
-1.5100189378640938e-291
-1.3911766401046742e-291
-1.4357425017644567e-291

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04726
14726

end0.0ms

sample2.4s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 72.674561%

Results
293.0ms6009×body80valid
189.0ms678×body2560valid
121.0ms499×body1280valid
96.0ms284×body5120valid
55.0ms300×body640valid
21.0ms153×body320valid
7.0ms77×body160valid

Profiling

Loading profile data...