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_neg.om

11 lines · 313 bytes Raw Blame History
1note sh_mix_neg: a ulong value shifted by an int amount of -1 traps 7 (exit 107) in omc: the sign-extended
2note amount is at or past the width when compared unsigned. "n\n" comes first.
3text t "n\n"
4fn shn a ulong s int to ulong
5ret shl a s
6end
7fn main to int
8w = write 1 t 0 2
9x = shn 1 -1
10ret int and x 255
11end