Details

Time bar (total: 4.1s)

sample30.0ms

Algorithm
intervals
Results
20.0ms275×body80valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0177
1217
2217

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 27.1b

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* y.re y.re) (* y.im y.im))
0.9b
(+ (* x.re y.re) (* x.im y.im))
26.6b
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

rewrite18.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:
3.0ms
(+ (* y.re y.re) (* y.im y.im))
2.0ms
(+ (* x.re y.re) (* x.im y.im))
11.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

series134.0ms

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

simplify130.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0290532
11199475
24872462
35001462

prune210.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 16.2b

localize11.0ms

Local error

Found 4 expressions with local error:

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

rewrite37.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))
22.0ms
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1)))
0.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) 1))

series383.0ms

Counts
4 → 12
Calls
4 calls:
55.0ms
(/ 1 (* (hypot y.re y.im) 1))
176.0ms
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1)))
37.0ms
(fma x.re y.re (* x.im y.im))
114.0ms
(/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1))

simplify48.0ms

Algorithm
egg-herbie
Counts
157 → 157
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
04861191
11654892
25002884

prune273.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 4.9b

localize10.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.8b
(fma x.re y.re (* x.im y.im))
15.9b
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

rewrite13.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:
0.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))
0.0ms
(fma x.re y.re (* x.im y.im))
2.0ms
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

series312.0ms

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

simplify82.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 3 (72.0ms)

IterNodesCost
0308794
11149701
23275701
35001693

prune300.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 4.8b

localize14.0ms

Local error

Found 4 expressions with local error:

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) 1)))
0.5b
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (sqrt (/ 1 (* (hypot y.re y.im) 1))))
0.8b
(fma x.re y.re (* x.im y.im))
15.9b
(/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1))

rewrite147.0ms

Algorithm
rewrite-expression-head
Rules
66×pow1
46×sqrt-pow1
41×add-exp-log
38×sqrt-prod
33×add-sqr-sqrt
32×add-cbrt-cube
28×pow-flip
25×pow-prod-down
22×*-un-lft-identity
20×add-cube-cbrt
19×prod-exp
18×times-frac
17×associate-*r*
14×swap-sqr pow-prod-up
13×cbrt-unprod
12×sqrt-div
11×associate-*l*
10×inv-pow
div-exp
pow1/2 pow-sqr div-inv
cbrt-undiv frac-times associate-*l/
unswap-sqr
expm1-log1p-u associate-*r/ log1p-expm1-u add-log-exp
1-exp associate-/l*
*-commutative
pow2 frac-2neg pow-plus sqrt-unprod clear-num associate-/r* rem-square-sqrt fma-udef
Counts
4 → 163
Calls
4 calls:
104.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) 1)))
30.0ms
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (sqrt (/ 1 (* (hypot y.re y.im) 1))))
0.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) 1))

series386.0ms

Counts
4 → 12
Calls
4 calls:
179.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) 1)))
55.0ms
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (sqrt (/ 1 (* (hypot y.re y.im) 1))))
37.0ms
(fma x.re y.re (* x.im y.im))
114.0ms
(/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1))

simplify85.0ms

Algorithm
egg-herbie
Counts
175 → 175
Iterations

Useful iterations: 2 (71.0ms)

IterNodesCost
04261301
12304915
25001852

prune337.0ms

Pruning

11 alts after pruning (8 fresh and 3 done)

Merged error: 4.8b

regimes198.0ms

Accuracy

34.2% (7.3b remaining)

Error of 13.3b against oracle of 5.9b and baseline of 17.1b

bsearch93.0ms

Steps
ItersRangePoint
9
6.881289457293598e+137
1.4895865368921783e+145
6.226031540458845e+142
8
-9.641701532767943e+179
-1.1625254677380091e+176
-2.741292395726274e+176

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02714
13014
23014

end0.0ms

sample851.0ms

Algorithm
intervals
Results
637.0ms8444×body80valid