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 / devgen10 / hidden / reference.osc
| 1 | fn grid_le(n: u8, m: u16) -> u32 { |
| 2 | let nn: u32 = n as u32; |
| 3 | let mm: u32 = m as u32; |
| 4 | let mut c: u32 = 0; |
| 5 | let mut i: u32 = 1; |
| 6 | while i <= nn bound 256 { |
| 7 | let mut j: u32 = 1; |
| 8 | while j <= nn bound 256 { |
| 9 | if i * j <= mm { c = c + 1; } |
| 10 | j = j + 1; |
| 11 | } |
| 12 | i = i + 1; |
| 13 | } |
| 14 | return c; |
| 15 | } |