
Time bar (total: 2.4s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 0 |
| 100% | 100% | 0% | 0% | 0% | 0% | 0% | 1 |
Compiled 10 to 6 computations (40% saved)
| 354.0ms | 8 256× | 0 | valid |
ival-pow2: 92.0ms (47.2% of total)ival-sqrt: 55.0ms (28.2% of total)ival-add: 40.0ms (20.5% of total)ival-true: 5.0ms (2.6% of total)ival-assert: 3.0ms (1.5% of total)| 1× | egg-herbie |
| 58× | associate-*r* |
| 54× | unsub-neg |
| 38× | distribute-rgt-neg-out |
| 38× | distribute-lft-neg-out |
| 38× | associate-*l* |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 15 |
| 1 | 15 | 13 |
| 2 | 35 | 13 |
| 3 | 146 | 13 |
| 4 | 286 | 13 |
| 5 | 313 | 13 |
| 6 | 315 | 13 |
| 0 | 5 | 6 |
| 1 | 7 | 6 |
| 2 | 12 | 6 |
| 3 | 15 | 6 |
| 0 | 15 | 3 |
| 1× | iter limit |
| 1× | saturated |
| 1× | saturated |
| Inputs |
|---|
(sqrt (+ (pow x 2) (pow x 2))) |
| Outputs |
|---|
(sqrt (+ (pow x 2) (pow x 2))) |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 127 | 0 | - | 1 | (-1.1434135325736018e-156) | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 0 | 0 | - | 0 | - | (pow.f64 x #s(literal 2 binary64)) |
| 0 | 0 | - | 0 | - | #s(literal 2 binary64) |
| 0 | 0 | - | 0 | - | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 0 | 0 | - | 0 | - | x |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
sqrt.f64 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) | oflow-rescue | 76 | 0 |
| ↳ | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) | overflow | 76 | |
| ↳ | (pow.f64 x #s(literal 2 binary64)) | overflow | 152 | |
sqrt.f64 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) | uflow-rescue | 50 | 0 |
| ↳ | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) | underflow | 50 | |
| ↳ | (pow.f64 x #s(literal 2 binary64)) | underflow | 100 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 126 | 1 |
| - | 0 | 129 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 126 | 0 | 1 |
| - | 0 | 0 | 129 |
| number | freq |
|---|---|
| 0 | 130 |
| 1 | 126 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 26.0ms | 512× | 0 | valid |
Compiled 62 to 24 computations (61.3% saved)
ival-pow2: 7.0ms (52.5% of total)ival-sqrt: 3.0ms (22.5% of total)ival-add: 2.0ms (15% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)Compiled 1 to 1 computations (0% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 54.1% | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
Compiled 9 to 5 computations (44.4% saved)
| 1× | egg-herbie |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | cost-diff | 0 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| ✓ | cost-diff | 320 | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| ✓ | cost-diff | 6144 | (pow.f64 x #s(literal 2 binary64)) |
| 14× | *-lowering-*.f32 |
| 14× | *-lowering-*.f64 |
| 4× | *-commutative |
| 4× | +-lowering-+.f64 |
| 4× | count-2 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 16 |
| 1 | 7 | 16 |
| 2 | 12 | 16 |
| 3 | 15 | 16 |
| 0 | 15 | 13 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(sqrt (+ (pow x 2) (pow x 2))) |
(+ (pow x 2) (pow x 2)) |
(pow x 2) |
x |
2 |
| Outputs |
|---|
(sqrt (+ (pow x 2) (pow x 2))) |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
(+ (pow x 2) (pow x 2)) |
(*.f64 x (+.f64 x x)) |
(pow x 2) |
(*.f64 x x) |
x |
2 |
#s(literal 2 binary64) |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | accuracy | 100.0% | (pow.f64 x #s(literal 2 binary64)) |
| ✓ | accuracy | 100.0% | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| ✓ | accuracy | 54.1% | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 11.0ms | 256× | 0 | valid |
Compiled 22 to 7 computations (68.2% saved)
ival-pow2: 3.0ms (49.9% of total)ival-sqrt: 2.0ms (33.3% of total)ival-add: 1.0ms (16.6% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#<alt (pow x 2)> |
#<alt (+ (pow x 2) (pow x 2))> |
#<alt (sqrt (+ (pow x 2) (pow x 2)))> |
| Outputs |
|---|
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | 0 | (sqrt (+ (pow x 2) (pow x 2))) |
| 1.0ms | x | @ | inf | (sqrt (+ (pow x 2) (pow x 2))) |
| 0.0ms | x | @ | inf | (pow x 2) |
| 0.0ms | x | @ | 0 | (pow x 2) |
| 0.0ms | x | @ | 0 | (+ (pow x 2) (pow x 2)) |
| 1× | batch-egg-rewrite |
| 70× | *-lowering-*.f32 |
| 70× | *-lowering-*.f64 |
| 44× | accelerator-lowering-fma.f32 |
| 44× | accelerator-lowering-fma.f64 |
| 34× | pow-lowering-pow.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 14 |
| 1 | 25 | 10 |
| 0 | 167 | 9 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| Inputs |
|---|
(pow x 2) |
(+ (pow x 2) (pow x 2)) |
(sqrt (+ (pow x 2) (pow x 2))) |
| Outputs |
|---|
(exp.f64 (*.f64 #s(literal 2 binary64) (log.f64 x))) |
(pow.f64 x #s(literal 2 binary64)) |
(pow.f64 (*.f64 x x) #s(literal 1 binary64)) |
(pow.f64 (exp.f64 (log.f64 x)) #s(literal 2 binary64)) |
(*.f64 x x) |
(*.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.f64 x))) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(-.f64 (/.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64)) (/.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64))) |
(fma.f64 x x (*.f64 x x)) |
(fma.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.f64 x)) (*.f64 x x)) |
(/.f64 (*.f64 (fma.f64 (*.f64 x x) (*.f64 x x) #s(literal 0 binary64)) (*.f64 x (+.f64 x x))) (fma.f64 (*.f64 x x) (*.f64 x x) #s(literal 0 binary64))) |
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) |
(/.f64 #s(literal 1 binary64) (*.f64 x (+.f64 x x))) |
(/.f64 #s(literal 1 binary64) (/.f64 (fma.f64 (*.f64 x x) (*.f64 x x) #s(literal 0 binary64)) (*.f64 (fma.f64 (*.f64 x x) (*.f64 x x) #s(literal 0 binary64)) (*.f64 x (+.f64 x x))))) |
(/.f64 (neg.f64 (*.f64 (fma.f64 (*.f64 x x) (*.f64 x x) #s(literal 0 binary64)) (*.f64 x (+.f64 x x)))) (neg.f64 (fma.f64 (*.f64 x x) (*.f64 x x) #s(literal 0 binary64)))) |
(*.f64 x (+.f64 x x)) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 (fma.f64 (*.f64 x x) (*.f64 x x) #s(literal 0 binary64)) (*.f64 x (+.f64 x x))) (/.f64 #s(literal 1 binary64) (fma.f64 (*.f64 x x) (*.f64 x x) #s(literal 0 binary64)))) |
(*.f64 #s(literal 0 binary64) (/.f64 #s(literal 1 binary64) #s(literal 0 binary64))) |
(*.f64 (*.f64 #s(literal 2 binary64) x) x) |
(exp.f64 (*.f64 (log.f64 (*.f64 x (+.f64 x x))) #s(literal 1/2 binary64))) |
(hypot.f64 x x) |
(hypot.f64 x (exp.f64 (log.f64 x))) |
(hypot.f64 (exp.f64 (log.f64 x)) x) |
(hypot.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.f64 x))) |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
(/.f64 (sqrt.f64 (*.f64 (fma.f64 (*.f64 x x) (*.f64 x x) #s(literal 0 binary64)) (*.f64 x (+.f64 x x)))) (sqrt.f64 (fma.f64 (*.f64 x x) (*.f64 x x) #s(literal 0 binary64)))) |
(/.f64 (sqrt.f64 #s(literal 0 binary64)) (sqrt.f64 #s(literal 0 binary64))) |
(pow.f64 (*.f64 x (+.f64 x x)) #s(literal 1/2 binary64)) |
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64)) (pow.f64 (*.f64 x x) #s(literal 1/2 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 (*.f64 x x))) |
(*.f64 (pow.f64 (*.f64 x (+.f64 x x)) #s(literal 1/4 binary64)) (pow.f64 (*.f64 x (+.f64 x x)) #s(literal 1/4 binary64))) |
| 1× | egg-herbie |
| 38× | *-lowering-*.f32 |
| 38× | *-lowering-*.f64 |
| 38× | accelerator-lowering-fma.f32 |
| 38× | accelerator-lowering-fma.f64 |
| 36× | +-lowering-+.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 148 |
| 1 | 15 | 148 |
| 2 | 32 | 148 |
| 3 | 37 | 148 |
| 4 | 41 | 148 |
| 5 | 53 | 148 |
| 6 | 65 | 148 |
| 7 | 76 | 148 |
| 8 | 96 | 148 |
| 9 | 101 | 148 |
| 0 | 101 | 148 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
| Outputs |
|---|
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
Compiled 726 to 105 computations (85.5% saved)
4 alts after pruning (4 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 83 | 4 | 87 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 84 | 4 | 88 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (hypot.f64 x x) |
| ▶ | 45.9% | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| ▶ | 54.1% | (sqrt.f64 (*.f64 x (+.f64 x x))) |
| ▶ | 55.4% | (neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
Compiled 22 to 15 computations (31.8% saved)
| 1× | egg-herbie |
Found 9 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | cost-diff | 5312 | (hypot.f64 x x) |
| ✓ | cost-diff | 0 | (sqrt.f64 #s(literal 2 binary64)) |
| ✓ | cost-diff | 0 | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| ✓ | cost-diff | 0 | (+.f64 x x) |
| ✓ | cost-diff | 0 | (*.f64 x (+.f64 x x)) |
| ✓ | cost-diff | 0 | (sqrt.f64 (*.f64 x (+.f64 x x))) |
| ✓ | cost-diff | 0 | (sqrt.f64 #s(literal 2 binary64)) |
| ✓ | cost-diff | 0 | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| ✓ | cost-diff | 0 | (neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
| 208× | accelerator-lowering-fma.f32 |
| 208× | accelerator-lowering-fma.f64 |
| 168× | *-lowering-*.f32 |
| 168× | *-lowering-*.f64 |
| 94× | associate-*r* |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 11 | 43 |
| 1 | 23 | 43 |
| 2 | 35 | 43 |
| 3 | 45 | 43 |
| 4 | 57 | 43 |
| 5 | 69 | 43 |
| 6 | 80 | 43 |
| 7 | 103 | 43 |
| 8 | 118 | 43 |
| 9 | 127 | 43 |
| 10 | 205 | 43 |
| 11 | 347 | 43 |
| 12 | 361 | 43 |
| 13 | 361 | 43 |
| 0 | 361 | 37 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(neg (* x (sqrt 2))) |
(* x (sqrt 2)) |
x |
(sqrt 2) |
2 |
(sqrt (* x (+ x x))) |
(* x (+ x x)) |
x |
(+ x x) |
(* x (sqrt 2)) |
x |
(sqrt 2) |
2 |
(sqrt (+ (* x x) (* x x))) |
x |
| Outputs |
|---|
(neg (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
x |
(sqrt 2) |
(sqrt.f64 #s(literal 2 binary64)) |
2 |
#s(literal 2 binary64) |
(sqrt (* x (+ x x))) |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
(* x (+ x x)) |
(*.f64 x (+.f64 x x)) |
x |
(+ x x) |
(+.f64 x x) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
x |
(sqrt 2) |
(sqrt.f64 #s(literal 2 binary64)) |
2 |
#s(literal 2 binary64) |
(sqrt (+ (* x x) (* x x))) |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
x |
Found 9 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | accuracy | 100.0% | (hypot.f64 x x) |
| ✓ | accuracy | 100.0% | (sqrt.f64 #s(literal 2 binary64)) |
| ✓ | accuracy | 99.3% | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| ✓ | accuracy | 100.0% | (+.f64 x x) |
| ✓ | accuracy | 100.0% | (*.f64 x (+.f64 x x)) |
| ✓ | accuracy | 54.1% | (sqrt.f64 (*.f64 x (+.f64 x x))) |
| ✓ | accuracy | 100.0% | (sqrt.f64 #s(literal 2 binary64)) |
| ✓ | accuracy | 100.0% | (neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
| ✓ | accuracy | 99.3% | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| 23.0ms | 256× | 0 | valid |
Compiled 42 to 11 computations (73.8% saved)
ival-hypot: 6.0ms (39.7% of total)ival-sqrt: 4.0ms (26.5% of total)ival-mult: 3.0ms (19.9% of total)ival-add: 1.0ms (6.6% of total)ival-neg: 1.0ms (6.6% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#<alt (neg (* x (sqrt 2)))> |
#<alt (* x (sqrt 2))> |
#<alt (sqrt 2)> |
#<alt (sqrt (* x (+ x x)))> |
#<alt (* x (+ x x))> |
#<alt (+ x x)> |
#<alt (sqrt (+ (* x x) (* x x)))> |
| Outputs |
|---|
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
18 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | inf | (* x (+ x x)) |
| 0.0ms | x | @ | inf | (+ x x) |
| 0.0ms | x | @ | 0 | (+ x x) |
| 0.0ms | x | @ | -inf | (neg (* x (sqrt 2))) |
| 0.0ms | x | @ | 0 | (neg (* x (sqrt 2))) |
| 1× | batch-egg-rewrite |
| 114× | *-lowering-*.f32 |
| 114× | *-lowering-*.f64 |
| 70× | accelerator-lowering-fma.f32 |
| 70× | accelerator-lowering-fma.f64 |
| 62× | /-lowering-/.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 11 | 33 |
| 1 | 46 | 25 |
| 0 | 274 | 23 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| Inputs |
|---|
(neg (* x (sqrt 2))) |
(* x (sqrt 2)) |
(sqrt 2) |
(sqrt (* x (+ x x))) |
(* x (+ x x)) |
(+ x x) |
(sqrt (+ (* x x) (* x x))) |
| Outputs |
|---|
(+.f64 #s(literal 0 binary64) (*.f64 x (neg.f64 (sqrt.f64 #s(literal 2 binary64))))) |
(-.f64 #s(literal 0 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(/.f64 (-.f64 #s(literal 0 binary64) (pow.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64))) #s(literal 3 binary64))) (+.f64 #s(literal 0 binary64) (fma.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64))) (*.f64 x (sqrt.f64 #s(literal 2 binary64))) (*.f64 #s(literal 0 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))))) |
(/.f64 (-.f64 #s(literal 0 binary64) (*.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64))) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))) (+.f64 #s(literal 0 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64))))) |
(*.f64 x (neg.f64 (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(*.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64))) #s(literal -1 binary64)) |
(*.f64 #s(literal -1 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 (sqrt.f64 #s(literal 2 binary64))) x) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) |
(sqrt.f64 #s(literal 2 binary64)) |
(pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64)) |
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) |
(exp.f64 (*.f64 (log.f64 (+.f64 x x)) #s(literal 1/2 binary64))) |
(hypot.f64 x x) |
(hypot.f64 x (pow.f64 x #s(literal 1 binary64))) |
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) x) |
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64))) |
(sqrt.f64 (+.f64 x x)) |
(/.f64 (sqrt.f64 (*.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)) (+.f64 x x))) (sqrt.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)))) |
(/.f64 (sqrt.f64 #s(literal 0 binary64)) (sqrt.f64 #s(literal 0 binary64))) |
(/.f64 (sqrt.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x))) (sqrt.f64 (fma.f64 x x #s(literal 0 binary64)))) |
(pow.f64 (+.f64 x x) #s(literal 1/2 binary64)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (pow.f64 (*.f64 x x) #s(literal 1/2 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 (*.f64 x x))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
(*.f64 (pow.f64 (+.f64 x x) #s(literal 1/4 binary64)) (pow.f64 (+.f64 x x) #s(literal 1/4 binary64))) |
(+.f64 x x) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(-.f64 (/.f64 (*.f64 x x) #s(literal 0 binary64)) (/.f64 (*.f64 x x) #s(literal 0 binary64))) |
(-.f64 (/.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64)) (/.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64))) |
(fma.f64 x x (*.f64 x x)) |
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) (*.f64 x x)) |
(/.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) (fma.f64 x x #s(literal 0 binary64))) |
(/.f64 (*.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)) (+.f64 x x)) (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64))) |
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) |
(/.f64 (neg.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x))) (neg.f64 (fma.f64 x x #s(literal 0 binary64)))) |
(/.f64 (neg.f64 (*.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)) (+.f64 x x))) (neg.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)))) |
(/.f64 #s(literal 1 binary64) (+.f64 x x)) |
(/.f64 #s(literal 1 binary64) (/.f64 (fma.f64 x x #s(literal 0 binary64)) (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)))) |
(/.f64 #s(literal 1 binary64) (/.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)) (*.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)) (+.f64 x x)))) |
(/.f64 (*.f64 x (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x))) (fma.f64 x x #s(literal 0 binary64))) |
(/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (fma.f64 x x #s(literal 0 binary64))) |
(/.f64 (*.f64 #s(literal 0 binary64) x) #s(literal 0 binary64)) |
(*.f64 x #s(literal 2 binary64)) |
(*.f64 x (+.f64 x x)) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
(*.f64 (+.f64 x x) x) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) (/.f64 #s(literal 1 binary64) (fma.f64 x x #s(literal 0 binary64)))) |
(*.f64 (*.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)) (+.f64 x x)) (/.f64 #s(literal 1 binary64) (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)))) |
(*.f64 #s(literal 0 binary64) (/.f64 #s(literal 1 binary64) #s(literal 0 binary64))) |
(+.f64 x x) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(-.f64 (/.f64 (*.f64 x x) #s(literal 0 binary64)) (/.f64 (*.f64 x x) #s(literal 0 binary64))) |
(-.f64 (/.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64)) (/.f64 (*.f64 x (*.f64 x (*.f64 x x))) #s(literal 0 binary64))) |
(fma.f64 x x (*.f64 x x)) |
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) (*.f64 x x)) |
(/.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) (fma.f64 x x #s(literal 0 binary64))) |
(/.f64 (*.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)) (+.f64 x x)) (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64))) |
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) |
(/.f64 (neg.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x))) (neg.f64 (fma.f64 x x #s(literal 0 binary64)))) |
(/.f64 (neg.f64 (*.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)) (+.f64 x x))) (neg.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)))) |
(/.f64 #s(literal 1 binary64) (+.f64 x x)) |
(/.f64 #s(literal 1 binary64) (/.f64 (fma.f64 x x #s(literal 0 binary64)) (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)))) |
(/.f64 #s(literal 1 binary64) (/.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)) (*.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)) (+.f64 x x)))) |
(/.f64 (*.f64 x (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x))) (fma.f64 x x #s(literal 0 binary64))) |
(/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (fma.f64 x x #s(literal 0 binary64))) |
(/.f64 (*.f64 #s(literal 0 binary64) x) #s(literal 0 binary64)) |
(*.f64 x #s(literal 2 binary64)) |
(*.f64 x (+.f64 x x)) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
(*.f64 (+.f64 x x) x) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) (/.f64 #s(literal 1 binary64) (fma.f64 x x #s(literal 0 binary64)))) |
(*.f64 (*.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)) (+.f64 x x)) (/.f64 #s(literal 1 binary64) (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)))) |
(*.f64 #s(literal 0 binary64) (/.f64 #s(literal 1 binary64) #s(literal 0 binary64))) |
(exp.f64 (*.f64 (log.f64 (+.f64 x x)) #s(literal 1/2 binary64))) |
(hypot.f64 x x) |
(hypot.f64 x (pow.f64 x #s(literal 1 binary64))) |
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) x) |
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64))) |
(sqrt.f64 (+.f64 x x)) |
(/.f64 (sqrt.f64 (*.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)) (+.f64 x x))) (sqrt.f64 (fma.f64 x (*.f64 x (*.f64 x x)) #s(literal 0 binary64)))) |
(/.f64 (sqrt.f64 #s(literal 0 binary64)) (sqrt.f64 #s(literal 0 binary64))) |
(/.f64 (sqrt.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x))) (sqrt.f64 (fma.f64 x x #s(literal 0 binary64)))) |
(pow.f64 (+.f64 x x) #s(literal 1/2 binary64)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (pow.f64 (*.f64 x x) #s(literal 1/2 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 (*.f64 x x))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
(*.f64 (pow.f64 (+.f64 x x) #s(literal 1/4 binary64)) (pow.f64 (+.f64 x x) #s(literal 1/4 binary64))) |
| 1× | egg-herbie |
| 38× | *-lowering-*.f32 |
| 38× | *-lowering-*.f64 |
| 38× | accelerator-lowering-fma.f32 |
| 38× | accelerator-lowering-fma.f64 |
| 36× | +-lowering-+.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 308 |
| 1 | 17 | 308 |
| 2 | 32 | 308 |
| 3 | 36 | 308 |
| 4 | 40 | 308 |
| 5 | 52 | 308 |
| 6 | 64 | 308 |
| 7 | 75 | 308 |
| 8 | 95 | 308 |
| 9 | 100 | 308 |
| 0 | 100 | 308 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
| Outputs |
|---|
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
Compiled 1 491 to 195 computations (86.9% saved)
8 alts after pruning (4 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 187 | 4 | 191 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 4 | 4 |
| Done | 0 | 0 | 0 |
| Total | 187 | 8 | 195 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 x x) |
| ▶ | 45.1% | (*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
| ✓ | 45.9% | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| ▶ | 26.4% | (sqrt.f64 (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (fma.f64 x x #s(literal 0 binary64)))) |
| ▶ | 3.1% | (sqrt.f64 (+.f64 x x)) |
| ✓ | 54.1% | (sqrt.f64 (*.f64 x (+.f64 x x))) |
| ✓ | 55.4% | (neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
| ▶ | 55.3% | (neg.f64 (*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))))) |
Compiled 61 to 39 computations (36.1% saved)
| 1× | egg-herbie |
Found 14 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | cost-diff | 0 | (sqrt.f64 x) |
| ✓ | cost-diff | 0 | (+.f64 x x) |
| ✓ | cost-diff | 0 | (sqrt.f64 (+.f64 x x)) |
| ✓ | cost-diff | 0 | (*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
| ✓ | cost-diff | 0 | (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) |
| ✓ | cost-diff | 0 | (sqrt.f64 (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (fma.f64 x x #s(literal 0 binary64)))) |
| ✓ | cost-diff | 64 | (fma.f64 x x #s(literal 0 binary64)) |
| ✓ | cost-diff | 1664 | (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (fma.f64 x x #s(literal 0 binary64))) |
| ✓ | cost-diff | 0 | (+.f64 x x) |
| ✓ | cost-diff | 0 | (sqrt.f64 (+.f64 x x)) |
| ✓ | cost-diff | 0 | (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)) |
| ✓ | cost-diff | 0 | (*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)))) |
| ✓ | cost-diff | 0 | (neg.f64 (*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))))) |
| ✓ | cost-diff | 12480 | (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) |
| 12 796× | accelerator-lowering-fma.f32 |
| 12 796× | accelerator-lowering-fma.f64 |
| 5 670× | *-lowering-*.f32 |
| 5 670× | *-lowering-*.f64 |
| 1 480× | /-lowering-/.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 19 | 99 |
| 1 | 45 | 88 |
| 2 | 119 | 82 |
| 3 | 284 | 74 |
| 4 | 425 | 74 |
| 5 | 1143 | 74 |
| 6 | 2543 | 74 |
| 7 | 3508 | 74 |
| 8 | 5628 | 74 |
| 0 | 8049 | 71 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
(neg (* x (exp (* (log 2) 1/2)))) |
(* x (exp (* (log 2) 1/2))) |
x |
(exp (* (log 2) 1/2)) |
(* (log 2) 1/2) |
(log 2) |
2 |
1/2 |
(sqrt (+ x x)) |
(+ x x) |
x |
(sqrt (/ (* (* (+ (* x x) 0) (+ x x)) x) (+ (* x x) 0))) |
(/ (* (* (+ (* x x) 0) (+ x x)) x) (+ (* x x) 0)) |
(* (* (+ (* x x) 0) (+ x x)) x) |
(* (+ (* x x) 0) (+ x x)) |
(+ (* x x) 0) |
x |
0 |
(+ x x) |
(* (sqrt (+ x x)) (sqrt x)) |
(sqrt (+ x x)) |
(+ x x) |
x |
(sqrt x) |
| Outputs |
|---|
(neg (* x (exp (* (log 2) 1/2)))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* x (exp (* (log 2) 1/2))) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
x |
(exp (* (log 2) 1/2)) |
(sqrt.f64 #s(literal 2 binary64)) |
(* (log 2) 1/2) |
(*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)) |
(log 2) |
(log.f64 #s(literal 2 binary64)) |
2 |
#s(literal 2 binary64) |
1/2 |
#s(literal 1/2 binary64) |
(sqrt (+ x x)) |
(sqrt.f64 (+.f64 x x)) |
(+ x x) |
(+.f64 x x) |
x |
(sqrt (/ (* (* (+ (* x x) 0) (+ x x)) x) (+ (* x x) 0))) |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
(/ (* (* (+ (* x x) 0) (+ x x)) x) (+ (* x x) 0)) |
(*.f64 x (+.f64 x x)) |
(* (* (+ (* x x) 0) (+ x x)) x) |
(*.f64 (+.f64 x x) (*.f64 x (*.f64 x x))) |
(* (+ (* x x) 0) (+ x x)) |
(*.f64 (+.f64 x x) (*.f64 x x)) |
(+ (* x x) 0) |
(*.f64 x x) |
x |
0 |
#s(literal 0 binary64) |
(+ x x) |
(+.f64 x x) |
(* (sqrt (+ x x)) (sqrt x)) |
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
(sqrt (+ x x)) |
(sqrt.f64 (+.f64 x x)) |
(+ x x) |
(+.f64 x x) |
x |
(sqrt x) |
(sqrt.f64 x) |
Found 14 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | accuracy | 100.0% | (+.f64 x x) |
| ✓ | accuracy | 100.0% | (sqrt.f64 (+.f64 x x)) |
| ✓ | accuracy | 100.0% | (sqrt.f64 x) |
| ✓ | accuracy | 99.7% | (*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
| ✓ | accuracy | 100.0% | (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) |
| ✓ | accuracy | 100.0% | (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) |
| ✓ | accuracy | 80.3% | (sqrt.f64 (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (fma.f64 x x #s(literal 0 binary64)))) |
| ✓ | accuracy | 68.6% | (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (fma.f64 x x #s(literal 0 binary64))) |
| ✓ | accuracy | 100.0% | (+.f64 x x) |
| ✓ | accuracy | 100.0% | (sqrt.f64 (+.f64 x x)) |
| ✓ | accuracy | 100.0% | (neg.f64 (*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))))) |
| ✓ | accuracy | 100.0% | (log.f64 #s(literal 2 binary64)) |
| ✓ | accuracy | 99.7% | (*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)))) |
| ✓ | accuracy | 99.3% | (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) |
| 22.0ms | 140× | 0 | invalid |
| 17.0ms | 116× | 0 | valid |
Compiled 114 to 21 computations (81.6% saved)
ival-mult: 8.0ms (30% of total)ival-sqrt: 7.0ms (26.3% of total)ival-exp: 3.0ms (11.3% of total)ival-log: 3.0ms (11.3% of total)ival-div: 2.0ms (7.5% of total)ival-add: 2.0ms (7.5% of total)ival-neg: 1.0ms (3.8% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
#<alt (exp (* (log 2) 1/2))> |
#<alt (neg (* x (exp (* (log 2) 1/2))))> |
#<alt (* x (exp (* (log 2) 1/2)))> |
#<alt (* (log 2) 1/2)> |
#<alt (sqrt (+ x x))> |
#<alt (+ x x)> |
#<alt (/ (* (* (+ (* x x) 0) (+ x x)) x) (+ (* x x) 0))> |
#<alt (+ (* x x) 0)> |
#<alt (sqrt (/ (* (* (+ (* x x) 0) (+ x x)) x) (+ (* x x) 0)))> |
#<alt (* (* (+ (* x x) 0) (+ x x)) x)> |
#<alt (* (sqrt (+ x x)) (sqrt x))> |
#<alt (sqrt x)> |
#<alt (log 2)> |
#<alt (* (+ (* x x) 0) (+ x x))> |
| Outputs |
|---|
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* (sqrt x) (sqrt 2))> |
#<alt (* (sqrt x) (sqrt 2))> |
#<alt (* (sqrt x) (sqrt 2))> |
#<alt (* (sqrt x) (sqrt 2))> |
#<alt (* (sqrt x) (sqrt 2))> |
#<alt (* (sqrt x) (sqrt 2))> |
#<alt (* (sqrt x) (sqrt 2))> |
#<alt (* (sqrt x) (sqrt 2))> |
#<alt (* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1))))> |
#<alt (* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1))))> |
#<alt (* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1))))> |
#<alt (* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1))))> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 x)> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* -1 (* x (* (sqrt -2) (sqrt -1))))> |
#<alt (* -1 (* x (* (sqrt -2) (sqrt -1))))> |
#<alt (* -1 (* x (* (sqrt -2) (sqrt -1))))> |
#<alt (* -1 (* x (* (sqrt -2) (sqrt -1))))> |
#<alt (sqrt x)> |
#<alt (sqrt x)> |
#<alt (sqrt x)> |
#<alt (sqrt x)> |
#<alt (sqrt x)> |
#<alt (sqrt x)> |
#<alt (sqrt x)> |
#<alt (sqrt x)> |
#<alt (* -1 (* (sqrt x) (pow (sqrt -1) 2)))> |
#<alt (* -1 (* (sqrt x) (pow (sqrt -1) 2)))> |
#<alt (* -1 (* (sqrt x) (pow (sqrt -1) 2)))> |
#<alt (* -1 (* (sqrt x) (pow (sqrt -1) 2)))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
33 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | (sqrt (+ x x)) |
| 1.0ms | x | @ | -inf | (* (sqrt (+ x x)) (sqrt x)) |
| 0.0ms | x | @ | 0 | (sqrt (+ x x)) |
| 0.0ms | x | @ | 0 | (* (+ (* x x) 0) (+ x x)) |
| 0.0ms | x | @ | 0 | (* (* (+ (* x x) 0) (+ x x)) x) |
| 1× | batch-egg-rewrite |
| 122× | *-lowering-*.f32 |
| 122× | *-lowering-*.f64 |
| 118× | /-lowering-/.f32 |
| 118× | /-lowering-/.f64 |
| 66× | accelerator-lowering-fma.f32 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 19 | 53 |
| 1 | 87 | 29 |
| 0 | 725 | 29 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| Inputs |
|---|
(exp (* (log 2) 1/2)) |
(neg (* x (exp (* (log 2) 1/2)))) |
(* x (exp (* (log 2) 1/2))) |
(* (log 2) 1/2) |
(sqrt (+ x x)) |
(+ x x) |
(/ (* (* (+ (* x x) 0) (+ x x)) x) (+ (* x x) 0)) |
(+ (* x x) 0) |
(sqrt (/ (* (* (+ (* x x) 0) (+ x x)) x) (+ (* x x) 0))) |
(* (* (+ (* x x) 0) (+ x x)) x) |
(* (sqrt (+ x x)) (sqrt x)) |
(sqrt x) |
(log 2) |
(* (+ (* x x) 0) (+ x x)) |
| Outputs |
|---|
(exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) |
(sqrt.f64 #s(literal 2 binary64)) |
(pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64)) |
(pow.f64 (exp.f64 #s(literal 1/2 binary64)) (log.f64 #s(literal 2 binary64))) |
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) |
(+.f64 #s(literal 0 binary64) (*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x))) |
(-.f64 #s(literal 0 binary64) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(neg.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(/.f64 (-.f64 #s(literal 0 binary64) (pow.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #s(literal 3 binary64))) (+.f64 #s(literal 0 binary64) (fma.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) (*.f64 #s(literal 0 binary64) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))))) |
(/.f64 (-.f64 #s(literal 0 binary64) (*.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))) (+.f64 #s(literal 0 binary64) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(*.f64 x (neg.f64 (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #s(literal -1 binary64)) |
(*.f64 #s(literal -1 binary64) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 (sqrt.f64 #s(literal 2 binary64))) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)) |
(*.f64 #s(literal 1/2 binary64) (log.f64 #s(literal 2 binary64))) |
#s(literal 0 binary64) |
#s(literal 0 binary64) |
#s(literal 0 binary64) |
(+.f64 (*.f64 x x) #s(literal 0 binary64)) |
(+.f64 #s(literal 0 binary64) (*.f64 x x)) |
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) |
(-.f64 (*.f64 x x) #s(literal 0 binary64)) |
(-.f64 (fma.f64 x x (*.f64 x x)) (*.f64 x x)) |
(fma.f64 x x #s(literal 0 binary64)) |
(fma.f64 (fabs.f64 x) (fabs.f64 x) #s(literal 0 binary64)) |
(fma.f64 (*.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x)))) (/.f64 #s(literal 1 binary64) (*.f64 x (*.f64 x (*.f64 x x)))) #s(literal 0 binary64)) |
(fma.f64 (*.f64 x (*.f64 x (*.f64 x x))) (/.f64 #s(literal 1 binary64) (*.f64 x x)) #s(literal 0 binary64)) |
(/.f64 (*.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x)))) (*.f64 x (*.f64 x (*.f64 x x)))) |
(/.f64 #s(literal 1 binary64) (/.f64 (*.f64 x (*.f64 x (*.f64 x x))) (*.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x)))))) |
(/.f64 #s(literal 1 binary64) (/.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x))))) |
(/.f64 (*.f64 x (*.f64 x (*.f64 x x))) (*.f64 x x)) |
(/.f64 (neg.f64 (*.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x))))) (neg.f64 (*.f64 x (*.f64 x (*.f64 x x))))) |
(/.f64 (neg.f64 (*.f64 x (*.f64 x (*.f64 x x)))) (*.f64 x (neg.f64 x))) |
(/.f64 (-.f64 #s(literal 0 binary64) (*.f64 x (*.f64 x (*.f64 x x)))) (*.f64 x (neg.f64 x))) |
(/.f64 (-.f64 (*.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x)))) #s(literal 0 binary64)) (*.f64 x (*.f64 x (*.f64 x x)))) |
(pow.f64 x #s(literal 2 binary64)) |
(*.f64 x x) |
(*.f64 (fabs.f64 x) (fabs.f64 x)) |
(*.f64 (*.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x)))) (/.f64 #s(literal 1 binary64) (*.f64 x (*.f64 x (*.f64 x x))))) |
(*.f64 (*.f64 x (*.f64 x (*.f64 x x))) (/.f64 #s(literal 1 binary64) (*.f64 x x))) |
#s(literal 0 binary64) |
#s(literal 0 binary64) |
#s(literal 0 binary64) |
(exp.f64 (*.f64 (log.f64 x) #s(literal 1/2 binary64))) |
(sqrt.f64 x) |
(pow.f64 x #s(literal 1/2 binary64)) |
(*.f64 (pow.f64 x #s(literal 1/4 binary64)) (pow.f64 x #s(literal 1/4 binary64))) |
(log.f64 #s(literal 2 binary64)) |
#s(literal 0 binary64) |
| 1× | egg-herbie |
| 2 058× | associate-*r* |
| 1 620× | *-lowering-*.f32 |
| 1 620× | *-lowering-*.f64 |
| 1 616× | accelerator-lowering-fma.f32 |
| 1 616× | accelerator-lowering-fma.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 28 | 576 |
| 1 | 60 | 576 |
| 2 | 151 | 576 |
| 3 | 275 | 576 |
| 4 | 507 | 576 |
| 5 | 827 | 576 |
| 6 | 1359 | 576 |
| 7 | 1483 | 576 |
| 8 | 1546 | 576 |
| 9 | 1604 | 576 |
| 10 | 1853 | 576 |
| 11 | 2109 | 576 |
| 12 | 2165 | 576 |
| 13 | 2185 | 576 |
| 14 | 2189 | 576 |
| 15 | 2189 | 576 |
| 16 | 2189 | 576 |
| 17 | 2405 | 576 |
| 18 | 2695 | 576 |
| 19 | 3564 | 576 |
| 20 | 3718 | 576 |
| 21 | 3822 | 576 |
| 22 | 3842 | 576 |
| 23 | 3842 | 576 |
| 24 | 3842 | 576 |
| 25 | 3862 | 576 |
| 26 | 3870 | 576 |
| 27 | 3870 | 576 |
| 28 | 4284 | 576 |
| 29 | 4896 | 576 |
| 30 | 4912 | 576 |
| 0 | 4912 | 576 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(sqrt x) |
(sqrt x) |
(sqrt x) |
(sqrt x) |
(sqrt x) |
(sqrt x) |
(sqrt x) |
(sqrt x) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
| Outputs |
|---|
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(neg.f64 (*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 #s(literal -2 binary64)) (sqrt.f64 #s(literal -1 binary64))))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(neg.f64 (*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 #s(literal -2 binary64)) (sqrt.f64 #s(literal -1 binary64))))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(neg.f64 (*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 #s(literal -2 binary64)) (sqrt.f64 #s(literal -1 binary64))))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(neg.f64 (*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 #s(literal -2 binary64)) (sqrt.f64 #s(literal -1 binary64))))) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 x #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) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(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 (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* 2 (pow x 4)) |
(*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 2 binary64)) |
(* 2 (pow x 4)) |
(*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 2 binary64)) |
(* 2 (pow x 4)) |
(*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 2 binary64)) |
(* 2 (pow x 4)) |
(*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 2 binary64)) |
(* 2 (pow x 4)) |
(*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 2 binary64)) |
(* 2 (pow x 4)) |
(*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 2 binary64)) |
(* 2 (pow x 4)) |
(*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 2 binary64)) |
(* 2 (pow x 4)) |
(*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 2 binary64)) |
(* 2 (pow x 4)) |
(*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 2 binary64)) |
(* 2 (pow x 4)) |
(*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 2 binary64)) |
(* 2 (pow x 4)) |
(*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 2 binary64)) |
(* 2 (pow x 4)) |
(*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 2 binary64)) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(*.f64 (sqrt.f64 #s(literal -2 binary64)) (neg.f64 (*.f64 x (sqrt.f64 #s(literal -1 binary64))))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(*.f64 (sqrt.f64 #s(literal -2 binary64)) (neg.f64 (*.f64 x (sqrt.f64 #s(literal -1 binary64))))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(*.f64 (sqrt.f64 #s(literal -2 binary64)) (neg.f64 (*.f64 x (sqrt.f64 #s(literal -1 binary64))))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(*.f64 (sqrt.f64 #s(literal -2 binary64)) (neg.f64 (*.f64 x (sqrt.f64 #s(literal -1 binary64))))) |
(sqrt x) |
(sqrt.f64 x) |
(sqrt x) |
(sqrt.f64 x) |
(sqrt x) |
(sqrt.f64 x) |
(sqrt x) |
(sqrt.f64 x) |
(sqrt x) |
(sqrt.f64 x) |
(sqrt x) |
(sqrt.f64 x) |
(sqrt x) |
(sqrt.f64 x) |
(sqrt x) |
(sqrt.f64 x) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(sqrt.f64 x) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(sqrt.f64 x) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(sqrt.f64 x) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(sqrt.f64 x) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 x #s(literal 2 binary64)))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 x #s(literal 2 binary64)))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 x #s(literal 2 binary64)))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 x #s(literal 2 binary64)))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 x #s(literal 2 binary64)))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 x #s(literal 2 binary64)))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 x #s(literal 2 binary64)))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 x #s(literal 2 binary64)))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 x #s(literal 2 binary64)))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 x #s(literal 2 binary64)))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 x #s(literal 2 binary64)))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 x #s(literal 2 binary64)))) |
Compiled 2 861 to 275 computations (90.4% saved)
9 alts after pruning (2 fresh and 7 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 257 | 2 | 259 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 3 | 4 |
| Done | 0 | 4 | 4 |
| Total | 258 | 9 | 267 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 x x) |
| ✓ | 45.1% | (*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
| ✓ | 45.9% | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| ▶ | 26.4% | (sqrt.f64 (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (*.f64 x x))) |
| ✓ | 3.1% | (sqrt.f64 (+.f64 x x)) |
| ✓ | 54.1% | (sqrt.f64 (*.f64 x (+.f64 x x))) |
| ✓ | 55.4% | (neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
| ✓ | 55.3% | (neg.f64 (*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))))) |
| ▶ | 3.5% | #s(literal 0 binary64) |
Compiled 62 to 42 computations (32.3% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | cost-diff | 0 | (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) |
| ✓ | cost-diff | 0 | (sqrt.f64 (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (*.f64 x x))) |
| ✓ | cost-diff | 64 | (fma.f64 x x #s(literal 0 binary64)) |
| ✓ | cost-diff | 1664 | (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (*.f64 x x)) |
| 6 778× | *-lowering-*.f32 |
| 6 778× | *-lowering-*.f64 |
| 5 432× | accelerator-lowering-fma.f32 |
| 5 432× | accelerator-lowering-fma.f64 |
| 2 302× | cube-prod |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 55 |
| 1 | 29 | 43 |
| 2 | 95 | 33 |
| 3 | 262 | 33 |
| 4 | 629 | 33 |
| 5 | 2223 | 33 |
| 6 | 3362 | 33 |
| 7 | 3954 | 33 |
| 8 | 4920 | 33 |
| 9 | 6339 | 33 |
| 10 | 6759 | 33 |
| 11 | 6925 | 33 |
| 12 | 7055 | 33 |
| 13 | 7192 | 33 |
| 14 | 7338 | 33 |
| 0 | 8351 | 30 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
0 |
(sqrt (/ (* (* (+ (* x x) 0) (+ x x)) x) (* x x))) |
(/ (* (* (+ (* x x) 0) (+ x x)) x) (* x x)) |
(* (* (+ (* x x) 0) (+ x x)) x) |
(* (+ (* x x) 0) (+ x x)) |
(+ (* x x) 0) |
x |
0 |
(+ x x) |
(* x x) |
| Outputs |
|---|
0 |
#s(literal 0 binary64) |
(sqrt (/ (* (* (+ (* x x) 0) (+ x x)) x) (* x x))) |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
(/ (* (* (+ (* x x) 0) (+ x x)) x) (* x x)) |
(*.f64 x (+.f64 x x)) |
(* (* (+ (* x x) 0) (+ x x)) x) |
(*.f64 x (*.f64 x (*.f64 x (+.f64 x x)))) |
(* (+ (* x x) 0) (+ x x)) |
(*.f64 x (*.f64 x (+.f64 x x))) |
(+ (* x x) 0) |
(*.f64 x x) |
x |
0 |
#s(literal 0 binary64) |
(+ x x) |
(+.f64 x x) |
(* x x) |
(*.f64 x x) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | accuracy | 99.9% | (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) |
| ✓ | accuracy | 99.9% | (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) |
| ✓ | accuracy | 54.1% | (sqrt.f64 (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (*.f64 x x))) |
| ✓ | accuracy | 33.6% | (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (*.f64 x x)) |
| 53.0ms | 256× | 0 | valid |
Compiled 62 to 11 computations (82.3% saved)
ival-sqrt: 36.0ms (78.3% of total)ival-mult: 5.0ms (10.9% of total)ival-add: 4.0ms (8.7% of total)ival-div: 2.0ms (4.4% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#<alt (/ (* (* (+ (* x x) 0) (+ x x)) x) (* x x))> |
#<alt (+ (* x x) 0)> |
#<alt (sqrt (/ (* (* (+ (* x x) 0) (+ x x)) x) (* x x)))> |
#<alt (* (* (+ (* x x) 0) (+ x x)) x)> |
#<alt (* (+ (* x x) 0) (+ x x))> |
| Outputs |
|---|
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (* 2 (pow x 2))> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (pow x 2)> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* x (sqrt 2))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* -1 (* x (sqrt 2)))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 4))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
#<alt (* 2 (pow x 3))> |
15 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | 0 | (/ (* (* (+ (* x x) 0) (+ x x)) x) (* x x)) |
| 0.0ms | x | @ | -inf | (sqrt (/ (* (* (+ (* x x) 0) (+ x x)) x) (* x x))) |
| 0.0ms | x | @ | inf | (/ (* (* (+ (* x x) 0) (+ x x)) x) (* x x)) |
| 0.0ms | x | @ | 0 | (sqrt (/ (* (* (+ (* x x) 0) (+ x x)) x) (* x x))) |
| 0.0ms | x | @ | -inf | (/ (* (* (+ (* x x) 0) (+ x x)) x) (* x x)) |
| 1× | batch-egg-rewrite |
| 110× | /-lowering-/.f32 |
| 110× | /-lowering-/.f64 |
| 88× | *-lowering-*.f32 |
| 88× | *-lowering-*.f64 |
| 64× | accelerator-lowering-fma.f32 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 55 |
| 1 | 63 | 7 |
| 0 | 710 | 7 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| Inputs |
|---|
(/ (* (* (+ (* x x) 0) (+ x x)) x) (* x x)) |
(+ (* x x) 0) |
(sqrt (/ (* (* (+ (* x x) 0) (+ x x)) x) (* x x))) |
(* (* (+ (* x x) 0) (+ x x)) x) |
(* (+ (* x x) 0) (+ x x)) |
| Outputs |
|---|
#s(literal 0 binary64) |
(+.f64 (*.f64 x x) #s(literal 0 binary64)) |
(+.f64 #s(literal 0 binary64) (*.f64 x x)) |
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) |
(-.f64 (*.f64 x x) #s(literal 0 binary64)) |
(-.f64 (fma.f64 x x (*.f64 x x)) (*.f64 x x)) |
(fma.f64 x x #s(literal 0 binary64)) |
(fma.f64 (fabs.f64 x) (fabs.f64 x) #s(literal 0 binary64)) |
(fma.f64 (*.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x)))) (/.f64 #s(literal 1 binary64) (*.f64 x (*.f64 x (*.f64 x x)))) #s(literal 0 binary64)) |
(fma.f64 (*.f64 x (*.f64 x (*.f64 x x))) (/.f64 #s(literal 1 binary64) (*.f64 x x)) #s(literal 0 binary64)) |
(/.f64 (*.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x)))) (*.f64 x (*.f64 x (*.f64 x x)))) |
(/.f64 #s(literal 1 binary64) (/.f64 (*.f64 x (*.f64 x (*.f64 x x))) (*.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x)))))) |
(/.f64 #s(literal 1 binary64) (/.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x))))) |
(/.f64 (*.f64 x (*.f64 x (*.f64 x x))) (*.f64 x x)) |
(/.f64 (neg.f64 (*.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x))))) (neg.f64 (*.f64 x (*.f64 x (*.f64 x x))))) |
(/.f64 (neg.f64 (*.f64 x (*.f64 x (*.f64 x x)))) (neg.f64 (*.f64 x x))) |
(/.f64 (-.f64 #s(literal 0 binary64) (*.f64 x (*.f64 x (*.f64 x x)))) (neg.f64 (*.f64 x x))) |
(/.f64 (-.f64 (*.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x)))) #s(literal 0 binary64)) (*.f64 x (*.f64 x (*.f64 x x)))) |
(pow.f64 x #s(literal 2 binary64)) |
(*.f64 x x) |
(*.f64 (fabs.f64 x) (fabs.f64 x)) |
(*.f64 (*.f64 (*.f64 x x) (*.f64 x (*.f64 x (*.f64 x x)))) (/.f64 #s(literal 1 binary64) (*.f64 x (*.f64 x (*.f64 x x))))) |
(*.f64 (*.f64 x (*.f64 x (*.f64 x x))) (/.f64 #s(literal 1 binary64) (*.f64 x x))) |
#s(literal 0 binary64) |
#s(literal 0 binary64) |
#s(literal 0 binary64) |
| 1× | egg-herbie |
| 58× | *-lowering-*.f32 |
| 58× | *-lowering-*.f64 |
| 54× | accelerator-lowering-fma.f32 |
| 54× | accelerator-lowering-fma.f64 |
| 44× | +-lowering-+.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 14 | 268 |
| 1 | 25 | 268 |
| 2 | 48 | 268 |
| 3 | 59 | 268 |
| 4 | 63 | 268 |
| 5 | 75 | 268 |
| 6 | 87 | 268 |
| 7 | 98 | 268 |
| 8 | 126 | 268 |
| 9 | 138 | 268 |
| 0 | 138 | 268 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 4)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
(* 2 (pow x 3)) |
| Outputs |
|---|
(* 2 (pow x 2)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(* 2 (pow x 2)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(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 (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* 2 (pow x 4)) |
(*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 4 binary64))) |
(* 2 (pow x 4)) |
(*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 4 binary64))) |
(* 2 (pow x 4)) |
(*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 4 binary64))) |
(* 2 (pow x 4)) |
(*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 4 binary64))) |
(* 2 (pow x 4)) |
(*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 4 binary64))) |
(* 2 (pow x 4)) |
(*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 4 binary64))) |
(* 2 (pow x 4)) |
(*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 4 binary64))) |
(* 2 (pow x 4)) |
(*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 4 binary64))) |
(* 2 (pow x 4)) |
(*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 4 binary64))) |
(* 2 (pow x 4)) |
(*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 4 binary64))) |
(* 2 (pow x 4)) |
(*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 4 binary64))) |
(* 2 (pow x 4)) |
(*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 4 binary64))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 #s(literal 2 binary64) x))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 #s(literal 2 binary64) x))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 #s(literal 2 binary64) x))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 #s(literal 2 binary64) x))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 #s(literal 2 binary64) x))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 #s(literal 2 binary64) x))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 #s(literal 2 binary64) x))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 #s(literal 2 binary64) x))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 #s(literal 2 binary64) x))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 #s(literal 2 binary64) x))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 #s(literal 2 binary64) x))) |
(* 2 (pow x 3)) |
(*.f64 x (*.f64 x (*.f64 #s(literal 2 binary64) x))) |
Compiled 1 094 to 152 computations (86.1% saved)
9 alts after pruning (1 fresh and 8 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 85 | 1 | 86 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 1 | 2 |
| Done | 0 | 7 | 7 |
| Total | 86 | 9 | 95 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 x x) |
| ✓ | 45.1% | (*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
| ✓ | 45.9% | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| 26.4% | (sqrt.f64 (/.f64 (*.f64 (*.f64 (*.f64 x x) (+.f64 x x)) x) (*.f64 x x))) | |
| ✓ | 3.1% | (sqrt.f64 (+.f64 x x)) |
| ✓ | 54.1% | (sqrt.f64 (*.f64 x (+.f64 x x))) |
| ✓ | 55.4% | (neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
| ✓ | 55.3% | (neg.f64 (*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))))) |
| ✓ | 3.5% | #s(literal 0 binary64) |
Compiled 153 to 74 computations (51.6% saved)
| Inputs |
|---|
#s(literal 0 binary64) |
(sqrt.f64 (+.f64 x x)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
(sqrt.f64 (/.f64 (*.f64 (*.f64 (*.f64 x x) (+.f64 x x)) x) (*.f64 x x))) |
(sqrt.f64 (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (*.f64 x x))) |
(sqrt.f64 (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (fma.f64 x x #s(literal 0 binary64)))) |
(hypot.f64 x x) |
(neg.f64 (*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))))) |
(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| Outputs |
|---|
(hypot.f64 x x) |
4 calls:
| 5.0ms | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 4.0ms | x |
| 4.0ms | (pow.f64 x #s(literal 2 binary64)) |
| 4.0ms | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 100.0% | 1 | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 100.0% | 1 | (pow.f64 x #s(literal 2 binary64)) |
Compiled 23 to 13 computations (43.5% saved)
| Inputs |
|---|
#s(literal 0 binary64) |
(sqrt.f64 (+.f64 x x)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
(sqrt.f64 (/.f64 (*.f64 (*.f64 (*.f64 x x) (+.f64 x x)) x) (*.f64 x x))) |
(sqrt.f64 (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (*.f64 x x))) |
(sqrt.f64 (/.f64 (*.f64 (*.f64 (fma.f64 x x #s(literal 0 binary64)) (+.f64 x x)) x) (fma.f64 x x #s(literal 0 binary64)))) |
| Outputs |
|---|
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
4 calls:
| 7.0ms | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 4.0ms | x |
| 3.0ms | (pow.f64 x #s(literal 2 binary64)) |
| 3.0ms | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.4% | 2 | x |
| 79.9% | 3 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 79.9% | 3 | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 79.9% | 3 | (pow.f64 x #s(literal 2 binary64)) |
Compiled 23 to 13 computations (43.5% saved)
| Inputs |
|---|
#s(literal 0 binary64) |
(sqrt.f64 (+.f64 x x)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
| Outputs |
|---|
(neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
1 calls:
| 2.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.3% | 2 | x |
Compiled 2 to 1 computations (50% saved)
| Inputs |
|---|
#s(literal 0 binary64) |
(sqrt.f64 (+.f64 x x)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| Outputs |
|---|
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
4 calls:
| 2.0ms | x |
| 2.0ms | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 2.0ms | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 2.0ms | (pow.f64 x #s(literal 2 binary64)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 45.9% | 1 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 45.9% | 1 | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 45.9% | 1 | (pow.f64 x #s(literal 2 binary64)) |
| 45.9% | 1 | x |
Compiled 23 to 13 computations (43.5% saved)
| Inputs |
|---|
#s(literal 0 binary64) |
(sqrt.f64 (+.f64 x x)) |
| Outputs |
|---|
#s(literal 0 binary64) |
(sqrt.f64 (+.f64 x x)) |
4 calls:
| 4.0ms | (pow.f64 x #s(literal 2 binary64)) |
| 1.0ms | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 1.0ms | x |
| 1.0ms | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 5.1% | 2 | x |
| 3.5% | 1 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 3.5% | 1 | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 3.5% | 1 | (pow.f64 x #s(literal 2 binary64)) |
Compiled 23 to 13 computations (43.5% saved)
Total 0.0b remaining (0%)
Threshold costs 0b (0%)
| Inputs |
|---|
#s(literal 0 binary64) |
| Outputs |
|---|
#s(literal 0 binary64) |
4 calls:
| 1.0ms | x |
| 1.0ms | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 1.0ms | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 1.0ms | (pow.f64 x #s(literal 2 binary64)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 3.5% | 1 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 3.5% | 1 | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 3.5% | 1 | (pow.f64 x #s(literal 2 binary64)) |
| 3.5% | 1 | x |
Compiled 23 to 13 computations (43.5% saved)
| 1× | binary-search |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 13.0ms | -2.719997322683207e-293 | 7.918877166043363e-307 |
| 8.0ms | 160× | 0 | valid |
Compiled 172 to 128 computations (25.6% saved)
ival-pow2: 4.0ms (72.6% of total)ival-add: 1.0ms (18.2% of total)ival-sqrt: 1.0ms (18.2% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | binary-search |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 14.0ms | -2.719997322683207e-293 | 7.918877166043363e-307 |
| 9.0ms | 160× | 0 | valid |
Compiled 142 to 118 computations (16.9% saved)
ival-pow2: 2.0ms (55% of total)ival-add: 1.0ms (27.5% of total)ival-sqrt: 1.0ms (27.5% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | binary-search |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 11.0ms | 6.711906799865404e-208 | 3.3710941053474126e-196 |
| 6.0ms | 160× | 0 | valid |
Compiled 102 to 78 computations (23.5% saved)
ival-pow2: 2.0ms (57.7% of total)ival-add: 1.0ms (28.8% of total)ival-sqrt: 1.0ms (28.8% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
| 10× | *-commutative_binary64 |
| 6× | +-commutative_binary64 |
| 6× | sub-neg_binary64 |
| 6× | neg-sub0_binary64 |
| 6× | neg-mul-1_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 18 | 46 |
| 1 | 27 | 46 |
| 2 | 36 | 46 |
| 3 | 41 | 46 |
| 4 | 43 | 46 |
| 1× | saturated |
| Inputs |
|---|
(hypot.f64 x x) |
(if (<=.f64 x #s(literal -101201126653655/202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 binary64)) (neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) (*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x))) |
(if (<=.f64 x #s(literal -101201126653655/202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 binary64)) (neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(if (<=.f64 x #s(literal 3569553643807187/90368446678662959902371482950548091627243325179250480789868861787606202571558351996987965471847359903068731695945087890499945499708108510324049698831582275405785474927446915858324226319766512887160235503322704971703517184 binary64)) #s(literal 0 binary64) (sqrt.f64 (+.f64 x x))) |
#s(literal 0 binary64) |
| Outputs |
|---|
(hypot.f64 x x) |
(if (<=.f64 x #s(literal -101201126653655/202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 binary64)) (neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) (*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x))) |
(if (<=.f64 x #s(literal -101201126653655/202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 binary64)) (neg.f64 (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(if (<=.f64 x #s(literal 3569553643807187/90368446678662959902371482950548091627243325179250480789868861787606202571558351996987965471847359903068731695945087890499945499708108510324049698831582275405785474927446915858324226319766512887160235503322704971703517184 binary64)) #s(literal 0 binary64) (sqrt.f64 (+.f64 x x))) |
#s(literal 0 binary64) |
| 122× | *-lowering-*.f32 |
| 122× | *-lowering-*.f64 |
| 118× | /-lowering-/.f32 |
| 118× | /-lowering-/.f64 |
| 114× | *-lowering-*.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 148 |
| 1 | 15 | 148 |
| 2 | 32 | 148 |
| 3 | 37 | 148 |
| 4 | 41 | 148 |
| 5 | 53 | 148 |
| 6 | 65 | 148 |
| 7 | 76 | 148 |
| 8 | 96 | 148 |
| 9 | 101 | 148 |
| 0 | 101 | 148 |
| 0 | 5 | 14 |
| 1 | 25 | 10 |
| 0 | 167 | 9 |
| 0 | 11 | 33 |
| 1 | 46 | 25 |
| 0 | 274 | 23 |
| 0 | 19 | 53 |
| 1 | 87 | 29 |
| 0 | 725 | 29 |
| 1× | fuel |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | saturated |
Compiled 121 to 68 computations (43.8% saved)
Compiled 112 to 46 computations (58.9% saved)
Loading profile data...