Details

Time bar (total: 4.2s)

sample610.0ms

Algorithm
intervals
sampling

Space saved by range analysis: 99.999783%

Space saved by search: 99.99989%

Guaranteed chance to sample good point: 87.710337%

Results
13.0ms142×body160valid
8.0ms277×pre80true
6.0ms114×body80valid
3.0ms21×body80nan

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: 30.0b

Counts
2 → 1

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))
0.2b
(- (* b b) (* (* 4.0 a) c))
0.3b
(/ (+ (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
29.9b
(+ (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))

rewrite28.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:
3.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
3.0ms
(- (* b b) (* (* 4.0 a) c))
11.0ms
(/ (+ (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
8.0ms
(+ (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))

series68.0ms

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

simplify46.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0396773
11550683
25001673

prune133.0ms

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

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New77582
Fresh000
Picked101
Done000
Total78583

Merged error: 0.4b

Counts
83 → 5

localize16.0ms

Local error

Found 4 expressions with local error:

0.2b
(- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))
0.2b
(- (* b b) (* (* 4.0 a) c))
0.3b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
0.3b
(/ (+ 0 (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))))

rewrite49.0ms

Algorithm
rewrite-expression-head
Rules
90×times-frac
82×add-sqr-sqrt *-un-lft-identity
38×add-cube-cbrt
30×associate-/l*
22×distribute-lft-out-- difference-of-squares
18×add-exp-log add-cbrt-cube
11×distribute-rgt-neg-in sqrt-prod
10×add-log-exp
associate-/r*
cbrt-undiv div-exp
associate-/r/
flip3-- flip--
pow1 div-inv
diff-log associate-/l/
sub-neg frac-2neg prod-exp clear-num cbrt-unprod
associate--l- neg-sub0 flip3-+ neg-log flip-+
Counts
4 → 151
Calls
4 calls:
8.0ms
(- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))
3.0ms
(- (* b b) (* (* 4.0 a) c))
17.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)))))

series125.0ms

Counts
4 → 12
Calls
4 calls:
15.0ms
(- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))
8.0ms
(- (* b b) (* (* 4.0 a) c))
45.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
57.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))))

simplify115.0ms

Algorithm
egg-herbie
Counts
163 → 163
Iterations

Useful iterations: 2 (93.0ms)

IterNodesCost
06432666
132102408
250012396

prune316.0ms

Filtered
106 candidates to 163 candidates (-53.8%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New15211163
Fresh404
Picked101
Done000
Total15711168

Merged error: 0.0b

Counts
168 → 11

localize19.0ms

Local error

Found 4 expressions with local error:

0.2b
(- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))
0.2b
(- (* b b) (* (* 4.0 a) c))
0.3b
(/ 1 (* (/ (* 2.0 a) (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))))
0.3b
(* (/ (* 2.0 a) (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))))

rewrite51.0ms

Algorithm
rewrite-expression-head
Rules
131×add-exp-log
71×add-cbrt-cube
64×prod-exp
40×div-exp
32×cbrt-unprod
20×cbrt-undiv
18×add-sqr-sqrt
16×*-un-lft-identity
10×add-log-exp
pow1
add-cube-cbrt rec-exp 1-exp
associate-*r*
flip3-- flip--
associate-*l* associate-/r/
frac-times sub-neg times-frac associate-*r/ distribute-lft-out-- difference-of-squares
diff-log associate-/l*
distribute-rgt-in pow-flip distribute-rgt-neg-in distribute-lft-in pow-prod-down associate-*l/ sqrt-prod div-inv
associate--l- neg-sub0 frac-2neg neg-log clear-num associate-/r* *-commutative inv-pow unswap-sqr
Counts
4 → 132
Calls
4 calls:
8.0ms
(- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))
3.0ms
(- (* b b) (* (* 4.0 a) c))
17.0ms
(/ 1 (* (/ (* 2.0 a) (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))))
17.0ms
(* (/ (* 2.0 a) (* 4.0 (* a c))) (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))))

series94.0ms

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

simplify41.0ms

Algorithm
egg-herbie
Counts
144 → 144
Iterations

Useful iterations: 1 (21.0ms)

IterNodesCost
08432156
150011664

prune186.0ms

Filtered
73 candidates to 144 candidates (-97.3%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New1404144
Fresh5510
Picked101
Done000
Total1469155

Merged error: 0b

Counts
155 → 9

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))
0.2b
(/ (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))) c)
0.2b
(- (* b b) (* (* 4.0 a) c))
0.3b
(/ 1 (* (/ 2.0 4.0) (/ (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))) c)))

rewrite43.0ms

Algorithm
rewrite-expression-head
Rules
50×add-exp-log
38×add-sqr-sqrt *-un-lft-identity
24×times-frac add-cbrt-cube
23×div-exp
18×add-cube-cbrt
12×prod-exp
10×cbrt-undiv associate-/l* distribute-lft-out-- add-log-exp difference-of-squares
pow1
rec-exp distribute-rgt-neg-in 1-exp sqrt-prod
associate-/r* cbrt-unprod
flip3-- diff-log associate-/r/ flip--
sub-neg pow-flip frac-2neg clear-num div-inv associate-/l/
associate--l- neg-sub0 frac-times div-sub associate-*r/ pow-prod-down neg-log associate-*l/ inv-pow
Counts
4 → 119
Calls
4 calls:
8.0ms
(- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c))))
12.0ms
(/ (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))) c)
4.0ms
(- (* b b) (* (* 4.0 a) c))
15.0ms
(/ 1 (* (/ 2.0 4.0) (/ (- (neg b) (sqrt (- (* b b) (* (* 4.0 a) c)))) c)))

series76.0ms

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

simplify68.0ms

Algorithm
egg-herbie
Counts
131 → 131
Iterations

Useful iterations: 2 (53.0ms)

IterNodesCost
06421587
127841393
250031387

prune151.0ms

Filtered
76 candidates to 131 candidates (-72.4%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1292131
Fresh268
Picked011
Done000
Total1319140

Merged error: 0b

Counts
140 → 9

regimes215.0ms

Accuracy

0% (0.3b remaining)

Error of 0.4b against oracle of 0.0b and baseline of 0.4b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02512
12512

end0.0ms

sample1.7s

Algorithm
intervals
sampling

Space saved by range analysis: 99.999783%

Space saved by search: 99.99989%

Guaranteed chance to sample good point: 87.710337%

Results
431.0ms4449×body160valid
248.0ms8437×pre80true
178.0ms3550×body80valid
21.0ms437×body80nan
0.0msbody320valid

Profiling

Loading profile data...