Details

Time bar (total: 12.1s)

sample4.3s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 25.402832%

Guaranteed chance to sample good point: 74.774996%

Results
11.0ms36×body2560valid
9.0ms166×body80valid
7.0ms28×body1280valid
3.0ms15×body640valid
1.0msbody320valid
1.0msbody5120valid
1.0ms12×body80nan
0.0msbody160valid
0.0msbody80invalid

simplify13.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: 37.1b

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))
0.4b
(- (* b b) (* 4.0 (* a c)))
1.0b
(- (neg b) (sqrt (- (* b b) (* 4.0 (* a c)))))
27.4b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite31.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))
3.0ms
(- (* b b) (* 4.0 (* a c)))
10.0ms
(- (neg b) (sqrt (- (* b b) (* 4.0 (* a c)))))
4.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series56.0ms

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

simplify47.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0398888
11466803
25001798

prune176.0ms

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

12 alts after pruning (11 fresh and 1 done)

PrunedKeptTotal
New781189
Fresh000
Picked011
Done000
Total781290

Merged error: 5.7b

Counts
90 → 12

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ 1 (/ (* 2.0 a) (- (neg b) (sqrt (- (* b b) (* 4.0 (* a c)))))))
0.4b
(- (* b b) (* 4.0 (* a c)))
1.0b
(- (neg b) (sqrt (- (* b b) (* 4.0 (* a c)))))
27.4b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
67×times-frac
48×add-sqr-sqrt
47×*-un-lft-identity
27×add-cube-cbrt
25×add-exp-log
13×associate-/r* add-cbrt-cube
12×div-exp
10×distribute-lft-out-- add-log-exp difference-of-squares
associate-/r/
sqrt-prod
flip3-- flip--
pow1
cbrt-undiv distribute-rgt-neg-in div-inv
rec-exp diff-log 1-exp prod-exp associate-/l*
sub-neg sqrt-div
associate--l- neg-sub0 rem-sqrt-square pow-flip frac-2neg sqrt-pow1 pow1/2 neg-log clear-num cbrt-unprod inv-pow
Counts
4 → 125
Calls
4 calls:
13.0ms
(/ 1 (/ (* 2.0 a) (- (neg b) (sqrt (- (* b b) (* 4.0 (* a c)))))))
3.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))))

series70.0ms

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

simplify71.0ms

Algorithm
egg-herbie
Counts
137 → 137
Iterations

Useful iterations: 2 (52.0ms)

IterNodesCost
05381801
125731602
250021528

prune162.0ms

Filtered
73 candidates to 137 candidates (-87.7%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New1334137
Fresh5510
Picked011
Done101
Total13910149

Merged error: 5.6b

Counts
149 → 10

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)))
0.4b
(- (* b b) (* 4.0 (* a c)))
1.0b
(- (neg b) (sqrt (- (* b b) (* 4.0 (* a c)))))
27.4b
(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)))
4.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))))

series59.0ms

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

simplify57.0ms

Algorithm
egg-herbie
Counts
97 → 97
Iterations

Useful iterations: 2 (46.0ms)

IterNodesCost
0463989
12033868
25001860

prune132.0ms

Filtered
65 candidates to 97 candidates (-49.2%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New96197
Fresh268
Picked101
Done011
Total998107

Merged error: 5.6b

Counts
107 → 8

localize18.0ms

Local error

Found 4 expressions with local error:

2.0b
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
3.9b
(* (/ (+ 0 (* 1 (* 4.0 (* a c)))) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) (/ 1 (* 2.0 a)))
10.6b
(/ (+ 0 (* 1 (* 4.0 (* a c)))) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b))
27.4b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite47.0ms

Algorithm
rewrite-expression-head
Rules
76×add-sqr-sqrt
63×*-un-lft-identity
52×times-frac
51×add-exp-log
30×add-cube-cbrt associate-*l*
27×add-cbrt-cube
20×prod-exp difference-of-squares
16×div-exp
13×sqrt-prod distribute-lft-out
10×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 → 152
Calls
4 calls:
7.0ms
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
19.0ms
(* (/ (+ 0 (* 1 (* 4.0 (* a c)))) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) (/ 1 (* 2.0 a)))
12.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:
14.0ms
(- (sqrt (- (* b b) (* 4.0 (* a c)))) b)
45.0ms
(* (/ (+ 0 (* 1 (* 4.0 (* a c)))) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b)) (/ 1 (* 2.0 a)))
59.0ms
(/ (+ 0 (* 1 (* 4.0 (* a c)))) (- (sqrt (- (* b b) (* 4.0 (* a c)))) b))
14.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify117.0ms

Algorithm
egg-herbie
Counts
164 → 164
Iterations

Useful iterations: 2 (96.0ms)

IterNodesCost
07582422
137172075
250022052

prune236.0ms

Filtered
105 candidates to 164 candidates (-56.2%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New1622164
Fresh156
Picked011
Done011
Total1639172

Merged error: 5.6b

Counts
172 → 9

regimes300.0ms

Accuracy

80% (5.3b remaining)

Error of 11.1b against oracle of 5.8b and baseline of 32.1b

bsearch84.0ms

Steps
ItersRangePoint
5
3567667764679.5464
10455695888371.93
10240426968464.59
8
-3.037530433895122e-40
-2.9401428014017238e-43
-2.229293425261931e-42

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03414
13414

end0.0ms

sample5.9s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 25.402832%

Guaranteed chance to sample good point: 74.774996%

Results
325.0ms1048×body2560valid
284.0ms5147×body80valid
236.0ms907×body1280valid
90.0ms457×body640valid
43.0ms110×body5120valid
36.0ms220×body320valid
19.0ms321×body80invalid
18.0ms359×body80nan
14.0ms111×body160valid

Profiling

Loading profile data...