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

6 lines · 345 bytes Raw Blame History
1desc distance between two unsigned 32-bit values: the larger minus the smaller, never wraps
2pre true
3post or eq add ulong res ulong b ulong a eq add ulong res ulong a ulong b
4example 3 10 -> 7
5limit unsigned 32-bit values only; the argument order does not change the result
6limit not a signed difference: it never says which argument was larger