interplane.Get Omega
Read in your language

omega-mcp

aien-dev/omega-mcp

Brought by drakestapleton

branch main Branches Tags History

omega-mcp / data / examples / om2_abstract.om

21 lines · 487 bytes Raw Blame History
1om2
2note abstract types: values made only by seal in NAMEmk, read by open, operations listed by ops;
3note holds dup32 checks every seal at run time (trap 10)
4abstract tag uint ops and or
5abstract dup32 ulong ops xor
6holds dup32 dup32
7fn tagmk x uint to tag
8ret seal tag x
9end
10fn dup32mk x uint to dup32
11ret seal dup32 or shl ulong x 32 ulong x
12end
13fn main to int
14t = or tagmk 12 tagmk 3
15u = and t tagmk 5
16d = xor dup32mk 7 dup32mk 4
17if ne open d 12884901891
18ret 1
19end
20ret int open u
21end