
Time bar (total: 4.3s)
| 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 7 to 7 computations (0% saved)
| 636.0ms | 8 256× | 0 | valid |
ival-sub: 104.0ms (61.2% of total)ival-mult: 52.0ms (30.6% of total)ival-true: 6.0ms (3.5% of total)exact: 4.0ms (2.4% of total)ival-assert: 3.0ms (1.8% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 0 | 0 | - | 0 | - | (-.f64 #s(literal 1 binary64) y) |
| 0 | 0 | - | 0 | - | (*.f64 x (-.f64 #s(literal 1 binary64) y)) |
| 0 | 0 | - | 0 | - | y |
| 0 | 0 | - | 0 | - | #s(literal 1 binary64) |
| 0 | 0 | - | 0 | - | x |
| Predicted + | Predicted - | |
|---|---|---|
| + | 0 | 0 |
| - | 0 | 256 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 0 | 0 | 0 |
| - | 0 | 0 | 256 |
| number | freq |
|---|---|
| 0 | 256 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 0 | 0 | 0 |
| - | 0 | 0 | 1 |
| 18.0ms | 512× | 0 | valid |
Compiled 31 to 19 computations (38.7% saved)
ival-sub: 3.0ms (42.9% of total)ival-mult: 3.0ms (42.9% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
| 176× | lower-fma.f64 |
| 176× | lower-fma.f32 |
| 112× | lower-*.f32 |
| 110× | lower-*.f64 |
| 102× | distribute-lft-in |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 31 |
| 1 | 40 | 26 |
| 2 | 106 | 25 |
| 3 | 323 | 25 |
| 4 | 517 | 25 |
| 5 | 612 | 25 |
| 0 | 5 | 5 |
| 0 | 7 | 5 |
| 1 | 12 | 5 |
| 2 | 22 | 5 |
| 3 | 38 | 5 |
| 4 | 83 | 5 |
| 5 | 114 | 5 |
| 6 | 154 | 5 |
| 7 | 219 | 5 |
| 8 | 265 | 5 |
| 9 | 301 | 5 |
| 10 | 307 | 5 |
| 0 | 307 | 5 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(*.f64 x (-.f64 #s(literal 1 binary64) y)) |
| Outputs |
|---|
(*.f64 x (-.f64 #s(literal 1 binary64) y)) |
(*.f64 (-.f64 #s(literal 1 binary64) y) x) |
(negabs x)
Compiled 5 to 5 computations (0% saved)
Compiled 0 to 2 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (*.f64 x (-.f64 #s(literal 1 binary64) y)) |
Compiled 5 to 5 computations (0% saved)
| 1× | egg-herbie |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (-.f64 #s(literal 1 binary64) y) | |
| cost-diff | 0 | (*.f64 x (-.f64 #s(literal 1 binary64) y)) |
| 176× | lower-fma.f64 |
| 176× | lower-fma.f32 |
| 112× | lower-*.f32 |
| 110× | lower-*.f64 |
| 56× | lower-+.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 11 |
| 0 | 7 | 11 |
| 1 | 12 | 11 |
| 2 | 22 | 11 |
| 3 | 38 | 11 |
| 4 | 83 | 11 |
| 5 | 114 | 11 |
| 6 | 154 | 11 |
| 7 | 219 | 11 |
| 8 | 265 | 11 |
| 9 | 301 | 11 |
| 10 | 307 | 11 |
| 0 | 307 | 11 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(*.f64 x (-.f64 #s(literal 1 binary64) y)) |
x |
(-.f64 #s(literal 1 binary64) y) |
#s(literal 1 binary64) |
y |
| Outputs |
|---|
(*.f64 x (-.f64 #s(literal 1 binary64) y)) |
(*.f64 (-.f64 #s(literal 1 binary64) y) x) |
x |
(-.f64 #s(literal 1 binary64) y) |
#s(literal 1 binary64) |
y |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (-.f64 #s(literal 1 binary64) y) | |
| accuracy | 0.0078125 | (*.f64 x (-.f64 #s(literal 1 binary64) y)) |
| 9.0ms | 256× | 0 | valid |
Compiled 13 to 7 computations (46.2% saved)
ival-mult: 2.0ms (59% of total)ival-sub: 1.0ms (29.5% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ()) |
#s(alt (-.f64 #s(literal 1 binary64) y) (patch (-.f64 #s(literal 1 binary64) y) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt x (taylor 0 y) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor 0 y) (#s(alt (-.f64 #s(literal 1 binary64) y) (patch (-.f64 #s(literal 1 binary64) y) #<representation binary64>) () ())) ()) |
#s(alt (+ 1 (* -1 y)) (taylor 0 y) (#s(alt (-.f64 #s(literal 1 binary64) y) (patch (-.f64 #s(literal 1 binary64) y) #<representation binary64>) () ())) ()) |
#s(alt (+ 1 (* -1 y)) (taylor 0 y) (#s(alt (-.f64 #s(literal 1 binary64) y) (patch (-.f64 #s(literal 1 binary64) y) #<representation binary64>) () ())) ()) |
#s(alt (+ 1 (* -1 y)) (taylor 0 y) (#s(alt (-.f64 #s(literal 1 binary64) y) (patch (-.f64 #s(literal 1 binary64) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x y)) (taylor inf y) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor inf y) (#s(alt (-.f64 #s(literal 1 binary64) y) (patch (-.f64 #s(literal 1 binary64) y) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (/ 1 y) 1)) (taylor inf y) (#s(alt (-.f64 #s(literal 1 binary64) y) (patch (-.f64 #s(literal 1 binary64) y) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (/ 1 y) 1)) (taylor inf y) (#s(alt (-.f64 #s(literal 1 binary64) y) (patch (-.f64 #s(literal 1 binary64) y) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (/ 1 y) 1)) (taylor inf y) (#s(alt (-.f64 #s(literal 1 binary64) y) (patch (-.f64 #s(literal 1 binary64) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x y)) (taylor -inf y) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor -inf y) (#s(alt (-.f64 #s(literal 1 binary64) y) (patch (-.f64 #s(literal 1 binary64) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- 1 (/ 1 y)))) (taylor -inf y) (#s(alt (-.f64 #s(literal 1 binary64) y) (patch (-.f64 #s(literal 1 binary64) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- 1 (/ 1 y)))) (taylor -inf y) (#s(alt (-.f64 #s(literal 1 binary64) y) (patch (-.f64 #s(literal 1 binary64) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- 1 (/ 1 y)))) (taylor -inf y) (#s(alt (-.f64 #s(literal 1 binary64) y) (patch (-.f64 #s(literal 1 binary64) y) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 x (-.f64 #s(literal 1 binary64) y)) (patch (*.f64 x (-.f64 #s(literal 1 binary64) y)) #<representation binary64>) () ())) ()) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | ((* x (- 1 y)) (- 1 y)) |
| 0.0ms | y | @ | inf | ((* x (- 1 y)) (- 1 y)) |
| 0.0ms | y | @ | -inf | ((* x (- 1 y)) (- 1 y)) |
| 0.0ms | x | @ | -inf | ((* x (- 1 y)) (- 1 y)) |
| 0.0ms | x | @ | 0 | ((* x (- 1 y)) (- 1 y)) |
| 1× | egg-herbie |
| 8 840× | lower-fma.f64 |
| 8 840× | lower-fma.f32 |
| 2 370× | lower-*.f64 |
| 2 370× | lower-*.f32 |
| 2 096× | lower-/.f32 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 25 | 167 |
| 1 | 69 | 146 |
| 2 | 160 | 146 |
| 3 | 294 | 146 |
| 4 | 858 | 146 |
| 5 | 2435 | 146 |
| 6 | 3645 | 146 |
| 7 | 4189 | 146 |
| 8 | 4362 | 146 |
| 9 | 4399 | 146 |
| 10 | 4431 | 146 |
| 11 | 5099 | 146 |
| 12 | 5547 | 146 |
| 13 | 5648 | 146 |
| 14 | 5668 | 146 |
| 15 | 5678 | 146 |
| 16 | 5684 | 146 |
| 17 | 5684 | 146 |
| 18 | 5688 | 146 |
| 19 | 5692 | 146 |
| 20 | 6668 | 146 |
| 0 | 8367 | 146 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
x |
(+ x (* -1 (* x y))) |
(+ x (* -1 (* x y))) |
(+ x (* -1 (* x y))) |
1 |
(+ 1 (* -1 y)) |
(+ 1 (* -1 y)) |
(+ 1 (* -1 y)) |
(* -1 (* x y)) |
(* y (+ (* -1 x) (/ x y))) |
(* y (+ (* -1 x) (/ x y))) |
(* y (+ (* -1 x) (/ x y))) |
(* -1 y) |
(* y (- (/ 1 y) 1)) |
(* y (- (/ 1 y) 1)) |
(* y (- (/ 1 y) 1)) |
(* -1 (* x y)) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(* -1 (* y (- 1 (/ 1 y)))) |
(* -1 (* y (- 1 (/ 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 (- 1 y)) |
| Outputs |
|---|
x |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
1 |
#s(literal 1 binary64) |
(+ 1 (* -1 y)) |
(-.f64 #s(literal 1 binary64) y) |
(+ 1 (* -1 y)) |
(-.f64 #s(literal 1 binary64) y) |
(+ 1 (* -1 y)) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* x y)) |
(*.f64 (neg.f64 x) y) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 y) |
(neg.f64 y) |
(* y (- (/ 1 y) 1)) |
(-.f64 #s(literal 1 binary64) y) |
(* y (- (/ 1 y) 1)) |
(-.f64 #s(literal 1 binary64) y) |
(* y (- (/ 1 y) 1)) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* x y)) |
(*.f64 (neg.f64 x) y) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 y) |
(neg.f64 y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(-.f64 #s(literal 1 binary64) y) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
| 4 132× | lower-fma.f64 |
| 4 132× | lower-fma.f32 |
| 3 294× | lower-/.f64 |
| 3 294× | lower-/.f32 |
| 2 854× | lower-*.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 8 |
| 0 | 7 | 8 |
| 1 | 25 | 8 |
| 2 | 145 | 8 |
| 3 | 1149 | 8 |
| 0 | 9894 | 7 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(*.f64 x (-.f64 #s(literal 1 binary64) y)) |
(-.f64 #s(literal 1 binary64) y) |
| Outputs |
|---|
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
Compiled 8 399 to 1 080 computations (87.1% saved)
3 alts after pruning (3 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 385 | 3 | 388 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 386 | 3 | 389 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (fma.f64 (neg.f64 x) y x) |
| ▶ | 48.5% | (*.f64 x #s(approx (- 1 y) (neg.f64 y))) |
| ▶ | 53.1% | (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
Compiled 14 to 14 computations (0% saved)
| 1× | egg-herbie |
Found 7 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (neg.f64 x) | |
| cost-diff | 0 | (fma.f64 (neg.f64 x) y x) | |
| cost-diff | 0 | (neg.f64 y) | |
| cost-diff | 0 | #s(approx (- 1 y) (neg.f64 y)) | |
| cost-diff | 0 | (*.f64 x #s(approx (- 1 y) (neg.f64 y))) | |
| cost-diff | 0 | #s(approx (- 1 y) #s(literal 1 binary64)) | |
| cost-diff | 0 | (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
| 272× | lower-fma.f32 |
| 270× | lower-fma.f64 |
| 208× | lower-*.f32 |
| 204× | lower-*.f64 |
| 98× | associate-*r* |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 11 | 41 |
| 0 | 17 | 41 |
| 1 | 31 | 41 |
| 2 | 45 | 41 |
| 3 | 66 | 41 |
| 4 | 87 | 41 |
| 5 | 148 | 41 |
| 6 | 209 | 41 |
| 7 | 325 | 41 |
| 8 | 432 | 41 |
| 9 | 494 | 41 |
| 10 | 502 | 41 |
| 11 | 506 | 41 |
| 12 | 512 | 41 |
| 13 | 516 | 41 |
| 0 | 516 | 41 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
x |
#s(approx (- 1 y) #s(literal 1 binary64)) |
#s(literal 1 binary64) |
(*.f64 x #s(approx (- 1 y) (neg.f64 y))) |
x |
#s(approx (- 1 y) (neg.f64 y)) |
(neg.f64 y) |
y |
(fma.f64 (neg.f64 x) y x) |
(neg.f64 x) |
x |
y |
| Outputs |
|---|
(*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
(*.f64 #s(approx (- 1 y) #s(literal 1 binary64)) x) |
x |
#s(approx (- 1 y) #s(literal 1 binary64)) |
#s(literal 1 binary64) |
(*.f64 x #s(approx (- 1 y) (neg.f64 y))) |
(*.f64 #s(approx (- 1 y) (neg.f64 y)) x) |
x |
#s(approx (- 1 y) (neg.f64 y)) |
(neg.f64 y) |
y |
(fma.f64 (neg.f64 x) y x) |
(*.f64 (-.f64 #s(literal 1 binary64) y) x) |
(neg.f64 x) |
x |
y |
Found 7 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (fma.f64 (neg.f64 x) y x) | |
| accuracy | 0 | (neg.f64 x) | |
| accuracy | 0 | (neg.f64 y) | |
| accuracy | 0.0078125 | (*.f64 x #s(approx (- 1 y) (neg.f64 y))) | |
| accuracy | 33.11670051400333 | #s(approx (- 1 y) (neg.f64 y)) | |
| accuracy | 0.0078125 | (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) | |
| accuracy | 30.123712272049946 | #s(approx (- 1 y) #s(literal 1 binary64)) |
| 16.0ms | 256× | 0 | valid |
Compiled 34 to 11 computations (67.6% saved)
ival-mult: 3.0ms (37.2% of total)ival-sub: 2.0ms (24.8% of total)ival-neg: 2.0ms (24.8% of total)ival-add: 1.0ms (12.4% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ()) |
#s(alt #s(approx (- 1 y) #s(literal 1 binary64)) (patch #s(approx (- 1 y) #s(literal 1 binary64)) #<representation binary64>) () ()) |
#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ()) |
#s(alt #s(approx (- 1 y) (neg.f64 y)) (patch #s(approx (- 1 y) (neg.f64 y)) #<representation binary64>) () ()) |
#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ()) |
#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ()) |
#s(alt (neg.f64 x) (patch (neg.f64 x) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt x (taylor 0 y) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor 0 y) (#s(alt #s(approx (- 1 y) #s(literal 1 binary64)) (patch #s(approx (- 1 y) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1 (* -1 y)) (taylor 0 y) (#s(alt #s(approx (- 1 y) #s(literal 1 binary64)) (patch #s(approx (- 1 y) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1 (* -1 y)) (taylor 0 y) (#s(alt #s(approx (- 1 y) #s(literal 1 binary64)) (patch #s(approx (- 1 y) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1 (* -1 y)) (taylor 0 y) (#s(alt #s(approx (- 1 y) #s(literal 1 binary64)) (patch #s(approx (- 1 y) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor 0 y) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor 0 y) (#s(alt #s(approx (- 1 y) (neg.f64 y)) (patch #s(approx (- 1 y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1 (* -1 y)) (taylor 0 y) (#s(alt #s(approx (- 1 y) (neg.f64 y)) (patch #s(approx (- 1 y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1 (* -1 y)) (taylor 0 y) (#s(alt #s(approx (- 1 y) (neg.f64 y)) (patch #s(approx (- 1 y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1 (* -1 y)) (taylor 0 y) (#s(alt #s(approx (- 1 y) (neg.f64 y)) (patch #s(approx (- 1 y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor 0 y) (#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor 0 y) (#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor 0 y) (#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor 0 y) (#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ())) ()) |
#s(alt x (taylor 0 y) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x y)) (taylor inf y) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor inf y) (#s(alt #s(approx (- 1 y) #s(literal 1 binary64)) (patch #s(approx (- 1 y) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (/ 1 y) 1)) (taylor inf y) (#s(alt #s(approx (- 1 y) #s(literal 1 binary64)) (patch #s(approx (- 1 y) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (/ 1 y) 1)) (taylor inf y) (#s(alt #s(approx (- 1 y) #s(literal 1 binary64)) (patch #s(approx (- 1 y) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (/ 1 y) 1)) (taylor inf y) (#s(alt #s(approx (- 1 y) #s(literal 1 binary64)) (patch #s(approx (- 1 y) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x y)) (taylor inf y) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor inf y) (#s(alt #s(approx (- 1 y) (neg.f64 y)) (patch #s(approx (- 1 y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (/ 1 y) 1)) (taylor inf y) (#s(alt #s(approx (- 1 y) (neg.f64 y)) (patch #s(approx (- 1 y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (/ 1 y) 1)) (taylor inf y) (#s(alt #s(approx (- 1 y) (neg.f64 y)) (patch #s(approx (- 1 y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (/ 1 y) 1)) (taylor inf y) (#s(alt #s(approx (- 1 y) (neg.f64 y)) (patch #s(approx (- 1 y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor inf y) (#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor inf y) (#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor inf y) (#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor inf y) (#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x y)) (taylor inf y) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x y)) (taylor -inf y) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor -inf y) (#s(alt #s(approx (- 1 y) #s(literal 1 binary64)) (patch #s(approx (- 1 y) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- 1 (/ 1 y)))) (taylor -inf y) (#s(alt #s(approx (- 1 y) #s(literal 1 binary64)) (patch #s(approx (- 1 y) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- 1 (/ 1 y)))) (taylor -inf y) (#s(alt #s(approx (- 1 y) #s(literal 1 binary64)) (patch #s(approx (- 1 y) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- 1 (/ 1 y)))) (taylor -inf y) (#s(alt #s(approx (- 1 y) #s(literal 1 binary64)) (patch #s(approx (- 1 y) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x y)) (taylor -inf y) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor -inf y) (#s(alt #s(approx (- 1 y) (neg.f64 y)) (patch #s(approx (- 1 y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- 1 (/ 1 y)))) (taylor -inf y) (#s(alt #s(approx (- 1 y) (neg.f64 y)) (patch #s(approx (- 1 y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- 1 (/ 1 y)))) (taylor -inf y) (#s(alt #s(approx (- 1 y) (neg.f64 y)) (patch #s(approx (- 1 y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- 1 (/ 1 y)))) (taylor -inf y) (#s(alt #s(approx (- 1 y) (neg.f64 y)) (patch #s(approx (- 1 y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor -inf y) (#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor -inf y) (#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor -inf y) (#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor -inf y) (#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x y)) (taylor -inf y) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 y))) (taylor 0 x) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 y))) (taylor 0 x) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 y))) (taylor 0 x) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 y))) (taylor 0 x) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor 0 x) (#s(alt (neg.f64 x) (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor 0 x) (#s(alt (neg.f64 x) (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor 0 x) (#s(alt (neg.f64 x) (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor 0 x) (#s(alt (neg.f64 x) (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 y))) (taylor inf x) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 y))) (taylor inf x) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 y))) (taylor inf x) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 y))) (taylor inf x) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor inf x) (#s(alt (neg.f64 x) (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor inf x) (#s(alt (neg.f64 x) (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor inf x) (#s(alt (neg.f64 x) (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor inf x) (#s(alt (neg.f64 x) (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (patch (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (patch (*.f64 x #s(approx (- 1 y) (neg.f64 y))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- y 1))) (taylor -inf x) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- y 1))) (taylor -inf x) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- y 1))) (taylor -inf x) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- y 1))) (taylor -inf x) (#s(alt (fma.f64 (neg.f64 x) y x) (patch (fma.f64 (neg.f64 x) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor -inf x) (#s(alt (neg.f64 x) (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor -inf x) (#s(alt (neg.f64 x) (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor -inf x) (#s(alt (neg.f64 x) (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor -inf x) (#s(alt (neg.f64 x) (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | ((* x (- 1 y)) (- 1 y) (* x (- 1 y)) (- 1 y) (neg y) (+ (* (neg x) y) x) (neg x)) |
| 1.0ms | x | @ | 0 | ((* x (- 1 y)) (- 1 y) (* x (- 1 y)) (- 1 y) (neg y) (+ (* (neg x) y) x) (neg x)) |
| 1.0ms | x | @ | -inf | ((* x (- 1 y)) (- 1 y) (* x (- 1 y)) (- 1 y) (neg y) (+ (* (neg x) y) x) (neg x)) |
| 1.0ms | y | @ | inf | ((* x (- 1 y)) (- 1 y) (* x (- 1 y)) (- 1 y) (neg y) (+ (* (neg x) y) x) (neg x)) |
| 0.0ms | y | @ | 0 | ((* x (- 1 y)) (- 1 y) (* x (- 1 y)) (- 1 y) (neg y) (+ (* (neg x) y) x) (neg x)) |
| 1× | egg-herbie |
| 3 160× | lower-fma.f64 |
| 3 160× | lower-fma.f32 |
| 2 118× | div-sub |
| 1 832× | lower-*.f64 |
| 1 832× | lower-*.f32 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 29 | 517 |
| 1 | 85 | 454 |
| 2 | 184 | 454 |
| 3 | 342 | 454 |
| 4 | 949 | 454 |
| 5 | 2604 | 454 |
| 6 | 3444 | 454 |
| 7 | 3953 | 454 |
| 8 | 4047 | 454 |
| 9 | 4090 | 454 |
| 10 | 4118 | 454 |
| 11 | 4996 | 454 |
| 12 | 5655 | 454 |
| 13 | 5924 | 454 |
| 14 | 5944 | 454 |
| 15 | 5954 | 454 |
| 16 | 5966 | 454 |
| 17 | 5966 | 454 |
| 18 | 5970 | 454 |
| 19 | 5974 | 454 |
| 20 | 5974 | 454 |
| 21 | 6298 | 454 |
| 22 | 7385 | 454 |
| 0 | 8021 | 454 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
x |
(+ x (* -1 (* x y))) |
(+ x (* -1 (* x y))) |
(+ x (* -1 (* x y))) |
1 |
(+ 1 (* -1 y)) |
(+ 1 (* -1 y)) |
(+ 1 (* -1 y)) |
x |
(+ x (* -1 (* x y))) |
(+ x (* -1 (* x y))) |
(+ x (* -1 (* x y))) |
1 |
(+ 1 (* -1 y)) |
(+ 1 (* -1 y)) |
(+ 1 (* -1 y)) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
x |
(+ x (* -1 (* x y))) |
(+ x (* -1 (* x y))) |
(+ x (* -1 (* x y))) |
(* -1 (* x y)) |
(* y (+ (* -1 x) (/ x y))) |
(* y (+ (* -1 x) (/ x y))) |
(* y (+ (* -1 x) (/ x y))) |
(* -1 y) |
(* y (- (/ 1 y) 1)) |
(* y (- (/ 1 y) 1)) |
(* y (- (/ 1 y) 1)) |
(* -1 (* x y)) |
(* y (+ (* -1 x) (/ x y))) |
(* y (+ (* -1 x) (/ x y))) |
(* y (+ (* -1 x) (/ x y))) |
(* -1 y) |
(* y (- (/ 1 y) 1)) |
(* y (- (/ 1 y) 1)) |
(* y (- (/ 1 y) 1)) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 (* x y)) |
(* y (+ (* -1 x) (/ x y))) |
(* y (+ (* -1 x) (/ x y))) |
(* y (+ (* -1 x) (/ x y))) |
(* -1 (* x y)) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(* -1 (* y (- 1 (/ 1 y)))) |
(* -1 (* y (- 1 (/ 1 y)))) |
(* -1 (* x y)) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(* -1 (* y (- 1 (/ 1 y)))) |
(* -1 (* y (- 1 (/ 1 y)))) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 (* x y)) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 (* y (+ x (* -1 (/ 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)) |
(* x (+ 1 (* -1 y))) |
(* x (+ 1 (* -1 y))) |
(* x (+ 1 (* -1 y))) |
(* x (+ 1 (* -1 y))) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
(* 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 (* -1 y))) |
(* x (+ 1 (* -1 y))) |
(* x (+ 1 (* -1 y))) |
(* x (+ 1 (* -1 y))) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
(* 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 (- y 1))) |
(* -1 (* x (- y 1))) |
(* -1 (* x (- y 1))) |
(* -1 (* x (- y 1))) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
| Outputs |
|---|
x |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
1 |
#s(literal 1 binary64) |
(+ 1 (* -1 y)) |
(-.f64 #s(literal 1 binary64) y) |
(+ 1 (* -1 y)) |
(-.f64 #s(literal 1 binary64) y) |
(+ 1 (* -1 y)) |
(-.f64 #s(literal 1 binary64) y) |
x |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
1 |
#s(literal 1 binary64) |
(+ 1 (* -1 y)) |
(-.f64 #s(literal 1 binary64) y) |
(+ 1 (* -1 y)) |
(-.f64 #s(literal 1 binary64) y) |
(+ 1 (* -1 y)) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
x |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* x y)) |
(*.f64 (neg.f64 x) y) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 y) |
(neg.f64 y) |
(* y (- (/ 1 y) 1)) |
(-.f64 #s(literal 1 binary64) y) |
(* y (- (/ 1 y) 1)) |
(-.f64 #s(literal 1 binary64) y) |
(* y (- (/ 1 y) 1)) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* x y)) |
(*.f64 (neg.f64 x) y) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 y) |
(neg.f64 y) |
(* y (- (/ 1 y) 1)) |
(-.f64 #s(literal 1 binary64) y) |
(* y (- (/ 1 y) 1)) |
(-.f64 #s(literal 1 binary64) y) |
(* y (- (/ 1 y) 1)) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 (* x y)) |
(*.f64 (neg.f64 x) y) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* x y)) |
(*.f64 (neg.f64 x) y) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 y) |
(neg.f64 y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* x y)) |
(*.f64 (neg.f64 x) y) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 y) |
(neg.f64 y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 (* x y)) |
(*.f64 (neg.f64 x) y) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (+ 1 (* -1 y))) |
(fma.f64 (neg.f64 x) y x) |
(* x (+ 1 (* -1 y))) |
(fma.f64 (neg.f64 x) y x) |
(* x (+ 1 (* -1 y))) |
(fma.f64 (neg.f64 x) y x) |
(* x (+ 1 (* -1 y))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 x) |
(neg.f64 x) |
(* -1 x) |
(neg.f64 x) |
(* -1 x) |
(neg.f64 x) |
(* -1 x) |
(neg.f64 x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (+ 1 (* -1 y))) |
(fma.f64 (neg.f64 x) y x) |
(* x (+ 1 (* -1 y))) |
(fma.f64 (neg.f64 x) y x) |
(* x (+ 1 (* -1 y))) |
(fma.f64 (neg.f64 x) y x) |
(* x (+ 1 (* -1 y))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 x) |
(neg.f64 x) |
(* -1 x) |
(neg.f64 x) |
(* -1 x) |
(neg.f64 x) |
(* -1 x) |
(neg.f64 x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* x (- y 1))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* x (- y 1))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* x (- y 1))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* x (- y 1))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 x) |
(neg.f64 x) |
(* -1 x) |
(neg.f64 x) |
(* -1 x) |
(neg.f64 x) |
(* -1 x) |
(neg.f64 x) |
| 3 246× | lower-fma.f32 |
| 3 244× | lower-fma.f64 |
| 2 912× | lower-/.f64 |
| 2 912× | lower-/.f32 |
| 2 358× | lower-*.f32 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 11 | 35 |
| 0 | 17 | 35 |
| 1 | 56 | 35 |
| 2 | 322 | 35 |
| 3 | 3097 | 30 |
| 0 | 9701 | 30 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
#s(approx (- 1 y) #s(literal 1 binary64)) |
(*.f64 x #s(approx (- 1 y) (neg.f64 y))) |
#s(approx (- 1 y) (neg.f64 y)) |
(neg.f64 y) |
(fma.f64 (neg.f64 x) y x) |
(neg.f64 x) |
| Outputs |
|---|
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
Compiled 4 098 to 503 computations (87.7% saved)
4 alts after pruning (1 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 307 | 1 | 308 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 3 | 3 |
| Done | 0 | 0 | 0 |
| Total | 307 | 4 | 311 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (fma.f64 (neg.f64 x) y x) |
| ▶ | 2.7% | (*.f64 #s(approx (- 1 y) y) x) |
| ✓ | 48.5% | (*.f64 x #s(approx (- 1 y) (neg.f64 y))) |
| ✓ | 53.1% | (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
Compiled 18 to 18 computations (0% saved)
| 1× | egg-herbie |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | #s(approx (- 1 y) y) | |
| cost-diff | 0 | (*.f64 #s(approx (- 1 y) y) x) |
| 24× | lower-+.f64 |
| 24× | lower-+.f32 |
| 18× | lower--.f64 |
| 18× | lower--.f32 |
| 16× | sub-neg |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 14 |
| 0 | 7 | 14 |
| 1 | 12 | 14 |
| 2 | 16 | 14 |
| 3 | 21 | 14 |
| 4 | 28 | 14 |
| 5 | 36 | 14 |
| 6 | 46 | 14 |
| 7 | 57 | 14 |
| 8 | 60 | 14 |
| 0 | 60 | 14 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(*.f64 #s(approx (- 1 y) y) x) |
#s(approx (- 1 y) y) |
y |
x |
| Outputs |
|---|
(*.f64 #s(approx (- 1 y) y) x) |
(*.f64 x #s(approx (- 1 y) y)) |
#s(approx (- 1 y) y) |
y |
x |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0078125 | (*.f64 #s(approx (- 1 y) y) x) | |
| accuracy | 62.46178362802507 | #s(approx (- 1 y) y) |
| 10.0ms | 256× | 0 | valid |
Compiled 12 to 7 computations (41.7% saved)
ival-mult: 2.0ms (59.9% of total)ival-sub: 1.0ms (30% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ()) |
#s(alt #s(approx (- 1 y) y) (patch #s(approx (- 1 y) y) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt x (taylor 0 y) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (* x y))) (taylor 0 y) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor 0 y) (#s(alt #s(approx (- 1 y) y) (patch #s(approx (- 1 y) y) #<representation binary64>) () ())) ()) |
#s(alt (+ 1 (* -1 y)) (taylor 0 y) (#s(alt #s(approx (- 1 y) y) (patch #s(approx (- 1 y) y) #<representation binary64>) () ())) ()) |
#s(alt (+ 1 (* -1 y)) (taylor 0 y) (#s(alt #s(approx (- 1 y) y) (patch #s(approx (- 1 y) y) #<representation binary64>) () ())) ()) |
#s(alt (+ 1 (* -1 y)) (taylor 0 y) (#s(alt #s(approx (- 1 y) y) (patch #s(approx (- 1 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x y)) (taylor inf y) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (* -1 x) (/ x y))) (taylor inf y) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor inf y) (#s(alt #s(approx (- 1 y) y) (patch #s(approx (- 1 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (/ 1 y) 1)) (taylor inf y) (#s(alt #s(approx (- 1 y) y) (patch #s(approx (- 1 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (/ 1 y) 1)) (taylor inf y) (#s(alt #s(approx (- 1 y) y) (patch #s(approx (- 1 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (/ 1 y) 1)) (taylor inf y) (#s(alt #s(approx (- 1 y) y) (patch #s(approx (- 1 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x y)) (taylor -inf y) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ x (* -1 (/ x y))))) (taylor -inf y) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor -inf y) (#s(alt #s(approx (- 1 y) y) (patch #s(approx (- 1 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- 1 (/ 1 y)))) (taylor -inf y) (#s(alt #s(approx (- 1 y) y) (patch #s(approx (- 1 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- 1 (/ 1 y)))) (taylor -inf y) (#s(alt #s(approx (- 1 y) y) (patch #s(approx (- 1 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- 1 (/ 1 y)))) (taylor -inf y) (#s(alt #s(approx (- 1 y) y) (patch #s(approx (- 1 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor 0 x) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor inf x) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 y)) (taylor -inf x) (#s(alt (*.f64 #s(approx (- 1 y) y) x) (patch (*.f64 #s(approx (- 1 y) y) x) #<representation binary64>) () ())) ()) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | -inf | ((* (- 1 y) x) (- 1 y)) |
| 0.0ms | y | @ | -inf | ((* (- 1 y) x) (- 1 y)) |
| 0.0ms | y | @ | inf | ((* (- 1 y) x) (- 1 y)) |
| 0.0ms | x | @ | inf | ((* (- 1 y) x) (- 1 y)) |
| 0.0ms | x | @ | 0 | ((* (- 1 y) x) (- 1 y)) |
| 1× | egg-herbie |
| 8 840× | lower-fma.f64 |
| 8 840× | lower-fma.f32 |
| 2 370× | lower-*.f64 |
| 2 370× | lower-*.f32 |
| 2 096× | lower-/.f32 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 25 | 167 |
| 1 | 69 | 146 |
| 2 | 160 | 146 |
| 3 | 294 | 146 |
| 4 | 858 | 146 |
| 5 | 2435 | 146 |
| 6 | 3645 | 146 |
| 7 | 4189 | 146 |
| 8 | 4362 | 146 |
| 9 | 4399 | 146 |
| 10 | 4431 | 146 |
| 11 | 5099 | 146 |
| 12 | 5547 | 146 |
| 13 | 5648 | 146 |
| 14 | 5668 | 146 |
| 15 | 5678 | 146 |
| 16 | 5684 | 146 |
| 17 | 5684 | 146 |
| 18 | 5688 | 146 |
| 19 | 5692 | 146 |
| 20 | 6668 | 146 |
| 0 | 8367 | 146 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
x |
(+ x (* -1 (* x y))) |
(+ x (* -1 (* x y))) |
(+ x (* -1 (* x y))) |
1 |
(+ 1 (* -1 y)) |
(+ 1 (* -1 y)) |
(+ 1 (* -1 y)) |
(* -1 (* x y)) |
(* y (+ (* -1 x) (/ x y))) |
(* y (+ (* -1 x) (/ x y))) |
(* y (+ (* -1 x) (/ x y))) |
(* -1 y) |
(* y (- (/ 1 y) 1)) |
(* y (- (/ 1 y) 1)) |
(* y (- (/ 1 y) 1)) |
(* -1 (* x y)) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(* -1 y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(* -1 (* y (- 1 (/ 1 y)))) |
(* -1 (* y (- 1 (/ 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 (- 1 y)) |
| Outputs |
|---|
x |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
(+ x (* -1 (* x y))) |
(fma.f64 (neg.f64 x) y x) |
1 |
#s(literal 1 binary64) |
(+ 1 (* -1 y)) |
(-.f64 #s(literal 1 binary64) y) |
(+ 1 (* -1 y)) |
(-.f64 #s(literal 1 binary64) y) |
(+ 1 (* -1 y)) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* x y)) |
(*.f64 (neg.f64 x) y) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* y (+ (* -1 x) (/ x y))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 y) |
(neg.f64 y) |
(* y (- (/ 1 y) 1)) |
(-.f64 #s(literal 1 binary64) y) |
(* y (- (/ 1 y) 1)) |
(-.f64 #s(literal 1 binary64) y) |
(* y (- (/ 1 y) 1)) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* x y)) |
(*.f64 (neg.f64 x) y) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 (* y (+ x (* -1 (/ x y))))) |
(fma.f64 (neg.f64 x) y x) |
(* -1 y) |
(neg.f64 y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(-.f64 #s(literal 1 binary64) y) |
(* -1 (* y (- 1 (/ 1 y)))) |
(-.f64 #s(literal 1 binary64) y) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
(* x (- 1 y)) |
(fma.f64 (neg.f64 x) y x) |
| 6 148× | lower-fma.f64 |
| 6 148× | lower-fma.f32 |
| 2 936× | lower-/.f64 |
| 2 936× | lower-/.f32 |
| 2 906× | lower-*.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 12 |
| 0 | 7 | 12 |
| 1 | 25 | 12 |
| 2 | 131 | 12 |
| 3 | 1001 | 12 |
| 0 | 9896 | 12 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(*.f64 #s(approx (- 1 y) y) x) |
#s(approx (- 1 y) y) |
| Outputs |
|---|
#<batchref> |
#<batchref> |
#<batchref> |
Compiled 216 to 19 computations (91.2% saved)
4 alts after pruning (0 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 38 | 0 | 38 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 3 | 3 |
| Total | 38 | 4 | 42 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (fma.f64 (neg.f64 x) y x) |
| ✓ | 2.7% | (*.f64 #s(approx (- 1 y) y) x) |
| ✓ | 48.5% | (*.f64 x #s(approx (- 1 y) (neg.f64 y))) |
| ✓ | 53.1% | (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
Compiled 41 to 32 computations (22% saved)
| Inputs |
|---|
(*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
(*.f64 #s(approx (- 1 y) y) x) |
(*.f64 x #s(approx (- 1 y) (neg.f64 y))) |
(*.f64 x (-.f64 #s(literal 1 binary64) y)) |
(fma.f64 (neg.f64 x) y x) |
| Outputs |
|---|
(fma.f64 (neg.f64 x) y x) |
4 calls:
| 4.0ms | y |
| 2.0ms | (*.f64 x (-.f64 #s(literal 1 binary64) y)) |
| 2.0ms | x |
| 2.0ms | (-.f64 #s(literal 1 binary64) y) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | y |
| 100.0% | 1 | (*.f64 x (-.f64 #s(literal 1 binary64) y)) |
| 100.0% | 1 | (-.f64 #s(literal 1 binary64) y) |
Compiled 10 to 13 computations (-30% saved)
| Inputs |
|---|
(*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
(*.f64 #s(approx (- 1 y) y) x) |
(*.f64 x #s(approx (- 1 y) (neg.f64 y))) |
(*.f64 x (-.f64 #s(literal 1 binary64) y)) |
| Outputs |
|---|
(*.f64 x (-.f64 #s(literal 1 binary64) y)) |
4 calls:
| 4.0ms | x |
| 2.0ms | y |
| 2.0ms | (*.f64 x (-.f64 #s(literal 1 binary64) y)) |
| 2.0ms | (-.f64 #s(literal 1 binary64) y) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | y |
| 100.0% | 1 | (*.f64 x (-.f64 #s(literal 1 binary64) y)) |
| 100.0% | 1 | (-.f64 #s(literal 1 binary64) y) |
Compiled 10 to 13 computations (-30% saved)
| Inputs |
|---|
(*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
(*.f64 #s(approx (- 1 y) y) x) |
(*.f64 x #s(approx (- 1 y) (neg.f64 y))) |
| Outputs |
|---|
(*.f64 x #s(approx (- 1 y) (neg.f64 y))) |
(*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
(*.f64 x #s(approx (- 1 y) (neg.f64 y))) |
4 calls:
| 2.0ms | (*.f64 x (-.f64 #s(literal 1 binary64) y)) |
| 2.0ms | x |
| 2.0ms | y |
| 2.0ms | (-.f64 #s(literal 1 binary64) y) |
| Accuracy | Segments | Branch |
|---|---|---|
| 62.7% | 5 | x |
| 97.6% | 3 | y |
| 84.4% | 3 | (*.f64 x (-.f64 #s(literal 1 binary64) y)) |
| 97.6% | 3 | (-.f64 #s(literal 1 binary64) y) |
Compiled 10 to 13 computations (-30% saved)
Total -32.2b remaining (-107.3%)
Threshold costs -32.2b (-107.3%)
| Inputs |
|---|
(*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
(*.f64 #s(approx (- 1 y) y) x) |
| Outputs |
|---|
(*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
4 calls:
| 6.0ms | (*.f64 x (-.f64 #s(literal 1 binary64) y)) |
| 2.0ms | y |
| 2.0ms | x |
| 1.0ms | (-.f64 #s(literal 1 binary64) y) |
| Accuracy | Segments | Branch |
|---|---|---|
| 53.1% | 1 | x |
| 53.1% | 1 | (*.f64 x (-.f64 #s(literal 1 binary64) y)) |
| 53.1% | 1 | y |
| 53.1% | 1 | (-.f64 #s(literal 1 binary64) y) |
Compiled 10 to 13 computations (-30% saved)
| 2× | left-value |
| Time | Left | Right |
|---|---|---|
| 0.0ms | 1.2695292494094057 | 533.6416129294325 |
| 0.0ms | -1.2495571554999126e+27 | 0.01758263818543848 |
Compiled 8 to 10 computations (-25% saved)
| 1× | egg-herbie |
| 10× | *-commutative-binary64-*.f64 |
| 6× | +-commutative-binary64-+.f64 |
| 6× | sub-neg-binary64-neg.f64-+.f64--.f64 |
| 4× | neg-sub0-binary64--.f64-neg.f64 |
| 4× | neg-mul-1-binary64-*.f64-neg.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 19 | 52 |
| 1 | 31 | 52 |
| 2 | 36 | 52 |
| 3 | 38 | 52 |
| 1× | saturated |
| Inputs |
|---|
(fma.f64 (neg.f64 x) y x) |
(*.f64 x (-.f64 #s(literal 1 binary64) y)) |
(if (<=.f64 (-.f64 #s(literal 1 binary64) y) #s(literal -1000000000000000013287555072 binary64)) (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (if (<=.f64 (-.f64 #s(literal 1 binary64) y) #s(literal 2 binary64)) (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (*.f64 x #s(approx (- 1 y) (neg.f64 y))))) |
(*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
| Outputs |
|---|
(fma.f64 (neg.f64 x) y x) |
(*.f64 x (-.f64 #s(literal 1 binary64) y)) |
(*.f64 (-.f64 #s(literal 1 binary64) y) x) |
(if (<=.f64 (-.f64 #s(literal 1 binary64) y) #s(literal -1000000000000000013287555072 binary64)) (*.f64 x #s(approx (- 1 y) (neg.f64 y))) (if (<=.f64 (-.f64 #s(literal 1 binary64) y) #s(literal 2 binary64)) (*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) (*.f64 x #s(approx (- 1 y) (neg.f64 y))))) |
(if (<=.f64 (-.f64 #s(literal 1 binary64) y) #s(literal -1000000000000000013287555072 binary64)) (*.f64 #s(approx (- 1 y) (neg.f64 y)) x) (if (<=.f64 (-.f64 #s(literal 1 binary64) y) #s(literal 2 binary64)) (*.f64 #s(approx (- 1 y) #s(literal 1 binary64)) x) (*.f64 #s(approx (- 1 y) (neg.f64 y)) x))) |
(*.f64 x #s(approx (- 1 y) #s(literal 1 binary64))) |
(*.f64 #s(approx (- 1 y) #s(literal 1 binary64)) x) |
| 8 840× | lower-fma.f64 |
| 8 840× | lower-fma.f32 |
| 4 132× | lower-fma.f64 |
| 4 132× | lower-fma.f32 |
| 3 294× | lower-/.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 25 | 167 |
| 1 | 69 | 146 |
| 2 | 160 | 146 |
| 3 | 294 | 146 |
| 4 | 858 | 146 |
| 5 | 2435 | 146 |
| 6 | 3645 | 146 |
| 7 | 4189 | 146 |
| 8 | 4362 | 146 |
| 9 | 4399 | 146 |
| 10 | 4431 | 146 |
| 11 | 5099 | 146 |
| 12 | 5547 | 146 |
| 13 | 5648 | 146 |
| 14 | 5668 | 146 |
| 15 | 5678 | 146 |
| 16 | 5684 | 146 |
| 17 | 5684 | 146 |
| 18 | 5688 | 146 |
| 19 | 5692 | 146 |
| 20 | 6668 | 146 |
| 0 | 8367 | 146 |
| 0 | 5 | 8 |
| 0 | 7 | 8 |
| 1 | 25 | 8 |
| 2 | 145 | 8 |
| 3 | 1149 | 8 |
| 0 | 9894 | 7 |
| 1× | done |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | node limit |
Compiled 60 to 37 computations (38.3% saved)
(negabs x)
Compiled 120 to 70 computations (41.7% saved)
Loading profile data...