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 / dev / tasks / cases / devgen06 / hidden / reference.osc
| 1 | fn pow_small_or_mix(b: u8, e: u8) -> u64 { |
| 2 | let x: u64 = b as u64; |
| 3 | let y: u64 = e as u64; |
| 4 | if x < 10 { |
| 5 | let mut r: u64 = 1; |
| 6 | let mut i: u64 = 0; |
| 7 | while i < y bound 256 { |
| 8 | r = r * x; |
| 9 | i = i + 1; |
| 10 | } |
| 11 | return r; |
| 12 | } |
| 13 | return (x * x + y * y) * 3 + x; |
| 14 | } |