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 / bench / inference_cost / tasks / task01 / reference.om
| 1 | fn clamp_add_u16 a uint b uint to uint |
| 2 | s = add a b |
| 3 | if gt s 65535 |
| 4 | ret 65535 |
| 5 | end |
| 6 | ret s |
| 7 | end |