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 / omc / om2 / s3 / f-ok.om

39 lines · 829 bytes Raw Blame History
1note S3 fresh: accepted flows. Straight-line writes, both arms of an if/else, an arm that returns (the
2note join takes the other arm), an unrolled loop covering every element before a run-time get, writes
3note made before a rolled loop kept after it, and an inline callee writing the elements. Exit 0 when
4note every value read back is right, else the failing check's number.
5om2
6fn fill4 t edit uchar 8 b uchar to void inline
7for i ulong 4 unroll
8put t add i 4 add b uchar i
9end
10end
11fn f s edit uchar 8 fresh c ulong k ulong to ulong
12put s 0 1
13if eq c 1
14put s 1 2
15else
16put s 1 3
17end
18if eq c 9
19ret 99
20else
21put s 2 4
22end
23for j ulong 2
24put s 3 5
25end
26fill4 s 10
27put s 3 get s 1
28ret add add ulong get s 2 ulong get s k ulong get s 3
29end
30fn main to int
31a = new uchar 8 0
32if ne f a 1 7 19
33ret 1
34end
35if ne f a 2 0 8
36ret 2
37end
38ret 0
39end