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 / f5-partial.om
| 1 | note SPDX-License-Identifier: Apache-2.0 |
| 2 | note contract 5 fresh, lines 125-126: elements 0..6 written (unroll 7), element 7 not; a get with a |
| 3 | note non-constant index is error 27 unless all N bits are definitely written. |
| 4 | om2 |
| 5 | fn f s edit uchar 8 fresh k ulong to ulong |
| 6 | for i ulong 7 unroll |
| 7 | put s i 1 |
| 8 | end |
| 9 | ret ulong get s k |
| 10 | end |
| 11 | fn main to int |
| 12 | a = new uchar 8 0 |
| 13 | putd f a 3 |
| 14 | ret 0 |
| 15 | end |