Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mcp/blob/main/data/examples/contracts.om # omega-mcp aien-dev/omega-mcp Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mcp / data / examples / contracts.om` 16 lines ยท 316 bytes Raw Blame History 1 om2 2 note requires and ensures form a function's prefix; invariant forms a loop body's prefix; 3 note result is the returned value inside ensures 4 fn step x uint to uint 5 requires lt x 10 6 ensures eq result add x 1 7 ret add x 1 8 end 9 fn main to int 10 i = uint 0 11 while lt i 3 12 invariant le i 3 13 i = step i 14 end 15 ret int sub i 3 16 end