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 / tools / exp445 / arms / examples / nibble_mirror / program.osc

7 lines · 181 bytes Raw Blame History
1fn nibble_mirror(x: u16) -> bool {
2 let a: u16 = x & 15;
3 let b: u16 = (x >> 4) & 15;
4 let c: u16 = (x >> 8) & 15;
5 let d: u16 = x >> 12;
6 return a == d && b == c;
7}