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 / tests / one_layer / generalization / corpus / specs / popcnt.spec

5 lines · 206 bytes Raw Blame History
1desc number of one bits among the 32 bits of an unsigned 32-bit value (0..32)
2pre true
3post and le res 32 eq eq res 0 eq x 0
4example 255 -> 8
5limit counts all 32 bits; to count part of the bits, mask first