omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / si / front-door / 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 |