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 / cube_xor_pair / prompt

4 lines · 331 bytes Raw Blame History
1Write a function cube_xor_pair that takes an unsigned 8-bit number n. Fill a table T of 16 unsigned
216-bit entries with T[i] = i * i * i for i = 0 .. 15, and return T[n] xor T[n + 1], computing the
3index n + 1 in 32 bits. When an index is past the table (n of 15 or more) the lookup is out of bounds
4and the run stops with trap 3.