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 / trial2 / dev03.omegese
| 1 | fn popcount x u64 to u8 |
| 2 | count = u8 0 |
| 3 | for i u8 64 |
| 4 | bit = and x (shl u64 1 i) |
| 5 | if ne bit u64 0 |
| 6 | count = add count u8 1 |
| 7 | end |
| 8 | end |
| 9 | ret count |
| 10 | end |