omega-harness
Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories
Brought by drakestapleton
omega-harness / examples / contract_release.om
| 1 | note contract_release: om2 release erases contracts; the false precondition no longer traps |
| 2 | om2 release |
| 3 | fn half x uint to uint |
| 4 | requires eq rem x 2 0 |
| 5 | ret div x 2 |
| 6 | end |
| 7 | fn main to int |
| 8 | ret int half 7 |
| 9 | end |