Details

Time bar (total: 10.0s)

sample86.0ms

Algorithm
intervals
Results
29.0ms80×body1280valid
15.0ms257×body80valid
15.0ms58×body640valid
7.0ms35×body320valid
2.0ms20×body160valid

simplify20.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
0267
1576
2876
31146
41326
51516
61716
71736
81736

prune9.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 0.3b

Counts
2 → 2

localize16.0ms

Local error

Found 3 expressions with local error:

0.0b
(fma a1 a1 (* a2 a2))
0.1b
(* (cos th) (fma a1 a1 (* a2 a2)))
0.4b
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
10×add-exp-log add-cbrt-cube
add-cube-cbrt *-un-lft-identity
times-frac associate-/r* sqrt-prod
pow1
expm1-log1p-u associate-*r* associate-*l* fma-udef log1p-expm1-u add-log-exp
cbrt-undiv div-exp prod-exp cbrt-unprod
distribute-rgt-in frac-2neg distribute-lft-in pow-prod-down clear-num *-commutative div-inv associate-/l* unswap-sqr
Counts
3 → 61
Calls
3 calls:
1.0ms
(fma a1 a1 (* a2 a2))
4.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
6.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

series359.0ms

Counts
3 → 9
Calls
3 calls:
36.0ms
(fma a1 a1 (* a2 a2))
105.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
217.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

simplify37.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0205467
11002399
25001393

prune175.0ms

Filtered
70 candidates to 49 candidates (70.0%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New64670
Fresh011
Picked101
Done000
Total65772

Merged error: 0.0b

Counts
72 → 7

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma a1 a1 (* a2 a2))
0.1b
(* (cos th) (fma a1 a1 (* a2 a2)))
0.2b
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
0.3b
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
56×times-frac
36×add-exp-log cbrt-prod add-sqr-sqrt
34×add-cube-cbrt *-un-lft-identity
23×add-cbrt-cube
18×sqrt-prod
13×cbrt-undiv div-exp
12×div-inv
10×associate-/r*
prod-exp cbrt-unprod
pow1 associate-/l*
expm1-log1p-u log1p-expm1-u add-log-exp
associate-*r* associate-*l* fma-udef
frac-2neg clear-num
distribute-rgt-in distribute-lft-in pow-prod-down *-commutative associate-/l/ unswap-sqr
Counts
4 → 137
Calls
4 calls:
1.0ms
(fma a1 a1 (* a2 a2))
4.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
9.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
12.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))

series1.0s

Counts
4 → 12
Calls
4 calls:
34.0ms
(fma a1 a1 (* a2 a2))
113.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
643.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
219.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))

simplify76.0ms

Algorithm
egg-herbie
Counts
149 → 149
Iterations

Useful iterations: 2 (58.0ms)

IterNodesCost
04912250
125351935
250011905

prune383.0ms

Filtered
149 candidates to 103 candidates (69.1%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1463149
Fresh246
Picked011
Done000
Total1488156

Merged error: 0b

Counts
156 → 8

localize17.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (cos th) (fma a1 a1 (* a2 a2)))
0.2b
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
0.3b
(/ (/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (* (cbrt (cbrt (sqrt 2.0))) (cbrt (cbrt (sqrt 2.0))))) (cbrt (cbrt (sqrt 2.0))))
0.4b
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (* (cbrt (cbrt (sqrt 2.0))) (cbrt (cbrt (sqrt 2.0)))))

rewrite70.0ms

Algorithm
rewrite-expression-head
Rules
194×times-frac
150×cbrt-prod
112×add-exp-log
76×add-sqr-sqrt
74×add-cube-cbrt *-un-lft-identity
61×add-cbrt-cube
51×cbrt-undiv div-exp
31×prod-exp cbrt-unprod div-inv
30×sqrt-prod
15×associate-/l*
14×associate-/r*
pow1
expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg associate-*r* associate-*l* clear-num
fma-udef associate-/l/
distribute-rgt-in distribute-lft-in pow-prod-down *-commutative unswap-sqr
Counts
4 → 253
Calls
4 calls:
4.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
10.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
28.0ms
(/ (/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (* (cbrt (cbrt (sqrt 2.0))) (cbrt (cbrt (sqrt 2.0))))) (cbrt (cbrt (sqrt 2.0))))
16.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (* (cbrt (cbrt (sqrt 2.0))) (cbrt (cbrt (sqrt 2.0)))))

series1.8s

Counts
4 → 12
Calls
4 calls:
109.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
658.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
231.0ms
(/ (/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (* (cbrt (cbrt (sqrt 2.0))) (cbrt (cbrt (sqrt 2.0))))) (cbrt (cbrt (sqrt 2.0))))
781.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (* (cbrt (cbrt (sqrt 2.0))) (cbrt (cbrt (sqrt 2.0)))))

simplify148.0ms

Algorithm
egg-herbie
Counts
265 → 265
Iterations

Useful iterations: 2 (100.0ms)

IterNodesCost
09217187
146366299
250016220

prune813.0ms

Filtered
265 candidates to 192 candidates (72.5%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New2650265
Fresh066
Picked011
Done011
Total2658273

Merged error: 0b

Counts
273 → 8

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma a1 a1 (* a2 a2))
0.2b
(/ (cos th) (cbrt (sqrt 2.0)))
0.2b
(/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (fma a1 a1 (* a2 a2)))
0.4b
(/ (/ (cos th) (cbrt (sqrt 2.0))) (/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (fma a1 a1 (* a2 a2))))

rewrite57.0ms

Algorithm
rewrite-expression-head
Rules
559×times-frac
244×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
168×cbrt-prod
84×sqrt-prod
43×div-inv
35×associate-/l*
32×add-exp-log
22×add-cbrt-cube
19×associate-/r*
16×cbrt-undiv div-exp
pow1 expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg prod-exp clear-num cbrt-unprod
associate-/r/ fma-udef associate-/l/
Counts
4 → 367
Calls
4 calls:
1.0ms
(fma a1 a1 (* a2 a2))
5.0ms
(/ (cos th) (cbrt (sqrt 2.0)))
7.0ms
(/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (fma a1 a1 (* a2 a2)))
18.0ms
(/ (/ (cos th) (cbrt (sqrt 2.0))) (/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (fma a1 a1 (* a2 a2))))

series850.0ms

Counts
4 → 12
Calls
4 calls:
33.0ms
(fma a1 a1 (* a2 a2))
253.0ms
(/ (cos th) (cbrt (sqrt 2.0)))
347.0ms
(/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (fma a1 a1 (* a2 a2)))
217.0ms
(/ (/ (cos th) (cbrt (sqrt 2.0))) (/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (fma a1 a1 (* a2 a2))))

simplify96.0ms

Algorithm
egg-herbie
Counts
379 → 379
Iterations

Useful iterations: 1 (32.0ms)

IterNodesCost
014767727
150027304

prune1.1s

Filtered
379 candidates to 291 candidates (76.8%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New3772379
Fresh235
Picked101
Done022
Total3807387

Merged error: 0b

Counts
387 → 7

regimes173.0ms

Accuracy

0% (0.4b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01413
11413

end0.0ms

sample2.6s

Algorithm
intervals
Results
952.0ms2559×body1280valid
555.0ms2124×body640valid
481.0ms7995×body80valid
196.0ms1067×body320valid
79.0ms585×body160valid