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 / omegese / dev / dev01.omegese
| 1 | fn clamp_add a uchar b uchar to uchar |
| 2 | x = ushort a |
| 3 | y = ushort b |
| 4 | s = add x y |
| 5 | if gt s 255 |
| 6 | ret 255 |
| 7 | end |
| 8 | ret uchar s |
| 9 | end |