
Time bar (total: 1.3s)
| 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 4 computations (60% saved)
| 559.0ms | 8 256× | 0 | valid |
ival-hypot: 148.0ms (94% of total)ival-true: 6.0ms (3.8% of total)ival-assert: 3.0ms (1.9% of total)| 2× | egg-herbie |
| 40× | associate-*r* |
| 34× | sub-neg |
| 28× | distribute-lft-neg-in |
| 24× | neg-sub0 |
| 22× | distribute-lft-in |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 19 |
| 1 | 25 | 19 |
| 2 | 68 | 19 |
| 3 | 166 | 19 |
| 4 | 243 | 19 |
| 5 | 254 | 19 |
| 6 | 256 | 19 |
| 0 | 4 | 6 |
| 1 | 8 | 6 |
| 2 | 11 | 6 |
| 3 | 14 | 6 |
| 0 | 14 | 3 |
| 1× | iter limit |
| 1× | saturated |
| 1× | saturated |
| Inputs |
|---|
(sqrt (+ (* x x) (* x x))) |
| Outputs |
|---|
(sqrt (+ (* x x) (* x x))) |
(hypot.f64 x x) |
| Inputs |
|---|
(sqrt (+ (* x x) (* x x))) |
(sqrt (+ (* (neg x) (neg x)) (* (neg x) (neg x)))) |
(neg (sqrt (+ (* (neg x) (neg x)) (* (neg x) (neg x))))) |
| Outputs |
|---|
(sqrt (+ (* x x) (* x x))) |
(sqrt (* x (+ x x))) |
(sqrt (+ (* (neg x) (neg x)) (* (neg x) (neg x)))) |
(sqrt (* x (+ x x))) |
(neg (sqrt (+ (* (neg x) (neg x)) (* (neg x) (neg x))))) |
(neg (sqrt (* x (+ x x)))) |
(abs x)
| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 117 | 0 | - | 9 | (1.7010306538644048e-159) | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 0 | 0 | - | 0 | - | (+.f64 (*.f64 x x) (*.f64 x x)) |
| 0 | 0 | - | 0 | - | (*.f64 x x) |
| 0 | 0 | - | 0 | - | x |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
sqrt.f64 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) | uflow-rescue | 57 | 0 |
| ↳ | (+.f64 (*.f64 x x) (*.f64 x x)) | underflow | 57 | |
| ↳ | (*.f64 x x) | underflow | 114 | |
sqrt.f64 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) | oflow-rescue | 51 | 0 |
| ↳ | (+.f64 (*.f64 x x) (*.f64 x x)) | overflow | 51 | |
| ↳ | (*.f64 x x) | overflow | 102 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 108 | 9 |
| - | 0 | 139 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 108 | 0 | 9 |
| - | 0 | 0 | 139 |
| number | freq |
|---|---|
| 0 | 148 |
| 1 | 108 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 34.0ms | 512× | 0 | valid |
Compiled 60 to 20 computations (66.7% saved)
ival-mult: 11.0ms (45.3% of total)ival-hypot: 11.0ms (45.3% of total)ival-add: 2.0ms (8.2% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)Compiled 1 to 1 computations (0% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 59.1% | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
Compiled 9 to 4 computations (55.6% saved)
| 1× | egg-herbie |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | cost-diff | 0 | (*.f64 x x) |
| ✓ | cost-diff | 128 | (+.f64 (*.f64 x x) (*.f64 x x)) |
| ✓ | cost-diff | 192 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 14× | *-lowering-*.f32 |
| 14× | *-lowering-*.f64 |
| 4× | *-commutative |
| 4× | +-lowering-+.f64 |
| 4× | count-2 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 15 |
| 1 | 8 | 15 |
| 2 | 11 | 15 |
| 3 | 14 | 15 |
| 0 | 14 | 12 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(sqrt (+ (* x x) (* x x))) |
(+ (* x x) (* x x)) |
(* x x) |
x |
| Outputs |
|---|
(sqrt (+ (* x x) (* x x))) |
(hypot.f64 x x) |
(+ (* x x) (* x x)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(* x x) |
(*.f64 x x) |
x |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | accuracy | 100.0% | (*.f64 x x) |
| ✓ | accuracy | 100.0% | (+.f64 (*.f64 x x) (*.f64 x x)) |
| ✓ | accuracy | 59.1% | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 13.0ms | 256× | 0 | valid |
Compiled 21 to 6 computations (71.4% saved)
ival-hypot: 5.0ms (60.7% of total)ival-mult: 2.0ms (24.3% of total)ival-add: 1.0ms (12.1% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#<alt (sqrt (+ (* x x) (* x x)))> |
#<alt (+ (* x x) (* x x))> |
#<alt (* x x)> |
| Outputs |
|---|
#<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 (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)> |
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | (+ (* x x) (* x x)) |
| 1.0ms | x | @ | 0 | (sqrt (+ (* x x) (* x x))) |
| 0.0ms | x | @ | inf | (sqrt (+ (* x x) (* x x))) |
| 0.0ms | x | @ | 0 | (+ (* x x) (* x x)) |
| 0.0ms | x | @ | -inf | (sqrt (+ (* x x) (* x x))) |
| 1× | batch-egg-rewrite |
| 66× | *-lowering-*.f32 |
| 66× | *-lowering-*.f64 |
| 42× | accelerator-lowering-fma.f32 |
| 42× | accelerator-lowering-fma.f64 |
| 34× | /-lowering-/.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 14 |
| 1 | 20 | 10 |
| 0 | 157 | 9 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| Inputs |
|---|
(sqrt (+ (* x x) (* x x))) |
(+ (* x x) (* x x)) |
(* x x) |
| Outputs |
|---|
(exp.f64 (*.f64 (log.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) #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 #s(literal 0 binary64) #s(literal 0 binary64))) |
(/.f64 (sqrt.f64 (*.f64 (+.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))) (sqrt.f64 (+.f64 (*.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 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/2 binary64)) |
(*.f64 (pow.f64 x #s(literal 1/2 binary64)) (pow.f64 (*.f64 #s(literal 2 binary64) 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 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 (*.f64 x x))) |
(*.f64 (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64)) (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64))) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(-.f64 (/.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 0 binary64)) (/.f64 (*.f64 (*.f64 x 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 (+.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) (+.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 0 binary64))) |
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) |
(/.f64 (neg.f64 (*.f64 (+.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))) (neg.f64 (+.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 0 binary64)))) |
(/.f64 #s(literal 1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) |
(/.f64 #s(literal 1 binary64) (/.f64 (+.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 0 binary64)) (*.f64 (+.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))))) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
(*.f64 (*.f64 (+.f64 (*.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 (*.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 x) #s(literal 2 binary64))) |
(pow.f64 x #s(literal 2 binary64)) |
(*.f64 x x) |
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 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 | 38 | 148 |
| 4 | 42 | 148 |
| 5 | 54 | 148 |
| 6 | 66 | 148 |
| 7 | 77 | 148 |
| 8 | 97 | 148 |
| 9 | 102 | 148 |
| 0 | 102 | 148 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* 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)) |
(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) |
| Outputs |
|---|
(* 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 #s(literal 0 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(-.f64 #s(literal 0 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(-.f64 #s(literal 0 binary64) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(* -1 (* x (sqrt 2))) |
(-.f64 #s(literal 0 binary64) (*.f64 x (sqrt.f64 #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) |
Compiled 694 to 97 computations (86% saved)
3 alts after pruning (3 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 82 | 3 | 85 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 83 | 3 | 86 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (hypot.f64 x x) |
| ▶ | 99.4% | (*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
| ▶ | 99.3% | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
Compiled 17 to 12 computations (29.4% saved)
| 1× | egg-herbie |
Found 7 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | cost-diff | 0 | (hypot.f64 x x) |
| ✓ | cost-diff | 0 | (*.f64 #s(literal 2 binary64) x) |
| ✓ | cost-diff | 0 | (sqrt.f64 (*.f64 #s(literal 2 binary64) x)) |
| ✓ | cost-diff | 0 | (sqrt.f64 x) |
| ✓ | cost-diff | 0 | (*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
| ✓ | cost-diff | 0 | (sqrt.f64 #s(literal 2 binary64)) |
| ✓ | cost-diff | 0 | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| 22× | *-lowering-*.f32 |
| 22× | *-lowering-*.f64 |
| 8× | *-commutative |
| 8× | sqrt-lowering-sqrt.f64 |
| 8× | sqrt-lowering-sqrt.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 11 | 33 |
| 1 | 17 | 33 |
| 2 | 20 | 33 |
| 0 | 20 | 30 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* x (sqrt 2)) |
x |
(sqrt 2) |
2 |
(* (sqrt x) (sqrt (* 2 x))) |
(sqrt x) |
x |
(sqrt (* 2 x)) |
(* 2 x) |
2 |
(sqrt (+ (* x x) (* x x))) |
x |
| Outputs |
|---|
(* 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) (sqrt (* 2 x))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 x #s(literal 2 binary64)))) |
(sqrt x) |
(sqrt.f64 x) |
x |
(sqrt (* 2 x)) |
(sqrt.f64 (*.f64 x #s(literal 2 binary64))) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
2 |
#s(literal 2 binary64) |
(sqrt (+ (* x x) (* x x))) |
(hypot.f64 x x) |
x |
Found 7 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | accuracy | 100.0% | (hypot.f64 x x) |
| ✓ | accuracy | 100.0% | (*.f64 #s(literal 2 binary64) x) |
| ✓ | accuracy | 100.0% | (sqrt.f64 (*.f64 #s(literal 2 binary64) x)) |
| ✓ | accuracy | 100.0% | (sqrt.f64 x) |
| ✓ | accuracy | 99.4% | (*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
| ✓ | accuracy | 100.0% | (sqrt.f64 #s(literal 2 binary64)) |
| ✓ | accuracy | 99.3% | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| 22.0ms | 256× | 0 | valid |
Compiled 32 to 11 computations (65.6% saved)
ival-sqrt: 5.0ms (37.5% of total)ival-mult: 4.0ms (30% of total)ival-hypot: 4.0ms (30% 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 (sqrt 2))> |
#<alt (sqrt 2)> |
#<alt (* (sqrt x) (sqrt (* 2 x)))> |
#<alt (sqrt x)> |
#<alt (sqrt (* 2 x))> |
#<alt (* 2 x)> |
#<alt (sqrt (+ (* x x) (* x x)))> |
| Outputs |
|---|
#<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) (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 (* (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 (* 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 | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | (* (sqrt x) (sqrt (* 2 x))) |
| 1.0ms | x | @ | -inf | (sqrt (* 2 x)) |
| 0.0ms | x | @ | -inf | (sqrt x) |
| 0.0ms | x | @ | -inf | (* 2 x) |
| 0.0ms | x | @ | inf | (* 2 x) |
| 1× | batch-egg-rewrite |
| 92× | *-lowering-*.f32 |
| 92× | *-lowering-*.f64 |
| 42× | accelerator-lowering-fma.f32 |
| 42× | accelerator-lowering-fma.f64 |
| 38× | pow-lowering-pow.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 11 | 27 |
| 1 | 35 | 23 |
| 0 | 188 | 21 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| Inputs |
|---|
(* x (sqrt 2)) |
(sqrt 2) |
(* (sqrt x) (sqrt (* 2 x))) |
(sqrt x) |
(sqrt (* 2 x)) |
(* 2 x) |
(sqrt (+ (* x x) (* x x))) |
| Outputs |
|---|
(*.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 #s(literal 0 binary64) #s(literal 0 binary64))) #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 #s(literal 0 binary64) #s(literal 0 binary64))) |
(/.f64 (sqrt.f64 (*.f64 (+.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))) (sqrt.f64 (+.f64 (*.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 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/2 binary64)) |
(*.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 #s(literal 2 binary64)) (*.f64 (sqrt.f64 x) (sqrt.f64 x))) |
(*.f64 (sqrt.f64 x) (pow.f64 (*.f64 x #s(literal 2 binary64)) #s(literal 1/2 binary64))) |
(*.f64 (pow.f64 (*.f64 x #s(literal 2 binary64)) #s(literal 1/2 binary64)) (sqrt.f64 x)) |
(*.f64 (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64)) (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 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))) |
(exp.f64 (*.f64 (log.f64 (*.f64 x #s(literal 2 binary64))) #s(literal 1/2 binary64))) |
(sqrt.f64 (*.f64 x #s(literal 2 binary64))) |
(pow.f64 (*.f64 x #s(literal 2 binary64)) #s(literal 1/2 binary64)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (pow.f64 (*.f64 x #s(literal 2 binary64)) #s(literal 1/4 binary64)) (pow.f64 (*.f64 x #s(literal 2 binary64)) #s(literal 1/4 binary64))) |
(+.f64 x x) |
(/.f64 #s(literal 0 binary64) (-.f64 x x)) |
(/.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (+.f64 (*.f64 x x) #s(literal 0 binary64))) |
(*.f64 x #s(literal 2 binary64)) |
(*.f64 #s(literal 2 binary64) x) |
(exp.f64 (*.f64 (log.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) #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 #s(literal 0 binary64) #s(literal 0 binary64))) |
(/.f64 (sqrt.f64 (*.f64 (+.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))) (sqrt.f64 (+.f64 (*.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 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/2 binary64)) |
(*.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 #s(literal 2 binary64)) (*.f64 (sqrt.f64 x) (sqrt.f64 x))) |
(*.f64 (sqrt.f64 x) (pow.f64 (*.f64 x #s(literal 2 binary64)) #s(literal 1/2 binary64))) |
(*.f64 (pow.f64 (*.f64 x #s(literal 2 binary64)) #s(literal 1/2 binary64)) (sqrt.f64 x)) |
(*.f64 (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64)) (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64))) |
| 1× | egg-herbie |
| 1 144× | associate-*r* |
| 944× | *-lowering-*.f32 |
| 944× | *-lowering-*.f64 |
| 944× | accelerator-lowering-fma.f32 |
| 944× | accelerator-lowering-fma.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 20 | 300 |
| 1 | 46 | 300 |
| 2 | 130 | 300 |
| 3 | 257 | 300 |
| 4 | 484 | 300 |
| 5 | 800 | 300 |
| 6 | 1324 | 300 |
| 7 | 1450 | 300 |
| 8 | 1502 | 300 |
| 9 | 1526 | 300 |
| 10 | 1645 | 300 |
| 11 | 1836 | 300 |
| 12 | 1876 | 300 |
| 13 | 1904 | 300 |
| 14 | 1908 | 300 |
| 15 | 1908 | 300 |
| 16 | 2110 | 300 |
| 17 | 2214 | 300 |
| 18 | 2832 | 300 |
| 19 | 3146 | 300 |
| 20 | 3158 | 300 |
| 0 | 3158 | 300 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* 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) (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))) |
(* (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) |
(* 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 |
|---|
(* 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) (sqrt -1)))) |
(-.f64 #s(literal 0 binary64) (*.f64 (sqrt.f64 #s(literal -2 binary64)) (*.f64 x (sqrt.f64 #s(literal -1 binary64))))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(-.f64 #s(literal 0 binary64) (*.f64 (sqrt.f64 #s(literal -2 binary64)) (*.f64 x (sqrt.f64 #s(literal -1 binary64))))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(-.f64 #s(literal 0 binary64) (*.f64 (sqrt.f64 #s(literal -2 binary64)) (*.f64 x (sqrt.f64 #s(literal -1 binary64))))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(-.f64 #s(literal 0 binary64) (*.f64 (sqrt.f64 #s(literal -2 binary64)) (*.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) |
(* (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)))) |
(-.f64 #s(literal 0 binary64) (*.f64 (sqrt.f64 #s(literal -2 binary64)) (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 x)))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(-.f64 #s(literal 0 binary64) (*.f64 (sqrt.f64 #s(literal -2 binary64)) (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 x)))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(-.f64 #s(literal 0 binary64) (*.f64 (sqrt.f64 #s(literal -2 binary64)) (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 x)))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(-.f64 #s(literal 0 binary64) (*.f64 (sqrt.f64 #s(literal -2 binary64)) (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 x)))) |
(* 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)) (-.f64 #s(literal 0 binary64) x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (-.f64 #s(literal 0 binary64) x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (-.f64 #s(literal 0 binary64) x)) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (-.f64 #s(literal 0 binary64) x)) |
Compiled 861 to 103 computations (88% saved)
3 alts after pruning (1 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 122 | 1 | 123 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 2 | 3 |
| Done | 0 | 0 | 0 |
| Total | 123 | 3 | 126 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 x x) |
| ✓ | 99.3% | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| ▶ | 99.1% | (*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)))) |
Compiled 17 to 13 computations (23.5% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | cost-diff | 0 | (log.f64 #s(literal 2 binary64)) |
| ✓ | 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 | 6528 | (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) |
| 8× | *-lowering-*.f32 |
| 8× | *-lowering-*.f64 |
| 4× | *-commutative |
| 4× | pow-lowering-pow.f64 |
| 4× | exp-lowering-exp.f32 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 17 |
| 1 | 12 | 15 |
| 2 | 16 | 15 |
| 0 | 16 | 15 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* x (exp (* (log 2) 1/2))) |
x |
(exp (* (log 2) 1/2)) |
(* (log 2) 1/2) |
(log 2) |
2 |
1/2 |
| Outputs |
|---|
(* 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) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| ✓ | accuracy | 100.0% | (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)) |
| ✓ | accuracy | 100.0% | (log.f64 #s(literal 2 binary64)) |
| ✓ | accuracy | 99.3% | (*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)))) |
| ✓ | accuracy | 98.4% | (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) |
| 17.0ms | 256× | 0 | valid |
Compiled 23 to 9 computations (60.9% saved)
ival-log: 3.0ms (31.5% of total)ival-exp: 3.0ms (31.5% of total)ival-mult: 3.0ms (31.5% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#<alt (exp (* (log 2) 1/2))> |
#<alt (* x (exp (* (log 2) 1/2)))> |
#<alt (* (log 2) 1/2)> |
#<alt (log 2)> |
| Outputs |
|---|
#<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))> |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | 0 | (* x (exp (* (log 2) 1/2))) |
| 0.0ms | x | @ | inf | (* x (exp (* (log 2) 1/2))) |
| 0.0ms | x | @ | -inf | (* x (exp (* (log 2) 1/2))) |
| 1× | batch-egg-rewrite |
| 264× | *-lowering-*.f32 |
| 264× | *-lowering-*.f64 |
| 84× | pow-lowering-pow.f64 |
| 84× | pow-lowering-pow.f32 |
| 78× | /-lowering-/.f32 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 14 |
| 1 | 12 | 12 |
| 2 | 23 | 12 |
| 3 | 45 | 12 |
| 4 | 114 | 12 |
| 0 | 409 | 12 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| Inputs |
|---|
(exp (* (log 2) 1/2)) |
(* x (exp (* (log 2) 1/2))) |
(* (log 2) 1/2) |
(log 2) |
| Outputs |
|---|
(exp.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64))) |
(exp.f64 (*.f64 #s(literal 1/4 binary64) (log.f64 #s(literal 4 binary64)))) |
(exp.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1 binary64)))) |
(exp.f64 (*.f64 (log.f64 (exp.f64 #s(literal 1 binary64))) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)))) |
(sqrt.f64 #s(literal 2 binary64)) |
(pow.f64 (sqrt.f64 #s(literal 2 binary64)) #s(literal 1 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))) |
(pow.f64 (exp.f64 #s(literal 1/2 binary64)) (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1 binary64))) |
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) |
(pow.f64 #s(literal 4 binary64) #s(literal 1/4 binary64)) |
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) #s(literal 4 binary64)) |
(pow.f64 (exp.f64 #s(literal 1 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64))) |
(pow.f64 (pow.f64 (exp.f64 #s(literal 1 binary64)) (log.f64 #s(literal 2 binary64))) #s(literal 1/2 binary64)) |
(pow.f64 (pow.f64 (exp.f64 #s(literal 1 binary64)) #s(literal 1/2 binary64)) (log.f64 #s(literal 2 binary64))) |
(pow.f64 #s(literal 16 binary64) #s(literal 1/8 binary64)) |
(pow.f64 (exp.f64 (log.f64 #s(literal 4 binary64))) #s(literal 1/4 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 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64))) |
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)) (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64)))) |
(*.f64 (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))) (*.f64 (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))) |
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64))) |
(*.f64 (pow.f64 (exp.f64 #s(literal 1/2 binary64)) (/.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1 binary64)) #s(literal 2 binary64))) (pow.f64 (exp.f64 #s(literal 1/2 binary64)) (/.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1 binary64)) #s(literal 2 binary64)))) |
(*.f64 (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))))) (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))))) |
(*.f64 (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))) |
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64)))) |
(*.f64 (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) |
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)) (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)) (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64))))) |
(*.f64 (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))) (*.f64 (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))) (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))))) |
(*.f64 (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64))) |
(*.f64 (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64))) |
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64)) (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)))) |
(*.f64 (*.f64 (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))))) (exp.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))))) |
(*.f64 (*.f64 (*.f64 x (pow.f64 #s(literal 2 binary64) #s(literal 3/8 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64))) |
(+.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) |
(fma.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) |
(fma.f64 #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) |
(fma.f64 #s(literal 2 binary64) (log.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64))) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) |
(fma.f64 #s(literal 1/4 binary64) (log.f64 #s(literal 2 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) |
(fma.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)) #s(literal 1/2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) |
(fma.f64 #s(literal 1/8 binary64) (log.f64 #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) |
(neg.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal -2 binary64))) |
(/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64)) |
(/.f64 (log.f64 #s(literal 1/2 binary64)) #s(literal -2 binary64)) |
(/.f64 #s(literal 1 binary64) (/.f64 #s(literal 2 binary64) (log.f64 #s(literal 2 binary64)))) |
(/.f64 #s(literal 1 binary64) (/.f64 (/.f64 #s(literal 2 binary64) (log.f64 #s(literal 2 binary64))) #s(literal 1 binary64))) |
(/.f64 #s(literal -1 binary64) (neg.f64 (/.f64 #s(literal 2 binary64) (log.f64 #s(literal 2 binary64))))) |
(/.f64 (neg.f64 (log.f64 #s(literal 1/2 binary64))) #s(literal 2 binary64)) |
(/.f64 (+.f64 (pow.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) #s(literal 3 binary64)) (pow.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) #s(literal 3 binary64))) (+.f64 (*.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) (-.f64 (*.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) (*.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))))) |
(/.f64 (-.f64 (*.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) (*.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))) (-.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)))) |
(pow.f64 (/.f64 #s(literal 2 binary64) (log.f64 #s(literal 2 binary64))) #s(literal -1 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))) |
(*.f64 #s(literal 2 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64))) |
(*.f64 #s(literal 1/4 binary64) (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64))) |
(*.f64 #s(literal 1/4 binary64) (+.f64 (log.f64 #s(literal 2 binary64)) (log.f64 #s(literal 2 binary64)))) |
(*.f64 (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 4 binary64)) #s(literal 2 binary64)) |
(*.f64 (log.f64 #s(literal 1/2 binary64)) #s(literal -1/2 binary64)) |
(*.f64 #s(literal 1 binary64) (/.f64 (log.f64 #s(literal 2 binary64)) #s(literal 2 binary64))) |
(log.f64 #s(literal 2 binary64)) |
| 1× | egg-herbie |
| 4× | *-lowering-*.f32 |
| 4× | *-lowering-*.f64 |
| 2× | *-commutative |
| 2× | sqrt-lowering-sqrt.f64 |
| 2× | sqrt-lowering-sqrt.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 48 |
| 1 | 5 | 48 |
| 0 | 5 | 48 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* 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)) |
| Outputs |
|---|
(* 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))) |
Compiled 723 to 195 computations (73% saved)
3 alts after pruning (0 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 75 | 0 | 75 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 2 | 2 |
| Total | 75 | 3 | 78 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 x x) |
| ✓ | 99.3% | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| ✓ | 99.1% | (*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)))) |
Compiled 47 to 30 computations (36.2% saved)
Total -26.6b remaining (-85044.2%)
Threshold costs -26.6b (-85044.2%)
| Inputs |
|---|
(hypot.f64 x x) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
(*.f64 x (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
| Outputs |
|---|
(hypot.f64 x x) |
4 calls:
| 2.0ms | x |
| 2.0ms | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 2.0ms | (+.f64 (*.f64 x x) (*.f64 x x)) |
| 2.0ms | (*.f64 x x) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 100.0% | 1 | (+.f64 (*.f64 x x) (*.f64 x x)) |
| 100.0% | 1 | (*.f64 x x) |
Compiled 23 to 10 computations (56.5% saved)
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 2 | 3 |
| 1× | saturated |
| Inputs |
|---|
(hypot.f64 x x) |
| Outputs |
|---|
(hypot.f64 x x) |
| 66× | *-lowering-*.f32 |
| 66× | *-lowering-*.f64 |
| 42× | accelerator-lowering-fma.f32 |
| 42× | accelerator-lowering-fma.f64 |
| 34× | /-lowering-/.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 14 |
| 1 | 20 | 10 |
| 0 | 157 | 9 |
| 1× | done |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
Compiled 8 to 4 computations (50% saved)
(abs x)
Compiled 34 to 16 computations (52.9% saved)
Loading profile data...