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-rdval-13.om

13 lines · 470 bytes Raw Blame History
1note sites: found by a one-token change of a tracked program; reaches the omc error site in rdval (code 7)
2note S3 abstract: a constructor body that is not exactly the dup32 form keeps the runtime check;
3note here the value breaks the invariant for every x, so the program traps 10 (exit 110)
4om2
5abstract dup32 ulong
6holds dup32 dup32
7fn dup32mk x uint to dup32
8ret seal dup32 or shl ulong x 32 ulong add x 1
9end
10fn main to int
11d neg dup32mk 5
12ret int and open d 1
13end