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 / tests / one_layer / generalization / corpus / specs / popcnt.spec
| 1 | desc number of one bits among the 32 bits of an unsigned 32-bit value (0..32) |
| 2 | pre true |
| 3 | post and le res 32 eq eq res 0 eq x 0 |
| 4 | example 255 -> 8 |
| 5 | limit counts all 32 bits; to count part of the bits, mask first |