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 / ng / front / cases / sh_mix_wrap.om

11 lines · 334 bytes Raw Blame History
1note sh_mix_wrap: a uchar value shifted by a ulong amount of 256 traps 7 (exit 107) in omc: the amount is
2note compared whole, never wrapped to the value's 8 bits (that would be a shift by 0). "a\n" comes first.
3text t "a\n"
4fn shw a uchar s ulong to uchar
5ret shl a s
6end
7fn main to int
8w = write 1 t 0 2
9x = shw 1 256
10ret int x
11end