Details

Time bar (total: 2.3s)

sample27.0ms

Algorithm
intervals
Results
11.0ms268×body80valid

simplify3.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0157
1157

prune4.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 27.7b

Counts
2 → 1

localize14.0ms

Local error

Found 2 expressions with local error:

1.2b
(+ (* x.re y.re) (* x.im y.im))
27.1b
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
times-frac
add-exp-log add-cbrt-cube add-log-exp
flip3-+ associate-/r* flip-+ associate-/l*
pow1 associate-/r/ associate-/l/
cbrt-undiv +-commutative frac-2neg div-exp clear-num sum-log div-inv
Counts
2 → 42
Calls
2 calls:
3.0ms
(+ (* x.re y.re) (* x.im y.im))
9.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

series38.0ms

Counts
2 → 6
Calls
2 calls:
10.0ms
(+ (* x.re y.re) (* x.im y.im))
28.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

simplify84.0ms

Algorithm
egg-herbie
Counts
48 → 48
Iterations

Useful iterations: 2 (23.0ms)

IterNodesCost
0231450
1847413
22837412
35001412

prune93.0ms

Filtered
38 candidates to 48 candidates (-26.3%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New40848
Fresh000
Picked011
Done000
Total40949

Merged error: 26.8b

Counts
49 → 9

localize12.0ms

Local error

Found 4 expressions with local error:

1.2b
(+ (* x.re y.re) (* x.im y.im))
17.4b
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
30.4b
(sqrt (+ (* y.re y.re) (* y.im y.im)))
30.4b
(sqrt (+ (* y.re y.re) (* y.im y.im)))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
21×add-cube-cbrt *-un-lft-identity
18×times-frac sqrt-prod
pow1 add-exp-log sqrt-div associate-/r* add-cbrt-cube add-log-exp
flip3-+ flip-+
associate-/l*
rem-sqrt-square sqrt-pow1 pow1/2 associate-/r/ associate-/l/
cbrt-undiv +-commutative frac-2neg div-exp clear-num sum-log div-inv
Counts
4 → 84
Calls
4 calls:
3.0ms
(+ (* x.re y.re) (* x.im y.im))
9.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
3.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
4.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

series59.0ms

Counts
4 → 12
Calls
4 calls:
10.0ms
(+ (* x.re y.re) (* x.im y.im))
37.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
6.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
6.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

simplify83.0ms

Algorithm
egg-herbie
Counts
96 → 96
Iterations

Useful iterations: 2 (23.0ms)

IterNodesCost
0273893
1868840
22679828
35002828

prune120.0ms

Filtered
74 candidates to 96 candidates (-29.7%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New91596
Fresh347
Picked101
Done011
Total9510105

Merged error: 25.3b

Counts
105 → 10

localize13.0ms

Local error

Found 4 expressions with local error:

1.2b
(+ (* x.re y.re) (* x.im y.im))
17.4b
(* (+ (* x.re y.re) (* x.im y.im)) (/ 1 (sqrt (+ (* y.re y.re) (* y.im y.im)))))
30.4b
(sqrt (+ (* y.re y.re) (* y.im y.im)))
30.4b
(sqrt (+ (* y.re y.re) (* y.im y.im)))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
34×add-sqr-sqrt
24×associate-*r*
22×*-un-lft-identity times-frac
20×add-cube-cbrt
17×sqrt-prod
13×add-exp-log
add-cbrt-cube
pow1
flip3-+ sqrt-div flip-+ add-log-exp
unswap-sqr
prod-exp
associate-*l*
frac-times rem-sqrt-square sqrt-pow1 pow1/2 div-exp associate-*l/ associate-/r/ cbrt-unprod
cbrt-undiv +-commutative rec-exp 1-exp associate-*r/ pow-prod-down sum-log un-div-inv *-commutative div-inv
Counts
4 → 94
Calls
4 calls:
4.0ms
(+ (* x.re y.re) (* x.im y.im))
15.0ms
(* (+ (* x.re y.re) (* x.im y.im)) (/ 1 (sqrt (+ (* y.re y.re) (* y.im y.im)))))
3.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
3.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

series59.0ms

Counts
4 → 12
Calls
4 calls:
10.0ms
(+ (* x.re y.re) (* x.im y.im))
36.0ms
(* (+ (* x.re y.re) (* x.im y.im)) (/ 1 (sqrt (+ (* y.re y.re) (* y.im y.im)))))
6.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
6.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

simplify52.0ms

Algorithm
egg-herbie
Counts
106 → 106
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0385911
11913826
25002802

prune121.0ms

Filtered
75 candidates to 106 candidates (-41.3%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New1060106
Fresh088
Picked011
Done011
Total10610116

Merged error: 25.3b

Counts
116 → 10

localize14.0ms

Local error

Found 4 expressions with local error:

17.4b
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
30.4b
(sqrt (+ (* y.re y.re) (* y.im y.im)))
30.4b
(sqrt (+ (* y.re y.re) (* y.im y.im)))
30.4b
(sqrt (+ (* y.re y.re) (* y.im y.im)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
25×add-sqr-sqrt
22×add-cube-cbrt *-un-lft-identity
21×sqrt-prod
18×times-frac
sqrt-div
pow1
add-exp-log associate-/r* add-cbrt-cube
flip3-+ flip-+
add-log-exp
rem-sqrt-square sqrt-pow1 pow1/2 associate-/l*
associate-/r/ associate-/l/
cbrt-undiv frac-2neg div-exp clear-num div-inv
Counts
4 → 88
Calls
4 calls:
10.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
4.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
4.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
4.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

series54.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
6.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
8.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
6.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

simplify72.0ms

Algorithm
egg-herbie
Counts
100 → 100
Iterations

Useful iterations: 2 (20.0ms)

IterNodesCost
0242919
1758870
22262857
35002857

prune89.0ms

Filtered
78 candidates to 100 candidates (-28.2%)
Pruning

11 alts after pruning (8 fresh and 3 done)

PrunedKeptTotal
New991100
Fresh077
Picked011
Done022
Total9911110

Merged error: 25.3b

Counts
110 → 11

regimes477.0ms

Accuracy

25.7% (2.2b remaining)

Error of 25.5b against oracle of 23.3b and baseline of 26.2b

bsearch1.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02726
12726

end0.0ms

sample735.0ms

Algorithm
intervals
Results
362.0ms8509×body80valid

Profiling

Loading profile data...