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 / bench / inference_cost / tasks / task11 / reference.om

9 lines · 105 bytes Raw Blame History
1fn parity_u32 x uint to uint
2v = x
3p = uint 0
4while gt v 0
5p = xor p (and v 1)
6v = shr v 1
7end
8ret p
9end