Details

Time bar (total: 11.9s)

sample4.0s

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.0ms37×body2560valid
8.0ms35×body1280valid
8.0ms156×body80valid
3.0ms17×body640valid
1.0msbody5120valid
1.0msbody320valid
1.0ms14×body80nan
1.0ms12×body80invalid
0.0msbody160valid

simplify10.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0249
1459
2799
3979
41059
51059

prune4.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 36.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))
1.0b
(- (* b b) (* (* 4.0 a) c))
1.0b
(+ (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))
24.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite30.0ms

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

series65.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(/ (+ (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
9.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)))

simplify45.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0396773
11550683
25002673

prune155.0ms

Filtered
63 candidates to 82 candidates (-30.2%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New74882
Fresh000
Picked011
Done000
Total74983

Merged error: 6.4b

Counts
83 → 9

localize19.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (* b b) (* (* 4.0 a) c))
4.0b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
11.1b
(/ (+ 0 (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
24.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
90×times-frac
80×add-sqr-sqrt
79×*-un-lft-identity
39×add-cube-cbrt
30×associate-/l*
20×distribute-lft-out-- difference-of-squares
18×add-exp-log add-cbrt-cube
13×sqrt-prod
10×distribute-rgt-neg-in
associate-/r*
cbrt-undiv div-exp
associate-/r/ add-log-exp
pow1 flip3-- flip--
div-inv
associate-/l/
frac-2neg sqrt-div prod-exp clear-num cbrt-unprod
sub-neg rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 diff-log flip-+
Counts
4 → 148
Calls
4 calls:
3.0ms
(- (* b b) (* (* 4.0 a) c))
16.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
12.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series131.0ms

Counts
4 → 12
Calls
4 calls:
9.0ms
(- (* b b) (* (* 4.0 a) c))
46.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
62.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
15.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify114.0ms

Algorithm
egg-herbie
Counts
160 → 160
Iterations

Useful iterations: 2 (90.0ms)

IterNodesCost
06372580
131842341
250012328

prune278.0ms

Filtered
106 candidates to 160 candidates (-50.9%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New1573160
Fresh257
Picked011
Done011
Total15910169

Merged error: 6.3b

Counts
169 → 10

localize21.0ms

Local error

Found 4 expressions with local error:

7.9b
(- (neg b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
10.8b
(/ (+ 0 (* 4.0 (* a c))) (- (neg b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c)))))))
24.9b
(cbrt (- (* b b) (* (* 4.0 a) c)))
24.9b
(cbrt (- (* b b) (* (* 4.0 a) c)))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
times-frac
add-log-exp
add-exp-log cbrt-prod add-cbrt-cube
pow1 cbrt-div flip3-- flip--
associate-/r* associate-/l*
pow1/3 diff-log associate-/r/ associate-/l/
cbrt-undiv associate--l- neg-sub0 sub-neg frac-2neg flip3-+ div-exp neg-log clear-num flip-+ div-inv
Counts
4 → 71
Calls
4 calls:
4.0ms
(- (neg b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
7.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (neg b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c)))))))
3.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))
4.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))

series286.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(- (neg b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
197.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (neg b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c)))))))
24.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))
29.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))

simplify108.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (92.0ms)

IterNodesCost
06751807
131401638
250011626

prune300.0ms

Filtered
77 candidates to 83 candidates (-7.8%)
Pruning

10 alts after pruning (7 fresh and 3 done)

PrunedKeptTotal
New83083
Fresh077
Picked011
Done022
Total831093

Merged error: 6.3b

Counts
93 → 10

localize16.0ms

Local error

Found 4 expressions with local error:

0.8b
(- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))
1.0b
(- (* b b) (* (* 4.0 a) c))
18.0b
(/ (* 4.0 (* a c)) (* a (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))))
24.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite33.0ms

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

series86.0ms

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

simplify78.0ms

Algorithm
egg-herbie
Counts
84 → 84
Iterations

Useful iterations: 2 (68.0ms)

IterNodesCost
0486952
12894749
25002741

prune109.0ms

Filtered
58 candidates to 84 candidates (-44.8%)
Pruning

7 alts after pruning (4 fresh and 3 done)

PrunedKeptTotal
New83184
Fresh336
Picked011
Done123
Total87794

Merged error: 6.3b

Counts
94 → 7

regimes323.0ms

Accuracy

93.5% (1.6b remaining)

Error of 7.2b against oracle of 5.7b and baseline of 29.7b

bsearch165.0ms

Steps
ItersRangePoint
7
850397597643135.8
2.0562449637825846e+17
2.011680736595535e+17
10
-2.973470857770798e-211
-3.182603443154487e-221
-3.2184009596459657e-221
8
-2.0262981865872775e+105
-1.6132765285057123e+101
-1.0833883752928771e+105

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04727
14927
24927

end0.0ms

sample5.5s

Algorithm
intervals
sampling

Space saved by range analysis: 0%

Space saved by search: 25.402832%

Guaranteed chance to sample good point: 74.774996%

Results
306.0ms1022×body2560valid
276.0ms5142×body80valid
220.0ms893×body1280valid
86.0ms456×body640valid
42.0ms116×body5120valid
35.0ms245×body320valid
17.0ms346×body80nan
16.0ms304×body80invalid
12.0ms126×body160valid

Profiling

Loading profile data...