
Time bar (total: 3.7s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 0 |
| 100% | 99.9% | 0% | 0.1% | 0% | 0% | 0% | 1 |
Compiled 10 to 6 computations (40% saved)
ival-add: 0.0ms (0% of total)ival-mult: 0.0ms (0% of total)const: 0.0ms (0% of total)backward-pass: 0.0ms (0% of total)| 848.0ms | 8254× | 0 | valid |
| 0.0ms | 2× | 1 | valid |
ival-mult: 250.0ms (72.2% of total)ival-add: 86.0ms (24.8% of total)const: 7.0ms (2% of total)backward-pass: 3.0ms (0.9% of total)| 2× | egg-herbie |
| 1960× | sum5-define |
| 1780× | fnmadd-define |
| 1536× | sum4-define |
| 1368× | fmsub-define |
| 1344× | fnmsub-define |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 18 | 44 |
| 1 | 69 | 37 |
| 2 | 218 | 36 |
| 3 | 841 | 36 |
| 4 | 3279 | 36 |
| 5 | 6343 | 36 |
| 6 | 6948 | 36 |
| 7 | 6964 | 36 |
| 0 | 5 | 6 |
| 1 | 12 | 6 |
| 2 | 26 | 6 |
| 3 | 39 | 6 |
| 4 | 50 | 6 |
| 5 | 67 | 6 |
| 6 | 93 | 6 |
| 7 | 115 | 6 |
| 8 | 122 | 6 |
| 9 | 123 | 6 |
| 0 | 123 | 6 |
| 1× | iter limit |
| 1× | saturated |
| 1× | saturated |
| Inputs |
|---|
(+ (+ (* x y) x) y) |
| Outputs |
|---|
(+ (+ (* x y) x) y) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
| Inputs |
|---|
(+ (+ (* x y) x) y) |
(+ (+ (* (neg x) y) (neg x)) y) |
(+ (+ (* x (neg y)) x) (neg y)) |
(neg (+ (+ (* (neg x) y) (neg x)) y)) |
(neg (+ (+ (* x (neg y)) x) (neg y))) |
(+ (+ (* y x) y) x) |
| Outputs |
|---|
(+ (+ (* x y) x) y) |
(+ x (fma x y y)) |
(+ (+ (* (neg x) y) (neg x)) y) |
(+ y (fnmsub x y x)) |
(+ (+ (* x (neg y)) x) (neg y)) |
(+ x (fnmsub x y y)) |
(neg (+ (+ (* (neg x) y) (neg x)) y)) |
(+ x (fmsub x y y)) |
(neg (+ (+ (* x (neg y)) x) (neg y))) |
(+ y (fmsub x y x)) |
(+ (+ (* y x) y) x) |
(+ x (fma x y y)) |
(sort x y)
| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 0 | 0 | - | 0 | - | (*.f64 x y) |
| 0 | 0 | - | 0 | - | x |
| 0 | 0 | - | 0 | - | (+.f64 (+.f64 (*.f64 x y) x) y) |
| 0 | 0 | - | 0 | - | (+.f64 (*.f64 x y) x) |
| 0 | 0 | - | 0 | - | y |
| 140.0ms | 512× | 0 | valid |
Compiled 49 to 17 computations (65.3% saved)
ival-add: 5.0ms (47.4% of total)ival-mult: 5.0ms (47.4% of total)const: 0.0ms (0% of total)backward-pass: 0.0ms (0% of total)Compiled 9 to 6 computations (33.3% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
Compiled 9 to 6 computations (33.3% saved)
| 1× | egg-herbie |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | cost-diff | 0 | (+.f64 x #s(literal 1 binary64)) |
| ✓ | cost-diff | 0 | (*.f64 y (+.f64 x #s(literal 1 binary64))) |
| ✓ | cost-diff | 0 | (+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
| 92× | fma-define |
| 76× | fma-lowering-fma.f32 |
| 76× | fma-lowering-fma.f64 |
| 48× | *-lowering-*.f32 |
| 48× | *-lowering-*.f64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 18 |
| 1 | 17 | 16 |
| 2 | 37 | 16 |
| 3 | 66 | 16 |
| 4 | 95 | 16 |
| 5 | 110 | 16 |
| 6 | 117 | 16 |
| 7 | 118 | 16 |
| 0 | 118 | 16 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(+ x (* y (+ x 1))) |
x |
(* y (+ x 1)) |
y |
(+ x 1) |
1 |
| Outputs |
|---|
(+ x (* y (+ x 1))) |
(+.f64 y (*.f64 x (+.f64 y #s(literal 1 binary64)))) |
x |
(* y (+ x 1)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
y |
(+ x 1) |
(+.f64 x #s(literal 1 binary64)) |
1 |
#s(literal 1 binary64) |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | accuracy | 100.0% | (+.f64 x #s(literal 1 binary64)) |
| ✓ | accuracy | 100.0% | (*.f64 y (+.f64 x #s(literal 1 binary64))) |
| ✓ | accuracy | 100.0% | (+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
| 33.0ms | 256× | 0 | valid |
Compiled 21 to 7 computations (66.7% saved)
ival-add: 3.0ms (55.8% of total)ival-mult: 2.0ms (37.2% of total)const: 0.0ms (0% of total)backward-pass: 0.0ms (0% of total)| Inputs |
|---|
#<alt (+ x (* y (+ x 1)))> |
#<alt (* y (+ x 1))> |
#<alt (+ x 1)> |
| Outputs |
|---|
#<alt y> |
#<alt (+ y (* x (+ 1 y)))> |
#<alt (+ y (* x (+ 1 y)))> |
#<alt (+ y (* x (+ 1 y)))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 (+ y (/ y x))))> |
#<alt (* x (+ 1 (+ y (/ y x))))> |
#<alt (* x (+ 1 (+ y (/ y x))))> |
#<alt (* -1 (* x (- (* -1 y) 1)))> |
#<alt (* -1 (* x (- (+ (* -1 y) (* -1 (/ y x))) 1)))> |
#<alt (* -1 (* x (- (+ (* -1 y) (* -1 (/ y x))) 1)))> |
#<alt (* -1 (* x (- (+ (* -1 y) (* -1 (/ y x))) 1)))> |
#<alt x> |
#<alt (+ x (* y (+ 1 x)))> |
#<alt (+ x (* y (+ 1 x)))> |
#<alt (+ x (* y (+ 1 x)))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 (+ x (/ x y))))> |
#<alt (* y (+ 1 (+ x (/ x y))))> |
#<alt (* y (+ 1 (+ x (/ x y))))> |
#<alt (* y (+ 1 x))> |
#<alt (* -1 (* y (+ (* -1 (+ 1 x)) (* -1 (/ x y)))))> |
#<alt (* -1 (* y (+ (* -1 (+ 1 x)) (* -1 (/ x y)))))> |
#<alt (* -1 (* y (+ (* -1 (+ 1 x)) (* -1 (/ x y)))))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt y> |
#<alt (+ y (* x y))> |
#<alt (+ y (* x y))> |
#<alt (+ y (* x y))> |
#<alt (* x y)> |
#<alt (* x (+ y (/ y x)))> |
#<alt (* x (+ y (/ y x)))> |
#<alt (* x (+ y (/ y x)))> |
#<alt (* x y)> |
#<alt (* -1 (* x (+ (* -1 y) (* -1 (/ y x)))))> |
#<alt (* -1 (* x (+ (* -1 y) (* -1 (/ y x)))))> |
#<alt (* -1 (* x (+ (* -1 y) (* -1 (/ y x)))))> |
#<alt 1> |
#<alt (+ 1 x)> |
#<alt (+ 1 x)> |
#<alt (+ 1 x)> |
#<alt x> |
#<alt (* x (+ 1 (/ 1 x)))> |
#<alt (* x (+ 1 (/ 1 x)))> |
#<alt (* x (+ 1 (/ 1 x)))> |
#<alt x> |
#<alt (* x (+ 1 (/ 1 x)))> |
#<alt (* x (+ 1 (/ 1 x)))> |
#<alt (* x (+ 1 (/ 1 x)))> |
15 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | y | @ | -inf | (+ x (* y (+ x 1))) |
| 0.0ms | x | @ | -inf | (+ x (* y (+ x 1))) |
| 0.0ms | x | @ | inf | (+ x (* y (+ x 1))) |
| 0.0ms | y | @ | inf | (+ x (* y (+ x 1))) |
| 0.0ms | x | @ | 0 | (+ x (* y (+ x 1))) |
| 1× | batch-egg-rewrite |
| 92× | fma-define |
| 76× | fma-lowering-fma.f32 |
| 76× | fma-lowering-fma.f64 |
| 48× | *-lowering-*.f32 |
| 48× | *-lowering-*.f64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 15 |
| 1 | 17 | 13 |
| 2 | 37 | 13 |
| 3 | 66 | 13 |
| 4 | 95 | 13 |
| 5 | 110 | 13 |
| 6 | 117 | 13 |
| 7 | 118 | 13 |
| 0 | 118 | 13 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(+ x (* y (+ x 1))) |
(* y (+ x 1)) |
(+ x 1) |
| Outputs |
|---|
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(+.f64 y (*.f64 x (+.f64 y #s(literal 1 binary64)))) |
(+.f64 (*.f64 y (+.f64 x #s(literal 1 binary64))) x) |
(+.f64 (*.f64 x y) (+.f64 x y)) |
(+.f64 (*.f64 x (+.f64 y #s(literal 1 binary64))) y) |
(+.f64 (+.f64 x y) (*.f64 x y)) |
(fma.f64 x y (+.f64 x y)) |
(fma.f64 x #s(literal 1 binary64) (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(fma.f64 x (+.f64 y #s(literal 1 binary64)) y) |
(fma.f64 y x (+.f64 x y)) |
(fma.f64 y #s(literal 1 binary64) (*.f64 x (+.f64 y #s(literal 1 binary64)))) |
(fma.f64 y (+.f64 x #s(literal 1 binary64)) x) |
(fma.f64 #s(literal 1 binary64) x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(fma.f64 #s(literal 1 binary64) y (*.f64 x (+.f64 y #s(literal 1 binary64)))) |
(fma.f64 #s(literal 1 binary64) (*.f64 y (+.f64 x #s(literal 1 binary64))) x) |
(fma.f64 #s(literal 1 binary64) (*.f64 x y) (+.f64 x y)) |
(fma.f64 #s(literal 1 binary64) (*.f64 x (+.f64 y #s(literal 1 binary64))) y) |
(fma.f64 #s(literal 1 binary64) (+.f64 x y) (*.f64 x y)) |
(fma.f64 (+.f64 x #s(literal 1 binary64)) y x) |
(fma.f64 (*.f64 y (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64) x) |
(fma.f64 (*.f64 x y) #s(literal 1 binary64) (+.f64 x y)) |
(fma.f64 (*.f64 x (+.f64 y #s(literal 1 binary64))) #s(literal 1 binary64) y) |
(fma.f64 (+.f64 x y) #s(literal 1 binary64) (*.f64 x y)) |
(fma.f64 (+.f64 y #s(literal 1 binary64)) x y) |
(*.f64 #s(literal 1 binary64) (+.f64 y (*.f64 x (+.f64 y #s(literal 1 binary64))))) |
(*.f64 (+.f64 y (*.f64 x (+.f64 y #s(literal 1 binary64)))) #s(literal 1 binary64)) |
(+.f64 y (*.f64 x y)) |
(+.f64 (*.f64 x y) y) |
(fma.f64 x y y) |
(fma.f64 y x y) |
(fma.f64 y #s(literal 1 binary64) (*.f64 x y)) |
(fma.f64 #s(literal 1 binary64) y (*.f64 x y)) |
(fma.f64 #s(literal 1 binary64) (*.f64 x y) y) |
(fma.f64 (*.f64 x y) #s(literal 1 binary64) y) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(*.f64 #s(literal 1 binary64) (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(*.f64 (+.f64 x #s(literal 1 binary64)) y) |
(*.f64 (*.f64 y (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64)) |
(+.f64 x #s(literal 1 binary64)) |
(+.f64 #s(literal 1 binary64) x) |
(fma.f64 x #s(literal 1 binary64) #s(literal 1 binary64)) |
(fma.f64 #s(literal 1 binary64) x #s(literal 1 binary64)) |
(*.f64 #s(literal 1 binary64) (+.f64 x #s(literal 1 binary64))) |
(*.f64 (+.f64 x #s(literal 1 binary64)) #s(literal 1 binary64)) |
| 1× | egg-herbie |
| 2004× | fmsub-define |
| 1956× | fnmsub-define |
| 1788× | fmm-def |
| 1602× | sum4-define |
| 1562× | fma-lowering-fma.f32 |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 40 | 290 |
| 1 | 147 | 249 |
| 2 | 447 | 247 |
| 3 | 1430 | 247 |
| 4 | 4275 | 247 |
| 0 | 8035 | 247 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
y |
(+ y (* x (+ 1 y))) |
(+ y (* x (+ 1 y))) |
(+ y (* x (+ 1 y))) |
(* x (+ 1 y)) |
(* x (+ 1 (+ y (/ y x)))) |
(* x (+ 1 (+ y (/ y x)))) |
(* x (+ 1 (+ y (/ y x)))) |
(* -1 (* x (- (* -1 y) 1))) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ y x))) 1))) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ y x))) 1))) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ y x))) 1))) |
x |
(+ x (* y (+ 1 x))) |
(+ x (* y (+ 1 x))) |
(+ x (* y (+ 1 x))) |
(* y (+ 1 x)) |
(* y (+ 1 (+ x (/ x y)))) |
(* y (+ 1 (+ x (/ x y)))) |
(* y (+ 1 (+ x (/ x y)))) |
(* y (+ 1 x)) |
(* -1 (* y (+ (* -1 (+ 1 x)) (* -1 (/ x y))))) |
(* -1 (* y (+ (* -1 (+ 1 x)) (* -1 (/ x y))))) |
(* -1 (* y (+ (* -1 (+ 1 x)) (* -1 (/ x y))))) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
y |
(+ y (* x y)) |
(+ y (* x y)) |
(+ y (* x y)) |
(* x y) |
(* x (+ y (/ y x))) |
(* x (+ y (/ y x))) |
(* x (+ y (/ y x))) |
(* x y) |
(* -1 (* x (+ (* -1 y) (* -1 (/ y x))))) |
(* -1 (* x (+ (* -1 y) (* -1 (/ y x))))) |
(* -1 (* x (+ (* -1 y) (* -1 (/ y x))))) |
1 |
(+ 1 x) |
(+ 1 x) |
(+ 1 x) |
x |
(* x (+ 1 (/ 1 x))) |
(* x (+ 1 (/ 1 x))) |
(* x (+ 1 (/ 1 x))) |
x |
(* x (+ 1 (/ 1 x))) |
(* x (+ 1 (/ 1 x))) |
(* x (+ 1 (/ 1 x))) |
| Outputs |
|---|
y |
(+ y (* x (+ 1 y))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(+ y (* x (+ 1 y))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(+ y (* x (+ 1 y))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 (+ y (/ y x)))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(* x (+ 1 (+ y (/ y x)))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(* x (+ 1 (+ y (/ y x)))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(* -1 (* x (- (* -1 y) 1))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ y x))) 1))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ y x))) 1))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ y x))) 1))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
x |
(+ x (* y (+ 1 x))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(+ x (* y (+ 1 x))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(+ x (* y (+ 1 x))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 (+ x (/ x y)))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(* y (+ 1 (+ x (/ x y)))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(* y (+ 1 (+ x (/ x y)))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* -1 (* y (+ (* -1 (+ 1 x)) (* -1 (/ x y))))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(* -1 (* y (+ (* -1 (+ 1 x)) (* -1 (/ x y))))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(* -1 (* y (+ (* -1 (+ 1 x)) (* -1 (/ x y))))) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
y |
(+ y (* x y)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(+ y (* x y)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(+ y (* x y)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* x y) |
(*.f64 y x) |
(* x (+ y (/ y x))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* x (+ y (/ y x))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* x (+ y (/ y x))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* x y) |
(*.f64 y x) |
(* -1 (* x (+ (* -1 y) (* -1 (/ y x))))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* -1 (* x (+ (* -1 y) (* -1 (/ y x))))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* -1 (* x (+ (* -1 y) (* -1 (/ y x))))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
1 |
#s(literal 1 binary64) |
(+ 1 x) |
(+.f64 x #s(literal 1 binary64)) |
(+ 1 x) |
(+.f64 x #s(literal 1 binary64)) |
(+ 1 x) |
(+.f64 x #s(literal 1 binary64)) |
x |
(* x (+ 1 (/ 1 x))) |
(+.f64 x #s(literal 1 binary64)) |
(* x (+ 1 (/ 1 x))) |
(+.f64 x #s(literal 1 binary64)) |
(* x (+ 1 (/ 1 x))) |
(+.f64 x #s(literal 1 binary64)) |
x |
(* x (+ 1 (/ 1 x))) |
(+.f64 x #s(literal 1 binary64)) |
(* x (+ 1 (/ 1 x))) |
(+.f64 x #s(literal 1 binary64)) |
(* x (+ 1 (/ 1 x))) |
(+.f64 x #s(literal 1 binary64)) |
Compiled 718 to 76 computations (89.4% saved)
6 alts after pruning (6 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 98 | 6 | 104 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 99 | 6 | 105 |
| Status | Accuracy | Program |
|---|---|---|
| 65.6% | (+.f64 x (*.f64 y x)) | |
| ▶ | 72.5% | (+.f64 x y) |
| ▶ | 61.9% | (*.f64 y (+.f64 x #s(literal 1 binary64))) |
| ▶ | 65.6% | (*.f64 x (+.f64 y #s(literal 1 binary64))) |
| ▶ | 35.5% | y |
| ▶ | 38.9% | x |
Compiled 64 to 42 computations (34.4% saved)
| 1× | egg-herbie |
Found 5 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | cost-diff | 0 | (+.f64 x #s(literal 1 binary64)) |
| ✓ | cost-diff | 0 | (*.f64 y (+.f64 x #s(literal 1 binary64))) |
| ✓ | cost-diff | 0 | (+.f64 y #s(literal 1 binary64)) |
| ✓ | cost-diff | 0 | (*.f64 x (+.f64 y #s(literal 1 binary64))) |
| ✓ | cost-diff | 0 | (+.f64 x y) |
| 44× | *-lowering-*.f32 |
| 44× | *-lowering-*.f64 |
| 40× | fma-lowering-fma.f32 |
| 40× | fma-define |
| 40× | fma-lowering-fma.f64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 29 |
| 1 | 25 | 27 |
| 2 | 41 | 27 |
| 3 | 67 | 27 |
| 4 | 72 | 27 |
| 0 | 72 | 27 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(+ x y) |
x |
y |
x |
y |
(* x (+ y 1)) |
x |
(+ y 1) |
y |
1 |
(* y (+ x 1)) |
y |
(+ x 1) |
x |
1 |
| Outputs |
|---|
(+ x y) |
(+.f64 x y) |
x |
y |
x |
y |
(* x (+ y 1)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
x |
(+ y 1) |
(+.f64 y #s(literal 1 binary64)) |
y |
1 |
#s(literal 1 binary64) |
(* y (+ x 1)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
y |
(+ x 1) |
(+.f64 x #s(literal 1 binary64)) |
x |
1 |
#s(literal 1 binary64) |
Found 5 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | accuracy | 100.0% | (+.f64 x #s(literal 1 binary64)) |
| ✓ | accuracy | 100.0% | (*.f64 y (+.f64 x #s(literal 1 binary64))) |
| ✓ | accuracy | 100.0% | (+.f64 y #s(literal 1 binary64)) |
| ✓ | accuracy | 100.0% | (*.f64 x (+.f64 y #s(literal 1 binary64))) |
| ✓ | accuracy | 100.0% | (+.f64 x y) |
| 211.0ms | 256× | 0 | valid |
Compiled 32 to 9 computations (71.9% saved)
ival-mult: 64.0ms (92.4% of total)ival-add: 4.0ms (5.8% of total)const: 0.0ms (0% of total)backward-pass: 0.0ms (0% of total)| Inputs |
|---|
#<alt (+ x y)> |
#<alt (* x (+ y 1))> |
#<alt (+ y 1)> |
#<alt (* y (+ x 1))> |
#<alt (+ x 1)> |
| Outputs |
|---|
#<alt y> |
#<alt (+ x y)> |
#<alt (+ x y)> |
#<alt (+ x y)> |
#<alt x> |
#<alt (* x (+ 1 (/ y x)))> |
#<alt (* x (+ 1 (/ y x)))> |
#<alt (* x (+ 1 (/ y x)))> |
#<alt x> |
#<alt (* -1 (* x (- (* -1 (/ y x)) 1)))> |
#<alt (* -1 (* x (- (* -1 (/ y x)) 1)))> |
#<alt (* -1 (* x (- (* -1 (/ y x)) 1)))> |
#<alt x> |
#<alt (+ x y)> |
#<alt (+ x y)> |
#<alt (+ x y)> |
#<alt y> |
#<alt (* y (+ 1 (/ x y)))> |
#<alt (* y (+ 1 (/ x y)))> |
#<alt (* y (+ 1 (/ x y)))> |
#<alt y> |
#<alt (* -1 (* y (- (* -1 (/ x y)) 1)))> |
#<alt (* -1 (* y (- (* -1 (/ x y)) 1)))> |
#<alt (* -1 (* y (- (* -1 (/ x y)) 1)))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt x> |
#<alt (+ x (* x y))> |
#<alt (+ x (* x y))> |
#<alt (+ x (* x y))> |
#<alt (* x y)> |
#<alt (* y (+ x (/ x y)))> |
#<alt (* y (+ x (/ x y)))> |
#<alt (* y (+ x (/ x y)))> |
#<alt (* x y)> |
#<alt (* -1 (* y (+ (* -1 x) (* -1 (/ x y)))))> |
#<alt (* -1 (* y (+ (* -1 x) (* -1 (/ x y)))))> |
#<alt (* -1 (* y (+ (* -1 x) (* -1 (/ x y)))))> |
#<alt 1> |
#<alt (+ 1 y)> |
#<alt (+ 1 y)> |
#<alt (+ 1 y)> |
#<alt y> |
#<alt (* y (+ 1 (/ 1 y)))> |
#<alt (* y (+ 1 (/ 1 y)))> |
#<alt (* y (+ 1 (/ 1 y)))> |
#<alt y> |
#<alt (* y (+ 1 (/ 1 y)))> |
#<alt (* y (+ 1 (/ 1 y)))> |
#<alt (* y (+ 1 (/ 1 y)))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt (* y (+ 1 x))> |
#<alt y> |
#<alt (+ y (* x y))> |
#<alt (+ y (* x y))> |
#<alt (+ y (* x y))> |
#<alt (* x y)> |
#<alt (* x (+ y (/ y x)))> |
#<alt (* x (+ y (/ y x)))> |
#<alt (* x (+ y (/ y x)))> |
#<alt (* x y)> |
#<alt (* -1 (* x (+ (* -1 y) (* -1 (/ y x)))))> |
#<alt (* -1 (* x (+ (* -1 y) (* -1 (/ y x)))))> |
#<alt (* -1 (* x (+ (* -1 y) (* -1 (/ y x)))))> |
#<alt 1> |
#<alt (+ 1 x)> |
#<alt (+ 1 x)> |
#<alt (+ 1 x)> |
#<alt x> |
#<alt (* x (+ 1 (/ 1 x)))> |
#<alt (* x (+ 1 (/ 1 x)))> |
#<alt (* x (+ 1 (/ 1 x)))> |
#<alt x> |
#<alt (* x (+ 1 (/ 1 x)))> |
#<alt (* x (+ 1 (/ 1 x)))> |
#<alt (* x (+ 1 (/ 1 x)))> |
24 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | 0 | (* x (+ y 1)) |
| 0.0ms | x | @ | inf | (* x (+ y 1)) |
| 0.0ms | x | @ | -inf | (* x (+ y 1)) |
| 0.0ms | y | @ | -inf | (* x (+ y 1)) |
| 0.0ms | y | @ | 0 | (* x (+ y 1)) |
| 1× | batch-egg-rewrite |
| 44× | *-lowering-*.f32 |
| 44× | *-lowering-*.f64 |
| 40× | fma-lowering-fma.f32 |
| 40× | fma-define |
| 40× | fma-lowering-fma.f64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 19 |
| 1 | 25 | 17 |
| 2 | 41 | 17 |
| 3 | 67 | 17 |
| 4 | 72 | 17 |
| 0 | 72 | 17 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(+ x y) |
(* x (+ y 1)) |
(+ y 1) |
(* y (+ x 1)) |
(+ x 1) |
| Outputs |
|---|
(+.f64 x y) |
(+.f64 y x) |
(fma.f64 x #s(literal 1 binary64) y) |
(fma.f64 y #s(literal 1 binary64) x) |
(fma.f64 #s(literal 1 binary64) x y) |
(fma.f64 #s(literal 1 binary64) y x) |
(*.f64 (+.f64 x y) #s(literal 1 binary64)) |
(*.f64 #s(literal 1 binary64) (+.f64 x y)) |
(+.f64 x (*.f64 x y)) |
(+.f64 (*.f64 x y) x) |
(fma.f64 x y x) |
(fma.f64 x #s(literal 1 binary64) (*.f64 x y)) |
(fma.f64 y x x) |
(fma.f64 #s(literal 1 binary64) x (*.f64 x y)) |
(fma.f64 #s(literal 1 binary64) (*.f64 x y) x) |
(fma.f64 (*.f64 x y) #s(literal 1 binary64) x) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(*.f64 #s(literal 1 binary64) (*.f64 x (+.f64 y #s(literal 1 binary64)))) |
(*.f64 (+.f64 y #s(literal 1 binary64)) x) |
(*.f64 (*.f64 x (+.f64 y #s(literal 1 binary64))) #s(literal 1 binary64)) |
(+.f64 y #s(literal 1 binary64)) |
(+.f64 #s(literal 1 binary64) y) |
(fma.f64 y #s(literal 1 binary64) #s(literal 1 binary64)) |
(fma.f64 #s(literal 1 binary64) y #s(literal 1 binary64)) |
(*.f64 #s(literal 1 binary64) (+.f64 y #s(literal 1 binary64))) |
(*.f64 (+.f64 y #s(literal 1 binary64)) #s(literal 1 binary64)) |
(+.f64 y (*.f64 x y)) |
(+.f64 (*.f64 x y) y) |
(fma.f64 x y y) |
(fma.f64 y x y) |
(fma.f64 y #s(literal 1 binary64) (*.f64 x y)) |
(fma.f64 #s(literal 1 binary64) y (*.f64 x y)) |
(fma.f64 #s(literal 1 binary64) (*.f64 x y) y) |
(fma.f64 (*.f64 x y) #s(literal 1 binary64) y) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(*.f64 #s(literal 1 binary64) (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(*.f64 (+.f64 x #s(literal 1 binary64)) y) |
(*.f64 (*.f64 y (+.f64 x #s(literal 1 binary64))) #s(literal 1 binary64)) |
(+.f64 x #s(literal 1 binary64)) |
(+.f64 #s(literal 1 binary64) x) |
(fma.f64 x #s(literal 1 binary64) #s(literal 1 binary64)) |
(fma.f64 #s(literal 1 binary64) x #s(literal 1 binary64)) |
(*.f64 #s(literal 1 binary64) (+.f64 x #s(literal 1 binary64))) |
(*.f64 (+.f64 x #s(literal 1 binary64)) #s(literal 1 binary64)) |
| 1× | egg-herbie |
| 2422× | fnmadd-define |
| 2028× | fnmsub-define |
| 1776× | fma-lowering-fma.f32 |
| 1776× | fma-lowering-fma.f64 |
| 1654× | fmm-def |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 44 | 344 |
| 1 | 152 | 302 |
| 2 | 367 | 302 |
| 3 | 971 | 302 |
| 4 | 3609 | 302 |
| 5 | 6907 | 302 |
| 0 | 8307 | 302 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
y |
(+ x y) |
(+ x y) |
(+ x y) |
x |
(* x (+ 1 (/ y x))) |
(* x (+ 1 (/ y x))) |
(* x (+ 1 (/ y x))) |
x |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
x |
(+ x y) |
(+ x y) |
(+ x y) |
y |
(* y (+ 1 (/ x y))) |
(* y (+ 1 (/ x y))) |
(* y (+ 1 (/ x y))) |
y |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
x |
(+ x (* x y)) |
(+ x (* x y)) |
(+ x (* x y)) |
(* x y) |
(* y (+ x (/ x y))) |
(* y (+ x (/ x y))) |
(* y (+ x (/ x y))) |
(* x y) |
(* -1 (* y (+ (* -1 x) (* -1 (/ x y))))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ x y))))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ x y))))) |
1 |
(+ 1 y) |
(+ 1 y) |
(+ 1 y) |
y |
(* y (+ 1 (/ 1 y))) |
(* y (+ 1 (/ 1 y))) |
(* y (+ 1 (/ 1 y))) |
y |
(* y (+ 1 (/ 1 y))) |
(* y (+ 1 (/ 1 y))) |
(* y (+ 1 (/ 1 y))) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
(* y (+ 1 x)) |
y |
(+ y (* x y)) |
(+ y (* x y)) |
(+ y (* x y)) |
(* x y) |
(* x (+ y (/ y x))) |
(* x (+ y (/ y x))) |
(* x (+ y (/ y x))) |
(* x y) |
(* -1 (* x (+ (* -1 y) (* -1 (/ y x))))) |
(* -1 (* x (+ (* -1 y) (* -1 (/ y x))))) |
(* -1 (* x (+ (* -1 y) (* -1 (/ y x))))) |
1 |
(+ 1 x) |
(+ 1 x) |
(+ 1 x) |
x |
(* x (+ 1 (/ 1 x))) |
(* x (+ 1 (/ 1 x))) |
(* x (+ 1 (/ 1 x))) |
x |
(* x (+ 1 (/ 1 x))) |
(* x (+ 1 (/ 1 x))) |
(* x (+ 1 (/ 1 x))) |
| Outputs |
|---|
y |
(+ x y) |
(+.f64 y x) |
(+ x y) |
(+.f64 y x) |
(+ x y) |
(+.f64 y x) |
x |
(* x (+ 1 (/ y x))) |
(+.f64 y x) |
(* x (+ 1 (/ y x))) |
(+.f64 y x) |
(* x (+ 1 (/ y x))) |
(+.f64 y x) |
x |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(+.f64 y x) |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(+.f64 y x) |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(+.f64 y x) |
x |
(+ x y) |
(+.f64 y x) |
(+ x y) |
(+.f64 y x) |
(+ x y) |
(+.f64 y x) |
y |
(* y (+ 1 (/ x y))) |
(+.f64 y x) |
(* y (+ 1 (/ x y))) |
(+.f64 y x) |
(* y (+ 1 (/ x y))) |
(+.f64 y x) |
y |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
(+.f64 y x) |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
(+.f64 y x) |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
(+.f64 y x) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
x |
(+ x (* x y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(+ x (* x y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(+ x (* x y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x y) |
(*.f64 y x) |
(* y (+ x (/ x y))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* y (+ x (/ x y))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* y (+ x (/ x y))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x y) |
(*.f64 y x) |
(* -1 (* y (+ (* -1 x) (* -1 (/ x y))))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ x y))))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ x y))))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
1 |
#s(literal 1 binary64) |
(+ 1 y) |
(+.f64 y #s(literal 1 binary64)) |
(+ 1 y) |
(+.f64 y #s(literal 1 binary64)) |
(+ 1 y) |
(+.f64 y #s(literal 1 binary64)) |
y |
(* y (+ 1 (/ 1 y))) |
(+.f64 y #s(literal 1 binary64)) |
(* y (+ 1 (/ 1 y))) |
(+.f64 y #s(literal 1 binary64)) |
(* y (+ 1 (/ 1 y))) |
(+.f64 y #s(literal 1 binary64)) |
y |
(* y (+ 1 (/ 1 y))) |
(+.f64 y #s(literal 1 binary64)) |
(* y (+ 1 (/ 1 y))) |
(+.f64 y #s(literal 1 binary64)) |
(* y (+ 1 (/ 1 y))) |
(+.f64 y #s(literal 1 binary64)) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* y (+ 1 x)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
y |
(+ y (* x y)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(+ y (* x y)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(+ y (* x y)) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* x y) |
(*.f64 y x) |
(* x (+ y (/ y x))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* x (+ y (/ y x))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* x (+ y (/ y x))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* x y) |
(*.f64 y x) |
(* -1 (* x (+ (* -1 y) (* -1 (/ y x))))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* -1 (* x (+ (* -1 y) (* -1 (/ y x))))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(* -1 (* x (+ (* -1 y) (* -1 (/ y x))))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
1 |
#s(literal 1 binary64) |
(+ 1 x) |
(+.f64 x #s(literal 1 binary64)) |
(+ 1 x) |
(+.f64 x #s(literal 1 binary64)) |
(+ 1 x) |
(+.f64 x #s(literal 1 binary64)) |
x |
(* x (+ 1 (/ 1 x))) |
(+.f64 x #s(literal 1 binary64)) |
(* x (+ 1 (/ 1 x))) |
(+.f64 x #s(literal 1 binary64)) |
(* x (+ 1 (/ 1 x))) |
(+.f64 x #s(literal 1 binary64)) |
x |
(* x (+ 1 (/ 1 x))) |
(+.f64 x #s(literal 1 binary64)) |
(* x (+ 1 (/ 1 x))) |
(+.f64 x #s(literal 1 binary64)) |
(* x (+ 1 (/ 1 x))) |
(+.f64 x #s(literal 1 binary64)) |
Compiled 630 to 61 computations (90.3% saved)
7 alts after pruning (2 fresh and 5 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 138 | 2 | 140 |
| Fresh | 1 | 0 | 1 |
| Picked | 0 | 5 | 5 |
| Done | 0 | 0 | 0 |
| Total | 139 | 7 | 146 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 65.6% | (+.f64 (*.f64 x y) x) |
| ✓ | 72.5% | (+.f64 x y) |
| ✓ | 61.9% | (*.f64 y (+.f64 x #s(literal 1 binary64))) |
| ▶ | 28.6% | (*.f64 y x) |
| ✓ | 65.6% | (*.f64 x (+.f64 y #s(literal 1 binary64))) |
| ✓ | 35.5% | y |
| ✓ | 38.9% | x |
Compiled 37 to 24 computations (35.1% saved)
| 1× | egg-herbie |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | cost-diff | 0 | (*.f64 x y) |
| ✓ | cost-diff | 0 | (+.f64 (*.f64 x y) x) |
| ✓ | cost-diff | 0 | (*.f64 y x) |
| 28× | fma-define |
| 28× | *-lowering-*.f32 |
| 28× | *-lowering-*.f64 |
| 16× | fma-lowering-fma.f32 |
| 16× | fma-lowering-fma.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 14 |
| 1 | 7 | 14 |
| 2 | 11 | 14 |
| 3 | 15 | 14 |
| 4 | 21 | 14 |
| 5 | 27 | 14 |
| 6 | 40 | 14 |
| 7 | 44 | 14 |
| 8 | 46 | 14 |
| 0 | 46 | 14 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* y x) |
y |
x |
(+ (* x y) x) |
(* x y) |
x |
y |
| Outputs |
|---|
(* y x) |
(*.f64 y x) |
y |
x |
(+ (* x y) x) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x y) |
(*.f64 y x) |
x |
y |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | accuracy | 100.0% | (*.f64 x y) |
| ✓ | accuracy | 100.0% | (+.f64 (*.f64 x y) x) |
| ✓ | accuracy | 100.0% | (*.f64 y x) |
| 222.0ms | 256× | 0 | valid |
Compiled 18 to 6 computations (66.7% saved)
ival-mult: 204.0ms (99% of total)ival-add: 2.0ms (1% of total)const: 0.0ms (0% of total)backward-pass: 0.0ms (0% of total)| Inputs |
|---|
#<alt (* y x)> |
#<alt (+ (* x y) x)> |
#<alt (* x y)> |
| Outputs |
|---|
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* x (+ 1 y))> |
#<alt (* -1 (* x (- (* -1 y) 1)))> |
#<alt (* -1 (* x (- (* -1 y) 1)))> |
#<alt (* -1 (* x (- (* -1 y) 1)))> |
#<alt (* -1 (* x (- (* -1 y) 1)))> |
#<alt x> |
#<alt (+ x (* x y))> |
#<alt (+ x (* x y))> |
#<alt (+ x (* x y))> |
#<alt (* x y)> |
#<alt (* y (+ x (/ x y)))> |
#<alt (* y (+ x (/ x y)))> |
#<alt (* y (+ x (/ x y)))> |
#<alt (* x y)> |
#<alt (* -1 (* y (+ (* -1 x) (* -1 (/ x y)))))> |
#<alt (* -1 (* y (+ (* -1 x) (* -1 (/ x y)))))> |
#<alt (* -1 (* y (+ (* -1 x) (* -1 (/ x y)))))> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
#<alt (* x y)> |
18 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | y | @ | 0 | (* y x) |
| 0.0ms | x | @ | inf | (* y x) |
| 0.0ms | x | @ | 0 | (* y x) |
| 0.0ms | y | @ | -inf | (* y x) |
| 0.0ms | x | @ | -inf | (* y x) |
| 1× | batch-egg-rewrite |
| 28× | fma-define |
| 28× | *-lowering-*.f32 |
| 28× | *-lowering-*.f64 |
| 16× | fma-lowering-fma.f32 |
| 16× | fma-lowering-fma.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 10 |
| 1 | 7 | 10 |
| 2 | 11 | 10 |
| 3 | 15 | 10 |
| 4 | 21 | 10 |
| 5 | 27 | 10 |
| 6 | 40 | 10 |
| 7 | 44 | 10 |
| 8 | 46 | 10 |
| 0 | 46 | 10 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* y x) |
(+ (* x y) x) |
(* x y) |
| Outputs |
|---|
(*.f64 y x) |
(*.f64 x y) |
(*.f64 (*.f64 y x) #s(literal 1 binary64)) |
(*.f64 #s(literal 1 binary64) (*.f64 y x)) |
(+.f64 x (*.f64 y x)) |
(+.f64 (*.f64 y x) x) |
(fma.f64 y x x) |
(fma.f64 x y x) |
(fma.f64 x #s(literal 1 binary64) (*.f64 y x)) |
(fma.f64 (*.f64 y x) #s(literal 1 binary64) x) |
(fma.f64 #s(literal 1 binary64) x (*.f64 y x)) |
(fma.f64 #s(literal 1 binary64) (*.f64 y x) x) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(*.f64 (*.f64 x (+.f64 y #s(literal 1 binary64))) #s(literal 1 binary64)) |
(*.f64 #s(literal 1 binary64) (*.f64 x (+.f64 y #s(literal 1 binary64)))) |
(*.f64 (+.f64 y #s(literal 1 binary64)) x) |
(*.f64 y x) |
(*.f64 x y) |
(*.f64 (*.f64 y x) #s(literal 1 binary64)) |
(*.f64 #s(literal 1 binary64) (*.f64 y x)) |
| 1× | egg-herbie |
| 1788× | fmsub-define |
| 1778× | fnmsub-define |
| 1594× | fmm-def |
| 1442× | fnmadd-define |
| 1334× | sum3-define |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 20 | 256 |
| 1 | 66 | 235 |
| 2 | 169 | 235 |
| 3 | 410 | 235 |
| 4 | 1278 | 235 |
| 5 | 3400 | 235 |
| 6 | 5862 | 235 |
| 0 | 8106 | 235 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* x (+ 1 y)) |
(* -1 (* x (- (* -1 y) 1))) |
(* -1 (* x (- (* -1 y) 1))) |
(* -1 (* x (- (* -1 y) 1))) |
(* -1 (* x (- (* -1 y) 1))) |
x |
(+ x (* x y)) |
(+ x (* x y)) |
(+ x (* x y)) |
(* x y) |
(* y (+ x (/ x y))) |
(* y (+ x (/ x y))) |
(* y (+ x (/ x y))) |
(* x y) |
(* -1 (* y (+ (* -1 x) (* -1 (/ x y))))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ x y))))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ x y))))) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
(* x y) |
| Outputs |
|---|
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x (+ 1 y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* -1 (* x (- (* -1 y) 1))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* -1 (* x (- (* -1 y) 1))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* -1 (* x (- (* -1 y) 1))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* -1 (* x (- (* -1 y) 1))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
x |
(+ x (* x y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(+ x (* x y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(+ x (* x y)) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x y) |
(*.f64 x y) |
(* y (+ x (/ x y))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* y (+ x (/ x y))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* y (+ x (/ x y))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x y) |
(*.f64 x y) |
(* -1 (* y (+ (* -1 x) (* -1 (/ x y))))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ x y))))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ x y))))) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
(* x y) |
(*.f64 x y) |
Compiled 412 to 23 computations (94.4% saved)
7 alts after pruning (0 fresh and 7 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 92 | 0 | 92 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 5 | 5 |
| Total | 92 | 7 | 99 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 65.6% | (+.f64 (*.f64 x y) x) |
| ✓ | 72.5% | (+.f64 x y) |
| ✓ | 61.9% | (*.f64 y (+.f64 x #s(literal 1 binary64))) |
| ✓ | 28.6% | (*.f64 y x) |
| ✓ | 65.6% | (*.f64 x (+.f64 y #s(literal 1 binary64))) |
| ✓ | 35.5% | y |
| ✓ | 38.9% | x |
Compiled 81 to 38 computations (53.1% saved)
| Inputs |
|---|
x |
y |
(*.f64 y x) |
(+.f64 x y) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(+.f64 x (*.f64 y x)) |
(+.f64 (*.f64 x y) x) |
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(+.f64 (+.f64 (*.f64 x y) x) y) |
| Outputs |
|---|
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
3 calls:
| 4.0ms | (+.f64 (+.f64 (*.f64 x y) x) y) |
| 4.0ms | y |
| 4.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | y |
| 100.0% | 1 | (+.f64 (+.f64 (*.f64 x y) x) y) |
Compiled 15 to 9 computations (40% saved)
| Inputs |
|---|
x |
y |
(*.f64 y x) |
(+.f64 x y) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
(+.f64 x (*.f64 y x)) |
(+.f64 (*.f64 x y) x) |
| Outputs |
|---|
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(+.f64 x y) |
(*.f64 y (+.f64 x #s(literal 1 binary64))) |
2 calls:
| 4.0ms | x |
| 3.0ms | y |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.6% | 3 | x |
| 99.0% | 3 | y |
Compiled 6 to 4 computations (33.3% saved)
| Inputs |
|---|
x |
y |
(*.f64 y x) |
(+.f64 x y) |
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
| Outputs |
|---|
(*.f64 x (+.f64 y #s(literal 1 binary64))) |
(+.f64 x y) |
(*.f64 y x) |
1 calls:
| 2.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.3% | 3 | x |
Compiled 3 to 2 computations (33.3% saved)
| Inputs |
|---|
x |
y |
(*.f64 y x) |
(+.f64 x y) |
| Outputs |
|---|
(*.f64 y x) |
(+.f64 x y) |
(*.f64 y x) |
2 calls:
| 2.0ms | y |
| 2.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 82.3% | 4 | y |
| 81.3% | 3 | x |
Compiled 6 to 4 computations (33.3% saved)
| Inputs |
|---|
x |
y |
(*.f64 y x) |
| Outputs |
|---|
(*.f64 y x) |
x |
y |
(*.f64 y x) |
y |
2 calls:
| 3.0ms | y |
| 2.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 75.0% | 5 | y |
| 72.7% | 4 | x |
Compiled 6 to 4 computations (33.3% saved)
| Inputs |
|---|
x |
y |
| Outputs |
|---|
x |
y |
2 calls:
| 2.0ms | y |
| 2.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 64.0% | 2 | x |
| 64.8% | 2 | y |
Compiled 6 to 4 computations (33.3% saved)
Total 0.0b remaining (0%)
Threshold costs 0b (0%)
| Inputs |
|---|
x |
| Outputs |
|---|
x |
2 calls:
| 1.0ms | y |
| 1.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 38.9% | 1 | x |
| 38.9% | 1 | y |
Compiled 6 to 4 computations (33.3% saved)
| 2× | binary-search |
| 1× | narrow-enough |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 12.0ms | 1.4976860732623858e-74 | 3.303271745319572e-67 |
| 11.0ms | -136674013.16548237 | -260177.3312863542 |
| 15.0ms | 272× | 0 | valid |
Compiled 252 to 179 computations (29% saved)
ival-add: 3.0ms (56.2% of total)ival-mult: 2.0ms (37.5% of total)const: 0.0ms (0% of total)backward-pass: 0.0ms (0% of total)| 2× | binary-search |
| 1× | narrow-enough |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 25.0ms | 2.655207242750937e-16 | 3977.4113980081424 |
| 11.0ms | -136674013.16548237 | -260177.3312863542 |
| 28.0ms | 288× | 0 | valid |
Compiled 246 to 169 computations (31.3% saved)
ival-add: 3.0ms (45.8% of total)ival-mult: 3.0ms (45.8% of total)const: 0.0ms (0% of total)backward-pass: 0.0ms (0% of total)| 2× | binary-search |
| 1× | narrow-enough |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 20.0ms | 2.655207242750937e-16 | 3977.4113980081424 |
| 12.0ms | -1.3557099223303704e+206 | -9.028702133206576e+200 |
| 15.0ms | 304× | 0 | valid |
Compiled 242 to 161 computations (33.5% saved)
ival-add: 3.0ms (50.2% of total)ival-mult: 3.0ms (50.2% of total)const: 0.0ms (0% of total)backward-pass: 0.0ms (0% of total)| 4× | binary-search |
| 1× | narrow-enough |
| 1× | narrow-enough |
| 1× | narrow-enough |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 15.0ms | 5.625327507826649e+227 | 9.274559443366086e+232 |
| 10.0ms | 3.643181032116375e+32 | 4.4646628529833375e+35 |
| 29.0ms | 1.3365605469362515e-99 | 7.190370406161616e-93 |
| 10.0ms | -570.8132688321399 | -0.011953375990276507 |
| 47.0ms | 544× | 0 | valid |
Compiled 336 to 238 computations (29.2% saved)
ival-add: 22.0ms (79.8% of total)ival-mult: 5.0ms (18.1% of total)const: 0.0ms (0% of total)backward-pass: 0.0ms (0% of total)| 1× | binary-search |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 13.0ms | 1.3365605469362515e-99 | 7.190370406161616e-93 |
| 7.0ms | 144× | 0 | valid |
Compiled 86 to 63 computations (26.7% saved)
ival-add: 1.0ms (35% of total)ival-mult: 1.0ms (35% of total)const: 0.0ms (0% of total)backward-pass: 0.0ms (0% of total)| 1× | egg-herbie |
| 8× | +-commutative_binary64 |
| 6× | *-commutative_binary64 |
| 4× | if-if-or-not_binary32 |
| 2× | 1-exp_binary64 |
| 2× | 1-exp_binary32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 38 | 94 |
| 1 | 54 | 94 |
| 1× | saturated |
| Inputs |
|---|
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(if (<=.f64 x #s(literal -265000 binary64)) (*.f64 x (+.f64 y #s(literal 1 binary64))) (if (<=.f64 x #s(literal 4856672230564323/15177100720513508366558296147058741458143803430094840009779784451085189728165691392 binary64)) (+.f64 x y) (*.f64 y (+.f64 x #s(literal 1 binary64))))) |
(if (<=.f64 x #s(literal -265000 binary64)) (*.f64 x (+.f64 y #s(literal 1 binary64))) (if (<=.f64 x #s(literal 3900 binary64)) (+.f64 x y) (*.f64 y x))) |
(if (<=.f64 x #s(literal -1999999999999999977538215750126588953018689196590998459950069697680585223647237336888853938920013796903718410691112844909629852261514762472830507743890852478294863899324781023557461759604328517292041175040 binary64)) (*.f64 y x) (if (<=.f64 x #s(literal 3900 binary64)) (+.f64 x y) (*.f64 y x))) |
(if (<=.f64 y #s(literal -1 binary64)) (*.f64 y x) (if (<=.f64 y #s(literal 32108980623861/4586997231980143023221641790604173881593129978336562247475177678773845752176969616140037106220251373109248 binary64)) x (if (<=.f64 y #s(literal 370000000000000000038961795825664 binary64)) y (if (<=.f64 y #s(literal 11400000000000000230145765901288544724528525197288330800977959689988778361935186731742188725303657296319856984776270440366985162998324120952749011322222465516652174348136314386732986100853046332376784062632071668395611620230362562560 binary64)) (*.f64 y x) y)))) |
(if (<=.f64 y #s(literal 2084331542211777/293567822846729153486185074598667128421960318613539983838411371441526128139326055432962374798096087878991872 binary64)) x y) |
x |
| Outputs |
|---|
(+.f64 x (*.f64 y (+.f64 x #s(literal 1 binary64)))) |
(if (<=.f64 x #s(literal -265000 binary64)) (*.f64 x (+.f64 y #s(literal 1 binary64))) (if (<=.f64 x #s(literal 4856672230564323/15177100720513508366558296147058741458143803430094840009779784451085189728165691392 binary64)) (+.f64 x y) (*.f64 y (+.f64 x #s(literal 1 binary64))))) |
(if (<=.f64 x #s(literal -265000 binary64)) (*.f64 x (+.f64 y #s(literal 1 binary64))) (if (<=.f64 x #s(literal 3900 binary64)) (+.f64 x y) (*.f64 y x))) |
(if (<=.f64 x #s(literal -265000 binary64)) (*.f64 x (+.f64 y #s(literal 1 binary64))) (if (<=.f64 x #s(literal 3900 binary64)) (+.f64 x y) (*.f64 x y))) |
(if (<=.f64 x #s(literal -1999999999999999977538215750126588953018689196590998459950069697680585223647237336888853938920013796903718410691112844909629852261514762472830507743890852478294863899324781023557461759604328517292041175040 binary64)) (*.f64 y x) (if (<=.f64 x #s(literal 3900 binary64)) (+.f64 x y) (*.f64 y x))) |
(if (<=.f64 x #s(literal -1999999999999999977538215750126588953018689196590998459950069697680585223647237336888853938920013796903718410691112844909629852261514762472830507743890852478294863899324781023557461759604328517292041175040 binary64)) (*.f64 x y) (if (<=.f64 x #s(literal 3900 binary64)) (+.f64 x y) (*.f64 x y))) |
(if (<=.f64 y #s(literal -1 binary64)) (*.f64 y x) (if (<=.f64 y #s(literal 32108980623861/4586997231980143023221641790604173881593129978336562247475177678773845752176969616140037106220251373109248 binary64)) x (if (<=.f64 y #s(literal 370000000000000000038961795825664 binary64)) y (if (<=.f64 y #s(literal 11400000000000000230145765901288544724528525197288330800977959689988778361935186731742188725303657296319856984776270440366985162998324120952749011322222465516652174348136314386732986100853046332376784062632071668395611620230362562560 binary64)) (*.f64 y x) y)))) |
(if (<=.f64 y #s(literal -1 binary64)) (*.f64 x y) (if (<=.f64 y #s(literal 32108980623861/4586997231980143023221641790604173881593129978336562247475177678773845752176969616140037106220251373109248 binary64)) x (if (<=.f64 y #s(literal 370000000000000000038961795825664 binary64)) y (if (<=.f64 y #s(literal 11400000000000000230145765901288544724528525197288330800977959689988778361935186731742188725303657296319856984776270440366985162998324120952749011322222465516652174348136314386732986100853046332376784062632071668395611620230362562560 binary64)) (*.f64 x y) y)))) |
(if (<=.f64 y #s(literal 2084331542211777/293567822846729153486185074598667128421960318613539983838411371441526128139326055432962374798096087878991872 binary64)) x y) |
x |
| 2422× | fnmadd-define |
| 2028× | fnmsub-define |
| 2004× | fmsub-define |
| 1956× | fnmsub-define |
| 1788× | fmm-def |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 40 | 290 |
| 1 | 147 | 249 |
| 2 | 447 | 247 |
| 3 | 1430 | 247 |
| 4 | 4275 | 247 |
| 0 | 8035 | 247 |
| 0 | 5 | 6 |
| 1 | 12 | 6 |
| 2 | 26 | 6 |
| 3 | 39 | 6 |
| 4 | 50 | 6 |
| 5 | 67 | 6 |
| 6 | 93 | 6 |
| 7 | 115 | 6 |
| 8 | 122 | 6 |
| 9 | 123 | 6 |
| 0 | 123 | 6 |
| 0 | 44 | 344 |
| 1 | 152 | 302 |
| 2 | 367 | 302 |
| 3 | 971 | 302 |
| 4 | 3609 | 302 |
| 5 | 6907 | 302 |
| 0 | 8307 | 302 |
| 1× | done |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| 1× | node limit |
Compiled 320 to 186 computations (41.9% saved)
(sort x y)
Compiled 250 to 110 computations (56% saved)
Loading profile data...