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
omega-mv / seed / ng / front / cases / sh_mix_wrap.om
| 1 | note sh_mix_wrap: a uchar value shifted by a ulong amount of 256 traps 7 (exit 107) in omc: the amount is |
| 2 | note compared whole, never wrapped to the value's 8 bits (that would be a shift by 0). "a\n" comes first. |
| 3 | text t "a\n" |
| 4 | fn shw a uchar s ulong to uchar |
| 5 | ret shl a s |
| 6 | end |
| 7 | fn main to int |
| 8 | w = write 1 t 0 2 |
| 9 | x = shw 1 256 |
| 10 | ret int x |
| 11 | end |