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 / sat8.spec
| 1 | desc convert an unsigned 32-bit value to unsigned 8-bit, saturating: anything above 255 gives 255 |
| 2 | pre true |
| 3 | post or and gt x 255 eq res 255 and le x 255 eq uint res x |
| 4 | example 300 -> 255 |
| 5 | limit saturates; it does not keep the low 8 bits (300 gives 255, not 44) |