Details

Time bar (total: 3.7s)

sample67.0ms

Algorithm
intervals
Results
52.0ms639×body80valid

simplify53.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 2 (4.0ms)

IterNodesCost
0268
1518
2887
31537
43577
515727
650027

prune5.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.2b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (* b b)))
0.0b
(* 4.0 (* b b))
0.3b
(pow (+ (* a a) (* b b)) 2.0)

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-sqr-sqrt
add-cube-cbrt *-un-lft-identity add-cbrt-cube
fma-def
unpow-prod-down
add-log-exp
expm1-log1p-u pow-unpow associate-*l* pow-prod-down prod-exp cbrt-unprod log1p-expm1-u
sqr-pow
+-commutative pow-to-exp pow-pow flip3-+ associate-*r* pow-exp sum-log *-commutative flip-+ unswap-sqr
Counts
3 → 60
Calls
3 calls:
26.0ms
(+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (* b b)))
6.0ms
(* 4.0 (* b b))
4.0ms
(pow (+ (* a a) (* b b)) 2.0)

series207.0ms

Counts
3 → 9
Calls
3 calls:
70.0ms
(+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (* b b)))
26.0ms
(* 4.0 (* b b))
111.0ms
(pow (+ (* a a) (* b b)) 2.0)

simplify117.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (112.0ms)

IterNodesCost
0261370
11003336
23908326
35001322

prune180.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma b b (* 2 (pow a 2)))
0.0b
(* 2 (pow a 2))
0.1b
(fma b (* b (fma b b (* 2 (pow a 2)))) (pow a 4))
0.2b
(* b (fma b b (* 2 (pow a 2))))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
17×add-sqr-sqrt
11×add-exp-log associate-*r*
add-cube-cbrt *-un-lft-identity
add-cbrt-cube
pow1 associate-*l*
unswap-sqr
expm1-log1p-u unpow-prod-down prod-exp fma-udef log1p-expm1-u add-log-exp
*-commutative cbrt-unprod unpow2 sqr-pow
distribute-rgt-in pow-to-exp distribute-lft-in pow-prod-down pow-exp
Counts
4 → 71
Calls
4 calls:
0.0ms
(fma b b (* 2 (pow a 2)))
9.0ms
(* 2 (pow a 2))
0.0ms
(fma b (* b (fma b b (* 2 (pow a 2)))) (pow a 4))
3.0ms
(* b (fma b b (* 2 (pow a 2))))

series215.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(fma b b (* 2 (pow a 2)))
25.0ms
(* 2 (pow a 2))
83.0ms
(fma b (* b (fma b b (* 2 (pow a 2)))) (pow a 4))
59.0ms
(* b (fma b b (* 2 (pow a 2))))

simplify41.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 1 (8.0ms)

IterNodesCost
0234419
11028364
25001364

prune238.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (fma (* 2.0 (pow a 2)) (pow b 2) (pow b 4)) (* 4.0 (* b b)))
0.0b
(* 2.0 (pow a 2))
0.0b
(* 4.0 (* b b))
1.8b
(fma (* 2.0 (pow a 2)) (pow b 2) (pow b 4))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
14×add-exp-log
11×add-cbrt-cube
pow1 add-cube-cbrt *-un-lft-identity associate-*r*
associate-*l* prod-exp add-log-exp
unswap-sqr
expm1-log1p-u unpow-prod-down cbrt-unprod log1p-expm1-u
fma-def pow-prod-down
*-commutative fma-udef unpow2 sqr-pow
+-commutative pow-to-exp associate-+l+ flip3-+ pow-exp sum-log flip-+
Counts
4 → 77
Calls
4 calls:
2.0ms
(+ (fma (* 2.0 (pow a 2)) (pow b 2) (pow b 4)) (* 4.0 (* b b)))
5.0ms
(* 2.0 (pow a 2))
6.0ms
(* 4.0 (* b b))
0.0ms
(fma (* 2.0 (pow a 2)) (pow b 2) (pow b 4))

series197.0ms

Counts
4 → 12
Calls
4 calls:
68.0ms
(+ (fma (* 2.0 (pow a 2)) (pow b 2) (pow b 4)) (* 4.0 (* b b)))
26.0ms
(* 2.0 (pow a 2))
26.0ms
(* 4.0 (* b b))
77.0ms
(fma (* 2.0 (pow a 2)) (pow b 2) (pow b 4))

simplify42.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0291467
11199418
25002407

prune257.0ms

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0b

regimes28.0ms

Accuracy

0% (0.9b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0147
1147

end0.0ms

sample1.9s

Algorithm
intervals
Results
1.6s20597×body80valid