omega-mcp
aien-dev/omega-mcp
Brought by drakestapleton
omega-mcp / data / examples / om2_fresh.om
| 1 | om2 |
| 2 | note fresh: incoming elements are unspecified, so every element must be written before it is read |
| 3 | fn f s edit uchar 4 fresh to ulong |
| 4 | for i ulong 4 unroll |
| 5 | put s i uchar add i 1 |
| 6 | end |
| 7 | ret add ulong get s 0 ulong get s 3 |
| 8 | end |
| 9 | fn main to int |
| 10 | a = new uchar 4 0 |
| 11 | ret int f a |
| 12 | end |