
Time bar (total: 1.5s)
| 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)
| 735.0ms | 8 256× | 0 | valid |
const: 190.0ms (35.4% of total)ival-sub: 147.0ms (27.4% of total)ival-mult: 135.0ms (25.1% of total)ival-add: 46.0ms (8.6% of total)exact: 9.0ms (1.7% of total)ival-true: 7.0ms (1.3% of total)ival-assert: 4.0ms (0.7% 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 |
| 54.0ms | 512× | 0 | valid |
Compiled 123 to 44 computations (64.2% saved)
const: 11.0ms (33.6% of total)ival-sub: 9.0ms (27.5% of total)ival-mult: 9.0ms (27.5% of total)ival-add: 2.0ms (6.1% of total)ival-true: 1.0ms (3.1% of total)exact: 1.0ms (3.1% 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 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 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.00390625 | (*.f64 x (-.f64 y #s(literal 1 binary64))) |
| 25.0ms | 256× | 0 | valid |
Compiled 74 to 22 computations (70.3% saved)
ival-sub: 5.0ms (33.7% of total)const: 4.0ms (27% of total)ival-mult: 3.0ms (20.2% of total)ival-add: 1.0ms (6.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 (-.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 | 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 | @ | 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.1% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ▶ | 73.6% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ▶ | 75.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.0 | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (-.f64 y #s(literal 1 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) | |
| accuracy | 62.28092205992405 | #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.0 | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) | |
| accuracy | 0.00390625 | (*.f64 x (-.f64 y #s(literal 1 binary64))) | |
| accuracy | 25.193746177652564 | #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.00390625 | (*.f64 x (-.f64 y #s(literal 1 binary64))) | |
| accuracy | 15.410639155970705 | #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: 4.0ms (32.5% of total)ival-sub: 3.0ms (24.4% of total)ival-mult: 3.0ms (24.4% of total)ival-add: 1.0ms (8.1% 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)) |
| ✓ | 73.6% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ▶ | 54.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)) |
| ✓ | 75.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.2% | #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.00390625 | (*.f64 x (-.f64 y #s(literal 1 binary64))) | |
| accuracy | 25.193746177652564 | #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) | |
| accuracy | 25.193746177652564 | #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.84264947121923 | #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 | 15.410639155970705 | #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.28092205992405 | #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 | 15.410639155970705 | #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.366981820808576 | #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.00390625 | (*.f64 x (-.f64 y #s(literal 1 binary64))) | |
| accuracy | 15.410639155970705 | #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.193746177652564 | #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)
ival-mult: 5.0ms (35.3% of total)const: 4.0ms (28.2% of total)ival-sub: 3.0ms (21.2% of total)ival-add: 1.0ms (7.1% 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 | |
|---|---|---|---|---|
| 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)) |
| 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)) |
| ✓ | 73.6% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ▶ | 7.4% | (+.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.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)) |
| ✓ | 75.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.2% | #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.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)) | |
| accuracy | 25.193746177652564 | #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.84264947121923 | #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.28092205992405 | #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)
const: 6.0ms (44.8% of total)ival-sub: 3.0ms (22.4% of total)ival-mult: 3.0ms (22.4% of total)ival-add: 1.0ms (7.5% 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 | |
|---|---|---|---|---|
| 1.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 | 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))) |
| 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)) |
| ✓ | 73.6% | (+.f64 #s(approx (- (* x (- y 1)) (* y 1/2)) (*.f64 x (-.f64 y #s(literal 1 binary64)))) #s(literal 918938533204673/1000000000000000 binary64)) |
| ✓ | 7.4% | (+.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.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)) |
| ✓ | 75.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.2% | #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:
| 6.0ms | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 3.0ms | x |
| 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 |
|---|---|---|
| 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:
| 10.0ms | y |
| 3.0ms | x |
| 3.0ms | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 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.0% | 3 | x |
| 99.0% | 3 | y |
| 98.9% | 3 | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 98.9% | 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 |
|---|---|---|
| 73.6% | 1 | x |
| 73.6% | 1 | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 73.6% | 1 | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 73.6% | 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:
| 5.0ms | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 2.0ms | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 2.0ms | x |
| 2.0ms | y |
| Accuracy | Segments | Branch |
|---|---|---|
| 50.2% | 1 | y |
| 54.3% | 3 | x |
| 54.9% | 3 | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 54.9% | 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))))) |
3 calls:
| 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)) |
| 2.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 50.2% | 1 | x |
| 50.2% | 1 | (+.f64 (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) #s(literal 918938533204673/1000000000000000 binary64)) |
| 50.2% | 1 | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
Compiled 21 to 20 computations (4.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)) |
| 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:
| 4.0ms | x |
| 2.0ms | (-.f64 (*.f64 x (-.f64 y #s(literal 1 binary64))) (*.f64 y #s(literal 1/2 binary64))) |
| 2.0ms | y |
| 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 | y |
| 2.5% | 1 | x |
| 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))) |
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 | y |
| 1.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 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))) |
| 2.1% | 1 | y |
Compiled 22 to 22 computations (0% saved)
| 2× | binary-search |
| 1× | narrow-enough |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 17.0ms | 1.8172828651777451e-7 | 4.639469758411257e-6 |
| 23.0ms | -1074559.3736474237 | -1.979108503978111e-21 |
| 20.0ms | 288× | 0 | valid |
Compiled 698 to 609 computations (12.8% saved)
const: 5.0ms (36.8% of total)ival-mult: 4.0ms (29.4% of total)ival-sub: 3.0ms (22.1% of total)ival-add: 1.0ms (7.4% 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.00024160469298282705 | 537279.6868237118 |
| 0.0ms | -1419.5503798119996 | -9.086414325888726e-8 |
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 -8196551321814303/4503599627370496 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 5312662293228351/1180591620717411303424 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 -1000 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 7378697629483821/18446744073709551616 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 -8196551321814303/4503599627370496 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 5312662293228351/1180591620717411303424 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 -1000 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 7378697629483821/18446744073709551616 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...