
Time bar (total: 3.8s)
| 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)
| 328.0ms | 8 256× | 0 | valid |
ival-mult: 93.0ms (60.9% of total)ival-sub: 47.0ms (30.8% of total)ival-true: 6.0ms (3.9% of total)exact: 4.0ms (2.6% of total)ival-assert: 3.0ms (2% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 0 | 0 | - | 0 | - | (-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| 0 | 0 | - | 0 | - | (*.f64 x #s(literal 2 binary64)) |
| 0 | 0 | - | 0 | - | #s(literal 2 binary64) |
| 0 | 0 | - | 0 | - | y |
| 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 |
| 24.0ms | 512× | 0 | valid |
Compiled 31 to 19 computations (38.7% saved)
ival-mult: 4.0ms (57.1% of total)ival-sub: 2.0ms (28.6% 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 |
| 128× | lower-fma.f64 |
| 128× | lower-fma.f32 |
| 80× | lower-*.f32 |
| 78× | lower-*.f64 |
| 44× | sub-neg |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 29 |
| 1 | 31 | 25 |
| 2 | 79 | 25 |
| 3 | 170 | 25 |
| 4 | 247 | 25 |
| 5 | 275 | 25 |
| 6 | 281 | 25 |
| 0 | 5 | 5 |
| 0 | 7 | 5 |
| 1 | 10 | 5 |
| 2 | 15 | 5 |
| 3 | 21 | 5 |
| 4 | 36 | 5 |
| 5 | 55 | 5 |
| 6 | 101 | 5 |
| 7 | 143 | 5 |
| 8 | 194 | 5 |
| 9 | 211 | 5 |
| 10 | 219 | 5 |
| 0 | 219 | 5 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| Outputs |
|---|
(-.f64 (*.f64 x #s(literal 2 binary64)) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
Compiled 5 to 5 computations (0% saved)
Compiled 0 to 2 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (-.f64 (*.f64 x #s(literal 2 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 x #s(literal 2 binary64)) | |
| cost-diff | 0 | (-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| 128× | lower-fma.f64 |
| 128× | lower-fma.f32 |
| 80× | lower-*.f32 |
| 78× | lower-*.f64 |
| 40× | lower-+.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 11 |
| 0 | 7 | 11 |
| 1 | 10 | 11 |
| 2 | 15 | 11 |
| 3 | 21 | 11 |
| 4 | 36 | 11 |
| 5 | 55 | 11 |
| 6 | 101 | 11 |
| 7 | 143 | 11 |
| 8 | 194 | 11 |
| 9 | 211 | 11 |
| 10 | 219 | 11 |
| 0 | 219 | 11 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(-.f64 (*.f64 x #s(literal 2 binary64)) y) |
(*.f64 x #s(literal 2 binary64)) |
x |
#s(literal 2 binary64) |
y |
| Outputs |
|---|
(-.f64 (*.f64 x #s(literal 2 binary64)) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(*.f64 x #s(literal 2 binary64)) |
(*.f64 #s(literal 2 binary64) x) |
x |
#s(literal 2 binary64) |
y |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (-.f64 (*.f64 x #s(literal 2 binary64)) y) | |
| accuracy | 0 | (*.f64 x #s(literal 2 binary64)) |
| 9.0ms | 256× | 0 | valid |
Compiled 13 to 7 computations (46.2% saved)
ival-mult: 2.0ms (59.3% of total)ival-sub: 1.0ms (29.7% 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 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ()) |
#s(alt (*.f64 x #s(literal 2 binary64)) (patch (*.f64 x #s(literal 2 binary64)) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt (* 2 x) (taylor 0 y) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (+ (* -1 y) (* 2 x)) (taylor 0 y) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (+ (* -1 y) (* 2 x)) (taylor 0 y) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (+ (* -1 y) (* 2 x)) (taylor 0 y) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor inf y) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (* 2 (/ x y)) 1)) (taylor inf y) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (* 2 (/ x y)) 1)) (taylor inf y) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (* 2 (/ x y)) 1)) (taylor inf y) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor -inf y) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ 1 (* -2 (/ x y))))) (taylor -inf y) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ 1 (* -2 (/ x y))))) (taylor -inf y) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ 1 (* -2 (/ x y))))) (taylor -inf y) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor 0 x) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (- (* 2 x) y) (taylor 0 x) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (- (* 2 x) y) (taylor 0 x) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (- (* 2 x) y) (taylor 0 x) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor 0 x) (#s(alt (*.f64 x #s(literal 2 binary64)) (patch (*.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor 0 x) (#s(alt (*.f64 x #s(literal 2 binary64)) (patch (*.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor 0 x) (#s(alt (*.f64 x #s(literal 2 binary64)) (patch (*.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor 0 x) (#s(alt (*.f64 x #s(literal 2 binary64)) (patch (*.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor inf x) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 2 (* -1 (/ y x)))) (taylor inf x) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 2 (* -1 (/ y x)))) (taylor inf x) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 2 (* -1 (/ y x)))) (taylor inf x) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor inf x) (#s(alt (*.f64 x #s(literal 2 binary64)) (patch (*.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor inf x) (#s(alt (*.f64 x #s(literal 2 binary64)) (patch (*.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor inf x) (#s(alt (*.f64 x #s(literal 2 binary64)) (patch (*.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor inf x) (#s(alt (*.f64 x #s(literal 2 binary64)) (patch (*.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor -inf x) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ y x) 2))) (taylor -inf x) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ y x) 2))) (taylor -inf x) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ y x) 2))) (taylor -inf x) (#s(alt (-.f64 (*.f64 x #s(literal 2 binary64)) y) (patch (-.f64 (*.f64 x #s(literal 2 binary64)) y) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor -inf x) (#s(alt (*.f64 x #s(literal 2 binary64)) (patch (*.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor -inf x) (#s(alt (*.f64 x #s(literal 2 binary64)) (patch (*.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor -inf x) (#s(alt (*.f64 x #s(literal 2 binary64)) (patch (*.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor -inf x) (#s(alt (*.f64 x #s(literal 2 binary64)) (patch (*.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((- (* x 2) y) (* x 2)) |
| 1.0ms | x | @ | inf | ((- (* x 2) y) (* x 2)) |
| 0.0ms | x | @ | 0 | ((- (* x 2) y) (* x 2)) |
| 0.0ms | y | @ | inf | ((- (* x 2) y) (* x 2)) |
| 0.0ms | y | @ | 0 | ((- (* x 2) y) (* x 2)) |
| 1× | egg-herbie |
| 3 140× | lower-*.f64 |
| 3 140× | lower-*.f32 |
| 2 392× | lower-fma.f64 |
| 2 392× | lower-fma.f32 |
| 1 872× | lower-/.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 25 | 141 |
| 1 | 68 | 141 |
| 2 | 170 | 141 |
| 3 | 436 | 141 |
| 4 | 958 | 141 |
| 5 | 1948 | 141 |
| 6 | 3052 | 141 |
| 7 | 4443 | 141 |
| 8 | 4919 | 141 |
| 9 | 5131 | 141 |
| 10 | 5185 | 141 |
| 11 | 5944 | 141 |
| 12 | 6883 | 141 |
| 13 | 7325 | 141 |
| 14 | 7907 | 141 |
| 0 | 8235 | 141 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
(* 2 x) |
(+ (* -1 y) (* 2 x)) |
(+ (* -1 y) (* 2 x)) |
(+ (* -1 y) (* 2 x)) |
(* -1 y) |
(* y (- (* 2 (/ x y)) 1)) |
(* y (- (* 2 (/ x y)) 1)) |
(* y (- (* 2 (/ x y)) 1)) |
(* -1 y) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(* -1 y) |
(- (* 2 x) y) |
(- (* 2 x) y) |
(- (* 2 x) y) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* x (+ 2 (* -1 (/ y x)))) |
(* x (+ 2 (* -1 (/ y x)))) |
(* x (+ 2 (* -1 (/ y x)))) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* -1 (* x (- (/ y x) 2))) |
(* -1 (* x (- (/ y x) 2))) |
(* -1 (* x (- (/ y x) 2))) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
| Outputs |
|---|
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(+ (* -1 y) (* 2 x)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(+ (* -1 y) (* 2 x)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(+ (* -1 y) (* 2 x)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 y) |
(neg.f64 y) |
(* y (- (* 2 (/ x y)) 1)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* y (- (* 2 (/ x y)) 1)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* y (- (* 2 (/ x y)) 1)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 y) |
(neg.f64 y) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 y) |
(neg.f64 y) |
(- (* 2 x) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(- (* 2 x) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(- (* 2 x) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* x (+ 2 (* -1 (/ y x)))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* x (+ 2 (* -1 (/ y x)))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* x (+ 2 (* -1 (/ y x)))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* -1 (* x (- (/ y x) 2))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* x (- (/ y x) 2))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* x (- (/ y x) 2))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
| 15 184× | lower-fma.f64 |
| 15 184× | lower-fma.f32 |
| 4 068× | lower-*.f32 |
| 4 066× | lower-*.f64 |
| 3 436× | lower-/.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 8 |
| 0 | 7 | 8 |
| 1 | 23 | 8 |
| 2 | 161 | 8 |
| 3 | 1576 | 8 |
| 0 | 9355 | 7 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(-.f64 (*.f64 x #s(literal 2 binary64)) y) |
(*.f64 x #s(literal 2 binary64)) |
| 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> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
Compiled 12 573 to 816 computations (93.5% saved)
3 alts after pruning (2 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 406 | 2 | 408 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 406 | 3 | 409 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| ▶ | 52.4% | #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) |
| ▶ | 48.8% | #s(approx (- (* x 2) y) (neg.f64 y)) |
Compiled 12 to 14 computations (-16.7% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 #s(literal 2 binary64) x) | |
| cost-diff | 0 | #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) | |
| cost-diff | 0 | (neg.f64 y) | |
| cost-diff | 0 | #s(approx (- (* x 2) y) (neg.f64 y)) |
| 128× | lower-fma.f64 |
| 128× | lower-fma.f32 |
| 80× | lower-*.f32 |
| 78× | lower-*.f64 |
| 40× | lower-+.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 25 |
| 0 | 11 | 25 |
| 1 | 17 | 25 |
| 2 | 22 | 25 |
| 3 | 29 | 25 |
| 4 | 45 | 25 |
| 5 | 66 | 25 |
| 6 | 105 | 25 |
| 7 | 148 | 25 |
| 8 | 199 | 25 |
| 9 | 216 | 25 |
| 10 | 224 | 25 |
| 0 | 224 | 25 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (- (* x 2) y) (neg.f64 y)) |
(neg.f64 y) |
y |
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) x) |
#s(literal 2 binary64) |
x |
| Outputs |
|---|
#s(approx (- (* x 2) y) (neg.f64 y)) |
(neg.f64 y) |
y |
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) x) |
#s(literal 2 binary64) |
x |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (*.f64 #s(literal 2 binary64) x) | |
| accuracy | 30.451792587754916 | #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) | |
| accuracy | 0 | (neg.f64 y) | |
| accuracy | 32.77584581875963 | #s(approx (- (* x 2) y) (neg.f64 y)) |
| 15.0ms | 256× | 0 | valid |
Compiled 20 to 9 computations (55% saved)
ival-mult: 3.0ms (50.5% of total)ival-sub: 1.0ms (16.8% of total)ival-neg: 1.0ms (16.8% 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 #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ()) |
#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ()) |
#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ()) |
#s(alt (*.f64 #s(literal 2 binary64) x) (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt (* 2 x) (taylor 0 y) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (* -1 y) (* 2 x)) (taylor 0 y) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (* -1 y) (* 2 x)) (taylor 0 y) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (* -1 y) (* 2 x)) (taylor 0 y) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) 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 (* 2 x) (taylor 0 y) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (+ (* -1 y) (* 2 x)) (taylor 0 y) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (+ (* -1 y) (* 2 x)) (taylor 0 y) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (+ (* -1 y) (* 2 x)) (taylor 0 y) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor inf y) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (* 2 (/ x y)) 1)) (taylor inf y) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (* 2 (/ x y)) 1)) (taylor inf y) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (* 2 (/ x y)) 1)) (taylor inf y) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) 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 y) (taylor inf y) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (* 2 (/ x y)) 1)) (taylor inf y) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (* 2 (/ x y)) 1)) (taylor inf y) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (* 2 (/ x y)) 1)) (taylor inf y) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor -inf y) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ 1 (* -2 (/ x y))))) (taylor -inf y) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ 1 (* -2 (/ x y))))) (taylor -inf y) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ 1 (* -2 (/ x y))))) (taylor -inf y) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) 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 y) (taylor -inf y) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ 1 (* -2 (/ x y))))) (taylor -inf y) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ 1 (* -2 (/ x y))))) (taylor -inf y) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ 1 (* -2 (/ x y))))) (taylor -inf y) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor 0 x) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (- (* 2 x) y) (taylor 0 x) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (- (* 2 x) y) (taylor 0 x) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (- (* 2 x) y) (taylor 0 x) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor 0 x) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (- (* 2 x) y) (taylor 0 x) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (- (* 2 x) y) (taylor 0 x) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (- (* 2 x) y) (taylor 0 x) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 2 binary64) x) (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 2 binary64) x) (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 2 binary64) x) (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 2 binary64) x) (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor inf x) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 2 (* -1 (/ y x)))) (taylor inf x) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 2 (* -1 (/ y x)))) (taylor inf x) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 2 (* -1 (/ y x)))) (taylor inf x) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor inf x) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 2 (* -1 (/ y x)))) (taylor inf x) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 2 (* -1 (/ y x)))) (taylor inf x) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 2 (* -1 (/ y x)))) (taylor inf x) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor inf x) (#s(alt (*.f64 #s(literal 2 binary64) x) (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor inf x) (#s(alt (*.f64 #s(literal 2 binary64) x) (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor inf x) (#s(alt (*.f64 #s(literal 2 binary64) x) (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor inf x) (#s(alt (*.f64 #s(literal 2 binary64) x) (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor -inf x) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ y x) 2))) (taylor -inf x) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ y x) 2))) (taylor -inf x) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ y x) 2))) (taylor -inf x) (#s(alt #s(approx (- (* x 2) y) (neg.f64 y)) (patch #s(approx (- (* x 2) y) (neg.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor -inf x) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ y x) 2))) (taylor -inf x) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ y x) 2))) (taylor -inf x) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ y x) 2))) (taylor -inf x) (#s(alt #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) (patch #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 2 binary64) x) (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 2 binary64) x) (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 2 binary64) x) (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 2 binary64) x) (patch (*.f64 #s(literal 2 binary64) x) #<representation binary64>) () ())) ()) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | inf | ((- (* x 2) y) (neg y) (- (* x 2) y) (* 2 x)) |
| 0.0ms | y | @ | inf | ((- (* x 2) y) (neg y) (- (* x 2) y) (* 2 x)) |
| 0.0ms | x | @ | -inf | ((- (* x 2) y) (neg y) (- (* x 2) y) (* 2 x)) |
| 0.0ms | y | @ | -inf | ((- (* x 2) y) (neg y) (- (* x 2) y) (* 2 x)) |
| 0.0ms | x | @ | 0 | ((- (* x 2) y) (neg y) (- (* x 2) y) (* 2 x)) |
| 1× | egg-herbie |
| 3 140× | lower-*.f64 |
| 3 140× | lower-*.f32 |
| 2 392× | lower-fma.f64 |
| 2 392× | lower-fma.f32 |
| 1 872× | lower-/.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 25 | 270 |
| 1 | 68 | 270 |
| 2 | 170 | 270 |
| 3 | 436 | 270 |
| 4 | 958 | 270 |
| 5 | 1948 | 270 |
| 6 | 3052 | 270 |
| 7 | 4443 | 270 |
| 8 | 4919 | 270 |
| 9 | 5131 | 270 |
| 10 | 5185 | 270 |
| 11 | 5944 | 270 |
| 12 | 6883 | 270 |
| 13 | 7325 | 270 |
| 14 | 7907 | 270 |
| 0 | 8235 | 270 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
(* 2 x) |
(+ (* -1 y) (* 2 x)) |
(+ (* -1 y) (* 2 x)) |
(+ (* -1 y) (* 2 x)) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* 2 x) |
(+ (* -1 y) (* 2 x)) |
(+ (* -1 y) (* 2 x)) |
(+ (* -1 y) (* 2 x)) |
(* -1 y) |
(* y (- (* 2 (/ x y)) 1)) |
(* y (- (* 2 (/ x y)) 1)) |
(* y (- (* 2 (/ x y)) 1)) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* y (- (* 2 (/ x y)) 1)) |
(* y (- (* 2 (/ x y)) 1)) |
(* y (- (* 2 (/ x y)) 1)) |
(* -1 y) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(* -1 y) |
(- (* 2 x) y) |
(- (* 2 x) y) |
(- (* 2 x) y) |
(* -1 y) |
(- (* 2 x) y) |
(- (* 2 x) y) |
(- (* 2 x) y) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* x (+ 2 (* -1 (/ y x)))) |
(* x (+ 2 (* -1 (/ y x)))) |
(* x (+ 2 (* -1 (/ y x)))) |
(* 2 x) |
(* x (+ 2 (* -1 (/ y x)))) |
(* x (+ 2 (* -1 (/ y x)))) |
(* x (+ 2 (* -1 (/ y x)))) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* -1 (* x (- (/ y x) 2))) |
(* -1 (* x (- (/ y x) 2))) |
(* -1 (* x (- (/ y x) 2))) |
(* 2 x) |
(* -1 (* x (- (/ y x) 2))) |
(* -1 (* x (- (/ y x) 2))) |
(* -1 (* x (- (/ y x) 2))) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
| Outputs |
|---|
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(+ (* -1 y) (* 2 x)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(+ (* -1 y) (* 2 x)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(+ (* -1 y) (* 2 x)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(+ (* -1 y) (* 2 x)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(+ (* -1 y) (* 2 x)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(+ (* -1 y) (* 2 x)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 y) |
(neg.f64 y) |
(* y (- (* 2 (/ x y)) 1)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* y (- (* 2 (/ x y)) 1)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* y (- (* 2 (/ x y)) 1)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* y (- (* 2 (/ x y)) 1)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* y (- (* 2 (/ x y)) 1)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* y (- (* 2 (/ x y)) 1)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 y) |
(neg.f64 y) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 y) |
(neg.f64 y) |
(- (* 2 x) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(- (* 2 x) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(- (* 2 x) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 y) |
(neg.f64 y) |
(- (* 2 x) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(- (* 2 x) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(- (* 2 x) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* x (+ 2 (* -1 (/ y x)))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* x (+ 2 (* -1 (/ y x)))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* x (+ 2 (* -1 (/ y x)))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* x (+ 2 (* -1 (/ y x)))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* x (+ 2 (* -1 (/ y x)))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* x (+ 2 (* -1 (/ y x)))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* -1 (* x (- (/ y x) 2))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* x (- (/ y x) 2))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* x (- (/ y x) 2))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* -1 (* x (- (/ y x) 2))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* x (- (/ y x) 2))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* x (- (/ y x) 2))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
| 6 618× | lower-fma.f64 |
| 6 618× | lower-fma.f32 |
| 3 430× | lower-/.f64 |
| 3 430× | lower-/.f32 |
| 3 094× | lower-*.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 22 |
| 0 | 11 | 22 |
| 1 | 30 | 22 |
| 2 | 178 | 22 |
| 3 | 1773 | 20 |
| 0 | 9448 | 18 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (- (* x 2) y) (neg.f64 y)) |
(neg.f64 y) |
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) 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> |
Compiled 985 to 206 computations (79.1% saved)
4 alts after pruning (1 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 139 | 1 | 140 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 1 | 1 |
| Total | 139 | 4 | 143 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| ✓ | 52.4% | #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) |
| ✓ | 48.8% | #s(approx (- (* x 2) y) (neg.f64 y)) |
| ▶ | 2.2% | #s(approx (- (* x 2) y) y) |
Compiled 14 to 17 computations (-21.4% saved)
| 1× | egg-herbie |
Found 1 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | #s(approx (- (* x 2) y) y) |
| 128× | lower-fma.f64 |
| 128× | lower-fma.f32 |
| 80× | lower-*.f64 |
| 80× | lower-*.f32 |
| 40× | lower-+.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 8 |
| 0 | 6 | 8 |
| 1 | 9 | 8 |
| 2 | 14 | 8 |
| 3 | 20 | 8 |
| 4 | 36 | 8 |
| 5 | 55 | 8 |
| 6 | 101 | 8 |
| 7 | 143 | 8 |
| 8 | 193 | 8 |
| 9 | 210 | 8 |
| 10 | 218 | 8 |
| 0 | 218 | 8 |
| 1× | iter limit |
| 1× | saturated |
| 1× | saturated |
| Inputs |
|---|
#s(approx (- (* x 2) y) y) |
y |
| Outputs |
|---|
#s(approx (- (* x 2) y) y) |
y |
Found 1 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 62.61055717721051 | #s(approx (- (* x 2) y) y) |
| 8.0ms | 256× | 0 | valid |
Compiled 8 to 7 computations (12.5% saved)
ival-mult: 2.0ms (60.6% of total)ival-sub: 1.0ms (30.3% 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 #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt (* 2 x) (taylor 0 y) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (+ (* -1 y) (* 2 x)) (taylor 0 y) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (+ (* -1 y) (* 2 x)) (taylor 0 y) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (+ (* -1 y) (* 2 x)) (taylor 0 y) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor inf y) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (* 2 (/ x y)) 1)) (taylor inf y) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (* 2 (/ x y)) 1)) (taylor inf y) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* y (- (* 2 (/ x y)) 1)) (taylor inf y) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor -inf y) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ 1 (* -2 (/ x y))))) (taylor -inf y) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ 1 (* -2 (/ x y))))) (taylor -inf y) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ 1 (* -2 (/ x y))))) (taylor -inf y) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 y) (taylor 0 x) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (- (* 2 x) y) (taylor 0 x) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (- (* 2 x) y) (taylor 0 x) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (- (* 2 x) y) (taylor 0 x) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor inf x) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 2 (* -1 (/ y x)))) (taylor inf x) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 2 (* -1 (/ y x)))) (taylor inf x) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 2 (* -1 (/ y x)))) (taylor inf x) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* 2 x) (taylor -inf x) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ y x) 2))) (taylor -inf x) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ y x) 2))) (taylor -inf x) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ y x) 2))) (taylor -inf x) (#s(alt #s(approx (- (* x 2) y) y) (patch #s(approx (- (* x 2) y) y) #<representation binary64>) () ())) ()) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | -inf | ((- (* x 2) y)) |
| 0.0ms | y | @ | inf | ((- (* x 2) y)) |
| 0.0ms | x | @ | inf | ((- (* x 2) y)) |
| 0.0ms | y | @ | -inf | ((- (* x 2) y)) |
| 0.0ms | y | @ | 0 | ((- (* x 2) y)) |
| 1× | egg-herbie |
| 3 140× | lower-*.f64 |
| 3 140× | lower-*.f32 |
| 2 392× | lower-fma.f64 |
| 2 392× | lower-fma.f32 |
| 1 872× | lower-/.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 25 | 105 |
| 1 | 68 | 105 |
| 2 | 170 | 105 |
| 3 | 436 | 105 |
| 4 | 958 | 105 |
| 5 | 1948 | 105 |
| 6 | 3052 | 105 |
| 7 | 4443 | 105 |
| 8 | 4919 | 105 |
| 9 | 5131 | 105 |
| 10 | 5185 | 105 |
| 11 | 5944 | 105 |
| 12 | 6883 | 105 |
| 13 | 7325 | 105 |
| 14 | 7907 | 105 |
| 0 | 8235 | 105 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
(* 2 x) |
(+ (* -1 y) (* 2 x)) |
(+ (* -1 y) (* 2 x)) |
(+ (* -1 y) (* 2 x)) |
(* -1 y) |
(* y (- (* 2 (/ x y)) 1)) |
(* y (- (* 2 (/ x y)) 1)) |
(* y (- (* 2 (/ x y)) 1)) |
(* -1 y) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(* -1 y) |
(- (* 2 x) y) |
(- (* 2 x) y) |
(- (* 2 x) y) |
(* 2 x) |
(* x (+ 2 (* -1 (/ y x)))) |
(* x (+ 2 (* -1 (/ y x)))) |
(* x (+ 2 (* -1 (/ y x)))) |
(* 2 x) |
(* -1 (* x (- (/ y x) 2))) |
(* -1 (* x (- (/ y x) 2))) |
(* -1 (* x (- (/ y x) 2))) |
| Outputs |
|---|
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(+ (* -1 y) (* 2 x)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(+ (* -1 y) (* 2 x)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(+ (* -1 y) (* 2 x)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 y) |
(neg.f64 y) |
(* y (- (* 2 (/ x y)) 1)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* y (- (* 2 (/ x y)) 1)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* y (- (* 2 (/ x y)) 1)) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 y) |
(neg.f64 y) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* y (+ 1 (* -2 (/ x y))))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 y) |
(neg.f64 y) |
(- (* 2 x) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(- (* 2 x) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(- (* 2 x) y) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* x (+ 2 (* -1 (/ y x)))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* x (+ 2 (* -1 (/ y x)))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* x (+ 2 (* -1 (/ y x)))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* -1 (* x (- (/ y x) 2))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* x (- (/ y x) 2))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
(* -1 (* x (- (/ y x) 2))) |
(fma.f64 #s(literal 2 binary64) x (neg.f64 y)) |
| 15 184× | lower-fma.f64 |
| 15 184× | lower-fma.f32 |
| 4 068× | lower-*.f64 |
| 4 068× | lower-*.f32 |
| 3 436× | lower-/.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 7 |
| 0 | 6 | 7 |
| 1 | 22 | 7 |
| 2 | 160 | 7 |
| 3 | 1570 | 7 |
| 0 | 9366 | 6 |
| 1× | iter limit |
| 1× | node limit |
| 1× | saturated |
| Inputs |
|---|
#s(approx (- (* x 2) y) y) |
| Outputs |
|---|
#<batchref> |
Compiled 131 to 10 computations (92.4% saved)
4 alts after pruning (0 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 25 | 0 | 25 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 3 | 3 |
| Total | 25 | 4 | 29 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| ✓ | 52.4% | #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) |
| ✓ | 48.8% | #s(approx (- (* x 2) y) (neg.f64 y)) |
| ✓ | 2.2% | #s(approx (- (* x 2) y) y) |
Compiled 28 to 27 computations (3.6% saved)
| Inputs |
|---|
#s(approx (- (* x 2) y) y) |
#s(approx (- (* x 2) y) (neg.f64 y)) |
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) |
(-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| Outputs |
|---|
(-.f64 (*.f64 x #s(literal 2 binary64)) y) |
4 calls:
| 191.0ms | (-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| 2.0ms | (*.f64 x #s(literal 2 binary64)) |
| 2.0ms | y |
| 2.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | y |
| 100.0% | 1 | (-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| 100.0% | 1 | (*.f64 x #s(literal 2 binary64)) |
Compiled 10 to 13 computations (-30% saved)
| Inputs |
|---|
#s(approx (- (* x 2) y) y) |
#s(approx (- (* x 2) y) (neg.f64 y)) |
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) |
| Outputs |
|---|
#s(approx (- (* x 2) y) (neg.f64 y)) |
#s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) |
#s(approx (- (* x 2) y) (neg.f64 y)) |
4 calls:
| 2.0ms | (-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| 2.0ms | (*.f64 x #s(literal 2 binary64)) |
| 2.0ms | y |
| 2.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 76.6% | 3 | x |
| 78.0% | 3 | y |
| 59.6% | 4 | (-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| 76.6% | 3 | (*.f64 x #s(literal 2 binary64)) |
Compiled 10 to 13 computations (-30% saved)
| Inputs |
|---|
#s(approx (- (* x 2) y) y) |
#s(approx (- (* x 2) y) (neg.f64 y)) |
| Outputs |
|---|
#s(approx (- (* x 2) y) (neg.f64 y)) |
4 calls:
| 195.0ms | x |
| 2.0ms | (-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| 2.0ms | (*.f64 x #s(literal 2 binary64)) |
| 2.0ms | y |
| Accuracy | Segments | Branch |
|---|---|---|
| 48.8% | 1 | (-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| 48.8% | 1 | x |
| 48.8% | 1 | (*.f64 x #s(literal 2 binary64)) |
| 48.8% | 1 | y |
Compiled 10 to 13 computations (-30% saved)
Total -0.0b remaining (-0%)
Threshold costs -0b (-0%)
| Inputs |
|---|
#s(approx (- (* x 2) y) y) |
| Outputs |
|---|
#s(approx (- (* x 2) y) y) |
4 calls:
| 1.0ms | y |
| 1.0ms | (*.f64 x #s(literal 2 binary64)) |
| 1.0ms | (-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| 1.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 2.2% | 1 | x |
| 2.2% | 1 | (-.f64 (*.f64 x #s(literal 2 binary64)) y) |
| 2.2% | 1 | (*.f64 x #s(literal 2 binary64)) |
| 2.2% | 1 | y |
Compiled 10 to 13 computations (-30% saved)
| 2× | binary-search |
| 1× | narrow-enough |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 9.0ms | 1.8419215734833918e-104 | 2.6100340954438544e-101 |
| 27.0ms | -3.0408508494241702e+78 | -5.2219607670265014e+76 |
| 8.0ms | 240× | 0 | valid |
Compiled 113 to 175 computations (-54.9% saved)
ival-mult: 2.0ms (61.8% of total)ival-sub: 1.0ms (30.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 |
| 4× | *-commutative-binary64-*.f64 |
| 4× | +-commutative-binary64-+.f64 |
| 4× | sub-neg-binary64-neg.f64-+.f64--.f64 |
| 2× | neg-sub0-binary64--.f64-neg.f64 |
| 2× | neg-mul-1-binary64-*.f64-neg.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 18 | 53 |
| 1 | 24 | 53 |
| 2 | 27 | 53 |
| 3 | 28 | 53 |
| 1× | saturated |
| Inputs |
|---|
(-.f64 (*.f64 x #s(literal 2 binary64)) y) |
(if (<=.f64 y #s(literal -53000000000000001530024301727595722900088632056995581537355364265285021335552 binary64)) #s(approx (- (* x 2) y) (neg.f64 y)) (if (<=.f64 y #s(literal 2048904322212513/78804012392788958424558080200287227610159478540930893335896586808491443542994421222828532509769831281613255980613632 binary64)) #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #s(approx (- (* x 2) y) (neg.f64 y)))) |
#s(approx (- (* x 2) y) (neg.f64 y)) |
#s(approx (- (* x 2) y) y) |
| Outputs |
|---|
(-.f64 (*.f64 x #s(literal 2 binary64)) y) |
(-.f64 (*.f64 #s(literal 2 binary64) x) y) |
(if (<=.f64 y #s(literal -53000000000000001530024301727595722900088632056995581537355364265285021335552 binary64)) #s(approx (- (* x 2) y) (neg.f64 y)) (if (<=.f64 y #s(literal 2048904322212513/78804012392788958424558080200287227610159478540930893335896586808491443542994421222828532509769831281613255980613632 binary64)) #s(approx (- (* x 2) y) (*.f64 #s(literal 2 binary64) x)) #s(approx (- (* x 2) y) (neg.f64 y)))) |
#s(approx (- (* x 2) y) (neg.f64 y)) |
#s(approx (- (* x 2) y) y) |
| 6 618× | lower-fma.f64 |
| 6 618× | lower-fma.f32 |
| 3 430× | lower-/.f64 |
| 3 430× | lower-/.f32 |
| 3 140× | lower-*.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 25 | 141 |
| 1 | 68 | 141 |
| 2 | 170 | 141 |
| 3 | 436 | 141 |
| 4 | 958 | 141 |
| 5 | 1948 | 141 |
| 6 | 3052 | 141 |
| 7 | 4443 | 141 |
| 8 | 4919 | 141 |
| 9 | 5131 | 141 |
| 10 | 5185 | 141 |
| 11 | 5944 | 141 |
| 12 | 6883 | 141 |
| 13 | 7325 | 141 |
| 14 | 7907 | 141 |
| 0 | 8235 | 141 |
| 0 | 9 | 22 |
| 0 | 11 | 22 |
| 1 | 30 | 22 |
| 2 | 178 | 22 |
| 3 | 1773 | 20 |
| 0 | 9448 | 18 |
| 1× | done |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | node limit |
Compiled 40 to 32 computations (20% saved)
Compiled 66 to 40 computations (39.4% saved)
Loading profile data...