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 / avg2.spec

5 lines · 216 bytes Raw Blame History
1desc average of two unsigned 32-bit values rounded down, with no intermediate wrap
2pre true
3post eq ulong res div add ulong a ulong b 2
4example 7 8 -> 7
5limit rounds down (7 and 8 give 7); not the rounded-up average