Details

Time bar (total: 5.4s)

sample22.0ms

Algorithm
intervals
Results
7.0ms65×body640valid
4.0ms132×body80valid
3.0ms32×body320valid
2.0ms12×body1280valid
1.0ms15×body160valid

simplify18.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0187
1317
2437
3577
4737
5927
61267
71587
82077
92097
102097

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 9.0b

localize8.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1.0 (- x 1.0))
0.0b
(/ 1.0 (+ x 1.0))
0.0b
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
2.5b
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

rewrite354.0ms

Algorithm
rewrite-expression-head
Rules
725×*-un-lft-identity
703×times-frac
524×add-sqr-sqrt
492×add-cube-cbrt
468×prod-diff
236×associate-+l+
95×distribute-lft-out
65×div-inv
58×associate-/r/
29×flip3-+ flip-+
18×fma-neg
17×distribute-lft-out--
12×difference-of-squares
11×add-log-exp
10×fma-def
associate-/r*
add-exp-log add-cbrt-cube
associate-/l*
pow1 expm1-log1p-u log1p-expm1-u
flip3-- frac-add flip--
cbrt-undiv sub-neg frac-2neg diff-log div-exp clear-num sum-log frac-sub
+-commutative associate-+l-
Counts
4 → 618
Calls
4 calls:
5.0ms
(/ 1.0 (- x 1.0))
5.0ms
(/ 1.0 (+ x 1.0))
53.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
237.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

series307.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(/ 1.0 (- x 1.0))
29.0ms
(/ 1.0 (+ x 1.0))
40.0ms
(- (/ 1.0 (+ x 1.0)) (/ 2.0 x))
211.0ms
(+ (- (/ 1.0 (+ x 1.0)) (/ 2.0 x)) (/ 1.0 (- x 1.0)))

simplify155.0ms

Algorithm
egg-herbie
Counts
630 → 630
Iterations

Useful iterations: 2 (75.0ms)

IterNodesCost
0115610955
136078288
250017670

prune1.4s

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.1b

localize20.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (/ 1.0 (+ x 1.0)))
0.0b
(sqrt (/ 1.0 (+ x 1.0)))
0.1b
(fma (sqrt (/ 1.0 (+ x 1.0))) (sqrt (/ 1.0 (+ x 1.0))) (- (* (/ 1 x) 2.0)))
8.9b
(+ (fma (sqrt (/ 1.0 (+ x 1.0))) (sqrt (/ 1.0 (+ x 1.0))) (- (* (/ 1 x) 2.0))) (fma (/ 2.0 x) (+ (- 1) 1) (/ 1.0 (- x 1.0))))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
36×sqrt-prod
35×*-un-lft-identity
27×add-sqr-sqrt
26×times-frac
21×add-cube-cbrt
distribute-lft-out
pow1 add-log-exp
add-exp-log expm1-log1p-u rem-sqrt-square associate-/r/ add-cbrt-cube log1p-expm1-u
fma-def flip3-+ flip-+ fma-udef
sqrt-pow1 pow1/2 sqrt-div div-inv
+-commutative associate-+l+ associate-+r+ sum-log
Counts
4 → 93
Calls
4 calls:
6.0ms
(sqrt (/ 1.0 (+ x 1.0)))
6.0ms
(sqrt (/ 1.0 (+ x 1.0)))
0.0ms
(fma (sqrt (/ 1.0 (+ x 1.0))) (sqrt (/ 1.0 (+ x 1.0))) (- (* (/ 1 x) 2.0)))
3.0ms
(+ (fma (sqrt (/ 1.0 (+ x 1.0))) (sqrt (/ 1.0 (+ x 1.0))) (- (* (/ 1 x) 2.0))) (fma (/ 2.0 x) (+ (- 1) 1) (/ 1.0 (- x 1.0))))

series618.0ms

Counts
4 → 12
Calls
4 calls:
96.0ms
(sqrt (/ 1.0 (+ x 1.0)))
89.0ms
(sqrt (/ 1.0 (+ x 1.0)))
185.0ms
(fma (sqrt (/ 1.0 (+ x 1.0))) (sqrt (/ 1.0 (+ x 1.0))) (- (* (/ 1 x) 2.0)))
247.0ms
(+ (fma (sqrt (/ 1.0 (+ x 1.0))) (sqrt (/ 1.0 (+ x 1.0))) (- (* (/ 1 x) 2.0))) (fma (/ 2.0 x) (+ (- 1) 1) (/ 1.0 (- x 1.0))))

simplify43.0ms

Algorithm
egg-herbie
Counts
105 → 105
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
03801083
11248962
25001862

prune338.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.1b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (* 1.0 x) (* (+ x 1.0) 2.0))
0.0b
(/ (fma (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0) (* (* (+ x 1.0) x) 1.0)) (* (* (+ x 1.0) x) (- x 1.0)))
0.1b
(* (* (+ x 1.0) x) (- x 1.0))
31.2b
(fma (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0) (* (* (+ x 1.0) x) 1.0))

rewrite49.0ms

Algorithm
rewrite-expression-head
Rules
21×add-sqr-sqrt *-un-lft-identity
19×add-cube-cbrt prod-diff
18×add-exp-log add-cbrt-cube
16×associate-*l/
11×distribute-rgt-in distribute-lft-in
pow1
frac-times associate-/r/
flip3-- flip--
flip3-+ prod-exp cbrt-unprod flip-+ add-log-exp
associate-*r*
expm1-log1p-u associate-*r/ log1p-expm1-u
cbrt-undiv sub-neg times-frac div-exp pow-prod-down associate-/l*
frac-2neg fma-neg diff-log associate-*l* clear-num associate-/r* *-commutative fma-udef div-inv distribute-lft-out-- difference-of-squares
Counts
4 → 111
Calls
4 calls:
3.0ms
(- (* 1.0 x) (* (+ x 1.0) 2.0))
20.0ms
(/ (fma (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0) (* (* (+ x 1.0) x) 1.0)) (* (* (+ x 1.0) x) (- x 1.0)))
21.0ms
(* (* (+ x 1.0) x) (- x 1.0))
0.0ms
(fma (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0) (* (* (+ x 1.0) x) 1.0))

series604.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(- (* 1.0 x) (* (+ x 1.0) 2.0))
292.0ms
(/ (fma (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0) (* (* (+ x 1.0) x) 1.0)) (* (* (+ x 1.0) x) (- x 1.0)))
93.0ms
(* (* (+ x 1.0) x) (- x 1.0))
177.0ms
(fma (- (* 1.0 x) (* (+ x 1.0) 2.0)) (- x 1.0) (* (* (+ x 1.0) x) 1.0))

simplify81.0ms

Algorithm
egg-herbie
Counts
123 → 123
Iterations

Useful iterations: 1 (16.0ms)

IterNodesCost
06371498
130821198
250011198

prune266.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.0b

localize6.0ms

Local error

Found 3 expressions with local error:

0.0b
(* (+ x 1.0) x)
0.0b
(/ 2.0 (* (* (+ x 1.0) x) (- x 1.0)))
0.1b
(* (* (+ x 1.0) x) (- x 1.0))

rewrite52.0ms

Algorithm
rewrite-expression-head
Rules
24×add-sqr-sqrt *-un-lft-identity
20×add-cube-cbrt
19×add-exp-log add-cbrt-cube
18×prod-diff associate-*l/
11×distribute-rgt-in distribute-lft-in
10×pow1
frac-times associate-*r* associate-/r/
flip3-+ prod-exp cbrt-unprod flip-+
flip3-- flip--
associate-*l*
associate-*r/ pow-prod-down
cbrt-undiv expm1-log1p-u times-frac div-exp log1p-expm1-u associate-/l* add-log-exp
sub-neg *-commutative
frac-2neg clear-num associate-/r* div-inv distribute-lft-out distribute-lft-out-- difference-of-squares unswap-sqr
Counts
3 → 108
Calls
3 calls:
10.0ms
(* (+ x 1.0) x)
16.0ms
(/ 2.0 (* (* (+ x 1.0) x) (- x 1.0)))
22.0ms
(* (* (+ x 1.0) x) (- x 1.0))

series225.0ms

Counts
3 → 9
Calls
3 calls:
40.0ms
(* (+ x 1.0) x)
87.0ms
(/ 2.0 (* (* (+ x 1.0) x) (- x 1.0)))
98.0ms
(* (* (+ x 1.0) x) (- x 1.0))

simplify74.0ms

Algorithm
egg-herbie
Counts
117 → 117
Iterations

Useful iterations: 2 (63.0ms)

IterNodesCost
0565948
12961739
25002737

prune181.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 0b

regimes17.0ms

Accuracy

0% (0.2b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
094
194

end0.0ms

sample584.0ms

Algorithm
intervals
Results
203.0ms1914×body640valid
120.0ms4128×body80valid
76.0ms942×body320valid
72.0ms550×body1280valid
25.0ms469×body160valid