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 / exp445 / dev / tasks / cases / dev01 / hidden / reference.osc
| 1 | fn clamp_add(a: u8, b: u8) -> u8 { |
| 2 | let s: u16 = (a as u16) + (b as u16); |
| 3 | if s > 255 { return 255; } |
| 4 | return s as u8; |
| 5 | } |