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 / sites / found-newname-1.om

32 lines · 803 bytes Raw Blame History
1note sites: found by a one-token change of a tracked program; reaches the omc error site in newname (code 10)
2note S3 abstract: an inlined exact constructor, values passed through a function, a uint-based abstract
3note type with no invariant, xor/rotr/rotl/and/or where listed. Exit 0 when every opened value is right.
4om2
5abstract dup32 ulong ops rotr rotl xor
6holds dup32 dup32
7abstract x uint ops and or
8fn dup32mk x uint to dup32 inline
9ret seal dup32 or shl ulong x 32 ulong x
10end
11fn tagmk x uint to tag
12ret seal tag x
13end
14fn pass d dup32 n ulong to dup32
15ret rotl rotr d n 3
16end
17fn main to int
18d = dup32mk 0x80000001
19e = pass d 8
20if ne open e 0x0c0000000c000000
21ret 1
22end
23if ne open xor e d 0x8c0000018c000001
24ret 2
25end
26t = or tagmk 12 tagmk 3
27u = and t tagmk 5
28if ne open u 5
29ret 3
30end
31ret 0
32end