
Time bar (total: 2.4s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 0 |
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 1 |
| 50% | 50% | 50% | 0% | 0% | 0% | 0% | 2 |
| 75% | 75% | 25% | 0% | 0% | 0% | 0% | 3 |
| 87.5% | 87.5% | 12.5% | 0% | 0% | 0% | 0% | 4 |
| 93.8% | 93.7% | 6.2% | 0% | 0% | 0% | 0% | 5 |
| 96.9% | 96.8% | 3.1% | 0% | 0% | 0% | 0% | 6 |
| 98.4% | 98.4% | 1.6% | 0% | 0% | 0% | 0% | 7 |
| 99.2% | 99.2% | 0.8% | 0% | 0% | 0% | 0% | 8 |
| 99.6% | 99.6% | 0.4% | 0% | 0% | 0% | 0% | 9 |
| 99.8% | 99.8% | 0.2% | 0% | 0% | 0% | 0% | 10 |
| 99.9% | 99.9% | 0.1% | 0% | 0% | 0% | 0% | 11 |
| 100% | 99.9% | 0% | 0% | 0% | 0% | 0% | 12 |
Compiled 14 to 10 computations (28.6% saved)
| 850.0ms | 4 140× | 2 | valid |
| 421.0ms | 4 116× | 0 | valid |
ival-div: 439.0ms (44.4% of total)ival-mult: 218.0ms (22% of total)adjust: 126.0ms (12.7% of total)ival-sqrt: 106.0ms (10.7% of total)ival-sub: 86.0ms (8.7% of total)ival-true: 6.0ms (0.6% of total)exact: 5.0ms (0.5% of total)ival-assert: 3.0ms (0.3% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 121 | 0 | - | 4 | (-6.207124683049833e-161) | (sqrt.f64 (*.f64 x x)) |
| 0 | 0 | - | 0 | - | (/.f64 #s(literal 1 binary64) x) |
| 0 | 0 | - | 0 | - | #s(literal 1 binary64) |
| 0 | 0 | - | 0 | - | (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) |
| 0 | 0 | - | 0 | - | (/.f64 x x) |
| 0 | 0 | - | 0 | - | (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) |
| 0 | 0 | - | 0 | - | (*.f64 x x) |
| 0 | 0 | - | 0 | - | x |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
sqrt.f64 | (sqrt.f64 (*.f64 x x)) | oflow-rescue | 63 | 0 |
| ↳ | (*.f64 x x) | overflow | 63 | |
sqrt.f64 | (sqrt.f64 (*.f64 x x)) | uflow-rescue | 54 | 0 |
| ↳ | (*.f64 x x) | underflow | 54 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 117 | 16 |
| - | 0 | 123 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 117 | 0 | 16 |
| - | 0 | 0 | 123 |
| number | freq |
|---|---|
| 0 | 139 |
| 1 | 117 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 62.0ms | 248× | 2 | valid |
| 18.0ms | 264× | 0 | valid |
Compiled 86 to 28 computations (67.4% saved)
ival-div: 11.0ms (27.4% of total)ival-mult: 11.0ms (27.4% of total)adjust: 6.0ms (14.9% of total)ival-sqrt: 6.0ms (14.9% of total)ival-sub: 5.0ms (12.5% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| 1× | egg-herbie |
| 152× | lower-fma.f64 |
| 152× | lower-fma.f32 |
| 120× | lower-*.f32 |
| 116× | lower-*.f64 |
| 56× | lower-+.f64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 10 | 21 |
| 1 | 39 | 14 |
| 2 | 111 | 12 |
| 3 | 220 | 12 |
| 4 | 313 | 12 |
| 5 | 364 | 12 |
| 6 | 375 | 12 |
| 7 | 376 | 12 |
| 0 | 8 | 12 |
| 0 | 14 | 8 |
| 1 | 28 | 6 |
| 2 | 51 | 6 |
| 3 | 79 | 6 |
| 4 | 102 | 6 |
| 5 | 134 | 6 |
| 6 | 157 | 6 |
| 7 | 183 | 6 |
| 8 | 202 | 6 |
| 9 | 209 | 6 |
| 10 | 216 | 6 |
| 11 | 231 | 6 |
| 12 | 311 | 6 |
| 13 | 331 | 6 |
| 14 | 336 | 6 |
| 0 | 336 | 6 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) |
| Outputs |
|---|
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) |
(-.f64 #s(literal 1 binary64) (/.f64 (fabs.f64 x) x)) |
Compiled 12 to 8 computations (33.3% saved)
Compiled 0 to 1 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 51.8% | (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) |
Compiled 12 to 8 computations (33.3% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) | |
| cost-diff | 320 | (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) | |
| cost-diff | 704 | (/.f64 x x) | |
| cost-diff | 832 | (sqrt.f64 (*.f64 x x)) |
| 152× | lower-fma.f64 |
| 152× | lower-fma.f32 |
| 120× | lower-*.f32 |
| 116× | lower-*.f64 |
| 56× | lower-+.f64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 35 |
| 0 | 14 | 25 |
| 1 | 28 | 21 |
| 2 | 51 | 21 |
| 3 | 79 | 21 |
| 4 | 102 | 21 |
| 5 | 134 | 21 |
| 6 | 157 | 21 |
| 7 | 183 | 21 |
| 8 | 202 | 21 |
| 9 | 209 | 21 |
| 10 | 216 | 21 |
| 11 | 231 | 21 |
| 12 | 311 | 21 |
| 13 | 331 | 21 |
| 14 | 336 | 21 |
| 0 | 336 | 21 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) |
(/.f64 x x) |
x |
(*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) |
(/.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
(sqrt.f64 (*.f64 x x)) |
(*.f64 x x) |
| Outputs |
|---|
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) |
(-.f64 #s(literal 1 binary64) (/.f64 (fabs.f64 x) x)) |
(/.f64 x x) |
#s(literal 1 binary64) |
x |
(*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) |
(/.f64 (fabs.f64 x) x) |
(/.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
(sqrt.f64 (*.f64 x x)) |
(fabs.f64 x) |
(*.f64 x x) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) | |
| accuracy | 0 | (*.f64 x x) | |
| accuracy | 0.1640625 | (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) | |
| accuracy | 27.68972732502032 | (sqrt.f64 (*.f64 x x)) |
| 57.0ms | 124× | 2 | valid |
| 11.0ms | 132× | 0 | valid |
Compiled 37 to 10 computations (73% saved)
ival-div: 42.0ms (75.8% of total)ival-mult: 5.0ms (9% of total)adjust: 3.0ms (5.4% of total)ival-sqrt: 3.0ms (5.4% of total)ival-sub: 2.0ms (3.6% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
#s(alt (sqrt.f64 (*.f64 x x)) (patch (sqrt.f64 (*.f64 x x)) #<representation binary64>) () ()) |
#s(alt (/.f64 x x) (patch (/.f64 x x) #<representation binary64>) () ()) |
#s(alt (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) (patch (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) #<representation binary64>) () ()) |
#s(alt (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) (patch (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) #<representation binary64>) () ()) |
#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt x (taylor 0 x) (#s(alt (sqrt.f64 (*.f64 x x)) (patch (sqrt.f64 (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor 0 x) (#s(alt (sqrt.f64 (*.f64 x x)) (patch (sqrt.f64 (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor 0 x) (#s(alt (sqrt.f64 (*.f64 x x)) (patch (sqrt.f64 (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor 0 x) (#s(alt (sqrt.f64 (*.f64 x x)) (patch (sqrt.f64 (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor 0 x) (#s(alt (/.f64 x x) (patch (/.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor 0 x) (#s(alt (/.f64 x x) (patch (/.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor 0 x) (#s(alt (/.f64 x x) (patch (/.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor 0 x) (#s(alt (/.f64 x x) (patch (/.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor 0 x) (#s(alt (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) (patch (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor 0 x) (#s(alt (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) (patch (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor 0 x) (#s(alt (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) (patch (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor 0 x) (#s(alt (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) (patch (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor 0 x) (#s(alt (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) (patch (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor 0 x) (#s(alt (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) (patch (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor 0 x) (#s(alt (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) (patch (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor 0 x) (#s(alt (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) (patch (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (sqrt.f64 (*.f64 x x)) (patch (sqrt.f64 (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (sqrt.f64 (*.f64 x x)) (patch (sqrt.f64 (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (sqrt.f64 (*.f64 x x)) (patch (sqrt.f64 (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (sqrt.f64 (*.f64 x x)) (patch (sqrt.f64 (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor inf x) (#s(alt (/.f64 x x) (patch (/.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor inf x) (#s(alt (/.f64 x x) (patch (/.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor inf x) (#s(alt (/.f64 x x) (patch (/.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor inf x) (#s(alt (/.f64 x x) (patch (/.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor inf x) (#s(alt (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) (patch (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor inf x) (#s(alt (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) (patch (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor inf x) (#s(alt (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) (patch (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor inf x) (#s(alt (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) (patch (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor inf x) (#s(alt (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) (patch (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor inf x) (#s(alt (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) (patch (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor inf x) (#s(alt (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) (patch (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor inf x) (#s(alt (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) (patch (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor -inf x) (#s(alt (sqrt.f64 (*.f64 x x)) (patch (sqrt.f64 (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor -inf x) (#s(alt (sqrt.f64 (*.f64 x x)) (patch (sqrt.f64 (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor -inf x) (#s(alt (sqrt.f64 (*.f64 x x)) (patch (sqrt.f64 (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 x) (taylor -inf x) (#s(alt (sqrt.f64 (*.f64 x x)) (patch (sqrt.f64 (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor -inf x) (#s(alt (/.f64 x x) (patch (/.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor -inf x) (#s(alt (/.f64 x x) (patch (/.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor -inf x) (#s(alt (/.f64 x x) (patch (/.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt 1 (taylor -inf x) (#s(alt (/.f64 x x) (patch (/.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt -1 (taylor -inf x) (#s(alt (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) (patch (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt -1 (taylor -inf x) (#s(alt (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) (patch (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt -1 (taylor -inf x) (#s(alt (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) (patch (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt -1 (taylor -inf x) (#s(alt (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) (patch (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt 2 (taylor -inf x) (#s(alt (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) (patch (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) #<representation binary64>) () ())) ()) |
#s(alt 2 (taylor -inf x) (#s(alt (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) (patch (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) #<representation binary64>) () ())) ()) |
#s(alt 2 (taylor -inf x) (#s(alt (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) (patch (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) #<representation binary64>) () ())) ()) |
#s(alt 2 (taylor -inf x) (#s(alt (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) (patch (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 6.0ms | x | @ | 0 | ((sqrt (* x x)) (/ x x) (* (/ 1 x) (sqrt (* x x))) (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) (* x x)) |
| 2.0ms | x | @ | inf | ((sqrt (* x x)) (/ x x) (* (/ 1 x) (sqrt (* x x))) (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) (* x x)) |
| 1.0ms | x | @ | -inf | ((sqrt (* x x)) (/ x x) (* (/ 1 x) (sqrt (* x x))) (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) (* x x)) |
| 1× | egg-herbie |
| 12× | lower-+.f64 |
| 12× | lower-+.f32 |
| 6× | lower-*.f64 |
| 6× | lower-fma.f64 |
| 6× | lower-fma.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 88 |
| 1 | 11 | 88 |
| 2 | 12 | 88 |
| 3 | 13 | 88 |
| 4 | 15 | 88 |
| 5 | 17 | 88 |
| 6 | 21 | 88 |
| 7 | 30 | 88 |
| 8 | 33 | 88 |
| 0 | 33 | 88 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
x |
x |
x |
x |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
x |
x |
x |
x |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
1 |
1 |
1 |
1 |
-1 |
-1 |
-1 |
-1 |
2 |
2 |
2 |
2 |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
| Outputs |
|---|
x |
x |
x |
x |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
x |
x |
x |
x |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(* -1 x) |
(neg.f64 x) |
(* -1 x) |
(neg.f64 x) |
(* -1 x) |
(neg.f64 x) |
(* -1 x) |
(neg.f64 x) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
1 |
#s(literal 1 binary64) |
-1 |
#s(literal -1 binary64) |
-1 |
#s(literal -1 binary64) |
-1 |
#s(literal -1 binary64) |
-1 |
#s(literal -1 binary64) |
2 |
#s(literal 2 binary64) |
2 |
#s(literal 2 binary64) |
2 |
#s(literal 2 binary64) |
2 |
#s(literal 2 binary64) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
| 206× | lower-*.f32 |
| 204× | lower-*.f64 |
| 108× | lower-/.f32 |
| 106× | lower-/.f64 |
| 84× | lower-pow.f64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 30 |
| 0 | 14 | 15 |
| 1 | 66 | 7 |
| 2 | 373 | 7 |
| 0 | 719 | 7 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
(sqrt.f64 (*.f64 x x)) |
(/.f64 x x) |
(*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x))) |
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) |
(*.f64 x x) |
| Outputs |
|---|
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
Compiled 1 080 to 211 computations (80.5% saved)
2 alts after pruning (2 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 101 | 2 | 103 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 102 | 2 | 104 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 53.1% | #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) |
| ▶ | 50.0% | #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) |
Compiled 4 to 6 computations (-50% saved)
| 1× | egg-herbie |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) | |
| cost-diff | 0 | #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) |
| 152× | lower-fma.f64 |
| 152× | lower-fma.f32 |
| 120× | lower-*.f64 |
| 120× | lower-*.f32 |
| 56× | lower-+.f64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 12 | 30 |
| 0 | 12 | 22 |
| 1 | 24 | 18 |
| 2 | 47 | 18 |
| 3 | 75 | 18 |
| 4 | 99 | 18 |
| 5 | 131 | 18 |
| 6 | 154 | 18 |
| 7 | 180 | 18 |
| 8 | 199 | 18 |
| 9 | 206 | 18 |
| 10 | 213 | 18 |
| 11 | 228 | 18 |
| 12 | 306 | 18 |
| 13 | 326 | 18 |
| 14 | 331 | 18 |
| 0 | 331 | 18 |
| 1× | iter limit |
| 1× | saturated |
| 1× | saturated |
| Inputs |
|---|
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) |
#s(literal 0 binary64) |
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) |
#s(literal 2 binary64) |
| Outputs |
|---|
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) |
#s(literal 0 binary64) |
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) |
#s(literal 2 binary64) |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 30.031250000000004 | #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) | |
| accuracy | 31.968750000000004 | #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) |
| 19.0ms | 124× | 2 | valid |
| 8.0ms | 132× | 0 | valid |
Compiled 28 to 12 computations (57.1% saved)
ival-div: 6.0ms (31.1% of total)ival-mult: 5.0ms (25.9% of total)adjust: 3.0ms (15.5% of total)ival-sqrt: 3.0ms (15.5% of total)ival-sub: 2.0ms (10.4% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) #<representation binary64>) () ()) |
#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt 0 (taylor 0 x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor 0 x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor 0 x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor 0 x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor 0 x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor 0 x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor 0 x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor 0 x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 0 (taylor inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 2 (taylor -inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 2 (taylor -inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 2 (taylor -inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 2 (taylor -inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 2 (taylor -inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 2 (taylor -inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 2 (taylor -inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 2 (taylor -inf x) (#s(alt #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) (patch #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | 0 | ((- (/ x x) (* (/ 1 x) (sqrt (* x x)))) (- (/ x x) (* (/ 1 x) (sqrt (* x x))))) |
| 0.0ms | x | @ | inf | ((- (/ x x) (* (/ 1 x) (sqrt (* x x)))) (- (/ x x) (* (/ 1 x) (sqrt (* x x))))) |
| 0.0ms | x | @ | -inf | ((- (/ x x) (* (/ 1 x) (sqrt (* x x)))) (- (/ x x) (* (/ 1 x) (sqrt (* x x))))) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 2 | 24 |
| 0 | 2 | 24 |
| 1× | saturated |
| 1× | saturated |
| Inputs |
|---|
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
0 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
2 |
| Outputs |
|---|
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
0 |
#s(literal 0 binary64) |
2 |
#s(literal 2 binary64) |
2 |
#s(literal 2 binary64) |
2 |
#s(literal 2 binary64) |
2 |
#s(literal 2 binary64) |
2 |
#s(literal 2 binary64) |
2 |
#s(literal 2 binary64) |
2 |
#s(literal 2 binary64) |
2 |
#s(literal 2 binary64) |
| 206× | lower-*.f64 |
| 206× | lower-*.f32 |
| 108× | lower-/.f64 |
| 108× | lower-/.f32 |
| 84× | lower-pow.f64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 12 | 28 |
| 0 | 12 | 20 |
| 1 | 61 | 6 |
| 2 | 369 | 6 |
| 0 | 716 | 6 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | saturated |
| Inputs |
|---|
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) |
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) |
| Outputs |
|---|
#<batchref> |
#<batchref> |
Compiled 52 to 5 computations (90.4% saved)
2 alts after pruning (0 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 26 | 0 | 26 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 0 | 0 |
| Total | 26 | 2 | 28 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 53.1% | #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) |
| ✓ | 50.0% | #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) |
Compiled 20 to 18 computations (10% saved)
| Inputs |
|---|
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) |
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) |
(-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) |
| Outputs |
|---|
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) |
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) |
2 calls:
| 2.0ms | x |
| 1.0ms | (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 2 | x |
| 90.5% | 2 | (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) |
Compiled 13 to 9 computations (30.8% saved)
Total 0.0b remaining (0%)
Threshold costs 0b (0%)
| Inputs |
|---|
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) |
| Outputs |
|---|
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) |
2 calls:
| 1.0ms | x |
| 1.0ms | (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 50.0% | 1 | (-.f64 (/.f64 x x) (*.f64 (/.f64 #s(literal 1 binary64) x) (sqrt.f64 (*.f64 x x)))) |
| 50.0% | 1 | x |
Compiled 13 to 9 computations (30.8% saved)
| 1× | binary-search |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 86.0ms | -3.655420029879354e-304 | 1.786441468368005e-302 |
| 76.0ms | 96× | 2 | valid |
| 4.0ms | 64× | 0 | valid |
Compiled 55 to 92 computations (-67.3% saved)
ival-div: 66.0ms (88.3% of total)ival-mult: 3.0ms (4% of total)adjust: 2.0ms (2.7% of total)ival-sub: 2.0ms (2.7% of total)ival-sqrt: 1.0ms (1.3% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| 1× | egg-herbie |
| 2× | 1-exp-binary32-exp.f32 |
| 2× | 1-exp-binary64-exp.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 15 | 46 |
| 1 | 17 | 46 |
| 1× | saturated |
| Inputs |
|---|
(if (<=.f64 x #s(literal -20240225330731/101201126653655309176247673359458653524778324882071059178450679013715169783997673445980191850718562247593538932158405955694904368692896738433506699970369254960758712138283180682233453871046608170619883839236372534281003741712346349309051677824579778170405028256179384776166707307615251266093163754323003131653853870546747392 binary64)) #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))) |
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) |
| Outputs |
|---|
(if (<=.f64 x #s(literal -20240225330731/101201126653655309176247673359458653524778324882071059178450679013715169783997673445980191850718562247593538932158405955694904368692896738433506699970369254960758712138283180682233453871046608170619883839236372534281003741712346349309051677824579778170405028256179384776166707307615251266093163754323003131653853870546747392 binary64)) #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 2 binary64)) #s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64))) |
#s(approx (- (/ x x) (* (/ 1 x) (sqrt (* x x)))) #s(literal 0 binary64)) |
| 12× | lower-+.f64 |
| 12× | lower-+.f32 |
| 6× | lower-*.f64 |
| 6× | lower-fma.f64 |
| 6× | lower-fma.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 88 |
| 1 | 11 | 88 |
| 2 | 12 | 88 |
| 3 | 13 | 88 |
| 4 | 15 | 88 |
| 5 | 17 | 88 |
| 6 | 21 | 88 |
| 7 | 30 | 88 |
| 8 | 33 | 88 |
| 0 | 33 | 88 |
| 1× | done |
| 1× | iter limit |
| 1× | saturated |
Compiled 13 to 14 computations (-7.7% saved)
Compiled 56 to 42 computations (25% saved)
Loading profile data...