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 / absdiff.spec
| 1 | desc distance between two unsigned 32-bit values: the larger minus the smaller, never wraps |
| 2 | pre true |
| 3 | post or eq add ulong res ulong b ulong a eq add ulong res ulong a ulong b |
| 4 | example 3 10 -> 7 |
| 5 | limit unsigned 32-bit values only; the argument order does not change the result |
| 6 | limit not a signed difference: it never says which argument was larger |