Details

Time bar (total: 3.1s)

analyze1.2s

Algorithm
search
sampling

Space saved by range analysis: 0.146413%

Space saved by search: 25.512052%

Guaranteed chance to sample good point: 74.774996%

sample43.0ms

Algorithm
intervals
Results
10.0ms35×body2560valid
9.0ms167×body80valid
6.0ms24×body1280valid
3.0ms17×body640valid
2.0msbody5120valid
1.0msbody320valid
1.0ms10×body80invalid
0.0msbody160valid
0.0msbody80nan

simplify12.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0289
1649
21149
31359
41449
51489
61489

prune4.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 34.5b

Counts
2 → 1

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (- (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
1.2b
(- (* b b) (* 4.0 (* a c)))
1.3b
(- (neg b) (sqrt (- (* b b) (* 4.0 (* a c)))))
23.7b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
19×*-un-lft-identity
10×add-log-exp
add-exp-log add-cbrt-cube
add-cube-cbrt times-frac associate-/l*
sqrt-prod distribute-lft-out-- difference-of-squares
pow1
flip3-- flip--
distribute-rgt-neg-in diff-log
cbrt-undiv sub-neg sqrt-div div-exp associate-/l/
associate--l- neg-sub0 rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 div-sub neg-log prod-exp clear-num associate-/r* cbrt-unprod div-inv
Counts
4 → 77
Calls
4 calls:
12.0ms
(/ (- (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
6.0ms
(- (* b b) (* 4.0 (* a c)))
8.0ms
(- (neg b) (sqrt (- (* b b) (* 4.0 (* a c)))))
4.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series60.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(/ (- (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
9.0ms
(- (* b b) (* 4.0 (* a c)))
17.0ms
(- (neg b) (sqrt (- (* b b) (* 4.0 (* a c)))))
15.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify45.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0398888
11466803
25001798

prune180.0ms

Filtered
65 candidates to 89 candidates (-36.9%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New791089
Fresh000
Picked011
Done000
Total791190

Merged error: 4.1b

Counts
90 → 11

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (- (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (/ 1 (* 2.0 a)))
1.2b
(- (* b b) (* 4.0 (* a c)))
1.3b
(- (neg b) (sqrt (- (* b b) (* 4.0 (* a c)))))
23.7b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
23×add-exp-log
19×add-sqr-sqrt
16×*-un-lft-identity
13×add-cbrt-cube
10×prod-exp add-log-exp
add-cube-cbrt
pow1 associate-*r* associate-*l*
flip3-- sqrt-prod flip--
div-exp cbrt-unprod distribute-lft-out-- difference-of-squares
times-frac diff-log
cbrt-undiv frac-times sub-neg rec-exp distribute-rgt-neg-in sqrt-div 1-exp associate-*l/
associate--l- neg-sub0 rem-sqrt-square sqrt-pow1 pow1/2 associate-*r/ pow-prod-down neg-log un-div-inv *-commutative div-inv unswap-sqr
Counts
4 → 85
Calls
4 calls:
15.0ms
(* (- (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (/ 1 (* 2.0 a)))
3.0ms
(- (* b b) (* 4.0 (* a c)))
8.0ms
(- (neg b) (sqrt (- (* b b) (* 4.0 (* a c)))))
3.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series59.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(* (- (neg b) (sqrt (- (* b b) (* 4.0 (* a c))))) (/ 1 (* 2.0 a)))
8.0ms
(- (* b b) (* 4.0 (* a c)))
17.0ms
(- (neg b) (sqrt (- (* b b) (* 4.0 (* a c)))))
14.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify55.0ms

Algorithm
egg-herbie
Counts
97 → 97
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0463989
12033868
25001860

prune141.0ms

Filtered
63 candidates to 97 candidates (-54.0%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New95297
Fresh459
Picked011
Done011
Total999108

Merged error: 4.1b

Counts
108 → 9

localize18.0ms

Local error

Found 4 expressions with local error:

1.2b
(- (* b b) (* 4.0 (* a c)))
3.6b
(* (/ (+ 0 (* 1 (* 4.0 (* a c)))) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) (/ 1 (* 2.0 a)))
7.0b
(/ (+ 0 (* 1 (* 4.0 (* a c)))) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b))
23.7b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
72×add-sqr-sqrt
61×*-un-lft-identity
52×times-frac
51×add-exp-log
30×add-cube-cbrt associate-*l*
27×add-cbrt-cube
20×prod-exp
18×difference-of-squares
16×div-exp
13×distribute-lft-out
12×sqrt-prod
distribute-lft-out--
cbrt-undiv cbrt-unprod
pow1 associate-*r*
associate-/r* add-log-exp
rec-exp flip3-- 1-exp associate-/r/ flip-- associate-/l*
div-inv
sqrt-div associate-/l/ unswap-sqr
frac-times sub-neg rem-sqrt-square frac-2neg sqrt-pow1 flip3-+ pow1/2 diff-log associate-*r/ pow-prod-down associate-*l/ clear-num un-div-inv *-commutative flip-+
Counts
4 → 149
Calls
4 calls:
4.0ms
(- (* b b) (* 4.0 (* a c)))
19.0ms
(* (/ (+ 0 (* 1 (* 4.0 (* a c)))) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) (/ 1 (* 2.0 a)))
11.0ms
(/ (+ 0 (* 1 (* 4.0 (* a c)))) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b))
4.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series133.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(- (* b b) (* 4.0 (* a c)))
47.0ms
(* (/ (+ 0 (* 1 (* 4.0 (* a c)))) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) (/ 1 (* 2.0 a)))
62.0ms
(/ (+ 0 (* 1 (* 4.0 (* a c)))) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b))
15.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify118.0ms

Algorithm
egg-herbie
Counts
161 → 161
Iterations

Useful iterations: 2 (97.0ms)

IterNodesCost
07582360
137522016
250011993

prune275.0ms

Filtered
102 candidates to 161 candidates (-57.8%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New1574161
Fresh336
Picked011
Done112
Total1619170

Merged error: 4.0b

Counts
170 → 9

localize12.0ms

Local error

Found 4 expressions with local error:

0.6b
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
1.2b
(- (* b b) (* 4.0 (* a c)))
12.6b
(/ (* 4.0 (* a c)) (* 2.0 a))
23.7b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
25×add-exp-log add-cbrt-cube
10×add-sqr-sqrt
prod-exp cbrt-unprod
add-log-exp
*-un-lft-identity
cbrt-undiv div-exp
pow1 add-cube-cbrt
sqrt-prod
flip3-- flip--
sub-neg sqrt-div diff-log difference-of-squares
rem-sqrt-square frac-2neg sqrt-pow1 times-frac pow1/2 clear-num associate-/r* div-inv associate-/l* distribute-lft-out--
Counts
4 → 67
Calls
4 calls:
6.0ms
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
4.0ms
(- (* b b) (* 4.0 (* a c)))
7.0ms
(/ (* 4.0 (* a c)) (* 2.0 a))
4.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series40.0ms

Counts
4 → 12
Calls
4 calls:
15.0ms
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
8.0ms
(- (* b b) (* 4.0 (* a c)))
2.0ms
(/ (* 4.0 (* a c)) (* 2.0 a))
14.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify57.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 1 (11.0ms)

IterNodesCost
0399575
12213498
25003498

prune95.0ms

Filtered
54 candidates to 79 candidates (-46.3%)
Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New78179
Fresh156
Picked011
Done022
Total79988

Merged error: 4.0b

Counts
88 → 9

regimes394.0ms

bsearch1.0ms

Profiling

Loading profile data...