Details

Time bar (total: 8.5s)

sample89.0ms

Algorithm
intervals
Results
31.0ms83×body1280valid
17.0ms66×body640valid
16.0ms254×body80valid
6.0ms35×body320valid
3.0ms21×body160valid

simplify21.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.2b
(* (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))

series358.0ms

Counts
3 → 9
Calls
3 calls:
38.0ms
(fma a1 a1 (* a2 a2))
108.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
211.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

simplify37.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0205467
11002399
25001393

prune165.0ms

Filtered
70 candidates to 49 candidates (70.0%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New64670
Fresh101
Picked011
Done000
Total65772

Merged error: 0.0b

Counts
72 → 7

localize17.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma a1 a1 (* a2 a2))
0.2b
(* (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:
39.0ms
(fma a1 a1 (* a2 a2))
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))))
218.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))

simplify75.0ms

Algorithm
egg-herbie
Counts
149 → 149
Iterations

Useful iterations: 2 (56.0ms)

IterNodesCost
04912250
125351935
250011905

prune366.0ms

Filtered
149 candidates to 103 candidates (69.1%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1481149
Fresh145
Picked101
Done011
Total1506156

Merged error: 0b

Counts
156 → 6

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
234×sqrt-prod
216×times-frac
96×add-sqr-sqrt
94×add-cube-cbrt *-un-lft-identity
20×add-exp-log add-cbrt-cube
18×associate-/r*
14×associate-/l*
12×div-inv
cbrt-undiv div-exp
pow1
expm1-log1p-u log1p-expm1-u add-log-exp
associate-*r* associate-*l* prod-exp cbrt-unprod fma-udef
frac-2neg clear-num
distribute-rgt-in distribute-lft-in pow-prod-down *-commutative associate-/l/ unswap-sqr
Counts
4 → 225
Calls
4 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 (sqrt 2.0)))
12.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))

series677.0ms

Counts
4 → 12
Calls
4 calls:
39.0ms
(fma a1 a1 (* a2 a2))
108.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
313.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0)))
217.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))

simplify82.0ms

Algorithm
egg-herbie
Counts
237 → 237
Iterations

Useful iterations: 2 (54.0ms)

IterNodesCost
06263262
129992821
250012813

prune398.0ms

Filtered
237 candidates to 112 candidates (47.3%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New2361237
Fresh134
Picked011
Done011
Total2376243

Merged error: 0b

Counts
243 → 6

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
74×times-frac
72×sqrt-prod
45×add-sqr-sqrt
43×add-cube-cbrt *-un-lft-identity
36×add-exp-log cbrt-prod add-cbrt-cube
15×div-inv
13×cbrt-undiv div-exp 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 → 155
Calls
4 calls:
1.0ms
(fma a1 a1 (* a2 a2))
4.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
8.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0))))
14.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0)))) (sqrt (cbrt (sqrt 2.0))))

series1.7s

Counts
4 → 12
Calls
4 calls:
34.0ms
(fma a1 a1 (* a2 a2))
114.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
570.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0))))
935.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0)))) (sqrt (cbrt (sqrt 2.0))))

simplify98.0ms

Algorithm
egg-herbie
Counts
167 → 167
Iterations

Useful iterations: 2 (74.0ms)

IterNodesCost
06183150
133602859
250032841

prune480.0ms

Filtered
167 candidates to 108 candidates (64.7%)
Pruning

6 alts after pruning (3 fresh and 3 done)

PrunedKeptTotal
New1670167
Fresh033
Picked011
Done022
Total1676173

Merged error: 0b

Counts
173 → 6

regimes147.0ms

Accuracy

0% (0.4b remaining)

Error of 0.5b against oracle of 0.1b and baseline of 0.5b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01815
11815

end0.0ms

sample2.6s

Algorithm
intervals
Results
990.0ms2655×body1280valid
523.0ms2006×body640valid
493.0ms7931×body80valid
198.0ms1056×body320valid
67.0ms507×body160valid