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

5 lines · 258 bytes Raw Blame History
1desc convert an unsigned 32-bit value to unsigned 8-bit, saturating: anything above 255 gives 255
2pre true
3post or and gt x 255 eq res 255 and le x 255 eq uint res x
4example 300 -> 255
5limit saturates; it does not keep the low 8 bits (300 gives 255, not 44)