Details

Time bar (total: 6.8s)

sample71.0ms

Algorithm
intervals
Results
39.0ms620×body80valid

simplify99.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
05315
116115
245915
3132315
4299215
5500115

prune5.0ms

Filtered
1 candidates to 0 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 0.2b

Counts
2 → 1

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
0.1b
(* (* a a) (+ 1.0 a))
0.3b
(pow (+ (* a a) (* b b)) 2.0)
0.6b
(* (* b b) (- 1.0 (* 3.0 a)))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
15×pow1 add-exp-log
14×add-cbrt-cube
10×add-sqr-sqrt *-un-lft-identity
add-cube-cbrt
associate-*r*
pow-prod-down prod-exp cbrt-unprod add-log-exp
distribute-rgt-in distribute-lft-in associate-*r/
unpow-prod-down pow-unpow
sub-neg associate-+r+ flip3-+ associate-*l* *-commutative flip-+ unswap-sqr
+-commutative pow-to-exp flip3-- pow-pow pow-exp sum-log flip-- distribute-lft-out sqr-pow
Counts
4 → 79
Calls
4 calls:
7.0ms
(+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
8.0ms
(* (* a a) (+ 1.0 a))
8.0ms
(pow (+ (* a a) (* b b)) 2.0)
7.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

series383.0ms

Counts
4 → 12
Calls
4 calls:
127.0ms
(+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
65.0ms
(* (* a a) (+ 1.0 a))
123.0ms
(pow (+ (* a a) (* b b)) 2.0)
67.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

simplify72.0ms

Algorithm
egg-herbie
Counts
91 → 91
Iterations

Useful iterations: 1 (14.0ms)

IterNodesCost
0504702
12520622
25003622

prune542.0ms

Filtered
91 candidates to 61 candidates (33.0%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New86591
Fresh000
Picked101
Done000
Total87592

Merged error: 0.0b

Counts
92 → 5

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (pow (+ (* a a) (* b b)) 2.0) (* (* (* a a) (+ 1.0 a)) 4.0))
0.1b
(* (* a a) (+ 1.0 a))
0.3b
(pow (+ (* a a) (* b b)) 2.0)
0.6b
(* (* b b) (- 1.0 (* 3.0 a)))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
15×pow1 add-exp-log
14×add-cbrt-cube
10×add-sqr-sqrt *-un-lft-identity
add-cube-cbrt
associate-*r*
pow-prod-down prod-exp cbrt-unprod add-log-exp
associate-*r/
distribute-rgt-in unpow-prod-down pow-unpow distribute-lft-in
sub-neg flip3-+ associate-*l* *-commutative flip-+ unswap-sqr
+-commutative pow-to-exp flip3-- pow-pow pow-exp sum-log flip-- distribute-lft-out sqr-pow
Counts
4 → 77
Calls
4 calls:
7.0ms
(+ (pow (+ (* a a) (* b b)) 2.0) (* (* (* a a) (+ 1.0 a)) 4.0))
8.0ms
(* (* a a) (+ 1.0 a))
4.0ms
(pow (+ (* a a) (* b b)) 2.0)
10.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

series374.0ms

Counts
4 → 12
Calls
4 calls:
114.0ms
(+ (pow (+ (* a a) (* b b)) 2.0) (* (* (* a a) (+ 1.0 a)) 4.0))
67.0ms
(* (* a a) (+ 1.0 a))
127.0ms
(pow (+ (* a a) (* b b)) 2.0)
67.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

simplify66.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 1 (14.0ms)

IterNodesCost
0484599
12423527
25003527

prune532.0ms

Filtered
89 candidates to 59 candidates (33.7%)
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New88189
Fresh224
Picked011
Done000
Total90494

Merged error: 0.0b

Counts
94 → 4

localize21.0ms

Local error

Found 4 expressions with local error:

0.6b
(* (* b b) (- 1.0 (* 3.0 a)))
10.1b
(cbrt (+ (* a a) (* b b)))
10.1b
(cbrt (+ (* a a) (* b b)))
10.1b
(cbrt (+ (* a a) (* b b)))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log cbrt-prod add-sqr-sqrt add-cbrt-cube
add-cube-cbrt *-un-lft-identity
cbrt-div
add-log-exp
flip3-+ pow1/3 associate-*r* pow-prod-down prod-exp cbrt-unprod flip-+
distribute-rgt-in sub-neg distribute-lft-in associate-*r/
flip3-- associate-*l* *-commutative flip-- unswap-sqr
Counts
4 → 64
Calls
4 calls:
7.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
3.0ms
(cbrt (+ (* a a) (* b b)))
3.0ms
(cbrt (+ (* a a) (* b b)))
3.0ms
(cbrt (+ (* a a) (* b b)))

series412.0ms

Counts
4 → 12
Calls
4 calls:
68.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
112.0ms
(cbrt (+ (* a a) (* b b)))
120.0ms
(cbrt (+ (* a a) (* b b)))
111.0ms
(cbrt (+ (* a a) (* b b)))

simplify44.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0277537
11234483
25002474

prune595.0ms

Filtered
76 candidates to 58 candidates (23.7%)
Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New76076
Fresh022
Picked011
Done011
Total76480

Merged error: 0.0b

Counts
80 → 4

localize19.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (+ (pow a 4) (+ (pow b 4) (* 2 (* (pow a 2) (pow b 2))))) (* 4.0 (* (* b b) (- 1.0 (* 3.0 a)))))
0.0b
(- 1.0 (* 3.0 a))
0.6b
(* (* b b) (- 1.0 (* 3.0 a)))
1.6b
(* (pow a 2) (pow b 2))

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
26×add-sqr-sqrt
21×add-exp-log
17×unswap-sqr
15×add-log-exp
14×unpow-prod-down
12×prod-exp
11×associate-*r* add-cbrt-cube
10×distribute-rgt-in distribute-lft-in associate-*r/ unpow2 sqr-pow
pow1 add-cube-cbrt *-un-lft-identity associate-*l*
associate-+r+
sub-neg
pow-to-exp pow-exp sum-log
flip3-- pow-prod-down frac-add flip-- cbrt-unprod
flip3-+ flip-+
*-commutative
+-commutative associate-+l+ diff-log
Counts
4 → 114
Calls
4 calls:
13.0ms
(+ (+ (pow a 4) (+ (pow b 4) (* 2 (* (pow a 2) (pow b 2))))) (* 4.0 (* (* b b) (- 1.0 (* 3.0 a)))))
3.0ms
(- 1.0 (* 3.0 a))
7.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
8.0ms
(* (pow a 2) (pow b 2))

series271.0ms

Counts
4 → 12
Calls
4 calls:
118.0ms
(+ (+ (pow a 4) (+ (pow b 4) (* 2 (* (pow a 2) (pow b 2))))) (* 4.0 (* (* b b) (- 1.0 (* 3.0 a)))))
43.0ms
(- 1.0 (* 3.0 a))
67.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
42.0ms
(* (pow a 2) (pow b 2))

simplify104.0ms

Algorithm
egg-herbie
Counts
126 → 126
Iterations

Useful iterations: 2 (86.0ms)

IterNodesCost
06511149
131791030
250011026

prune1.1s

Filtered
126 candidates to 73 candidates (42.1%)
Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New1260126
Fresh011
Picked011
Done022
Total1264130

Merged error: 0.0b

Counts
130 → 4

regimes145.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
02916
12916

end0.0ms

sample1.8s

Algorithm
intervals
Results
1.3s20249×body80valid

Profiling

Loading profile data...