
Time bar (total: 1.4s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 0 |
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 1 |
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 2 |
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 3 |
| 50% | 49.9% | 49.9% | 0.1% | 0% | 0% | 0% | 4 |
| 50% | 49.9% | 49.9% | 0.1% | 0% | 0% | 0% | 5 |
| 50% | 49.9% | 49.9% | 0.1% | 0% | 0% | 0% | 6 |
| 66.7% | 49.9% | 25% | 0.1% | 0% | 25% | 0% | 7 |
| 66.7% | 49.9% | 25% | 0.1% | 0% | 25% | 0% | 8 |
| 66.7% | 49.9% | 25% | 0.1% | 0% | 25% | 0% | 9 |
| 80% | 49.9% | 12.5% | 0.1% | 0% | 37.4% | 0% | 10 |
| 80% | 49.9% | 12.5% | 0.1% | 0% | 37.4% | 0% | 11 |
| 80% | 49.9% | 12.5% | 0.1% | 0% | 37.4% | 0% | 12 |
Compiled 12 to 12 computations (0% saved)
| 529.0ms | 8 256× | 0 | valid |
| 127.0ms | 2 078× | 0 | invalid |
ival-mult: 129.0ms (34.9% of total)ival-sqrt: 80.0ms (21.7% of total)ival-div: 79.0ms (21.4% of total)ival-add: 59.0ms (16% of total)exact: 10.0ms (2.7% of total)ival-true: 8.0ms (2.2% of total)ival-assert: 4.0ms (1.1% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 0 | 0 | - | 0 | - | (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
| 0 | 0 | - | 0 | - | #s(literal 1 binary64) |
| 0 | 0 | - | 0 | - | z |
| 0 | 0 | - | 0 | - | (sqrt.f64 z) |
| 0 | 0 | - | 0 | - | (+.f64 x (*.f64 y (sqrt.f64 z))) |
| 0 | 0 | - | 0 | - | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| 0 | 0 | - | 0 | - | y |
| 0 | 0 | - | 0 | - | #s(literal 2 binary64) |
| 0 | 0 | - | 0 | - | (*.f64 y (sqrt.f64 z)) |
| 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 |
| 41.0ms | 512× | 0 | valid |
Compiled 104 to 44 computations (57.7% saved)
ival-mult: 6.0ms (34.6% of total)ival-sqrt: 4.0ms (23% of total)ival-div: 3.0ms (17.3% of total)ival-add: 2.0ms (11.5% 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 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| Outputs |
|---|
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
Compiled 10 to 10 computations (0% saved)
Compiled 0 to 3 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 99.8% | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
Compiled 10 to 10 computations (0% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 y (sqrt.f64 z)) | |
| cost-diff | 0 | (+.f64 x (*.f64 y (sqrt.f64 z))) | |
| cost-diff | 0 | (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) | |
| cost-diff | 0 | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| Inputs |
|---|
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
#s(literal 1 binary64) |
#s(literal 2 binary64) |
(+.f64 x (*.f64 y (sqrt.f64 z))) |
x |
(*.f64 y (sqrt.f64 z)) |
y |
(sqrt.f64 z) |
z |
| Outputs |
|---|
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
#s(literal 1 binary64) |
#s(literal 2 binary64) |
(+.f64 x (*.f64 y (sqrt.f64 z))) |
x |
(*.f64 y (sqrt.f64 z)) |
y |
(sqrt.f64 z) |
z |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) | |
| accuracy | 0.0 | (sqrt.f64 z) | |
| accuracy | 0.01171875 | (+.f64 x (*.f64 y (sqrt.f64 z))) | |
| accuracy | 0.1953125 | (*.f64 y (sqrt.f64 z)) |
| 17.0ms | 256× | 0 | valid |
Compiled 62 to 22 computations (64.5% saved)
ival-mult: 3.0ms (34.8% of total)ival-div: 2.0ms (23.2% of total)ival-sqrt: 2.0ms (23.2% of total)ival-add: 1.0ms (11.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 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
(+.f64 x (*.f64 y (sqrt.f64 z))) |
(*.f64 y (sqrt.f64 z)) |
(sqrt.f64 z) |
| Outputs |
|---|
(* 1/2 (* y (sqrt z))) |
(+ (* 1/2 x) (* 1/2 (* y (sqrt z)))) |
(* y (sqrt z)) |
(+ x (* y (sqrt z))) |
(* 1/2 x) |
(* x (+ 1/2 (* 1/2 (* (/ y x) (sqrt z))))) |
x |
(* x (+ 1 (* (/ y x) (sqrt z)))) |
(* -1 (* x (- (* -1/2 (* (/ y x) (sqrt z))) 1/2))) |
(* -1 (* x (- (* -1 (* (/ y x) (sqrt z))) 1))) |
(* y (+ (* 1/2 (sqrt z)) (* 1/2 (/ x y)))) |
(* y (+ (sqrt z) (/ x y))) |
(* -1 (* y (+ (* -1/2 (sqrt z)) (* -1/2 (/ x y))))) |
(* -1 (* y (+ (* -1 (sqrt z)) (* -1 (/ x y))))) |
(* 1/2 (+ x (* y (sqrt z)))) |
(sqrt z) |
(* z (+ (* 1/2 (* y (sqrt (/ 1 z)))) (* 1/2 (/ x z)))) |
(* z (+ (* y (sqrt (/ 1 z))) (/ x z))) |
(* -1/2 (* (* y (pow (sqrt -1) 2)) (sqrt z))) |
(* -1 (* z (+ (* -1/2 (/ x z)) (* 1/2 (* (* y (pow (sqrt -1) 2)) (sqrt (/ 1 z))))))) |
(* -1 (* (* y (pow (sqrt -1) 2)) (sqrt z))) |
(* -1 (* z (+ (* -1 (/ x z)) (* (* y (pow (sqrt -1) 2)) (sqrt (/ 1 z)))))) |
(* -1 (* (sqrt z) (pow (sqrt -1) 2))) |
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | z | @ | -inf | ((* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (+ x (* y (sqrt z))) (* y (sqrt z)) (sqrt z)) |
| 1.0ms | z | @ | inf | ((* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (+ x (* y (sqrt z))) (* y (sqrt z)) (sqrt z)) |
| 1.0ms | y | @ | -inf | ((* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (+ x (* y (sqrt z))) (* y (sqrt z)) (sqrt z)) |
| 1.0ms | y | @ | 0 | ((* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (+ x (* y (sqrt z))) (* y (sqrt z)) (sqrt z)) |
| 1.0ms | y | @ | inf | ((* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (+ x (* y (sqrt z))) (* y (sqrt z)) (sqrt z)) |
| 1× | egg-herbie |
| Inputs |
|---|
(* 1/2 (* y (sqrt z))) |
(+ (* 1/2 x) (* 1/2 (* y (sqrt z)))) |
(* y (sqrt z)) |
(+ x (* y (sqrt z))) |
(* 1/2 x) |
(* x (+ 1/2 (* 1/2 (* (/ y x) (sqrt z))))) |
x |
(* x (+ 1 (* (/ y x) (sqrt z)))) |
(* -1 (* x (- (* -1/2 (* (/ y x) (sqrt z))) 1/2))) |
(* -1 (* x (- (* -1 (* (/ y x) (sqrt z))) 1))) |
(* y (+ (* 1/2 (sqrt z)) (* 1/2 (/ x y)))) |
(* y (+ (sqrt z) (/ x y))) |
(* -1 (* y (+ (* -1/2 (sqrt z)) (* -1/2 (/ x y))))) |
(* -1 (* y (+ (* -1 (sqrt z)) (* -1 (/ x y))))) |
(* 1/2 (+ x (* y (sqrt z)))) |
(sqrt z) |
(* z (+ (* 1/2 (* y (sqrt (/ 1 z)))) (* 1/2 (/ x z)))) |
(* z (+ (* y (sqrt (/ 1 z))) (/ x z))) |
(* -1/2 (* (* y (pow (sqrt -1) 2)) (sqrt z))) |
(* -1 (* z (+ (* -1/2 (/ x z)) (* 1/2 (* (* y (pow (sqrt -1) 2)) (sqrt (/ 1 z))))))) |
(* -1 (* (* y (pow (sqrt -1) 2)) (sqrt z))) |
(* -1 (* z (+ (* -1 (/ x z)) (* (* y (pow (sqrt -1) 2)) (sqrt (/ 1 z)))))) |
(* -1 (* (sqrt z) (pow (sqrt -1) 2))) |
| Outputs |
|---|
(* 1/2 (* y (sqrt z))) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
(+ (* 1/2 x) (* 1/2 (* y (sqrt z)))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
(* y (sqrt z)) |
(+.f64 x (*.f64 y (sqrt.f64 z))) |
(+ x (* y (sqrt z))) |
(*.f64 y (sqrt.f64 z)) |
(* 1/2 x) |
(sqrt.f64 z) |
| Inputs |
|---|
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
(+.f64 x (*.f64 y (sqrt.f64 z))) |
(*.f64 y (sqrt.f64 z)) |
(sqrt.f64 z) |
| Outputs |
|---|
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
(+.f64 x (*.f64 y (sqrt.f64 z))) |
(*.f64 y (sqrt.f64 z)) |
(sqrt.f64 z) |
Compiled 130 to 24 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 |
|---|---|---|
| ✓ | 99.8% | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| ▶ | 49.4% | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
| ▶ | 3.1% | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
| ▶ | 3.2% | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
Compiled 52 to 49 computations (5.8% saved)
| 1× | egg-herbie |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 y (sqrt.f64 z)) | |
| cost-diff | 0 | #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) | |
| cost-diff | 0 | (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) | |
| cost-diff | 0 | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) | |
| cost-diff | 0 | (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) | |
| cost-diff | 0 | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) | |
| cost-diff | 0 | (sqrt.f64 z) | |
| cost-diff | 0 | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
| Inputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
(sqrt.f64 z) |
z |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
#s(literal 1 binary64) |
#s(literal 2 binary64) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
#s(literal 1 binary64) |
#s(literal 2 binary64) |
#s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) |
(*.f64 y (sqrt.f64 z)) |
y |
(sqrt.f64 z) |
z |
| Outputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
(sqrt.f64 z) |
z |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
#s(literal 1 binary64) |
#s(literal 2 binary64) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
#s(literal 1 binary64) |
#s(literal 2 binary64) |
#s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) |
(*.f64 y (sqrt.f64 z)) |
y |
(sqrt.f64 z) |
z |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) | |
| accuracy | 0.0 | (sqrt.f64 z) | |
| accuracy | 0.1953125 | (*.f64 y (sqrt.f64 z)) | |
| accuracy | 32.30897119119406 | #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) | |
| accuracy | 0.0 | (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) | |
| accuracy | 61.99004896860646 | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) | |
| accuracy | 0.0 | (sqrt.f64 z) | |
| accuracy | 61.96008402740031 | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
| 18.0ms | 256× | 0 | valid |
Compiled 133 to 31 computations (76.7% saved)
ival-mult: 3.0ms (34.6% of total)ival-div: 2.0ms (23.1% of total)ival-sqrt: 2.0ms (23.1% of total)ival-add: 1.0ms (11.5% 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 (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
(sqrt.f64 z) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
#s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) |
(*.f64 y (sqrt.f64 z)) |
| Outputs |
|---|
(* 1/2 (* y (sqrt z))) |
(+ (* 1/2 x) (* 1/2 (* y (sqrt z)))) |
(* y (sqrt z)) |
(+ x (* y (sqrt z))) |
(* 1/2 x) |
(* x (+ 1/2 (* 1/2 (* (/ y x) (sqrt z))))) |
x |
(* x (+ 1 (* (/ y x) (sqrt z)))) |
(* -1 (* x (- (* -1/2 (* (/ y x) (sqrt z))) 1/2))) |
(* -1 (* x (- (* -1 (* (/ y x) (sqrt z))) 1))) |
(* y (+ (* 1/2 (sqrt z)) (* 1/2 (/ x y)))) |
(* y (+ (sqrt z) (/ x y))) |
(* -1 (* y (+ (* -1/2 (sqrt z)) (* -1/2 (/ x y))))) |
(* -1 (* y (+ (* -1 (sqrt z)) (* -1 (/ x y))))) |
(* 1/2 (+ x (* y (sqrt z)))) |
(sqrt z) |
(* z (+ (* 1/2 (* y (sqrt (/ 1 z)))) (* 1/2 (/ x z)))) |
(* z (+ (* y (sqrt (/ 1 z))) (/ x z))) |
(* -1/2 (* (* y (pow (sqrt -1) 2)) (sqrt z))) |
(* -1 (* z (+ (* -1/2 (/ x z)) (* 1/2 (* (* y (pow (sqrt -1) 2)) (sqrt (/ 1 z))))))) |
(* -1 (* (sqrt z) (pow (sqrt -1) 2))) |
(* -1 (* (* y (pow (sqrt -1) 2)) (sqrt z))) |
(* -1 (* z (+ (* -1 (/ x z)) (* (* y (pow (sqrt -1) 2)) (sqrt (/ 1 z)))))) |
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | z | @ | -inf | ((* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt z) (* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (* (/ 1 2) (+ x (* y (sqrt z)))) (+ x (* y (sqrt z))) (* y (sqrt z))) |
| 1.0ms | y | @ | -inf | ((* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt z) (* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (* (/ 1 2) (+ x (* y (sqrt z)))) (+ x (* y (sqrt z))) (* y (sqrt z))) |
| 0.0ms | z | @ | inf | ((* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt z) (* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (* (/ 1 2) (+ x (* y (sqrt z)))) (+ x (* y (sqrt z))) (* y (sqrt z))) |
| 0.0ms | y | @ | inf | ((* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt z) (* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (* (/ 1 2) (+ x (* y (sqrt z)))) (+ x (* y (sqrt z))) (* y (sqrt z))) |
| 0.0ms | z | @ | 0 | ((* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt z) (* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (* (/ 1 2) (+ x (* y (sqrt z)))) (+ x (* y (sqrt z))) (* y (sqrt z))) |
| 1× | egg-herbie |
| Inputs |
|---|
(* 1/2 (* y (sqrt z))) |
(+ (* 1/2 x) (* 1/2 (* y (sqrt z)))) |
(* y (sqrt z)) |
(+ x (* y (sqrt z))) |
(* 1/2 x) |
(* x (+ 1/2 (* 1/2 (* (/ y x) (sqrt z))))) |
x |
(* x (+ 1 (* (/ y x) (sqrt z)))) |
(* -1 (* x (- (* -1/2 (* (/ y x) (sqrt z))) 1/2))) |
(* -1 (* x (- (* -1 (* (/ y x) (sqrt z))) 1))) |
(* y (+ (* 1/2 (sqrt z)) (* 1/2 (/ x y)))) |
(* y (+ (sqrt z) (/ x y))) |
(* -1 (* y (+ (* -1/2 (sqrt z)) (* -1/2 (/ x y))))) |
(* -1 (* y (+ (* -1 (sqrt z)) (* -1 (/ x y))))) |
(* 1/2 (+ x (* y (sqrt z)))) |
(sqrt z) |
(* z (+ (* 1/2 (* y (sqrt (/ 1 z)))) (* 1/2 (/ x z)))) |
(* z (+ (* y (sqrt (/ 1 z))) (/ x z))) |
(* -1/2 (* (* y (pow (sqrt -1) 2)) (sqrt z))) |
(* -1 (* z (+ (* -1/2 (/ x z)) (* 1/2 (* (* y (pow (sqrt -1) 2)) (sqrt (/ 1 z))))))) |
(* -1 (* (sqrt z) (pow (sqrt -1) 2))) |
(* -1 (* (* y (pow (sqrt -1) 2)) (sqrt z))) |
(* -1 (* z (+ (* -1 (/ x z)) (* (* y (pow (sqrt -1) 2)) (sqrt (/ 1 z)))))) |
| Outputs |
|---|
(* 1/2 (* y (sqrt z))) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
(+ (* 1/2 x) (* 1/2 (* y (sqrt z)))) |
(sqrt.f64 z) |
(* y (sqrt z)) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
(+ x (* y (sqrt z))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
(* 1/2 x) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
(* x (+ 1/2 (* 1/2 (* (/ y x) (sqrt z))))) |
#s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) |
x |
(*.f64 y (sqrt.f64 z)) |
| Inputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
(sqrt.f64 z) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
#s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) |
(*.f64 y (sqrt.f64 z)) |
| Outputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
(sqrt.f64 z) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
#s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) |
(*.f64 y (sqrt.f64 z)) |
Compiled 240 to 26 computations (89.2% saved)
6 alts after pruning (2 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 12 | 2 | 14 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 3 | 3 |
| Done | 0 | 1 | 1 |
| Total | 12 | 6 | 18 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 99.8% | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| ▶ | 3.1% | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) |
| ✓ | 49.4% | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
| ✓ | 3.1% | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
| ✓ | 3.2% | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
| ▶ | 14.4% | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
Compiled 88 to 74 computations (15.9% saved)
| 1× | egg-herbie |
Found 7 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) | |
| cost-diff | 0 | (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) | |
| cost-diff | 0 | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) | |
| cost-diff | 0 | (sqrt.f64 z) | |
| cost-diff | 0 | (*.f64 y (sqrt.f64 z)) | |
| cost-diff | 0 | #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) | |
| cost-diff | 0 | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
| Inputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
#s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) |
(*.f64 y (sqrt.f64 z)) |
y |
(sqrt.f64 z) |
z |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
#s(literal 1 binary64) |
#s(literal 2 binary64) |
#s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
| Outputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
#s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) |
(*.f64 y (sqrt.f64 z)) |
y |
(sqrt.f64 z) |
z |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
#s(literal 1 binary64) |
#s(literal 2 binary64) |
#s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
Found 7 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) | |
| accuracy | 0.0 | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) | |
| accuracy | 61.99611511304344 | #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) | |
| accuracy | 0.0 | (sqrt.f64 z) | |
| accuracy | 0.1953125 | (*.f64 y (sqrt.f64 z)) | |
| accuracy | 32.30897119119406 | #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) | |
| accuracy | 49.765625 | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
| 23.0ms | 256× | 0 | valid |
Compiled 117 to 31 computations (73.5% saved)
ival-mult: 3.0ms (35.2% of total)ival-div: 2.0ms (23.5% of total)ival-sqrt: 2.0ms (23.5% of total)ival-add: 1.0ms (11.7% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
#s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) |
(*.f64 y (sqrt.f64 z)) |
(sqrt.f64 z) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
#s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
| Outputs |
|---|
(* 1/2 (* y (sqrt z))) |
(+ (* 1/2 x) (* 1/2 (* y (sqrt z)))) |
(* y (sqrt z)) |
(+ x (* y (sqrt z))) |
(* 1/2 x) |
(* x (+ 1/2 (* 1/2 (* (/ y x) (sqrt z))))) |
x |
(* x (+ 1 (* (/ y x) (sqrt z)))) |
(* -1 (* x (- (* -1/2 (* (/ y x) (sqrt z))) 1/2))) |
(* -1 (* x (- (* -1 (* (/ y x) (sqrt z))) 1))) |
(* y (+ (* 1/2 (sqrt z)) (* 1/2 (/ x y)))) |
(* y (+ (sqrt z) (/ x y))) |
(* -1 (* y (+ (* -1/2 (sqrt z)) (* -1/2 (/ x y))))) |
(* -1 (* y (+ (* -1 (sqrt z)) (* -1 (/ x y))))) |
(* 1/2 (+ x (* y (sqrt z)))) |
(sqrt z) |
(* z (+ (* 1/2 (* y (sqrt (/ 1 z)))) (* 1/2 (/ x z)))) |
(* z (+ (* y (sqrt (/ 1 z))) (/ x z))) |
(* -1/2 (* (* y (pow (sqrt -1) 2)) (sqrt z))) |
(* -1 (* z (+ (* -1/2 (/ x z)) (* 1/2 (* (* y (pow (sqrt -1) 2)) (sqrt (/ 1 z))))))) |
(* -1 (* (* y (pow (sqrt -1) 2)) (sqrt z))) |
(* -1 (* z (+ (* -1 (/ x z)) (* (* y (pow (sqrt -1) 2)) (sqrt (/ 1 z)))))) |
(* -1 (* (sqrt z) (pow (sqrt -1) 2))) |
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | z | @ | -inf | ((* (/ 1 2) (+ x (* y (sqrt z)))) (+ x (* y (sqrt z))) (* y (sqrt z)) (sqrt z) (* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (+ x (* y (sqrt z)))) |
| 1.0ms | y | @ | -inf | ((* (/ 1 2) (+ x (* y (sqrt z)))) (+ x (* y (sqrt z))) (* y (sqrt z)) (sqrt z) (* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (+ x (* y (sqrt z)))) |
| 1.0ms | z | @ | inf | ((* (/ 1 2) (+ x (* y (sqrt z)))) (+ x (* y (sqrt z))) (* y (sqrt z)) (sqrt z) (* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (+ x (* y (sqrt z)))) |
| 0.0ms | y | @ | inf | ((* (/ 1 2) (+ x (* y (sqrt z)))) (+ x (* y (sqrt z))) (* y (sqrt z)) (sqrt z) (* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (+ x (* y (sqrt z)))) |
| 0.0ms | z | @ | 0 | ((* (/ 1 2) (+ x (* y (sqrt z)))) (+ x (* y (sqrt z))) (* y (sqrt z)) (sqrt z) (* (/ 1 2) (+ x (* y (sqrt z)))) (/ 1 2) (+ x (* y (sqrt z)))) |
| 1× | egg-herbie |
| Inputs |
|---|
(* 1/2 (* y (sqrt z))) |
(+ (* 1/2 x) (* 1/2 (* y (sqrt z)))) |
(* y (sqrt z)) |
(+ x (* y (sqrt z))) |
(* 1/2 x) |
(* x (+ 1/2 (* 1/2 (* (/ y x) (sqrt z))))) |
x |
(* x (+ 1 (* (/ y x) (sqrt z)))) |
(* -1 (* x (- (* -1/2 (* (/ y x) (sqrt z))) 1/2))) |
(* -1 (* x (- (* -1 (* (/ y x) (sqrt z))) 1))) |
(* y (+ (* 1/2 (sqrt z)) (* 1/2 (/ x y)))) |
(* y (+ (sqrt z) (/ x y))) |
(* -1 (* y (+ (* -1/2 (sqrt z)) (* -1/2 (/ x y))))) |
(* -1 (* y (+ (* -1 (sqrt z)) (* -1 (/ x y))))) |
(* 1/2 (+ x (* y (sqrt z)))) |
(sqrt z) |
(* z (+ (* 1/2 (* y (sqrt (/ 1 z)))) (* 1/2 (/ x z)))) |
(* z (+ (* y (sqrt (/ 1 z))) (/ x z))) |
(* -1/2 (* (* y (pow (sqrt -1) 2)) (sqrt z))) |
(* -1 (* z (+ (* -1/2 (/ x z)) (* 1/2 (* (* y (pow (sqrt -1) 2)) (sqrt (/ 1 z))))))) |
(* -1 (* (* y (pow (sqrt -1) 2)) (sqrt z))) |
(* -1 (* z (+ (* -1 (/ x z)) (* (* y (pow (sqrt -1) 2)) (sqrt (/ 1 z)))))) |
(* -1 (* (sqrt z) (pow (sqrt -1) 2))) |
| Outputs |
|---|
(* 1/2 (* y (sqrt z))) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
(+ (* 1/2 x) (* 1/2 (* y (sqrt z)))) |
#s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) |
(* y (sqrt z)) |
(*.f64 y (sqrt.f64 z)) |
(+ x (* y (sqrt z))) |
(sqrt.f64 z) |
(* 1/2 x) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) |
(* x (+ 1/2 (* 1/2 (* (/ y x) (sqrt z))))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
x |
#s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
| Inputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
#s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) |
(*.f64 y (sqrt.f64 z)) |
(sqrt.f64 z) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
#s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
| Outputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
#s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z))) |
(*.f64 y (sqrt.f64 z)) |
(sqrt.f64 z) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) |
(/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) |
#s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
Compiled 264 to 26 computations (90.2% saved)
6 alts after pruning (0 fresh and 6 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 13 | 0 | 13 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 4 | 4 |
| Total | 13 | 6 | 19 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 99.8% | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| ✓ | 3.1% | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) |
| ✓ | 49.4% | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
| ✓ | 3.1% | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
| ✓ | 3.2% | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
| ✓ | 14.4% | #s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
Compiled 176 to 98 computations (44.3% saved)
| Inputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| Outputs |
|---|
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
7 calls:
| 6.0ms | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| 3.0ms | (sqrt.f64 z) |
| 3.0ms | z |
| 3.0ms | (+.f64 x (*.f64 y (sqrt.f64 z))) |
| 3.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.8% | 1 | x |
| 99.8% | 1 | y |
| 99.8% | 1 | z |
| 99.8% | 1 | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| 99.8% | 1 | (+.f64 x (*.f64 y (sqrt.f64 z))) |
| 99.8% | 1 | (*.f64 y (sqrt.f64 z)) |
| 99.8% | 1 | (sqrt.f64 z) |
Compiled 25 to 34 computations (-36% saved)
| Inputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
| Outputs |
|---|
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
7 calls:
| 5.0ms | (+.f64 x (*.f64 y (sqrt.f64 z))) |
| 2.0ms | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| 2.0ms | z |
| 2.0ms | (sqrt.f64 z) |
| 2.0ms | (*.f64 y (sqrt.f64 z)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 49.4% | 1 | x |
| 49.4% | 1 | y |
| 49.4% | 1 | z |
| 49.4% | 1 | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| 49.4% | 1 | (+.f64 x (*.f64 y (sqrt.f64 z))) |
| 49.4% | 1 | (*.f64 y (sqrt.f64 z)) |
| 49.4% | 1 | (sqrt.f64 z) |
Compiled 25 to 34 computations (-36% saved)
| Inputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)))) |
| Outputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
7 calls:
| 4.0ms | (sqrt.f64 z) |
| 2.0ms | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| 2.0ms | (+.f64 x (*.f64 y (sqrt.f64 z))) |
| 2.0ms | x |
| 2.0ms | z |
| Accuracy | Segments | Branch |
|---|---|---|
| 14.4% | 1 | (*.f64 y (sqrt.f64 z)) |
| 14.4% | 1 | x |
| 14.4% | 1 | y |
| 14.4% | 1 | z |
| 14.4% | 1 | (sqrt.f64 z) |
| 14.4% | 1 | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| 14.4% | 1 | (+.f64 x (*.f64 y (sqrt.f64 z))) |
Compiled 25 to 34 computations (-36% saved)
Total -0.3b remaining (-0.5%)
Threshold costs -0.3b (-0.5%)
| Inputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (/.f64 #s(literal 1 binary64) #s(literal 2 binary64))) |
| Outputs |
|---|
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
7 calls:
| 3.0ms | y |
| 2.0ms | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| 1.0ms | z |
| 1.0ms | (+.f64 x (*.f64 y (sqrt.f64 z))) |
| 1.0ms | (sqrt.f64 z) |
| Accuracy | Segments | Branch |
|---|---|---|
| 3.2% | 1 | x |
| 3.2% | 1 | y |
| 3.2% | 1 | z |
| 3.2% | 1 | (*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
| 3.2% | 1 | (+.f64 x (*.f64 y (sqrt.f64 z))) |
| 3.2% | 1 | (*.f64 y (sqrt.f64 z)) |
| 3.2% | 1 | (sqrt.f64 z) |
Compiled 25 to 34 computations (-36% saved)
| 1× | egg-herbie |
| Inputs |
|---|
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
| Outputs |
|---|
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) (+.f64 x (*.f64 y (sqrt.f64 z)))) |
(*.f64 (/.f64 #s(literal 1 binary64) #s(literal 2 binary64)) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) #s(approx (+ x (* y (sqrt z))) (*.f64 y (sqrt.f64 z)))) |
#s(approx (* (/ 1 2) (+ x (* y (sqrt z)))) (sqrt.f64 z)) |
| 1× | done |
Compiled 60 to 21 computations (65% saved)
Compiled 140 to 62 computations (55.7% saved)
Loading profile data...