Details

Time bar (total: 3.5s)

sample42.0ms

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 100%

Results
23.0ms102×body1280valid
5.0ms117×body80valid
4.0ms20×body640valid
1.0ms12×body320valid
0.0msbody160valid

simplify8.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0196
1246
2286
3306
4356
5376
6376

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 19.8b

Counts
2 → 1

localize7.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot 1.0 x)
0.0b
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
0.0b
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
1.9b
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity add-log-exp
pow1
add-sqr-sqrt
add-exp-log add-cube-cbrt add-cbrt-cube
sqrt-pow1 flip3-+ sqrt-div associate-*r/ flip-+
+-commutative sub-neg flip3-- pow1/2 diff-log pow-prod-down sum-log sqrt-prod flip-- distribute-lft-out distribute-lft-out-- difference-of-squares
Counts
4 → 46
Calls
4 calls:
1.0ms
(hypot 1.0 x)
5.0ms
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
10.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
4.0ms
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

series32.0ms

Counts
4 → 12
Calls
4 calls:
1.0ms
(hypot 1.0 x)
5.0ms
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
12.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
13.0ms
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

simplify49.0ms

Algorithm
egg-herbie
Counts
58 → 58
Iterations

Useful iterations: 3 (43.0ms)

IterNodesCost
0167381
1423355
21736353
35002352

prune95.0ms

Filtered
40 candidates to 58 candidates (-45.0%)
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New56258
Fresh000
Picked011
Done000
Total56359

Merged error: 19.4b

Counts
59 → 3

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot 1.0 x)
0.0b
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
0.0b
(/ (- (* 1.0 (- 1.0 0.5)) (* 0.5 (/ 1.0 (hypot 1.0 x)))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
1.5b
(- (* 1.0 (- 1.0 0.5)) (* 0.5 (/ 1.0 (hypot 1.0 x))))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
23×*-un-lft-identity
13×add-sqr-sqrt add-cube-cbrt
12×times-frac
associate-*r/ add-log-exp
add-exp-log add-cbrt-cube
distribute-lft-out
pow1 flip3-- associate--l+ associate-/r* frac-sub flip-- associate-/l/
sub-neg associate-/l*
distribute-rgt-in distribute-lft-in flip3-+ associate-/r/ flip-+
cbrt-undiv +-commutative frac-2neg diff-log div-sub div-exp clear-num sum-log div-inv
Counts
4 → 75
Calls
4 calls:
1.0ms
(hypot 1.0 x)
6.0ms
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
11.0ms
(/ (- (* 1.0 (- 1.0 0.5)) (* 0.5 (/ 1.0 (hypot 1.0 x)))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
6.0ms
(- (* 1.0 (- 1.0 0.5)) (* 0.5 (/ 1.0 (hypot 1.0 x))))

series44.0ms

Counts
4 → 12
Calls
4 calls:
1.0ms
(hypot 1.0 x)
6.0ms
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
32.0ms
(/ (- (* 1.0 (- 1.0 0.5)) (* 0.5 (/ 1.0 (hypot 1.0 x)))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
6.0ms
(- (* 1.0 (- 1.0 0.5)) (* 0.5 (/ 1.0 (hypot 1.0 x))))

simplify48.0ms

Algorithm
egg-herbie
Counts
87 → 87
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
03981102
114241013
250021009

prune217.0ms

Filtered
61 candidates to 87 candidates (-42.6%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New84387
Fresh011
Picked101
Done011
Total85590

Merged error: 19.3b

Counts
90 → 5

localize22.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (hypot 1.0 x) (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0)))
0.0b
(/ (/ (* 1.0 (- (* (- (pow 1.0 3) (pow 0.5 3)) (hypot 1.0 x)) (* 0.5 (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0))))) (* (hypot 1.0 x) (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0)))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
0.0b
(/ (* 1.0 (- (* (- (pow 1.0 3) (pow 0.5 3)) (hypot 1.0 x)) (* 0.5 (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0))))) (* (hypot 1.0 x) (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0))))
1.4b
(- (* (- (pow 1.0 3) (pow 0.5 3)) (hypot 1.0 x)) (* 0.5 (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0))))

rewrite82.0ms

Algorithm
rewrite-expression-head
Rules
36×add-exp-log add-cbrt-cube
35×*-un-lft-identity
34×times-frac
28×associate-*r/
21×add-sqr-sqrt
19×add-cube-cbrt
14×associate-/r/
13×cbrt-undiv div-exp
12×flip3-+ flip-+
prod-exp cbrt-unprod
associate-*l/ frac-sub distribute-lft-out associate-/l*
div-inv associate-/l/
pow1 flip3-- flip-- add-log-exp
associate-/r*
associate-*r* associate-*l*
distribute-rgt-in frac-2neg distribute-lft-in clear-num associate--r+
sub-neg diff-log pow-prod-down *-commutative unswap-sqr
Counts
4 → 131
Calls
4 calls:
8.0ms
(* (hypot 1.0 x) (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0)))
25.0ms
(/ (/ (* 1.0 (- (* (- (pow 1.0 3) (pow 0.5 3)) (hypot 1.0 x)) (* 0.5 (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0))))) (* (hypot 1.0 x) (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0)))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
28.0ms
(/ (* 1.0 (- (* (- (pow 1.0 3) (pow 0.5 3)) (hypot 1.0 x)) (* 0.5 (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0))))) (* (hypot 1.0 x) (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0))))
16.0ms
(- (* (- (pow 1.0 3) (pow 0.5 3)) (hypot 1.0 x)) (* 0.5 (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0))))

series58.0ms

Counts
4 → 12
Calls
4 calls:
2.0ms
(* (hypot 1.0 x) (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0)))
42.0ms
(/ (/ (* 1.0 (- (* (- (pow 1.0 3) (pow 0.5 3)) (hypot 1.0 x)) (* 0.5 (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0))))) (* (hypot 1.0 x) (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0)))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
10.0ms
(/ (* 1.0 (- (* (- (pow 1.0 3) (pow 0.5 3)) (hypot 1.0 x)) (* 0.5 (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0))))) (* (hypot 1.0 x) (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0))))
3.0ms
(- (* (- (pow 1.0 3) (pow 0.5 3)) (hypot 1.0 x)) (* 0.5 (+ (* 0.5 (+ 0.5 1.0)) (* 1.0 1.0))))

simplify57.0ms

Algorithm
egg-herbie
Counts
143 → 143
Iterations

Useful iterations: 1 (24.0ms)

IterNodesCost
08533937
150013367

prune686.0ms

Filtered
97 candidates to 143 candidates (-47.4%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New1421143
Fresh033
Picked101
Done011
Total1435148

Merged error: 19.3b

Counts
148 → 5

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
0.0b
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
0.1b
(/ (* 0.5 (/ 1.0 (hypot 1.0 x))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
1.4b
(- (/ (* 1.0 (- 1.0 0.5)) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))) (/ (* 0.5 (/ 1.0 (hypot 1.0 x))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
16×*-un-lft-identity
13×add-exp-log add-cbrt-cube
10×add-log-exp
add-sqr-sqrt
add-cube-cbrt associate-/r/
flip3-+ flip-+
pow1 cbrt-undiv times-frac div-exp associate-/r* distribute-lft-out
distribute-rgt-out-- div-inv
+-commutative prod-exp sum-log cbrt-unprod
sub-neg flip3-- frac-2neg diff-log associate-*r/ clear-num frac-sub flip-- associate-/l/ associate-/l* distribute-lft-out-- sub-div difference-of-squares
Counts
4 → 71
Calls
4 calls:
5.0ms
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
5.0ms
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
7.0ms
(/ (* 0.5 (/ 1.0 (hypot 1.0 x))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
16.0ms
(- (/ (* 1.0 (- 1.0 0.5)) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))) (/ (* 0.5 (/ 1.0 (hypot 1.0 x))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))

series102.0ms

Counts
4 → 12
Calls
4 calls:
7.0ms
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
6.0ms
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
29.0ms
(/ (* 0.5 (/ 1.0 (hypot 1.0 x))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
60.0ms
(- (/ (* 1.0 (- 1.0 0.5)) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))) (/ (* 0.5 (/ 1.0 (hypot 1.0 x))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))

simplify46.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
04031201
116431059
250021032

prune237.0ms

Filtered
57 candidates to 83 candidates (-45.6%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New81283
Fresh033
Picked101
Done011
Total82688

Merged error: 19.0b

Counts
88 → 6

regimes432.0ms

Accuracy

0% (0.3b remaining)

Error of 15.5b against oracle of 15.2b and baseline of 15.5b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02222
12222

end0.0ms

sample1.1s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 0%

Guaranteed chance to sample good point: 100%

Results
654.0ms2860×body1280valid
163.0ms4014×body80valid
117.0ms658×body640valid
42.0ms322×body320valid
12.0ms146×body160valid

Profiling

Loading profile data...