
Time bar (total: 2.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 6 computations (14.3% saved)
| 610.0ms | 8 256× | 0 | valid |
ival-mult: 117.0ms (49.5% of total)ival-sub: 111.0ms (46.9% of total)ival-true: 6.0ms (2.5% of total)ival-assert: 3.0ms (1.3% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 0 | 0 | - | 0 | - | (-.f64 x (*.f64 y y)) |
| 0 | 0 | - | 0 | - | y |
| 0 | 0 | - | 0 | - | (*.f64 y 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 |
| 17.0ms | 512× | 0 | valid |
Compiled 29 to 16 computations (44.8% saved)
ival-mult: 4.0ms (61.3% of total)ival-sub: 2.0ms (30.7% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
| 112× | lower-fma.f64 |
| 112× | lower-fma.f32 |
| 80× | sub-neg |
| 72× | lower-*.f32 |
| 70× | lower-*.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 12 | 29 |
| 1 | 39 | 29 |
| 2 | 90 | 26 |
| 3 | 198 | 26 |
| 4 | 306 | 26 |
| 5 | 330 | 26 |
| 6 | 332 | 26 |
| 0 | 4 | 5 |
| 0 | 6 | 5 |
| 1 | 11 | 5 |
| 2 | 19 | 5 |
| 3 | 28 | 5 |
| 4 | 41 | 5 |
| 5 | 60 | 5 |
| 6 | 96 | 5 |
| 7 | 128 | 5 |
| 8 | 157 | 5 |
| 9 | 177 | 5 |
| 10 | 189 | 5 |
| 0 | 189 | 5 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(-.f64 x (*.f64 y y)) |
| Outputs |
|---|
(-.f64 x (*.f64 y y)) |
(fma.f64 (neg.f64 y) y x) |
(abs y)
Compiled 5 to 4 computations (20% saved)
Compiled 0 to 2 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (-.f64 x (*.f64 y y)) |
Compiled 5 to 4 computations (20% saved)
| 1× | egg-herbie |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 y y) | |
| cost-diff | 0 | (-.f64 x (*.f64 y y)) |
| 112× | lower-fma.f64 |
| 112× | lower-fma.f32 |
| 72× | lower-*.f32 |
| 70× | lower-*.f64 |
| 40× | lower-+.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 10 |
| 0 | 6 | 10 |
| 1 | 11 | 10 |
| 2 | 19 | 10 |
| 3 | 28 | 10 |
| 4 | 41 | 10 |
| 5 | 60 | 10 |
| 6 | 96 | 10 |
| 7 | 128 | 10 |
| 8 | 157 | 10 |
| 9 | 177 | 10 |
| 10 | 189 | 10 |
| 0 | 189 | 10 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(-.f64 x (*.f64 y y)) |
x |
(*.f64 y y) |
y |
| Outputs |
|---|
(-.f64 x (*.f64 y y)) |
(fma.f64 (neg.f64 y) y x) |
x |
(*.f64 y y) |
y |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (*.f64 y y) | |
| accuracy | 0.015625 | (-.f64 x (*.f64 y y)) |
| 10.0ms | 256× | 0 | valid |
Compiled 12 to 6 computations (50% saved)
ival-mult: 2.0ms (64.8% of total)ival-sub: 1.0ms (32.4% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ()) |
#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt x (taylor 0 y) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 y) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 y) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 y) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor 0 y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor 0 y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor 0 y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor 0 y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor inf y) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor inf y) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor inf y) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor inf y) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor -inf y) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor -inf y) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor -inf y) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor -inf y) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor -inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor -inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor -inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor -inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor 0 x) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (- x (pow y 2)) (taylor 0 x) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (- x (pow y 2)) (taylor 0 x) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (- x (pow y 2)) (taylor 0 x) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 (/ (pow y 2) x)))) (taylor inf x) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 (/ (pow y 2) x)))) (taylor inf x) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 (/ (pow y 2) x)))) (taylor inf x) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ (pow y 2) x) 1))) (taylor -inf x) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ (pow y 2) x) 1))) (taylor -inf x) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ (pow y 2) x) 1))) (taylor -inf x) (#s(alt (-.f64 x (*.f64 y y)) (patch (-.f64 x (*.f64 y y)) #<representation binary64>) () ())) ()) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | y | @ | inf | ((- x (* y y)) (* y y)) |
| 0.0ms | y | @ | -inf | ((- x (* y y)) (* y y)) |
| 0.0ms | y | @ | 0 | ((- x (* y y)) (* y y)) |
| 0.0ms | x | @ | 0 | ((- x (* y y)) (* y y)) |
| 0.0ms | x | @ | -inf | ((- x (* y y)) (* y y)) |
| 1× | egg-herbie |
| 3 332× | lower-*.f64 |
| 3 332× | lower-*.f32 |
| 3 136× | lower-fma.f64 |
| 3 136× | lower-fma.f32 |
| 2 370× | lower-/.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 19 | 141 |
| 1 | 46 | 141 |
| 2 | 112 | 141 |
| 3 | 309 | 141 |
| 4 | 929 | 141 |
| 5 | 1915 | 141 |
| 6 | 3790 | 141 |
| 7 | 6274 | 141 |
| 0 | 8148 | 141 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
x |
(+ x (* -1 (pow y 2))) |
(+ x (* -1 (pow y 2))) |
(+ x (* -1 (pow y 2))) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
(* -1 (pow y 2)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
(* -1 (pow y 2)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
(* -1 (pow y 2)) |
(- x (pow y 2)) |
(- x (pow y 2)) |
(- x (pow y 2)) |
x |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
x |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
| Outputs |
|---|
x |
(+ x (* -1 (pow y 2))) |
(-.f64 x (*.f64 y y)) |
(+ x (* -1 (pow y 2))) |
(-.f64 x (*.f64 y y)) |
(+ x (* -1 (pow y 2))) |
(-.f64 x (*.f64 y y)) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(-.f64 x (*.f64 y y)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(-.f64 x (*.f64 y y)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(-.f64 x (*.f64 y y)) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(-.f64 x (*.f64 y y)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(-.f64 x (*.f64 y y)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(-.f64 x (*.f64 y y)) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(- x (pow y 2)) |
(-.f64 x (*.f64 y y)) |
(- x (pow y 2)) |
(-.f64 x (*.f64 y y)) |
(- x (pow y 2)) |
(-.f64 x (*.f64 y y)) |
x |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(-.f64 x (*.f64 y y)) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(-.f64 x (*.f64 y y)) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(-.f64 x (*.f64 y y)) |
x |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(-.f64 x (*.f64 y y)) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(-.f64 x (*.f64 y y)) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(-.f64 x (*.f64 y y)) |
| 7 732× | lower-fma.f64 |
| 7 732× | lower-fma.f32 |
| 3 890× | lower-/.f64 |
| 3 890× | lower-/.f32 |
| 3 616× | lower-*.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 8 |
| 0 | 6 | 8 |
| 1 | 26 | 8 |
| 2 | 179 | 8 |
| 3 | 1554 | 8 |
| 0 | 8483 | 8 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(-.f64 x (*.f64 y y)) |
(*.f64 y 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> |
Compiled 6 631 to 573 computations (91.4% saved)
2 alts after pruning (2 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 232 | 2 | 234 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 233 | 2 | 235 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (fma.f64 (neg.f64 y) y x) |
| ▶ | 52.4% | #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) |
Compiled 10 to 9 computations (10% saved)
| 1× | egg-herbie |
Found 5 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (neg.f64 y) | |
| cost-diff | 0 | (fma.f64 (neg.f64 y) y x) | |
| cost-diff | 0 | (neg.f64 y) | |
| cost-diff | 0 | (*.f64 (neg.f64 y) y) | |
| cost-diff | 0 | #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) |
| 112× | lower-fma.f32 |
| 110× | lower-fma.f64 |
| 72× | lower-*.f32 |
| 70× | lower-*.f64 |
| 40× | lower-+.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 26 |
| 0 | 11 | 26 |
| 1 | 19 | 26 |
| 2 | 24 | 26 |
| 3 | 36 | 26 |
| 4 | 48 | 26 |
| 5 | 66 | 26 |
| 6 | 105 | 26 |
| 7 | 132 | 26 |
| 8 | 159 | 26 |
| 9 | 179 | 26 |
| 10 | 191 | 26 |
| 0 | 191 | 26 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) |
(*.f64 (neg.f64 y) y) |
(neg.f64 y) |
y |
(fma.f64 (neg.f64 y) y x) |
(neg.f64 y) |
y |
x |
| Outputs |
|---|
#s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) |
(*.f64 (neg.f64 y) y) |
(neg.f64 y) |
y |
(fma.f64 (neg.f64 y) y x) |
(-.f64 x (*.f64 y y)) |
(neg.f64 y) |
y |
x |
Found 5 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (fma.f64 (neg.f64 y) y x) | |
| accuracy | 0 | (neg.f64 y) | |
| accuracy | 0 | (*.f64 (neg.f64 y) y) | |
| accuracy | 0 | (neg.f64 y) | |
| accuracy | 30.43830366938934 | #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) |
| 34.0ms | 256× | 0 | valid |
Compiled 24 to 9 computations (62.5% saved)
ival-mult: 3.0ms (41.1% of total)ival-sub: 1.0ms (13.7% of total)ival-add: 1.0ms (13.7% of total)ival-neg: 1.0ms (13.7% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ()) |
#s(alt (*.f64 (neg.f64 y) y) (patch (*.f64 (neg.f64 y) y) #<representation binary64>) () ()) |
#s(alt (neg.f64 y) (patch (neg.f64 y) #<representation binary64>) () ()) |
#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt x (taylor 0 y) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 y) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 y) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 y) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor 0 y) (#s(alt (*.f64 (neg.f64 y) y) (patch (*.f64 (neg.f64 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor 0 y) (#s(alt (*.f64 (neg.f64 y) y) (patch (*.f64 (neg.f64 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor 0 y) (#s(alt (*.f64 (neg.f64 y) y) (patch (*.f64 (neg.f64 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor 0 y) (#s(alt (*.f64 (neg.f64 y) y) (patch (*.f64 (neg.f64 y) 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 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 y) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 y) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 y) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor inf y) (#s(alt (*.f64 (neg.f64 y) y) (patch (*.f64 (neg.f64 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor inf y) (#s(alt (*.f64 (neg.f64 y) y) (patch (*.f64 (neg.f64 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor inf y) (#s(alt (*.f64 (neg.f64 y) y) (patch (*.f64 (neg.f64 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor inf y) (#s(alt (*.f64 (neg.f64 y) y) (patch (*.f64 (neg.f64 y) 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 (pow y 2)) (taylor inf y) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor inf y) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor inf y) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor inf y) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor -inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor -inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor -inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor -inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor -inf y) (#s(alt (*.f64 (neg.f64 y) y) (patch (*.f64 (neg.f64 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor -inf y) (#s(alt (*.f64 (neg.f64 y) y) (patch (*.f64 (neg.f64 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor -inf y) (#s(alt (*.f64 (neg.f64 y) y) (patch (*.f64 (neg.f64 y) y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor -inf y) (#s(alt (*.f64 (neg.f64 y) y) (patch (*.f64 (neg.f64 y) 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 (pow y 2)) (taylor -inf y) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor -inf y) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor -inf y) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor -inf y) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor 0 x) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (- x (pow y 2)) (taylor 0 x) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (- x (pow y 2)) (taylor 0 x) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (- x (pow y 2)) (taylor 0 x) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor 0 x) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 x) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 x) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 x) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 (/ (pow y 2) x)))) (taylor inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 (/ (pow y 2) x)))) (taylor inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 (/ (pow y 2) x)))) (taylor inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 (/ (pow y 2) x)))) (taylor inf x) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 (/ (pow y 2) x)))) (taylor inf x) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 (/ (pow y 2) x)))) (taylor inf x) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ (pow y 2) x) 1))) (taylor -inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ (pow y 2) x) 1))) (taylor -inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ (pow y 2) x) 1))) (taylor -inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) (patch #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ (pow y 2) x) 1))) (taylor -inf x) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ (pow y 2) x) 1))) (taylor -inf x) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ (pow y 2) x) 1))) (taylor -inf x) (#s(alt (fma.f64 (neg.f64 y) y x) (patch (fma.f64 (neg.f64 y) y x) #<representation binary64>) () ())) ()) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | y | @ | inf | ((- x (* y y)) (* (neg y) y) (neg y) (+ (* (neg y) y) x)) |
| 1.0ms | y | @ | -inf | ((- x (* y y)) (* (neg y) y) (neg y) (+ (* (neg y) y) x)) |
| 1.0ms | x | @ | 0 | ((- x (* y y)) (* (neg y) y) (neg y) (+ (* (neg y) y) x)) |
| 0.0ms | y | @ | 0 | ((- x (* y y)) (* (neg y) y) (neg y) (+ (* (neg y) y) x)) |
| 0.0ms | x | @ | inf | ((- x (* y y)) (* (neg y) y) (neg y) (+ (* (neg y) y) x)) |
| 1× | egg-herbie |
| 3 318× | lower-*.f64 |
| 3 318× | lower-*.f32 |
| 3 102× | lower-fma.f64 |
| 3 102× | lower-fma.f32 |
| 2 370× | lower-/.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 20 | 282 |
| 1 | 49 | 282 |
| 2 | 111 | 282 |
| 3 | 295 | 282 |
| 4 | 928 | 282 |
| 5 | 1962 | 282 |
| 6 | 3794 | 282 |
| 7 | 6291 | 282 |
| 0 | 8149 | 282 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
x |
(+ x (* -1 (pow y 2))) |
(+ x (* -1 (pow y 2))) |
(+ x (* -1 (pow y 2))) |
(* -1 (pow y 2)) |
(* -1 (pow y 2)) |
(* -1 (pow y 2)) |
(* -1 (pow y 2)) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
x |
(+ x (* -1 (pow y 2))) |
(+ x (* -1 (pow y 2))) |
(+ x (* -1 (pow y 2))) |
(* -1 (pow y 2)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* -1 (pow y 2)) |
(* -1 (pow y 2)) |
(* -1 (pow y 2)) |
(* -1 (pow y 2)) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 (pow y 2)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* -1 (pow y 2)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* -1 (pow y 2)) |
(* -1 (pow y 2)) |
(* -1 (pow y 2)) |
(* -1 (pow y 2)) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 y) |
(* -1 (pow y 2)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* -1 (pow y 2)) |
(- x (pow y 2)) |
(- x (pow y 2)) |
(- x (pow y 2)) |
(* -1 (pow y 2)) |
(+ x (* -1 (pow y 2))) |
(+ x (* -1 (pow y 2))) |
(+ x (* -1 (pow y 2))) |
x |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
x |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
x |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
x |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
| Outputs |
|---|
x |
(+ x (* -1 (pow y 2))) |
(fma.f64 (neg.f64 y) y x) |
(+ x (* -1 (pow y 2))) |
(fma.f64 (neg.f64 y) y x) |
(+ x (* -1 (pow y 2))) |
(fma.f64 (neg.f64 y) y x) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
x |
(+ x (* -1 (pow y 2))) |
(fma.f64 (neg.f64 y) y x) |
(+ x (* -1 (pow y 2))) |
(fma.f64 (neg.f64 y) y x) |
(+ x (* -1 (pow y 2))) |
(fma.f64 (neg.f64 y) y x) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(fma.f64 (neg.f64 y) y x) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(fma.f64 (neg.f64 y) y x) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(fma.f64 (neg.f64 y) y x) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(fma.f64 (neg.f64 y) y x) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(fma.f64 (neg.f64 y) y x) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(fma.f64 (neg.f64 y) y x) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(fma.f64 (neg.f64 y) y x) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(fma.f64 (neg.f64 y) y x) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(fma.f64 (neg.f64 y) y x) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 y) |
(neg.f64 y) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(fma.f64 (neg.f64 y) y x) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(fma.f64 (neg.f64 y) y x) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(fma.f64 (neg.f64 y) y x) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(- x (pow y 2)) |
(fma.f64 (neg.f64 y) y x) |
(- x (pow y 2)) |
(fma.f64 (neg.f64 y) y x) |
(- x (pow y 2)) |
(fma.f64 (neg.f64 y) y x) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(+ x (* -1 (pow y 2))) |
(fma.f64 (neg.f64 y) y x) |
(+ x (* -1 (pow y 2))) |
(fma.f64 (neg.f64 y) y x) |
(+ x (* -1 (pow y 2))) |
(fma.f64 (neg.f64 y) y x) |
x |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(fma.f64 (neg.f64 y) y x) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(fma.f64 (neg.f64 y) y x) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(fma.f64 (neg.f64 y) y x) |
x |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(fma.f64 (neg.f64 y) y x) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(fma.f64 (neg.f64 y) y x) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(fma.f64 (neg.f64 y) y x) |
x |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(fma.f64 (neg.f64 y) y x) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(fma.f64 (neg.f64 y) y x) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(fma.f64 (neg.f64 y) y x) |
x |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(fma.f64 (neg.f64 y) y x) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(fma.f64 (neg.f64 y) y x) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(fma.f64 (neg.f64 y) y x) |
| 3 388× | lower-fma.f32 |
| 3 386× | lower-fma.f64 |
| 2 770× | lower-*.f32 |
| 2 768× | lower-*.f64 |
| 2 574× | lower-/.f64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 21 |
| 0 | 11 | 21 |
| 1 | 44 | 21 |
| 2 | 308 | 21 |
| 3 | 3235 | 16 |
| 0 | 9233 | 16 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) |
(*.f64 (neg.f64 y) y) |
(neg.f64 y) |
(fma.f64 (neg.f64 y) y 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> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<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 6 931 to 847 computations (87.8% saved)
4 alts after pruning (2 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 403 | 2 | 405 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 0 | 0 |
| Total | 403 | 4 | 407 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (fma.f64 (neg.f64 y) y x) |
| ▶ | 47.9% | (fma.f64 y y x) |
| ✓ | 52.4% | #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) |
| ▶ | 2.2% | #s(approx (- x (* y y)) (*.f64 y y)) |
Compiled 18 to 16 computations (11.1% saved)
| 1× | egg-herbie |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (fma.f64 y y x) | |
| cost-diff | 0 | (*.f64 y y) | |
| cost-diff | 0 | #s(approx (- x (* y y)) (*.f64 y y)) |
| 168× | lower-fma.f32 |
| 166× | lower-fma.f64 |
| 88× | lower-*.f32 |
| 86× | lower-*.f64 |
| 56× | lower-+.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 19 |
| 0 | 9 | 19 |
| 1 | 15 | 19 |
| 2 | 23 | 19 |
| 3 | 32 | 19 |
| 4 | 46 | 19 |
| 5 | 71 | 19 |
| 6 | 104 | 19 |
| 7 | 140 | 19 |
| 8 | 178 | 19 |
| 9 | 207 | 19 |
| 10 | 231 | 19 |
| 11 | 233 | 19 |
| 0 | 233 | 19 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (- x (* y y)) (*.f64 y y)) |
(*.f64 y y) |
y |
(fma.f64 y y x) |
y |
x |
| Outputs |
|---|
#s(approx (- x (* y y)) (*.f64 y y)) |
(*.f64 y y) |
y |
(fma.f64 y y x) |
y |
x |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (fma.f64 y y x) | |
| accuracy | 0 | (*.f64 y y) | |
| accuracy | 62.621264243833274 | #s(approx (- x (* y y)) (*.f64 y y)) |
| 10.0ms | 256× | 0 | valid |
Compiled 18 to 7 computations (61.1% saved)
ival-mult: 2.0ms (47.6% of total)ival-sub: 1.0ms (23.8% of total)ival-add: 1.0ms (23.8% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ()) |
#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ()) |
#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt x (taylor 0 y) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 y) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 y) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (+ x (* -1 (pow y 2))) (taylor 0 y) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor 0 y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor 0 y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor 0 y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor 0 y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt x (taylor 0 y) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (pow y 2)) (taylor 0 y) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (pow y 2)) (taylor 0 y) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (pow y 2)) (taylor 0 y) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor inf y) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (+ 1 (/ x (pow y 2)))) (taylor inf y) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (+ 1 (/ x (pow y 2)))) (taylor inf y) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (+ 1 (/ x (pow y 2)))) (taylor inf y) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor -inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor -inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor -inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (- (/ x (pow y 2)) 1)) (taylor -inf y) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor -inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor -inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor -inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor -inf y) (#s(alt (*.f64 y y) (patch (*.f64 y y) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor -inf y) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (+ 1 (/ x (pow y 2)))) (taylor -inf y) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (+ 1 (/ x (pow y 2)))) (taylor -inf y) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* (pow y 2) (+ 1 (/ x (pow y 2)))) (taylor -inf y) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (pow y 2)) (taylor 0 x) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (- x (pow y 2)) (taylor 0 x) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (- x (pow y 2)) (taylor 0 x) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (- x (pow y 2)) (taylor 0 x) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (pow y 2) (taylor 0 x) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (pow y 2)) (taylor 0 x) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (pow y 2)) (taylor 0 x) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (+ x (pow y 2)) (taylor 0 x) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 (/ (pow y 2) x)))) (taylor inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 (/ (pow y 2) x)))) (taylor inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* -1 (/ (pow y 2) x)))) (taylor inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (/ (pow y 2) x))) (taylor inf x) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (/ (pow y 2) x))) (taylor inf x) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (/ (pow y 2) x))) (taylor inf x) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ (pow y 2) x) 1))) (taylor -inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ (pow y 2) x) 1))) (taylor -inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (/ (pow y 2) x) 1))) (taylor -inf x) (#s(alt #s(approx (- x (* y y)) (*.f64 y y)) (patch #s(approx (- x (* y y)) (*.f64 y y)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* -1 (/ (pow y 2) x)) 1))) (taylor -inf x) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* -1 (/ (pow y 2) x)) 1))) (taylor -inf x) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* -1 (/ (pow y 2) x)) 1))) (taylor -inf x) (#s(alt (fma.f64 y y x) (patch (fma.f64 y y x) #<representation binary64>) () ())) ()) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | y | @ | -inf | ((- x (* y y)) (* y y) (+ (* y y) x)) |
| 0.0ms | y | @ | inf | ((- x (* y y)) (* y y) (+ (* y y) x)) |
| 0.0ms | y | @ | 0 | ((- x (* y y)) (* y y) (+ (* y y) x)) |
| 0.0ms | x | @ | -inf | ((- x (* y y)) (* y y) (+ (* y y) x)) |
| 0.0ms | x | @ | inf | ((- x (* y y)) (* y y) (+ (* y y) x)) |
| 1× | egg-herbie |
| 3 506× | lower-*.f64 |
| 3 506× | lower-*.f32 |
| 3 232× | lower-fma.f64 |
| 3 232× | lower-fma.f32 |
| 2 032× | lower-/.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 27 | 243 |
| 1 | 74 | 243 |
| 2 | 181 | 243 |
| 3 | 531 | 243 |
| 4 | 1513 | 243 |
| 5 | 2969 | 243 |
| 6 | 5225 | 243 |
| 7 | 6553 | 243 |
| 0 | 8013 | 225 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
x |
(+ x (* -1 (pow y 2))) |
(+ x (* -1 (pow y 2))) |
(+ x (* -1 (pow y 2))) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
x |
(+ x (pow y 2)) |
(+ x (pow y 2)) |
(+ x (pow y 2)) |
(* -1 (pow y 2)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
(* (pow y 2) (+ 1 (/ x (pow y 2)))) |
(* (pow y 2) (+ 1 (/ x (pow y 2)))) |
(* (pow y 2) (+ 1 (/ x (pow y 2)))) |
(* -1 (pow y 2)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
(pow y 2) |
(* (pow y 2) (+ 1 (/ x (pow y 2)))) |
(* (pow y 2) (+ 1 (/ x (pow y 2)))) |
(* (pow y 2) (+ 1 (/ x (pow y 2)))) |
(* -1 (pow y 2)) |
(- x (pow y 2)) |
(- x (pow y 2)) |
(- x (pow y 2)) |
(pow y 2) |
(+ x (pow y 2)) |
(+ x (pow y 2)) |
(+ x (pow y 2)) |
x |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
x |
(* x (+ 1 (/ (pow y 2) x))) |
(* x (+ 1 (/ (pow y 2) x))) |
(* x (+ 1 (/ (pow y 2) x))) |
x |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
x |
(* -1 (* x (- (* -1 (/ (pow y 2) x)) 1))) |
(* -1 (* x (- (* -1 (/ (pow y 2) x)) 1))) |
(* -1 (* x (- (* -1 (/ (pow y 2) x)) 1))) |
| Outputs |
|---|
x |
(+ x (* -1 (pow y 2))) |
(-.f64 x (*.f64 y y)) |
(+ x (* -1 (pow y 2))) |
(-.f64 x (*.f64 y y)) |
(+ x (* -1 (pow y 2))) |
(-.f64 x (*.f64 y y)) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
x |
(+ x (pow y 2)) |
(fma.f64 y y x) |
(+ x (pow y 2)) |
(fma.f64 y y x) |
(+ x (pow y 2)) |
(fma.f64 y y x) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(-.f64 x (*.f64 y y)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(-.f64 x (*.f64 y y)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(-.f64 x (*.f64 y y)) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(* (pow y 2) (+ 1 (/ x (pow y 2)))) |
(fma.f64 y y x) |
(* (pow y 2) (+ 1 (/ x (pow y 2)))) |
(fma.f64 y y x) |
(* (pow y 2) (+ 1 (/ x (pow y 2)))) |
(fma.f64 y y x) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(-.f64 x (*.f64 y y)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(-.f64 x (*.f64 y y)) |
(* (pow y 2) (- (/ x (pow y 2)) 1)) |
(-.f64 x (*.f64 y y)) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(pow y 2) |
(*.f64 y y) |
(* (pow y 2) (+ 1 (/ x (pow y 2)))) |
(fma.f64 y y x) |
(* (pow y 2) (+ 1 (/ x (pow y 2)))) |
(fma.f64 y y x) |
(* (pow y 2) (+ 1 (/ x (pow y 2)))) |
(fma.f64 y y x) |
(* -1 (pow y 2)) |
(*.f64 (neg.f64 y) y) |
(- x (pow y 2)) |
(-.f64 x (*.f64 y y)) |
(- x (pow y 2)) |
(-.f64 x (*.f64 y y)) |
(- x (pow y 2)) |
(-.f64 x (*.f64 y y)) |
(pow y 2) |
(*.f64 y y) |
(+ x (pow y 2)) |
(fma.f64 y y x) |
(+ x (pow y 2)) |
(fma.f64 y y x) |
(+ x (pow y 2)) |
(fma.f64 y y x) |
x |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(-.f64 x (*.f64 y y)) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(-.f64 x (*.f64 y y)) |
(* x (+ 1 (* -1 (/ (pow y 2) x)))) |
(-.f64 x (*.f64 y y)) |
x |
(* x (+ 1 (/ (pow y 2) x))) |
(fma.f64 y y x) |
(* x (+ 1 (/ (pow y 2) x))) |
(fma.f64 y y x) |
(* x (+ 1 (/ (pow y 2) x))) |
(fma.f64 y y x) |
x |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(-.f64 x (*.f64 y y)) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(-.f64 x (*.f64 y y)) |
(* -1 (* x (- (/ (pow y 2) x) 1))) |
(-.f64 x (*.f64 y y)) |
x |
(* -1 (* x (- (* -1 (/ (pow y 2) x)) 1))) |
(fma.f64 y y x) |
(* -1 (* x (- (* -1 (/ (pow y 2) x)) 1))) |
(fma.f64 y y x) |
(* -1 (* x (- (* -1 (/ (pow y 2) x)) 1))) |
(fma.f64 y y x) |
| 4 588× | lower-/.f64 |
| 4 588× | lower-/.f32 |
| 4 074× | lower-fma.f32 |
| 4 072× | lower-fma.f64 |
| 3 462× | lower-*.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 16 |
| 0 | 9 | 16 |
| 1 | 37 | 16 |
| 2 | 274 | 16 |
| 3 | 3022 | 16 |
| 0 | 9018 | 16 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (- x (* y y)) (*.f64 y y)) |
(*.f64 y y) |
(fma.f64 y y 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> |
Compiled 4 009 to 448 computations (88.8% saved)
4 alts after pruning (0 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 206 | 0 | 206 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 2 | 2 |
| Total | 206 | 4 | 210 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (fma.f64 (neg.f64 y) y x) |
| ✓ | 47.9% | (fma.f64 y y x) |
| ✓ | 52.4% | #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) |
| ✓ | 2.2% | #s(approx (- x (* y y)) (*.f64 y y)) |
Compiled 41 to 26 computations (36.6% saved)
| Inputs |
|---|
#s(approx (- x (* y y)) (*.f64 y y)) |
(fma.f64 y y x) |
#s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) |
(-.f64 x (*.f64 y y)) |
(fma.f64 (neg.f64 y) y x) |
| Outputs |
|---|
(fma.f64 (neg.f64 y) y x) |
4 calls:
| 2.0ms | x |
| 2.0ms | y |
| 2.0ms | (*.f64 y y) |
| 2.0ms | (-.f64 x (*.f64 y y)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | y |
| 100.0% | 1 | (-.f64 x (*.f64 y y)) |
| 100.0% | 1 | (*.f64 y y) |
Compiled 10 to 11 computations (-10% saved)
| Inputs |
|---|
#s(approx (- x (* y y)) (*.f64 y y)) |
(fma.f64 y y x) |
#s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) |
(-.f64 x (*.f64 y y)) |
| Outputs |
|---|
(-.f64 x (*.f64 y y)) |
4 calls:
| 3.0ms | y |
| 2.0ms | x |
| 2.0ms | (*.f64 y y) |
| 2.0ms | (-.f64 x (*.f64 y y)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | y |
| 100.0% | 1 | (-.f64 x (*.f64 y y)) |
| 100.0% | 1 | (*.f64 y y) |
Compiled 10 to 11 computations (-10% saved)
| Inputs |
|---|
#s(approx (- x (* y y)) (*.f64 y y)) |
(fma.f64 y y x) |
#s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) |
| Outputs |
|---|
(fma.f64 y y x) |
#s(approx (- x (* y y)) (*.f64 (neg.f64 y) y)) |
4 calls:
| 2.0ms | x |
| 2.0ms | y |
| 2.0ms | (*.f64 y y) |
| 2.0ms | (-.f64 x (*.f64 y y)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 65.1% | 3 | x |
| 89.7% | 2 | y |
| 83.0% | 2 | (-.f64 x (*.f64 y y)) |
| 89.7% | 2 | (*.f64 y y) |
Compiled 10 to 11 computations (-10% saved)
| Inputs |
|---|
#s(approx (- x (* y y)) (*.f64 y y)) |
(fma.f64 y y x) |
| Outputs |
|---|
(fma.f64 y y x) |
4 calls:
| 2.0ms | x |
| 2.0ms | y |
| 1.0ms | (*.f64 y y) |
| 1.0ms | (-.f64 x (*.f64 y y)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 47.9% | 1 | x |
| 47.9% | 1 | (-.f64 x (*.f64 y y)) |
| 47.9% | 1 | y |
| 47.9% | 1 | (*.f64 y y) |
Compiled 10 to 11 computations (-10% saved)
Total -0.0b remaining (-0%)
Threshold costs -0b (-0%)
| Inputs |
|---|
#s(approx (- x (* y y)) (*.f64 y y)) |
| Outputs |
|---|
#s(approx (- x (* y y)) (*.f64 y y)) |
4 calls:
| 1.0ms | x |
| 1.0ms | y |
| 1.0ms | (*.f64 y y) |
| 1.0ms | (-.f64 x (*.f64 y y)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 2.2% | 1 | x |
| 2.2% | 1 | (-.f64 x (*.f64 y y)) |
| 2.2% | 1 | y |
| 2.2% | 1 | (*.f64 y y) |
Compiled 10 to 11 computations (-10% saved)
| 1× | left-value |
| Time | Left | Right |
|---|---|---|
| 0.0ms | 7.791364394693736e-68 | 5.420911777216145e-52 |
Compiled 8 to 9 computations (-12.5% saved)
| 1× | egg-herbie |
| 6× | *-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 | 15 | 43 |
| 1 | 23 | 43 |
| 2 | 28 | 43 |
| 3 | 31 | 43 |
| 4 | 32 | 43 |
| 1× | saturated |
| Inputs |
|---|
(fma.f64 (neg.f64 y) y x) |
(-.f64 x (*.f64 y y)) |
(if (<=.f64 (*.f64 y y) #s(literal 6070840288205403/60708402882054033466233184588234965832575213720379360039119137804340758912662765568 binary64)) (fma.f64 y y x) #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y))) |
(fma.f64 y y x) |
#s(approx (- x (* y y)) (*.f64 y y)) |
| Outputs |
|---|
(fma.f64 (neg.f64 y) y x) |
(-.f64 x (*.f64 y y)) |
(if (<=.f64 (*.f64 y y) #s(literal 6070840288205403/60708402882054033466233184588234965832575213720379360039119137804340758912662765568 binary64)) (fma.f64 y y x) #s(approx (- x (* y y)) (*.f64 (neg.f64 y) y))) |
(fma.f64 y y x) |
#s(approx (- x (* y y)) (*.f64 y y)) |
| 7 732× | lower-fma.f64 |
| 7 732× | lower-fma.f32 |
| 3 890× | lower-/.f64 |
| 3 890× | lower-/.f32 |
| 3 616× | lower-*.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 21 |
| 0 | 11 | 21 |
| 1 | 44 | 21 |
| 2 | 308 | 21 |
| 3 | 3235 | 16 |
| 0 | 9233 | 16 |
| 0 | 19 | 141 |
| 1 | 46 | 141 |
| 2 | 112 | 141 |
| 3 | 309 | 141 |
| 4 | 929 | 141 |
| 5 | 1915 | 141 |
| 6 | 3790 | 141 |
| 7 | 6274 | 141 |
| 0 | 8148 | 141 |
| 0 | 4 | 8 |
| 0 | 6 | 8 |
| 1 | 26 | 8 |
| 2 | 179 | 8 |
| 3 | 1554 | 8 |
| 0 | 8483 | 8 |
| 1× | done |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
Compiled 94 to 54 computations (42.6% saved)
(abs y)
Compiled 96 to 50 computations (47.9% saved)
Loading profile data...