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-trap.om

18 lines · 448 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note contract 5 layout line 159: the field index is checked like an array index; a run-time index 64
3note into buf (COUNT 64) traps 3: exit 103, no stdout.
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 k ulong to void
11put c buf k 1
12end
13fn main to int
14c = new uchar 104 0
15poke c 64
16w = write 1 c 0 104
17ret 0
18end