Details

Time bar (total: 3.4s)

sample29.0ms

Algorithm
intervals
Results
18.0ms455×body80valid

simplify91.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 4 (17.0ms)

IterNodesCost
0249
1619
21688
34836
414185
538575
650015

prune6.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 7.8b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* x.re x.im) (* x.im x.re))
0.1b
(* (+ (* x.re x.im) (* x.im x.re)) x.im)
0.1b
(- (* (- (* x.re x.re) (* x.im x.im)) x.re) (* (+ (* x.re x.im) (* x.im x.re)) x.im))
7.4b
(* (- (* x.re x.re) (* x.im x.im)) x.re)

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt associate-*l/
pow1 add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube add-log-exp
associate-*l*
associate-*r*
expm1-log1p-u flip3-- flip3-+ frac-sub flip-- flip-+ log1p-expm1-u
pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
+-commutative sub-neg fma-def fma-neg diff-log prod-diff sum-log difference-of-squares
Counts
4 → 79
Calls
4 calls:
4.0ms
(+ (* x.re x.im) (* x.im x.re))
6.0ms
(* (+ (* x.re x.im) (* x.im x.re)) x.im)
8.0ms
(- (* (- (* x.re x.re) (* x.im x.im)) x.re) (* (+ (* x.re x.im) (* x.im x.re)) x.im))
7.0ms
(* (- (* x.re x.re) (* x.im x.im)) x.re)

series149.0ms

Counts
4 → 12
Calls
4 calls:
22.0ms
(+ (* x.re x.im) (* x.im x.re))
29.0ms
(* (+ (* x.re x.im) (* x.im x.re)) x.im)
53.0ms
(- (* (- (* x.re x.re) (* x.im x.im)) x.re) (* (+ (* x.re x.im) (* x.im x.re)) x.im))
45.0ms
(* (- (* x.re x.re) (* x.im x.im)) x.re)

simplify70.0ms

Algorithm
egg-herbie
Counts
91 → 91
Iterations

Useful iterations: 2 (63.0ms)

IterNodesCost
0434759
12148640
25001586

prune213.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 0.0b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* x.re x.im) (* x.im x.re))
0.1b
(* (+ x.re x.im) (* (- x.re x.im) x.re))
0.1b
(* (+ (* x.re x.im) (* x.im x.re)) x.im)
0.1b
(- (* (+ x.re x.im) (* (- x.re x.im) x.re)) (* (+ (* x.re x.im) (* x.im x.re)) x.im))

rewrite39.0ms

Algorithm
rewrite-expression-head
Rules
42×associate-*l/
19×flip3-+ flip-+
16×frac-sub
12×frac-times
11×pow1 add-exp-log add-cbrt-cube
10×flip3-- flip--
add-sqr-sqrt *-un-lft-identity
add-log-exp
add-cube-cbrt associate-*l*
associate-*r/
expm1-log1p-u associate-*r* pow-prod-down prod-exp cbrt-unprod log1p-expm1-u
*-commutative
+-commutative sub-neg fma-def fma-neg diff-log prod-diff sum-log distribute-lft-out unswap-sqr
Counts
4 → 97
Calls
4 calls:
4.0ms
(+ (* x.re x.im) (* x.im x.re))
11.0ms
(* (+ x.re x.im) (* (- x.re x.im) x.re))
6.0ms
(* (+ (* x.re x.im) (* x.im x.re)) x.im)
14.0ms
(- (* (+ x.re x.im) (* (- x.re x.im) x.re)) (* (+ (* x.re x.im) (* x.im x.re)) x.im))

series155.0ms

Counts
4 → 12
Calls
4 calls:
20.0ms
(+ (* x.re x.im) (* x.im x.re))
54.0ms
(* (+ x.re x.im) (* (- x.re x.im) x.re))
29.0ms
(* (+ (* x.re x.im) (* x.im x.re)) x.im)
53.0ms
(- (* (+ x.re x.im) (* (- x.re x.im) x.re)) (* (+ (* x.re x.im) (* x.im x.re)) x.im))

simplify134.0ms

Algorithm
egg-herbie
Counts
109 → 109
Iterations

Useful iterations: 2 (123.0ms)

IterNodesCost
07631284
144271057
250011043

prune294.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (- x.re x.im) x.re)
0.0b
(fma x.re x.im (* x.im x.re))
0.1b
(fma (+ x.re x.im) (* (- x.re x.im) x.re) (* (- (fma x.re x.im (* x.im x.re))) x.im))
0.1b
(* (- (fma x.re x.im (* x.im x.re))) x.im)

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
15×associate-*l*
12×*-un-lft-identity
10×add-cube-cbrt
pow1 add-exp-log add-cbrt-cube
associate-*r*
expm1-log1p-u log1p-expm1-u add-log-exp
distribute-lft-neg-in distribute-rgt-neg-in
pow-prod-down associate-*l/ prod-exp *-commutative cbrt-unprod fma-udef unswap-sqr
distribute-lft-neg-out neg-mul-1 flip3-- flip-- distribute-lft-out-- difference-of-squares
Counts
4 → 72
Calls
4 calls:
7.0ms
(* (- x.re x.im) x.re)
1.0ms
(fma x.re x.im (* x.im x.re))
1.0ms
(fma (+ x.re x.im) (* (- x.re x.im) x.re) (* (- (fma x.re x.im (* x.im x.re))) x.im))
5.0ms
(* (- (fma x.re x.im (* x.im x.re))) x.im)

series201.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(* (- x.re x.im) x.re)
33.0ms
(fma x.re x.im (* x.im x.re))
91.0ms
(fma (+ x.re x.im) (* (- x.re x.im) x.re) (* (- (fma x.re x.im (* x.im x.re))) x.im))
43.0ms
(* (- (fma x.re x.im (* x.im x.re))) x.im)

simplify34.0ms

Algorithm
egg-herbie
Counts
84 → 84
Iterations

Useful iterations: 1 (7.0ms)

IterNodesCost
0239422
1953375
25001375

prune217.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0b

localize16.0ms

Local error

Found 4 expressions with local error:

0.4b
(* (cbrt (+ (* x.re x.im) (* x.im x.re))) (cbrt (+ (* x.re x.im) (* x.im x.re))))
13.1b
(cbrt (+ (* x.re x.im) (* x.im x.re)))
13.1b
(cbrt (+ (* x.re x.im) (* x.im x.re)))
13.1b
(cbrt (+ (* x.re x.im) (* x.im x.re)))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
25×cbrt-prod
23×add-sqr-sqrt
18×cbrt-div
15×add-cube-cbrt *-un-lft-identity
11×pow1
flip3-+ pow1/3 flip-+
add-exp-log swap-sqr associate-*r* associate-*l*
expm1-log1p-u frac-times add-cbrt-cube log1p-expm1-u add-log-exp unswap-sqr
associate-*r/ pow-prod-down associate-*l/ pow-sqr pow-prod-up
pow2 pow-plus prod-exp *-commutative cbrt-unprod
Counts
4 → 95
Calls
4 calls:
11.0ms
(* (cbrt (+ (* x.re x.im) (* x.im x.re))) (cbrt (+ (* x.re x.im) (* x.im x.re))))
4.0ms
(cbrt (+ (* x.re x.im) (* x.im x.re)))
4.0ms
(cbrt (+ (* x.re x.im) (* x.im x.re)))
6.0ms
(cbrt (+ (* x.re x.im) (* x.im x.re)))

series402.0ms

Counts
4 → 12
Calls
4 calls:
129.0ms
(* (cbrt (+ (* x.re x.im) (* x.im x.re))) (cbrt (+ (* x.re x.im) (* x.im x.re))))
90.0ms
(cbrt (+ (* x.re x.im) (* x.im x.re)))
90.0ms
(cbrt (+ (* x.re x.im) (* x.im x.re)))
92.0ms
(cbrt (+ (* x.re x.im) (* x.im x.re)))

simplify46.0ms

Algorithm
egg-herbie
Counts
107 → 107
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
02901087
11023998
25002903

prune322.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 0b

regimes65.0ms

Accuracy

0% (0.2b remaining)

Error of 0.2b against oracle of 0.0b and baseline of 0.2b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0168
1208
2218
3218

end0.0ms

sample825.0ms

Algorithm
intervals
Results
575.0ms14413×body80valid