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-idx-edit.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 6 line 170: put e k on an unsized edit with k = len traps 3 (exit 103, no stdout). |
| 3 | om2 |
| 4 | fn g e edit uchar * k ulong to void |
| 5 | put e k 1 |
| 6 | end |
| 7 | fn main to int |
| 8 | a = new uchar 10 0 |
| 9 | g a 10 |
| 10 | w = write 1 a 0 10 |
| 11 | ret 0 |
| 12 | end |