Details

Time bar (total: 9.3s)

sample89.0ms

Algorithm
intervals
Results
30.0ms81×body1280valid
16.0ms265×body80valid
14.0ms56×body640valid
9.0ms51×body320valid
2.0ms16×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.6b

Counts
2 → 2

localize15.0ms

Local error

Found 3 expressions with local error:

0.0b
(fma a1 a1 (* a2 a2))
0.4b
(* (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)))
5.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

series364.0ms

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

simplify36.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0205467
11002399
25001393

prune172.0ms

Filtered
70 candidates to 49 candidates (70.0%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New63770
Fresh011
Picked101
Done000
Total64872

Merged error: 0.3b

Counts
72 → 8

localize14.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))) (* (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)))
0.4b
(* (cos th) (fma a1 a1 (* a2 a2)))

rewrite30.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))
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)))
4.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))

series1.1s

Counts
4 → 12
Calls
4 calls:
42.0ms
(fma a1 a1 (* a2 a2))
675.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
230.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
108.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))

simplify76.0ms

Algorithm
egg-herbie
Counts
149 → 149
Iterations

Useful iterations: 2 (58.0ms)

IterNodesCost
04912250
125351935
250011905

prune398.0ms

Filtered
149 candidates to 104 candidates (69.8%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1463149
Fresh257
Picked011
Done000
Total1489157

Merged error: 0.3b

Counts
157 → 9

localize19.0ms

Local error

Found 4 expressions with local error:

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

rewrite86.0ms

Algorithm
rewrite-expression-head
Rules
241×add-exp-log
180×cbrt-prod
171×times-frac
117×add-sqr-sqrt
100×div-exp
97×prod-exp
83×*-un-lft-identity
78×add-cube-cbrt
77×add-cbrt-cube
67×associate-*r*
52×cbrt-undiv
45×cbrt-unprod
36×sqrt-prod
29×div-inv
16×unswap-sqr
13×associate-/r*
12×rec-exp 1-exp
10×associate-*l*
pow1
associate-/l*
expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg pow-prod-down clear-num *-commutative fma-udef
distribute-rgt-in frac-times distribute-lft-in associate-*r/ associate-*l/ associate-/l/
Counts
4 → 305
Calls
4 calls:
9.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
13.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (cbrt (sqrt 2.0))))
43.0ms
(* (/ 1 (* (cbrt (cbrt (sqrt 2.0))) (cbrt (cbrt (sqrt 2.0))))) (/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (cbrt (sqrt 2.0)))))
4.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))

series1.9s

Counts
4 → 12
Calls
4 calls:
666.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
846.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (cbrt (sqrt 2.0))))
235.0ms
(* (/ 1 (* (cbrt (cbrt (sqrt 2.0))) (cbrt (cbrt (sqrt 2.0))))) (/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (cbrt (sqrt 2.0)))))
114.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))

simplify88.0ms

Algorithm
egg-herbie
Counts
317 → 317
Iterations

Useful iterations: 1 (31.0ms)

IterNodesCost
013317346
150016415

prune882.0ms

Filtered
317 candidates to 200 candidates (63.1%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New3170317
Fresh077
Picked011
Done011
Total3179326

Merged error: 0.3b

Counts
326 → 9

localize18.0ms

Local error

Found 4 expressions with local error:

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

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))
12.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
6.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0)))
4.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))

series683.0ms

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

simplify90.0ms

Algorithm
egg-herbie
Counts
237 → 237
Iterations

Useful iterations: 2 (56.0ms)

IterNodesCost
06263262
129992821
250022819

prune386.0ms

Filtered
237 candidates to 112 candidates (47.3%)
Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New2370237
Fresh066
Picked011
Done022
Total2379246

Merged error: 0.3b

Counts
246 → 9

regimes199.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
02223
12223

end0.0ms

sample2.6s

Algorithm
intervals
Results
966.0ms2540×body1280valid
548.0ms2117×body640valid
487.0ms8019×body80valid
192.0ms1013×body320valid
72.0ms543×body160valid

Profiling

Loading profile data...