
Time bar (total: 1.1s)
| 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 11 to 10 computations (9.1% saved)
| 431.0ms | 8 256× | 0 | valid |
ival-add: 84.0ms (39.8% of total)ival-div: 57.0ms (27% of total)ival-mult: 57.0ms (27% of total)ival-true: 6.0ms (2.8% of total)exact: 4.0ms (1.9% of total)ival-assert: 3.0ms (1.4% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 0 | 0 | - | 0 | - | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
| 0 | 0 | - | 0 | - | #s(literal 2 binary64) |
| 0 | 0 | - | 0 | - | y |
| 0 | 0 | - | 0 | - | (/.f64 x #s(literal 2 binary64)) |
| 0 | 0 | - | 0 | - | z |
| 0 | 0 | - | 0 | - | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| 0 | 0 | - | 0 | - | (*.f64 y x) |
| 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 |
| 32.0ms | 512× | 0 | valid |
Compiled 91 to 36 computations (60.4% saved)
ival-add: 5.0ms (38.9% of total)ival-mult: 4.0ms (31.1% of total)ival-div: 3.0ms (23.3% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
| Inputs |
|---|
(+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| Outputs |
|---|
(+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
Compiled 9 to 8 computations (11.1% saved)
Compiled 0 to 3 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
Compiled 9 to 8 computations (11.1% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 y x) | |
| cost-diff | 0 | (/.f64 x #s(literal 2 binary64)) | |
| cost-diff | 0 | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) | |
| cost-diff | 0 | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| Inputs |
|---|
(+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
(+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
(/.f64 x #s(literal 2 binary64)) |
x |
#s(literal 2 binary64) |
(*.f64 y x) |
y |
z |
| Outputs |
|---|
(+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
(+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
(/.f64 x #s(literal 2 binary64)) |
x |
#s(literal 2 binary64) |
(*.f64 y x) |
y |
z |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (/.f64 x #s(literal 2 binary64)) | |
| accuracy | 0.0 | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) | |
| accuracy | 0.0 | (*.f64 y x) | |
| accuracy | 0.01171875 | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
| 18.0ms | 256× | 0 | valid |
Compiled 54 to 18 computations (66.7% saved)
ival-div: 2.0ms (33.6% of total)ival-add: 2.0ms (33.6% of total)ival-mult: 2.0ms (33.6% 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 #s(literal 2 binary64)) (*.f64 y x)) z) |
(+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
(/.f64 x #s(literal 2 binary64)) |
(*.f64 y x) |
| Outputs |
|---|
z |
(+ z (* x (+ 1/2 y))) |
(* x (+ 1/2 y)) |
(* 1/2 x) |
(* x y) |
(* x (+ 1/2 (+ y (/ z x)))) |
(* -1 (* x (- (* -1 y) 1/2))) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ z x))) 1/2))) |
(+ z (* 1/2 x)) |
(+ z (+ (* 1/2 x) (* x y))) |
(+ (* 1/2 x) (* x y)) |
(* y (+ x (+ (* 1/2 (/ x y)) (/ z y)))) |
(* y (+ x (* 1/2 (/ x y)))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ (+ z (* 1/2 x)) y))))) |
(* -1 (* y (+ (* -1 x) (* -1/2 (/ x y))))) |
(* z (+ 1 (+ (* 1/2 (/ x z)) (/ (* x y) z)))) |
(* -1 (* z (- (* -1 (/ (+ (* 1/2 x) (* x y)) z)) 1))) |
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (* y x)) |
| 1.0ms | x | @ | -inf | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (* y x)) |
| 1.0ms | z | @ | 0 | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (* y x)) |
| 1.0ms | x | @ | 0 | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (* y x)) |
| 1.0ms | y | @ | -inf | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (* y x)) |
| 1× | egg-herbie |
| Inputs |
|---|
z |
(+ z (* x (+ 1/2 y))) |
(* x (+ 1/2 y)) |
(* 1/2 x) |
(* x y) |
(* x (+ 1/2 (+ y (/ z x)))) |
(* -1 (* x (- (* -1 y) 1/2))) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ z x))) 1/2))) |
(+ z (* 1/2 x)) |
(+ z (+ (* 1/2 x) (* x y))) |
(+ (* 1/2 x) (* x y)) |
(* y (+ x (+ (* 1/2 (/ x y)) (/ z y)))) |
(* y (+ x (* 1/2 (/ x y)))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ (+ z (* 1/2 x)) y))))) |
(* -1 (* y (+ (* -1 x) (* -1/2 (/ x y))))) |
(* z (+ 1 (+ (* 1/2 (/ x z)) (/ (* x y) z)))) |
(* -1 (* z (- (* -1 (/ (+ (* 1/2 x) (* x y)) z)) 1))) |
| Outputs |
|---|
z |
(+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
(+ z (* x (+ 1/2 y))) |
(+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
(* x (+ 1/2 y)) |
(/.f64 x #s(literal 2 binary64)) |
(* 1/2 x) |
(*.f64 y x) |
| Inputs |
|---|
(+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
(+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
(/.f64 x #s(literal 2 binary64)) |
(*.f64 y x) |
| Outputs |
|---|
(+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
(+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
(/.f64 x #s(literal 2 binary64)) |
(*.f64 y x) |
Compiled 98 to 20 computations (79.6% saved)
4 alts after pruning (3 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 5 | 3 | 8 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 5 | 4 | 9 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| ▶ | 53.7% | (+.f64 (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) z) |
| ▶ | 64.5% | (+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) |
| ▶ | 62.6% | #s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x))) |
Compiled 52 to 41 computations (21.2% saved)
| 1× | egg-herbie |
Found 11 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 y x) | |
| cost-diff | 0 | #s(approx (/ x 2) (*.f64 y x)) | |
| cost-diff | 0 | (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) | |
| cost-diff | 0 | (+.f64 (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) z) | |
| cost-diff | 0 | (/.f64 x #s(literal 2 binary64)) | |
| cost-diff | 0 | #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) | |
| cost-diff | 0 | (+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) | |
| cost-diff | 0 | (*.f64 y x) | |
| cost-diff | 0 | (/.f64 x #s(literal 2 binary64)) | |
| cost-diff | 0 | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) | |
| cost-diff | 0 | #s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x))) |
| Inputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x))) |
(+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
(/.f64 x #s(literal 2 binary64)) |
x |
#s(literal 2 binary64) |
(*.f64 y x) |
y |
(+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) |
#s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) |
(/.f64 x #s(literal 2 binary64)) |
x |
#s(literal 2 binary64) |
z |
(+.f64 (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) z) |
(+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) |
#s(approx (/ x 2) (*.f64 y x)) |
(*.f64 y x) |
y |
x |
z |
| Outputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x))) |
(+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
(/.f64 x #s(literal 2 binary64)) |
x |
#s(literal 2 binary64) |
(*.f64 y x) |
y |
(+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) |
#s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) |
(/.f64 x #s(literal 2 binary64)) |
x |
#s(literal 2 binary64) |
z |
(+.f64 (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) z) |
(+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) |
#s(approx (/ x 2) (*.f64 y x)) |
(*.f64 y x) |
y |
x |
z |
Found 11 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (+.f64 (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) z) | |
| accuracy | 0.0 | (*.f64 y x) | |
| accuracy | 0.01171875 | (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) | |
| accuracy | 61.18380106303092 | #s(approx (/ x 2) (*.f64 y x)) | |
| accuracy | 0.0 | (/.f64 x #s(literal 2 binary64)) | |
| accuracy | 0.0 | (+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) | |
| accuracy | 31.89410290471641 | #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) | |
| accuracy | 0.0 | (/.f64 x #s(literal 2 binary64)) | |
| accuracy | 0.0 | (*.f64 y x) | |
| accuracy | 0.01171875 | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) | |
| accuracy | 23.938650462932003 | #s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x))) |
| 16.0ms | 256× | 0 | valid |
Compiled 174 to 28 computations (83.9% saved)
ival-div: 2.0ms (32.3% of total)ival-add: 2.0ms (32.3% of total)ival-mult: 2.0ms (32.3% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x))) |
(+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
(/.f64 x #s(literal 2 binary64)) |
(*.f64 y x) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) |
#s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) |
(+.f64 (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) z) |
(+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) |
#s(approx (/ x 2) (*.f64 y x)) |
| Outputs |
|---|
z |
(+ z (* x (+ 1/2 y))) |
(* x (+ 1/2 y)) |
(* 1/2 x) |
(* x y) |
(* x (+ 1/2 (+ y (/ z x)))) |
(* -1 (* x (- (* -1 y) 1/2))) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ z x))) 1/2))) |
(+ z (* 1/2 x)) |
(+ z (+ (* 1/2 x) (* x y))) |
(+ (* 1/2 x) (* x y)) |
(* y (+ x (+ (* 1/2 (/ x y)) (/ z y)))) |
(* y (+ x (* 1/2 (/ x y)))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ (+ z (* 1/2 x)) y))))) |
(* -1 (* y (+ (* -1 x) (* -1/2 (/ x y))))) |
(* z (+ 1 (+ (* 1/2 (/ x z)) (/ (* x y) z)))) |
(* -1 (* z (- (* -1 (/ (+ (* 1/2 x) (* x y)) z)) 1))) |
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (* y x) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2)) |
| 1.0ms | x | @ | inf | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (* y x) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2)) |
| 0.0ms | y | @ | -inf | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (* y x) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2)) |
| 0.0ms | x | @ | 0 | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (* y x) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2)) |
| 0.0ms | y | @ | inf | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (* y x) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2)) |
| 1× | egg-herbie |
| Inputs |
|---|
z |
(+ z (* x (+ 1/2 y))) |
(* x (+ 1/2 y)) |
(* 1/2 x) |
(* x y) |
(* x (+ 1/2 (+ y (/ z x)))) |
(* -1 (* x (- (* -1 y) 1/2))) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ z x))) 1/2))) |
(+ z (* 1/2 x)) |
(+ z (+ (* 1/2 x) (* x y))) |
(+ (* 1/2 x) (* x y)) |
(* y (+ x (+ (* 1/2 (/ x y)) (/ z y)))) |
(* y (+ x (* 1/2 (/ x y)))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ (+ z (* 1/2 x)) y))))) |
(* -1 (* y (+ (* -1 x) (* -1/2 (/ x y))))) |
(* z (+ 1 (+ (* 1/2 (/ x z)) (/ (* x y) z)))) |
(* -1 (* z (- (* -1 (/ (+ (* 1/2 x) (* x y)) z)) 1))) |
| Outputs |
|---|
z |
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x))) |
(+ z (* x (+ 1/2 y))) |
(+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
(* x (+ 1/2 y)) |
(/.f64 x #s(literal 2 binary64)) |
(* 1/2 x) |
(*.f64 y x) |
(* x y) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) |
(* x (+ 1/2 (+ y (/ z x)))) |
#s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) |
(* -1 (* x (- (* -1 y) 1/2))) |
(+.f64 (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) z) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ z x))) 1/2))) |
(+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) |
(+ z (* 1/2 x)) |
#s(approx (/ x 2) (*.f64 y x)) |
| Inputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x))) |
(+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
(/.f64 x #s(literal 2 binary64)) |
(*.f64 y x) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) |
#s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) |
(+.f64 (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) z) |
(+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) |
#s(approx (/ x 2) (*.f64 y x)) |
| Outputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x))) |
(+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
(/.f64 x #s(literal 2 binary64)) |
(*.f64 y x) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) |
#s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) |
(+.f64 (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) z) |
(+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) |
#s(approx (/ x 2) (*.f64 y x)) |
Compiled 399 to 33 computations (91.7% saved)
6 alts after pruning (4 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 17 | 4 | 21 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 2 | 3 |
| Done | 1 | 0 | 1 |
| Total | 19 | 6 | 25 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 64.5% | (+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) |
| ▶ | 73.4% | (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
| ✓ | 62.6% | #s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x))) |
| ▶ | 17.9% | #s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x))) |
| ▶ | 36.5% | #s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
| ▶ | 27.8% | #s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
Compiled 106 to 70 computations (34% saved)
| 1× | egg-herbie |
Found 14 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 y x) | |
| cost-diff | 0 | #s(approx (/ x 2) (*.f64 y x)) | |
| cost-diff | 0 | #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) | |
| cost-diff | 0 | (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) | |
| cost-diff | 0 | (*.f64 y x) | |
| cost-diff | 0 | #s(approx (/ x 2) (*.f64 y x)) | |
| cost-diff | 0 | (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) | |
| cost-diff | 0 | #s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x))) | |
| cost-diff | 0 | (*.f64 y x) | |
| cost-diff | 0 | #s(approx (/ x 2) (*.f64 y x)) | |
| cost-diff | 0 | #s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) | |
| cost-diff | 0 | (/.f64 x #s(literal 2 binary64)) | |
| cost-diff | 0 | #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) | |
| cost-diff | 0 | #s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
| Inputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
#s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) |
(/.f64 x #s(literal 2 binary64)) |
x |
#s(literal 2 binary64) |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
#s(approx (/ x 2) (*.f64 y x)) |
(*.f64 y x) |
y |
x |
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x))) |
(+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) |
#s(approx (/ x 2) (*.f64 y x)) |
(*.f64 y x) |
y |
x |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
#s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) |
#s(approx (/ x 2) (*.f64 y x)) |
(*.f64 y x) |
y |
x |
z |
| Outputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
#s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) |
(/.f64 x #s(literal 2 binary64)) |
x |
#s(literal 2 binary64) |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
#s(approx (/ x 2) (*.f64 y x)) |
(*.f64 y x) |
y |
x |
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x))) |
(+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) |
#s(approx (/ x 2) (*.f64 y x)) |
(*.f64 y x) |
y |
x |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
#s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) |
#s(approx (/ x 2) (*.f64 y x)) |
(*.f64 y x) |
y |
x |
z |
Found 14 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) | |
| accuracy | 0.0 | (*.f64 y x) | |
| accuracy | 31.89410290471641 | #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) | |
| accuracy | 61.18380106303092 | #s(approx (/ x 2) (*.f64 y x)) | |
| accuracy | 0.0 | (*.f64 y x) | |
| accuracy | 0.01171875 | (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) | |
| accuracy | 23.938650462932003 | #s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x))) | |
| accuracy | 61.18380106303092 | #s(approx (/ x 2) (*.f64 y x)) | |
| accuracy | 0.0 | (*.f64 y x) | |
| accuracy | 46.20192188975124 | #s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) | |
| accuracy | 61.18380106303092 | #s(approx (/ x 2) (*.f64 y x)) | |
| accuracy | 0.0 | (/.f64 x #s(literal 2 binary64)) | |
| accuracy | 23.938650462932003 | #s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) | |
| accuracy | 31.89410290471641 | #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) |
| 17.0ms | 256× | 0 | valid |
Compiled 244 to 29 computations (88.1% saved)
ival-div: 2.0ms (32.6% of total)ival-add: 2.0ms (32.6% of total)ival-mult: 2.0ms (32.6% 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 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
#s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) |
(/.f64 x #s(literal 2 binary64)) |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
#s(approx (/ x 2) (*.f64 y x)) |
(*.f64 y x) |
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x))) |
(+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
#s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) |
| Outputs |
|---|
z |
(+ z (* x (+ 1/2 y))) |
(* x (+ 1/2 y)) |
(* 1/2 x) |
(* x y) |
(* x (+ 1/2 (+ y (/ z x)))) |
(* -1 (* x (- (* -1 y) 1/2))) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ z x))) 1/2))) |
(+ z (* 1/2 x)) |
(+ z (+ (* 1/2 x) (* x y))) |
(+ (* 1/2 x) (* x y)) |
(* y (+ x (+ (* 1/2 (/ x y)) (/ z y)))) |
(* y (+ x (* 1/2 (/ x y)))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ (+ z (* 1/2 x)) y))))) |
(* -1 (* y (+ (* -1 x) (* -1/2 (/ x y))))) |
(* z (+ 1 (+ (* 1/2 (/ x z)) (/ (* x y) z)))) |
(* -1 (* z (- (* -1 (/ (+ (* 1/2 x) (* x y)) z)) 1))) |
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (+ (+ (/ x 2) (* y x)) z) (/ x 2) (* y x) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x))) |
| 1.0ms | x | @ | inf | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (+ (+ (/ x 2) (* y x)) z) (/ x 2) (* y x) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x))) |
| 0.0ms | y | @ | -inf | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (+ (+ (/ x 2) (* y x)) z) (/ x 2) (* y x) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x))) |
| 0.0ms | x | @ | 0 | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (+ (+ (/ x 2) (* y x)) z) (/ x 2) (* y x) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x))) |
| 0.0ms | y | @ | inf | ((+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (/ x 2) (+ (+ (/ x 2) (* y x)) z) (/ x 2) (* y x) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x)) (+ (+ (/ x 2) (* y x)) z) (+ (/ x 2) (* y x))) |
| 1× | egg-herbie |
| Inputs |
|---|
z |
(+ z (* x (+ 1/2 y))) |
(* x (+ 1/2 y)) |
(* 1/2 x) |
(* x y) |
(* x (+ 1/2 (+ y (/ z x)))) |
(* -1 (* x (- (* -1 y) 1/2))) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ z x))) 1/2))) |
(+ z (* 1/2 x)) |
(+ z (+ (* 1/2 x) (* x y))) |
(+ (* 1/2 x) (* x y)) |
(* y (+ x (+ (* 1/2 (/ x y)) (/ z y)))) |
(* y (+ x (* 1/2 (/ x y)))) |
(* -1 (* y (+ (* -1 x) (* -1 (/ (+ z (* 1/2 x)) y))))) |
(* -1 (* y (+ (* -1 x) (* -1/2 (/ x y))))) |
(* z (+ 1 (+ (* 1/2 (/ x z)) (/ (* x y) z)))) |
(* -1 (* z (- (* -1 (/ (+ (* 1/2 x) (* x y)) z)) 1))) |
| Outputs |
|---|
z |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
(+ z (* x (+ 1/2 y))) |
#s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) |
(* x (+ 1/2 y)) |
(/.f64 x #s(literal 2 binary64)) |
(* 1/2 x) |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
(* x y) |
#s(approx (/ x 2) (*.f64 y x)) |
(* x (+ 1/2 (+ y (/ z x)))) |
(*.f64 y x) |
(* -1 (* x (- (* -1 y) 1/2))) |
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x))) |
(* -1 (* x (- (+ (* -1 y) (* -1 (/ z x))) 1/2))) |
(+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) |
(+ z (* 1/2 x)) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
(+ z (+ (* 1/2 x) (* x y))) |
#s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) |
| Inputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
#s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) |
(/.f64 x #s(literal 2 binary64)) |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
#s(approx (/ x 2) (*.f64 y x)) |
(*.f64 y x) |
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x))) |
(+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
#s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) |
| Outputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
#s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) |
(/.f64 x #s(literal 2 binary64)) |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
#s(approx (/ x 2) (*.f64 y x)) |
(*.f64 y x) |
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x))) |
(+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
#s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) |
Compiled 561 to 36 computations (93.6% saved)
6 alts after pruning (0 fresh and 6 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 25 | 0 | 25 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 4 | 4 |
| Done | 0 | 2 | 2 |
| Total | 25 | 6 | 31 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 64.5% | (+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) |
| ✓ | 73.4% | (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
| ✓ | 62.6% | #s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x))) |
| ✓ | 17.9% | #s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x))) |
| ✓ | 36.5% | #s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
| ✓ | 27.8% | #s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
Compiled 234 to 94 computations (59.8% saved)
| Inputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x))) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) |
(+.f64 (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) z) |
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x))) |
(+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| Outputs |
|---|
(+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
5 calls:
| 5.0ms | x |
| 3.0ms | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
| 3.0ms | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| 3.0ms | z |
| 3.0ms | y |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | y |
| 100.0% | 1 | z |
| 100.0% | 1 | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| 100.0% | 1 | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
Compiled 19 to 24 computations (-26.3% saved)
| Inputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x))) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) |
(+.f64 (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x)) z) |
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x))) |
| Outputs |
|---|
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
5 calls:
| 3.0ms | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| 3.0ms | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
| 3.0ms | y |
| 3.0ms | z |
| 3.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 88.3% | 3 | x |
| 98.4% | 3 | y |
| 87.5% | 3 | z |
| 81.6% | 3 | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| 86.5% | 3 | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
Compiled 19 to 24 computations (-26.3% saved)
| Inputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
#s(approx (+ (+ (/ x 2) (* y x)) z) (+.f64 #s(approx (/ x 2) (*.f64 y x)) (*.f64 y x))) |
| Outputs |
|---|
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
5 calls:
| 4.0ms | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
| 2.0ms | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| 2.0ms | y |
| 2.0ms | x |
| 2.0ms | z |
| Accuracy | Segments | Branch |
|---|---|---|
| 73.4% | 1 | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| 73.4% | 1 | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
| 73.4% | 1 | z |
| 73.4% | 1 | x |
| 81.0% | 5 | y |
Compiled 19 to 24 computations (-26.3% saved)
| Inputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
| Outputs |
|---|
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
5 calls:
| 1.0ms | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| 1.0ms | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
| 1.0ms | y |
| 1.0ms | z |
| 1.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 73.4% | 1 | x |
| 73.4% | 1 | z |
| 73.4% | 1 | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| 73.4% | 1 | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
| 73.4% | 1 | y |
Compiled 19 to 24 computations (-26.3% saved)
Total -0.0b remaining (-0%)
Threshold costs -0b (-0%)
| Inputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
| Outputs |
|---|
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
5 calls:
| 2.0ms | y |
| 1.0ms | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| 1.0ms | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
| 1.0ms | z |
| 1.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 36.5% | 1 | y |
| 36.5% | 1 | x |
| 36.5% | 1 | z |
| 36.5% | 1 | (+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
| 36.5% | 1 | (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) |
Compiled 19 to 24 computations (-26.3% saved)
| 2× | binary-search |
| 1× | narrow-enough |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 14.0ms | 1.6944436923104262e-7 | 0.8488050700733019 |
| 12.0ms | -7998.323072510827 | -0.02978107697331326 |
| 13.0ms | 288× | 0 | valid |
Compiled 552 to 446 computations (19.2% saved)
ival-div: 2.0ms (30% of total)ival-add: 2.0ms (30% of total)ival-mult: 2.0ms (30% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 4× | binary-search |
| 1× | narrow-enough |
| 1× | narrow-enough |
| 1× | narrow-enough |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 7.0ms | 1.3057415618101103e-11 | 3.912574116237967e-11 |
| 13.0ms | 2.0091345427552477e-302 | 1.8488749390441688e-296 |
| 13.0ms | -6.455092008468549e-121 | -1.466474828457697e-126 |
| 12.0ms | -1.8545280709795258e-16 | -2.3659089034217667e-21 |
| 25.0ms | 512× | 0 | valid |
Compiled 1 228 to 814 computations (33.7% saved)
ival-mult: 5.0ms (36.4% of total)ival-add: 4.0ms (29.1% of total)ival-div: 3.0ms (21.9% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
| Inputs |
|---|
(+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
(if (<=.f64 y #s(literal -1/2 binary64)) (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) (if (<=.f64 y #s(literal 1/2 binary64)) (+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z))) |
(if (<=.f64 y #s(literal -5841333965851681/162259276829213363391578010288128 binary64)) (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) (if (<=.f64 y #s(literal -7430920011128155/381072821083495145432323880589986121307201921712032611188861933548019011086397170424842053596617672260721060927906081896416989218663120764928 binary64)) #s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) (if (<=.f64 y #s(literal 4806795585282539/94250893829069388263158195986839619953910191433570402840572110390025349132714488958921462158410402245441022265850013080700211570312172862173529993715108609721771173307935875544541938110298112193699817954782743504532616344943965179202194956899229230517898712545800381131625461678593653502029519299346025224452702208 binary64)) (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) (if (<=.f64 y #s(literal 1470053796651389/77371252455336267181195264 binary64)) #s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z))))) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
| Outputs |
|---|
(+.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (*.f64 y x)) z) |
(if (<=.f64 y #s(literal -1/2 binary64)) (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) (if (<=.f64 y #s(literal 1/2 binary64)) (+.f64 #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64))) z) (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z))) |
(if (<=.f64 y #s(literal -5841333965851681/162259276829213363391578010288128 binary64)) (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) (if (<=.f64 y #s(literal -7430920011128155/381072821083495145432323880589986121307201921712032611188861933548019011086397170424842053596617672260721060927906081896416989218663120764928 binary64)) #s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) (if (<=.f64 y #s(literal 4806795585282539/94250893829069388263158195986839619953910191433570402840572110390025349132714488958921462158410402245441022265850013080700211570312172862173529993715108609721771173307935875544541938110298112193699817954782743504532616344943965179202194956899229230517898712545800381131625461678593653502029519299346025224452702208 binary64)) (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) (if (<=.f64 y #s(literal 1470053796651389/77371252455336267181195264 binary64)) #s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (+ (/ x 2) (* y x)) (/.f64 x #s(literal 2 binary64)))) (+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z))))) |
(+.f64 #s(approx (+ (/ x 2) (* y x)) #s(approx (/ x 2) (*.f64 y x))) z) |
#s(approx (+ (+ (/ x 2) (* y x)) z) #s(approx (/ x 2) (*.f64 y x))) |
| 1× | done |
Compiled 207 to 38 computations (81.6% saved)
Compiled 432 to 92 computations (78.7% saved)
Loading profile data...