interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / qualification / om2 / sec / s5s7 / f5-partial.om

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