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 / task03 / reference.om

9 lines · 107 bytes Raw Blame History
1fn popcount_u32 x uint to uint
2c = uint 0
3v = x
4while gt v 0
5c = add c (and v 1)
6v = shr v 1
7end
8ret c
9end