omega-harness
Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories
Brought by drakestapleton
omega-harness / examples / block_frees_registers.om
| 1 | note block_frees_registers: names first written in a block die at its end and their registers return to the pool |
| 2 | fn main to int |
| 3 | a1 = int 1 |
| 4 | a2 = int 2 |
| 5 | a3 = int 3 |
| 6 | a4 = int 4 |
| 7 | a5 = int 5 |
| 8 | a6 = int 6 |
| 9 | a7 = int 7 |
| 10 | a8 = int 8 |
| 11 | a9 = int 9 |
| 12 | a10 = int 10 |
| 13 | if true |
| 14 | b1 = int 1 |
| 15 | b2 = int 2 |
| 16 | b3 = int 3 |
| 17 | b4 = int 4 |
| 18 | b5 = int 5 |
| 19 | end |
| 20 | c1 = int 1 |
| 21 | c2 = int 2 |
| 22 | c3 = int 3 |
| 23 | c4 = int 4 |
| 24 | c5 = int 5 |
| 25 | ret add a10 c5 |
| 26 | end |