Details

Time bar (total: 2.2s)

sample38.0ms

Algorithm
intervals
Results
9.0ms194×body80valid
8.0ms20×body1280valid
6.0ms23×body2560valid
2.0msbody5120valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify4.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: 38.6b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.7b
(+ (sqrt (+ (* re re) (* im im))) re)
31.1b
(sqrt (+ (* re re) (* im im)))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
pow1
*-un-lft-identity
add-sqr-sqrt add-log-exp
add-cube-cbrt sqrt-div sqrt-prod
add-exp-log sqrt-pow1 flip3-+ add-cbrt-cube flip-+
pow1/2 associate-*r/
+-commutative rem-sqrt-square pow-prod-down sum-log distribute-lft-out
Counts
3 → 40
Calls
3 calls:
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)))

series38.0ms

Counts
3 → 9
Calls
3 calls:
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)))

simplify71.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 3 (66.0ms)

IterNodesCost
0247351
1781333
22656327
35001325

prune97.0ms

Filtered
42 candidates to 49 candidates (-16.7%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New43649
Fresh000
Picked101
Done000
Total44650

Merged error: 17.6b

Counts
50 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
7.6b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
31.1b
(sqrt (+ (* re re) (* im im)))
31.1b
(sqrt (+ (* re re) (* im im)))

rewrite44.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:
15.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
16.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)))

simplify47.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
02671096
1974974
25001950

prune129.0ms

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

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1351136
Fresh145
Picked011
Done000
Total1366142

Merged error: 17.6b

Counts
142 → 6

localize20.0ms

Local error

Found 4 expressions with local error:

5.8b
(exp (log (sqrt (+ (* re re) (* im im)))))
14.6b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (exp (log (sqrt (+ (* re re) (* im im))))))) re)
31.1b
(sqrt (+ (* re re) (* im im)))
31.1b
(sqrt (+ (* re re) (* im im)))

rewrite32.0ms

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

series26.0ms

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

simplify107.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 4 (100.0ms)

IterNodesCost
0208622
1485555
21193507
33624495
45003493

prune124.0ms

Filtered
63 candidates to 75 candidates (-19.0%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New74175
Fresh044
Picked101
Done011
Total75681

Merged error: 17.6b

Counts
81 → 6

localize6.0ms

Local error

Found 1 expressions with local error:

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

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
pow1
sqrt-pow1 sqrt-div associate-*r/
add-exp-log add-sqr-sqrt add-cube-cbrt *-un-lft-identity flip3-+ pow1/2 pow-prod-down sqrt-prod add-cbrt-cube flip-+ add-log-exp
Counts
1 → 13
Calls
1 calls:
6.0ms
(sqrt (* 2.0 (+ im re)))

series10.0ms

Counts
1 → 3
Calls
1 calls:
10.0ms
(sqrt (* 2.0 (+ im re)))

simplify62.0ms

Algorithm
egg-herbie
Counts
16 → 16
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
016796
156194
2238792
3500192

prune25.0ms

Filtered
14 candidates to 16 candidates (-14.3%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New16016
Fresh044
Picked011
Done011
Total16622

Merged error: 17.6b

Counts
22 → 6

regimes228.0ms

Accuracy

43.4% (12.2b remaining)

Error of 30.0b against oracle of 17.8b and baseline of 39.3b

bsearch60.0ms

Steps
ItersRangePoint
7
4.551559100072214e+119
6.772110124095701e+121
5.02207224652285e+121
10
3.422563478738447e-149
2.031606712727549e-138
6.302573219147232e-144
4
-1.4612837306014034e-101
-8.832668315785913e-102
-9.359301584479851e-102

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03828
13828

end0.0ms

sample973.0ms

Algorithm
intervals
Results
284.0ms6044×body80valid
187.0ms691×body2560valid
110.0ms481×body1280valid
94.0ms268×body5120valid
49.0ms283×body640valid
23.0ms158×body320valid
7.0ms75×body160valid

Profiling

Loading profile data...