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 / avg2.spec
| 1 | desc average of two unsigned 32-bit values rounded down, with no intermediate wrap |
| 2 | pre true |
| 3 | post eq ulong res div add ulong a ulong b 2 |
| 4 | example 7 8 -> 7 |
| 5 | limit rounds down (7 and 8 give 7); not the rounded-up average |