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

20 lines · 480 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note contract 5 layout lines 154, 158 with erratum E5: a field with COUNT omitted is a scalar,
3note written `put c F v` and read `get c F` without an index. stdout: 01 02 03 04, then 0000000001020304 (exp/l5-scalar.out).
4om2
5layout one 4
6field v uint at 0 big
7end
8fn fill x edit one to void
9put x v 0x01020304
10end
11fn show x view one to void
12puth ulong get x v
13end
14fn main to int
15c = new uchar 4 0
16fill c
17w = write 1 c 0 4
18show c
19ret 0
20end