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 / omegese / dev / dev03.omegese
| 1 | fn popcount x ulong to uchar |
| 2 | n = uchar 0 |
| 3 | for i uint 64 |
| 4 | b = and x 1 |
| 5 | if eq b 1 |
| 6 | n = add n 1 |
| 7 | end |
| 8 | x = shr x 1 |
| 9 | end |
| 10 | ret n |
| 11 | end |