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 / om1 / t-edit.om

19 lines · 473 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note OM-1 twin of v6-edit.om: elements 3..6 of a 10-byte row set to X through an offset, the
3note lengths 2 and 4 printed in the same order. Expected stdout oracle/s5s7/exp/v6-edit.out (python3).
4fn fill e edit uchar 10 o ulong k ulong c uchar to ulong
5for i ulong k
6put e add o i c
7end
8putd 2
9ret k
10end
11fn main to int
12a = new uchar 10 46
13m = fill a 3 4 88
14nl = new uchar 1 10
15w = write 1 a 0 10
16w = write 1 nl 0 1
17putd m
18ret 0
19end