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 / a-kept.om

12 lines · 361 bytes Raw Blame History
1note S3 abstract: a constructor body that is not exactly the dup32 form keeps the runtime check;
2note here the value breaks the invariant for every x, so the program traps 10 (exit 110)
3om2
4abstract dup32 ulong
5holds dup32 dup32
6fn dup32mk x uint to dup32
7ret seal dup32 or shl ulong x 32 ulong add x 1
8end
9fn main to int
10d = dup32mk 5
11ret int and open d 1
12end