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 / s0s2 / s2hex / dec-places.om

28 lines · 461 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note OM-1 twin of s2hex/hex-places.om with decimal literals (pinned check of the oracle values).
3text msg "hex\n"
4fn twice a ulong to ulong
5ret mul a 2
6end
7fn main to int
8a = new uchar 4 0
9put a 1 104
10put a 3 10
11s = ulong 0
12for i ulong 5
13s = add s i
14end
15putu s
16putu twice 21
17putu ulong get a 1
18if eq s 10
19putu 2748
20end
21x = int 16
22y = sub x 32
23if lt y 0
24putu ulong neg y
25end
26r = write 1 msg 0 len msg
27ret int get a 3
28end