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 / l5-const-idx.om

17 lines · 410 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note contract 5 layout line 159 with OMEGESE 9.4: a constant field index outside COUNT is error 21,
3note as for an array (confirmed by erratum E8).
4om2
5layout shactx 104
6field state uint 8 at 0 little
7field count ulong at 32 little
8field buf uchar 64 at 40 little
9end
10fn poke c edit shactx to void
11put c buf 64 1
12end
13fn main to int
14c = new uchar 104 0
15poke c
16ret 0
17end