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.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 6 line 170 and 4 lines 106-108: every index into an unsized view is checked at run time, |
| 3 | note even a constant one: get v 10 on len 10 traps 3 (exit 103, no stdout); it is not error 21. |
| 4 | om2 |
| 5 | fn g v view uchar * to ulong |
| 6 | ret ulong get v 10 |
| 7 | end |
| 8 | fn main to int |
| 9 | a = new uchar 10 0 |
| 10 | putd g a |
| 11 | ret 0 |
| 12 | end |