Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/ng/tests/opt/x-shift.oir # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / ng / tests / opt / x-shift.oir` 21 lines ยท 382 bytes Raw Blame History 1 omegair 1 2 fn @f0 flags 0 %1:u32 %2:u32 -> u32 3 block ^0 4 %3 = chk.shift 7 %0 %2 5 %4 = shl u32 %1 %2 6 retv %3 %4 7 end 8 export @f1 flags 0 -> i32 9 block ^0 10 %1 = const u32 1 11 %2 = const u32 31 12 %3 %4 = call u32 %0 @f0 %1 %2 13 %5 = const u32 1 14 %6 = const u32 32 15 %7 %8 = call u32 %3 @f0 %5 %6 16 %9 = const u32 255 17 %10 = and u32 %8 %9 18 %11 = chk.conv i32 5 %7 %10 19 %12 = conv i32 0 %10 20 retv %11 %12 21 end