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 / seed / qualification / om2 / sec / s5s7 / v6-part-local.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 6 line 175: a part is allowed only as a call argument; a part elsewhere (here assigned |
| 3 | note to a name) is error 9 (erratum E8). |
| 4 | om2 |
| 5 | fn plen v view uchar * to ulong |
| 6 | ret len v |
| 7 | end |
| 8 | fn main to int |
| 9 | a = new uchar 10 0 |
| 10 | p = part a 0 4 |
| 11 | putd plen p |
| 12 | ret 0 |
| 13 | end |