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/ir/x-shlneg.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 / ir / x-shlneg.oir` 27 lines ยท 535 bytes Raw Blame History 1 omegair 1 2 fn @f0 flags 0 %1:i64 %2:i64 -> i64 3 block ^0 4 %3 = chk.shift 7 %0 %2 5 %4 = chk.shl 1 %3 %1 %2 6 %5 = shl i64 %1 %2 7 retv %4 %5 8 end 9 export @f1 flags 0 -> i32 10 block ^0 11 %1 = const i64 -`4611686018427387904` 12 %2 = const i64 1 13 %3 %4 = call i64 %0 @f0 %1 %2 14 %5 = const i64 -`9223372036854775808` 15 %6 = ne bool %4 %5 16 cbr %3 %6 ^1 ^2 17 block ^1 %7:tok 18 %8 = const i32 9 19 retv %7 %8 20 block ^2 %9:tok 21 %10 = const i64 -`4611686018427387905` 22 %11 %12 = call i64 %9 @f0 %10 %2 23 %13 = const i64 255 24 %14 = and i64 %12 %13 25 %15 = conv i32 0 %14 26 retv %11 %15 27 end