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