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 / task20 / reference.om
| 1 | fn rot_left_u32 x uint k uint to uint |
| 2 | s = rem k 32 |
| 3 | if eq s 0 |
| 4 | ret x |
| 5 | end |
| 6 | hi = shl x s |
| 7 | lo = shr x (sub 32 s) |
| 8 | ret or hi lo |
| 9 | end |