Details

Time bar (total: 3.8s)

sample22.0ms

Algorithm
intervals
Results
11.0ms264×body80valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0177
1217
2217

prune5.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 28.8b

Counts
2 → 1

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* y.re y.re) (* y.im y.im))
0.7b
(+ (* x.re y.re) (* x.im y.im))
28.3b
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
times-frac
add-log-exp
add-exp-log add-cbrt-cube
flip3-+ flip-+
pow1 expm1-log1p-u associate-/r* log1p-expm1-u associate-/l*
+-commutative fma-def sum-log associate-/r/ associate-/l/
cbrt-undiv frac-2neg div-exp clear-num div-inv
Counts
3 → 61
Calls
3 calls:
4.0ms
(+ (* y.re y.re) (* y.im y.im))
4.0ms
(+ (* x.re y.re) (* x.im y.im))
8.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

series131.0ms

Counts
3 → 9
Calls
3 calls:
26.0ms
(+ (* y.re y.re) (* y.im y.im))
29.0ms
(+ (* x.re y.re) (* x.im y.im))
76.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

simplify152.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0290532
11199475
24872462
35001462

prune197.0ms

Filtered
70 candidates to 57 candidates (81.4%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New64670
Fresh000
Picked011
Done000
Total64771

Merged error: 19.4b

Counts
71 → 7

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1 (* (hypot y.re y.im) 1))
0.3b
(fma x.re y.re (* x.im y.im))
0.3b
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1)))
18.9b
(/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
170×add-exp-log
92×prod-exp
63×div-exp
50×add-cbrt-cube
41×1-exp
17×cbrt-unprod
16×cbrt-undiv
15×rec-exp
14×add-sqr-sqrt
12×add-cube-cbrt *-un-lft-identity times-frac
pow1
associate-*r* associate-*l*
associate-/l*
expm1-log1p-u log1p-expm1-u div-inv add-log-exp
pow-flip frac-2neg pow-prod-down clear-num associate-/r*
frac-times associate-*r/ associate-*l/ *-commutative fma-udef inv-pow unswap-sqr
Counts
4 → 145
Calls
4 calls:
5.0ms
(/ 1 (* (hypot y.re y.im) 1))
1.0ms
(fma x.re y.re (* x.im y.im))
12.0ms
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1)))
4.0ms
(/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1))

series380.0ms

Counts
4 → 12
Calls
4 calls:
53.0ms
(/ 1 (* (hypot y.re y.im) 1))
40.0ms
(fma x.re y.re (* x.im y.im))
178.0ms
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1)))
109.0ms
(/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1))

simplify47.0ms

Algorithm
egg-herbie
Counts
157 → 157
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
04861191
11654892
25002884

prune244.0ms

Filtered
157 candidates to 77 candidates (49.0%)
Pruning

11 alts after pruning (9 fresh and 2 done)

PrunedKeptTotal
New1507157
Fresh325
Picked011
Done011
Total15311164

Merged error: 6.5b

Counts
164 → 11

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot y.re y.im)
0.1b
(/ (/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im)) (* (hypot y.re y.im) 1))
0.3b
(fma x.re y.re (* x.im y.im))
18.9b
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
40×times-frac
26×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
23×add-exp-log
18×add-cbrt-cube
16×associate-/l*
10×div-exp
cbrt-undiv
pow1 expm1-log1p-u prod-exp associate-/r* log1p-expm1-u div-inv add-log-exp
frac-2neg 1-exp clear-num cbrt-unprod
hypot-udef fma-udef associate-/l/
Counts
4 → 99
Calls
4 calls:
1.0ms
(hypot y.re y.im)
7.0ms
(/ (/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im)) (* (hypot y.re y.im) 1))
1.0ms
(fma x.re y.re (* x.im y.im))
3.0ms
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

series319.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(hypot y.re y.im)
122.0ms
(/ (/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im)) (* (hypot y.re y.im) 1))
40.0ms
(fma x.re y.re (* x.im y.im))
110.0ms
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

simplify76.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 3 (66.0ms)

IterNodesCost
0308794
11149701
23275701
35001693

prune259.0ms

Filtered
111 candidates to 88 candidates (79.3%)
Pruning

14 alts after pruning (11 fresh and 3 done)

PrunedKeptTotal
New1065111
Fresh268
Picked011
Done022
Total10814122

Merged error: 6.4b

Counts
122 → 14

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(fma x.re y.re (* x.im y.im))
0.3b
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (/ (* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im))) (hypot y.re y.im)))
9.5b
(/ (* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im))) (hypot y.re y.im))
9.6b
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im)))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
20×add-exp-log associate-*l* add-cbrt-cube
16×sqrt-prod
15×add-cube-cbrt *-un-lft-identity
12×times-frac
10×associate-*r*
pow1
prod-exp cbrt-unprod
cbrt-undiv expm1-log1p-u sqrt-div div-exp log1p-expm1-u div-inv add-log-exp unswap-sqr
associate-*l/ associate-/r* fma-udef
pow-prod-down *-commutative
distribute-rgt-in frac-times frac-2neg distribute-lft-in associate-*r/ clear-num associate-/l/ associate-/l*
Counts
4 → 104
Calls
4 calls:
1.0ms
(fma x.re y.re (* x.im y.im))
18.0ms
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (/ (* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im))) (hypot y.re y.im)))
9.0ms
(/ (* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im))) (hypot y.re y.im))
8.0ms
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im)))

series641.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(fma x.re y.re (* x.im y.im))
178.0ms
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (/ (* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im))) (hypot y.re y.im)))
257.0ms
(/ (* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im))) (hypot y.re y.im))
168.0ms
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im)))

simplify64.0ms

Algorithm
egg-herbie
Counts
116 → 116
Iterations

Useful iterations: 2 (52.0ms)

IterNodesCost
04041276
120761059
250011017

prune275.0ms

Filtered
116 candidates to 86 candidates (74.1%)
Pruning

13 alts after pruning (9 fresh and 4 done)

PrunedKeptTotal
New1151116
Fresh2810
Picked011
Done033
Total11713130

Merged error: 6.4b

Counts
130 → 13

regimes260.0ms

Accuracy

37.1% (7.1b remaining)

Error of 13.1b against oracle of 6.0b and baseline of 17.3b

bsearch33.0ms

Steps
ItersRangePoint
6
1.100743072292938e+120
1.0219163733161167e+121
3.3991102699915446e+120
1
-1.4185660712987705e+171
-1.316853296455673e+171
-1.3422814901664475e+171

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02714
13014
23014

end0.0ms

sample593.0ms

Algorithm
intervals
Results
363.0ms8443×body80valid