omega-harness
Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories
Brought by drakestapleton
omega-harness / examples / err30_contract.om
| 1 | note err30_contract: a contract clause may not call a function, use floats or host words; result needs a value postcondition |
| 2 | om2 |
| 3 | fn g x uint to uint |
| 4 | ret x |
| 5 | end |
| 6 | fn f x uint to uint |
| 7 | requires lt g x 10 |
| 8 | ret x |
| 9 | end |
| 10 | fn main to int |
| 11 | ret int f 1 |
| 12 | end |