sovereign-intelligence
Front door to Drake Stapleton's sovereign stack.
Brought by drakestapleton
sovereign-intelligence / tests / omc / examples / count_err30_contract.om
| 1 | note count_err30_contract: a contract clause takes integer words on parameters only; count is error 30 |
| 2 | om2 |
| 3 | fn f a view uchar * n ulong to ulong |
| 4 | requires eq count a 0 n 10 0 |
| 5 | ret n |
| 6 | end |
| 7 | fn main to int |
| 8 | b = new uchar 4 0 |
| 9 | r = f b 2 |
| 10 | ret 0 |
| 11 | end |