
Time bar (total: 1.4s)
| 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 13 to 12 computations (7.7% saved)
| 621.0ms | 8 256× | 0 | valid |
const: 156.0ms (36% of total)ival-mult: 116.0ms (26.8% of total)ival-sub: 103.0ms (23.8% of total)ival-add: 39.0ms (9% of total)exact: 9.0ms (2.1% of total)ival-true: 7.0ms (1.6% of total)ival-assert: 4.0ms (0.9% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 0 | 0 | - | 0 | - | (-.f64 y #s(literal 1 binary64)) |
| 0 | 0 | - | 0 | - | #s(literal 1 binary64) |
| 0 | 0 | - | 0 | - | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 0 | 0 | - | 0 | - | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 0 | 0 | - | 0 | - | #s(literal 918938533204673/1000000000000000 binary64) |
| 0 | 0 | - | 0 | - | (*.f64 x (-.f64 y #s(literal 1 binary64))) |
| 0 | 0 | - | 0 | - | y |
| 0 | 0 | - | 0 | - | (*.f64 y #s(literal 1/2 binary64)) |
| 0 | 0 | - | 0 | - | #s(literal 1/2 binary64) |
| 0 | 0 | - | 0 | - | x |
| Predicted + | Predicted - | |
|---|---|---|
| + | 0 | 0 |
| - | 0 | 256 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 0 | 0 | 0 |
| - | 0 | 0 | 256 |
| number | freq |
|---|---|
| 0 | 256 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 0 | 0 | 0 |
| - | 0 | 0 | 1 |
| 46.0ms | 512× | 0 | valid |
Compiled 123 to 44 computations (64.2% saved)
ival-sub: 11.0ms (37% of total)const: 9.0ms (30.3% of total)ival-mult: 7.0ms (23.6% of total)ival-add: 2.0ms (6.7% of total)exact: 1.0ms (3.4% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
| Inputs |
|---|
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Outputs |
|---|
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
Compiled 11 to 10 computations (9.1% saved)
Compiled 0 to 2 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
Compiled 11 to 10 computations (9.1% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (-.f64 y #s(literal 1 binary64)) | |
| cost-diff | 0 | (*.f64 x (-.f64 y #s(literal 1 binary64))) | |
| cost-diff | 0 | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) | |
| cost-diff | 0 | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Inputs |
|---|
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
x |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
(*.f64 y #s(literal 1/2 binary64)) |
#s(literal 1/2 binary64) |
#s(literal 918938533204673/1000000000000000 binary64) |
| Outputs |
|---|
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
x |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
(*.f64 y #s(literal 1/2 binary64)) |
#s(literal 1/2 binary64) |
#s(literal 918938533204673/1000000000000000 binary64) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (*.f64 y #s(literal 1/2 binary64)) | |
| accuracy | 0.00390625 | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) | |
| accuracy | 0.00390625 | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) | |
| accuracy | 0.01171875 | (*.f64 x (-.f64 y #s(literal 1 binary64))) |
| 22.0ms | 256× | 0 | valid |
Compiled 74 to 22 computations (70.3% saved)
const: 4.0ms (33.8% of total)ival-sub: 3.0ms (25.3% of total)ival-mult: 3.0ms (25.3% of total)ival-add: 1.0ms (8.4% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
(*.f64 y #s(literal 1/2 binary64)) |
| Outputs |
|---|
(- 918938533204673/1000000000000000 (* 1/2 y)) |
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y)) |
(* -1/2 y) |
(- (* x (- y 1)) (* 1/2 y)) |
(* x (- y 1)) |
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x))))) |
(* x (- (+ y (* -1/2 (/ y x))) 1)) |
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x))))) |
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x))))) |
(+ 918938533204673/1000000000000000 (* -1 x)) |
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2)))) |
(* -1 x) |
(+ (* -1 x) (* y (- x 1/2))) |
(+ (* -1 x) (* x y)) |
-1 |
(- y 1) |
(* 1/2 y) |
(* y (- x 1/2)) |
(* y (- (+ x (+ (* -1 (/ x y)) (* 918938533204673/1000000000000000 (/ 1 y)))) 1/2)) |
(* y (- (+ x (* -1 (/ x y))) 1/2)) |
(* x y) |
(* y (+ x (* -1 (/ x y)))) |
y |
(* y (- 1 (/ 1 y))) |
(* -1 (* y (+ 1/2 (* -1 x)))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (* -1 (/ (+ 918938533204673/1000000000000000 (* -1 x)) y)))))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (/ x y))))) |
(* -1 (* y (+ (* -1 x) (/ x y)))) |
(* -1 (* y (- (/ 1 y) 1))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | y | @ | -inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (* y 1/2)) |
| 1.0ms | x | @ | inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (* y 1/2)) |
| 1.0ms | x | @ | -inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (* y 1/2)) |
| 1.0ms | y | @ | inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (* y 1/2)) |
| 1.0ms | x | @ | 0 | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (* y 1/2)) |
| 1× | egg-herbie |
| Inputs |
|---|
(- 918938533204673/1000000000000000 (* 1/2 y)) |
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y)) |
(* -1/2 y) |
(- (* x (- y 1)) (* 1/2 y)) |
(* x (- y 1)) |
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x))))) |
(* x (- (+ y (* -1/2 (/ y x))) 1)) |
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x))))) |
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x))))) |
(+ 918938533204673/1000000000000000 (* -1 x)) |
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2)))) |
(* -1 x) |
(+ (* -1 x) (* y (- x 1/2))) |
(+ (* -1 x) (* x y)) |
-1 |
(- y 1) |
(* 1/2 y) |
(* y (- x 1/2)) |
(* y (- (+ x (+ (* -1 (/ x y)) (* 918938533204673/1000000000000000 (/ 1 y)))) 1/2)) |
(* y (- (+ x (* -1 (/ x y))) 1/2)) |
(* x y) |
(* y (+ x (* -1 (/ x y)))) |
y |
(* y (- 1 (/ 1 y))) |
(* -1 (* y (+ 1/2 (* -1 x)))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (* -1 (/ (+ 918938533204673/1000000000000000 (* -1 x)) y)))))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (/ x y))))) |
(* -1 (* y (+ (* -1 x) (/ x y)))) |
(* -1 (* y (- (/ 1 y) 1))) |
| Outputs |
|---|
(- 918938533204673/1000000000000000 (* 1/2 y)) |
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y)) |
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
(* -1/2 y) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
(- (* x (- y 1)) (* 1/2 y)) |
(-.f64 y #s(literal 1 binary64)) |
(* x (- y 1)) |
(*.f64 y #s(literal 1/2 binary64)) |
| Inputs |
|---|
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
(*.f64 y #s(literal 1/2 binary64)) |
| Outputs |
|---|
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
(*.f64 y #s(literal 1/2 binary64)) |
Compiled 146 to 27 computations (81.5% saved)
4 alts after pruning (3 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 7 | 3 | 10 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 7 | 4 | 11 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ▶ | 2.0% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ▶ | 76.3% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ▶ | 72.9% | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
Compiled 64 to 54 computations (15.6% saved)
| 1× | egg-herbie |
Found 11 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (-.f64 y #s(literal 1 binary64)) | |
| cost-diff | 0 | #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) | |
| cost-diff | 0 | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) | |
| cost-diff | 0 | (-.f64 y #s(literal 1 binary64)) | |
| cost-diff | 0 | (*.f64 x (-.f64 y #s(literal 1 binary64))) | |
| cost-diff | 0 | #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) | |
| cost-diff | 0 | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) | |
| cost-diff | 0 | (-.f64 y #s(literal 1 binary64)) | |
| cost-diff | 0 | (*.f64 x (-.f64 y #s(literal 1 binary64))) | |
| cost-diff | 0 | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) | |
| cost-diff | 0 | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
| Inputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
x |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
(*.f64 y #s(literal 1/2 binary64)) |
#s(literal 1/2 binary64) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
x |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
#s(literal 918938533204673/1000000000000000 binary64) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
#s(literal 918938533204673/1000000000000000 binary64) |
| Outputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
x |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
(*.f64 y #s(literal 1/2 binary64)) |
#s(literal 1/2 binary64) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
x |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
#s(literal 918938533204673/1000000000000000 binary64) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
#s(literal 918938533204673/1000000000000000 binary64) |
Found 11 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (-.f64 y #s(literal 1 binary64)) | |
| accuracy | 0.00390625 | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) | |
| accuracy | 62.174489225089104 | #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) | |
| accuracy | 0.0 | (-.f64 y #s(literal 1 binary64)) | |
| accuracy | 0.00390625 | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) | |
| accuracy | 0.01171875 | (*.f64 x (-.f64 y #s(literal 1 binary64))) | |
| accuracy | 25.12961400574452 | #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) | |
| accuracy | 0.0 | (*.f64 y #s(literal 1/2 binary64)) | |
| accuracy | 0.00390625 | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) | |
| accuracy | 0.01171875 | (*.f64 x (-.f64 y #s(literal 1 binary64))) | |
| accuracy | 17.360551641709236 | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
| 25.0ms | 256× | 0 | valid |
Compiled 218 to 34 computations (84.4% saved)
const: 5.0ms (38.6% of total)ival-sub: 3.0ms (23.1% of total)ival-mult: 3.0ms (23.1% of total)ival-add: 1.0ms (7.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(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(*.f64 y #s(literal 1/2 binary64)) |
| Outputs |
|---|
(- 918938533204673/1000000000000000 (* 1/2 y)) |
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y)) |
(* -1/2 y) |
(- (* x (- y 1)) (* 1/2 y)) |
(* x (- y 1)) |
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x))))) |
(* x (- (+ y (* -1/2 (/ y x))) 1)) |
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x))))) |
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x))))) |
(+ 918938533204673/1000000000000000 (* -1 x)) |
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2)))) |
(* -1 x) |
(+ (* -1 x) (* y (- x 1/2))) |
(+ (* -1 x) (* x y)) |
-1 |
(- y 1) |
(* 1/2 y) |
(* y (- x 1/2)) |
(* y (- (+ x (+ (* -1 (/ x y)) (* 918938533204673/1000000000000000 (/ 1 y)))) 1/2)) |
(* y (- (+ x (* -1 (/ x y))) 1/2)) |
(* x y) |
(* y (+ x (* -1 (/ x y)))) |
y |
(* y (- 1 (/ 1 y))) |
(* -1 (* y (+ 1/2 (* -1 x)))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (* -1 (/ (+ 918938533204673/1000000000000000 (* -1 x)) y)))))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (/ x y))))) |
(* -1 (* y (+ (* -1 x) (/ x y)))) |
(* -1 (* y (- (/ 1 y) 1))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | y | @ | -inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* y 1/2)) |
| 1.0ms | x | @ | inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* y 1/2)) |
| 1.0ms | y | @ | inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* y 1/2)) |
| 1.0ms | x | @ | -inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* y 1/2)) |
| 0.0ms | x | @ | 0 | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* y 1/2)) |
| 1× | egg-herbie |
| Inputs |
|---|
(- 918938533204673/1000000000000000 (* 1/2 y)) |
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y)) |
(* -1/2 y) |
(- (* x (- y 1)) (* 1/2 y)) |
(* x (- y 1)) |
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x))))) |
(* x (- (+ y (* -1/2 (/ y x))) 1)) |
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x))))) |
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x))))) |
(+ 918938533204673/1000000000000000 (* -1 x)) |
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2)))) |
(* -1 x) |
(+ (* -1 x) (* y (- x 1/2))) |
(+ (* -1 x) (* x y)) |
-1 |
(- y 1) |
(* 1/2 y) |
(* y (- x 1/2)) |
(* y (- (+ x (+ (* -1 (/ x y)) (* 918938533204673/1000000000000000 (/ 1 y)))) 1/2)) |
(* y (- (+ x (* -1 (/ x y))) 1/2)) |
(* x y) |
(* y (+ x (* -1 (/ x y)))) |
y |
(* y (- 1 (/ 1 y))) |
(* -1 (* y (+ 1/2 (* -1 x)))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (* -1 (/ (+ 918938533204673/1000000000000000 (* -1 x)) y)))))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (/ x y))))) |
(* -1 (* y (+ (* -1 x) (/ x y)))) |
(* -1 (* y (- (/ 1 y) 1))) |
| Outputs |
|---|
(- 918938533204673/1000000000000000 (* 1/2 y)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y)) |
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
(* -1/2 y) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
(- (* x (- y 1)) (* 1/2 y)) |
(-.f64 y #s(literal 1 binary64)) |
(* x (- y 1)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x))))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(* x (- (+ y (* -1/2 (/ y x))) 1)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x))))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x))))) |
(*.f64 y #s(literal 1/2 binary64)) |
| Inputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(*.f64 y #s(literal 1/2 binary64)) |
| Outputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
(-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(*.f64 y #s(literal 1/2 binary64)) |
Compiled 459 to 34 computations (92.6% saved)
7 alts after pruning (4 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 15 | 4 | 19 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 2 | 3 |
| Done | 0 | 1 | 1 |
| Total | 16 | 7 | 23 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ✓ | 76.3% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ▶ | 54.3% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ✓ | 72.9% | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
| ▶ | 2.1% | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
| ▶ | 2.5% | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
| ▶ | 50.1% | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
Compiled 161 to 101 computations (37.3% saved)
| 1× | egg-herbie |
Found 14 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) | |
| cost-diff | 0 | #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))) | |
| cost-diff | 0 | #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) | |
| cost-diff | 0 | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) | |
| cost-diff | 0 | (-.f64 y #s(literal 1 binary64)) | |
| cost-diff | 0 | #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) | |
| cost-diff | 0 | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) | |
| cost-diff | 0 | (*.f64 y #s(literal 1/2 binary64)) | |
| cost-diff | 0 | #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))) | |
| cost-diff | 0 | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) | |
| cost-diff | 0 | (-.f64 y #s(literal 1 binary64)) | |
| cost-diff | 0 | (*.f64 x (-.f64 y #s(literal 1 binary64))) | |
| cost-diff | 0 | #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) | |
| cost-diff | 0 | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
| Inputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
x |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 y #s(literal 1/2 binary64)) |
y |
#s(literal 1/2 binary64) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) |
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
x |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
#s(literal 918938533204673/1000000000000000 binary64) |
| Outputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
x |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 y #s(literal 1/2 binary64)) |
y |
#s(literal 1/2 binary64) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) |
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
x |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
#s(literal 918938533204673/1000000000000000 binary64) |
Found 14 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.01171875 | (*.f64 x (-.f64 y #s(literal 1 binary64))) | |
| accuracy | 25.12961400574452 | #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) | |
| accuracy | 25.12961400574452 | #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) | |
| accuracy | 31.914755820404803 | #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))) | |
| accuracy | 0.0 | (-.f64 y #s(literal 1 binary64)) | |
| accuracy | 17.360551641709236 | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) | |
| accuracy | 62.174489225089104 | #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) | |
| accuracy | 0.0 | (*.f64 y #s(literal 1/2 binary64)) | |
| accuracy | 17.360551641709236 | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) | |
| accuracy | 62.393134933280365 | #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))) | |
| accuracy | 0.0 | (-.f64 y #s(literal 1 binary64)) | |
| accuracy | 0.01171875 | (*.f64 x (-.f64 y #s(literal 1 binary64))) | |
| accuracy | 17.360551641709236 | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) | |
| accuracy | 25.12961400574452 | #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
| 26.0ms | 256× | 0 | valid |
Compiled 414 to 38 computations (90.8% saved)
const: 4.0ms (28.6% of total)ival-sub: 3.0ms (21.4% of total)ival-add: 3.0ms (21.4% of total)ival-mult: 3.0ms (21.4% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 y #s(literal 1/2 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) |
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Outputs |
|---|
(- 918938533204673/1000000000000000 (* 1/2 y)) |
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y)) |
(* -1/2 y) |
(- (* x (- y 1)) (* 1/2 y)) |
(* x (- y 1)) |
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x))))) |
(* x (- (+ y (* -1/2 (/ y x))) 1)) |
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x))))) |
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x))))) |
(+ 918938533204673/1000000000000000 (* -1 x)) |
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2)))) |
(* -1 x) |
(+ (* -1 x) (* y (- x 1/2))) |
(+ (* -1 x) (* x y)) |
-1 |
(- y 1) |
(* 1/2 y) |
(* y (- x 1/2)) |
(* y (- (+ x (+ (* -1 (/ x y)) (* 918938533204673/1000000000000000 (/ 1 y)))) 1/2)) |
(* y (- (+ x (* -1 (/ x y))) 1/2)) |
(* x y) |
(* y (+ x (* -1 (/ x y)))) |
y |
(* y (- 1 (/ 1 y))) |
(* -1 (* y (+ 1/2 (* -1 x)))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (* -1 (/ (+ 918938533204673/1000000000000000 (* -1 x)) y)))))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (/ x y))))) |
(* -1 (* y (+ (* -1 x) (/ x y)))) |
(* -1 (* y (- (/ 1 y) 1))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 3.0ms | y | @ | -inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* y 1/2) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000)) |
| 1.0ms | x | @ | inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* y 1/2) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000)) |
| 1.0ms | y | @ | inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* y 1/2) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000)) |
| 1.0ms | x | @ | -inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* y 1/2) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000)) |
| 0.0ms | x | @ | 0 | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (- y 1) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* y 1/2) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000)) |
| 1× | egg-herbie |
| Inputs |
|---|
(- 918938533204673/1000000000000000 (* 1/2 y)) |
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y)) |
(* -1/2 y) |
(- (* x (- y 1)) (* 1/2 y)) |
(* x (- y 1)) |
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x))))) |
(* x (- (+ y (* -1/2 (/ y x))) 1)) |
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x))))) |
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x))))) |
(+ 918938533204673/1000000000000000 (* -1 x)) |
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2)))) |
(* -1 x) |
(+ (* -1 x) (* y (- x 1/2))) |
(+ (* -1 x) (* x y)) |
-1 |
(- y 1) |
(* 1/2 y) |
(* y (- x 1/2)) |
(* y (- (+ x (+ (* -1 (/ x y)) (* 918938533204673/1000000000000000 (/ 1 y)))) 1/2)) |
(* y (- (+ x (* -1 (/ x y))) 1/2)) |
(* x y) |
(* y (+ x (* -1 (/ x y)))) |
y |
(* y (- 1 (/ 1 y))) |
(* -1 (* y (+ 1/2 (* -1 x)))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (* -1 (/ (+ 918938533204673/1000000000000000 (* -1 x)) y)))))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (/ x y))))) |
(* -1 (* y (+ (* -1 x) (/ x y)))) |
(* -1 (* y (- (/ 1 y) 1))) |
| Outputs |
|---|
(- 918938533204673/1000000000000000 (* 1/2 y)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(* -1/2 y) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
(- (* x (- y 1)) (* 1/2 y)) |
(-.f64 y #s(literal 1 binary64)) |
(* x (- y 1)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x))))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))) |
(* x (- (+ y (* -1/2 (/ y x))) 1)) |
(*.f64 y #s(literal 1/2 binary64)) |
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x))))) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x))))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(+ 918938533204673/1000000000000000 (* -1 x)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2)))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) |
(* -1 x) |
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))) |
(+ (* -1 x) (* y (- x 1/2))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Inputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 y #s(literal 1/2 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) |
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Outputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) |
(*.f64 x (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64))) |
(*.f64 y #s(literal 1/2 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) |
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
Compiled 1 078 to 60 computations (94.4% saved)
8 alts after pruning (1 fresh and 7 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 29 | 1 | 30 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 4 | 4 |
| Done | 0 | 3 | 3 |
| Total | 29 | 8 | 37 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ✓ | 76.3% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ▶ | 8.0% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ✓ | 54.3% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ✓ | 72.9% | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
| ✓ | 2.1% | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
| ✓ | 2.5% | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
| ✓ | 50.1% | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
Compiled 194 to 117 computations (39.7% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) | |
| cost-diff | 0 | #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))) | |
| cost-diff | 0 | #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) | |
| cost-diff | 0 | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Inputs |
|---|
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) |
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
#s(literal 918938533204673/1000000000000000 binary64) |
| Outputs |
|---|
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) |
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
(-.f64 y #s(literal 1 binary64)) |
y |
#s(literal 1 binary64) |
#s(literal 918938533204673/1000000000000000 binary64) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.00390625 | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) | |
| accuracy | 25.12961400574452 | #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) | |
| accuracy | 31.914755820404803 | #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))) | |
| accuracy | 62.174489225089104 | #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
| 21.0ms | 256× | 0 | valid |
Compiled 172 to 28 computations (83.7% saved)
ival-mult: 4.0ms (30.6% of total)const: 4.0ms (30.6% of total)ival-sub: 3.0ms (23% of total)ival-add: 1.0ms (7.7% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) |
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
| Outputs |
|---|
(- 918938533204673/1000000000000000 (* 1/2 y)) |
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y)) |
(* -1/2 y) |
(- (* x (- y 1)) (* 1/2 y)) |
(* x (- y 1)) |
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x))))) |
(* x (- (+ y (* -1/2 (/ y x))) 1)) |
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x))))) |
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x))))) |
(+ 918938533204673/1000000000000000 (* -1 x)) |
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2)))) |
(* -1 x) |
(+ (* -1 x) (* y (- x 1/2))) |
(+ (* -1 x) (* x y)) |
(* y (- x 1/2)) |
(* y (- (+ x (+ (* -1 (/ x y)) (* 918938533204673/1000000000000000 (/ 1 y)))) 1/2)) |
(* y (- (+ x (* -1 (/ x y))) 1/2)) |
(* x y) |
(* y (+ x (* -1 (/ x y)))) |
(* -1 (* y (+ 1/2 (* -1 x)))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (* -1 (/ (+ 918938533204673/1000000000000000 (* -1 x)) y)))))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (/ x y))))) |
(* -1 (* y (+ (* -1 x) (/ x y)))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 3.0ms | x | @ | inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2))) |
| 0.0ms | x | @ | -inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2))) |
| 0.0ms | y | @ | -inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2))) |
| 0.0ms | x | @ | 0 | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2))) |
| 0.0ms | y | @ | inf | ((+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2)) (* x (- y 1)) (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (- (* x (- y 1)) (* y 1/2))) |
| 1× | egg-herbie |
| Inputs |
|---|
(- 918938533204673/1000000000000000 (* 1/2 y)) |
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y)) |
(* -1/2 y) |
(- (* x (- y 1)) (* 1/2 y)) |
(* x (- y 1)) |
(* x (- (+ y (* 918938533204673/1000000000000000 (/ 1 x))) (+ 1 (* 1/2 (/ y x))))) |
(* x (- (+ y (* -1/2 (/ y x))) 1)) |
(* -1 (* x (+ (* -1 (- y 1)) (* -1 (/ (- 918938533204673/1000000000000000 (* 1/2 y)) x))))) |
(* -1 (* x (+ (* -1 (- y 1)) (* 1/2 (/ y x))))) |
(+ 918938533204673/1000000000000000 (* -1 x)) |
(+ 918938533204673/1000000000000000 (+ (* -1 x) (* y (- x 1/2)))) |
(* -1 x) |
(+ (* -1 x) (* y (- x 1/2))) |
(+ (* -1 x) (* x y)) |
(* y (- x 1/2)) |
(* y (- (+ x (+ (* -1 (/ x y)) (* 918938533204673/1000000000000000 (/ 1 y)))) 1/2)) |
(* y (- (+ x (* -1 (/ x y))) 1/2)) |
(* x y) |
(* y (+ x (* -1 (/ x y)))) |
(* -1 (* y (+ 1/2 (* -1 x)))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (* -1 (/ (+ 918938533204673/1000000000000000 (* -1 x)) y)))))) |
(* -1 (* y (+ 1/2 (+ (* -1 x) (/ x y))))) |
(* -1 (* y (+ (* -1 x) (/ x y)))) |
| Outputs |
|---|
(- 918938533204673/1000000000000000 (* 1/2 y)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
(- (+ 918938533204673/1000000000000000 (* x (- y 1))) (* 1/2 y)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) |
(* -1/2 y) |
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))) |
(- (* x (- y 1)) (* 1/2 y)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
(* x (- y 1)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
| Inputs |
|---|
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) |
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
| Outputs |
|---|
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) |
#s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) |
Compiled 311 to 25 computations (92% saved)
8 alts after pruning (0 fresh and 8 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 9 | 0 | 9 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 7 | 7 |
| Total | 9 | 8 | 17 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ✓ | 76.3% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ✓ | 8.0% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ✓ | 54.3% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ✓ | 72.9% | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
| ✓ | 2.1% | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
| ✓ | 2.5% | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
| ✓ | 50.1% | #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
Compiled 403 to 150 computations (62.8% saved)
| Inputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Outputs |
|---|
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
4 calls:
| 5.0ms | y |
| 3.0ms | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 3.0ms | x |
| 3.0ms | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | y |
| 100.0% | 1 | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 100.0% | 1 | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
Compiled 22 to 22 computations (0% saved)
| Inputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
| Outputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) |
4 calls:
| 4.0ms | x |
| 3.0ms | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 3.0ms | y |
| 3.0ms | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 80.6% | 3 | x |
| 98.8% | 3 | y |
| 98.7% | 3 | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 98.7% | 3 | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
Compiled 22 to 22 computations (0% saved)
| Inputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Outputs |
|---|
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
4 calls:
| 3.0ms | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 3.0ms | y |
| 3.0ms | x |
| 3.0ms | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 76.3% | 1 | x |
| 76.3% | 1 | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 76.3% | 1 | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 76.3% | 1 | y |
Compiled 22 to 22 computations (0% saved)
| Inputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Outputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
4 calls:
| 3.0ms | y |
| 2.0ms | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 2.0ms | x |
| 2.0ms | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 54.8% | 3 | x |
| 50.1% | 1 | y |
| 55.3% | 3 | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 55.3% | 3 | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
Compiled 22 to 22 computations (0% saved)
| Inputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
| Outputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
4 calls:
| 2.0ms | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 2.0ms | y |
| 2.0ms | x |
| 2.0ms | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 50.1% | 1 | y |
| 50.1% | 1 | x |
| 50.1% | 1 | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 50.1% | 1 | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
Compiled 22 to 22 computations (0% saved)
| Inputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Outputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
4 calls:
| 8.0ms | x |
| 2.0ms | y |
| 2.0ms | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 2.0ms | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 2.5% | 1 | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 2.5% | 1 | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 2.5% | 1 | x |
| 2.5% | 1 | y |
Compiled 22 to 22 computations (0% saved)
Total 0.0b remaining (0%)
Threshold costs 0b (0%)
| Inputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
| Outputs |
|---|
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
4 calls:
| 1.0ms | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 1.0ms | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 1.0ms | x |
| 1.0ms | y |
| Accuracy | Segments | Branch |
|---|---|---|
| 2.1% | 1 | y |
| 2.1% | 1 | x |
| 2.1% | 1 | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 2.1% | 1 | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
Compiled 22 to 22 computations (0% saved)
| 2× | binary-search |
| 1× | narrow-enough |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 20.0ms | 0.0015059668295491328 | 14012508113.596964 |
| 15.0ms | -253393000829.81818 | -230401105.63611594 |
| 22.0ms | 288× | 0 | valid |
Compiled 698 to 609 computations (12.8% saved)
const: 6.0ms (39.8% of total)ival-mult: 4.0ms (26.6% of total)ival-sub: 3.0ms (19.9% of total)ival-add: 1.0ms (6.6% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 2× | left-value |
| Time | Left | Right |
|---|---|---|
| 0.0ms | 0.020358408978926587 | 1.9725837408909304 |
| 0.0ms | -245868.84121125285 | -0.0007529834147745664 |
Compiled 14 to 15 computations (-7.1% saved)
| 1× | egg-herbie |
| Inputs |
|---|
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
(if (<=.f64 y #s(literal -235000000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) (if (<=.f64 y #s(literal 4165829655317709/2251799813685248 binary64)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
(if (<=.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal -200000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) (if (<=.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 5764607523034235/144115188075855872 binary64)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))))) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
| Outputs |
|---|
(+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
(if (<=.f64 y #s(literal -235000000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))) (if (<=.f64 y #s(literal 4165829655317709/2251799813685248 binary64)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64)))))) |
(+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
(if (<=.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal -200000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) (if (<=.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 5764607523034235/144115188075855872 binary64)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) #s(approx (* x (- y 1)) (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) #s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))))) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64))))) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 y #s(literal 1/2 binary64)))) |
#s(approx (+ (- (* x (- y 1)) (* y 1/2)) 918938533204673/1000000000000000) #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64)))) |
| 1× | done |
Compiled 283 to 42 computations (85.2% saved)
Compiled 588 to 104 computations (82.3% saved)
Loading profile data...