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.rs
| 1 | fn clamp_add_u16(a: u32, b: u32) -> u32 { |
| 2 | let s = a.wrapping_add(b); |
| 3 | if s > 65535 { 65535 } else { s } |
| 4 | } |