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/n-s7821.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 / n-s7821.oir` 98 lines ยท 2090 bytes Raw Blame History 1 omegair 1 2 type %t32 = array i64 16 3 type %t33 = ref edit host %t32 4 type %t34 = array i64 8 5 type %t35 = ref edit host %t34 6 type %t36 = array u8 8 7 type %t37 = ref edit host %t36 8 global @g0 %t32 zero 9 global @g1 %t36 zero 10 fn @f0 flags 0 %1:i64 -> void 11 block ^0 12 %2 = gaddr %t37 @g1 13 %3 = const i64 0 14 %4 = shr i64 %1 %3 15 %5 = conv u8 0 %4 16 %6 = const u64 0 17 %7 = const u64 1 18 %8 = chk.bounds 3 %0 %2 %6 %7 19 %9 = store %8 %2 %6 %5 20 %10 = const i64 8 21 %11 = shr i64 %1 %10 22 %12 = conv u8 0 %11 23 %13 = const u64 1 24 %14 = const u64 1 25 %15 = chk.bounds 3 %9 %2 %13 %14 26 %16 = store %15 %2 %13 %12 27 %17 = const i64 16 28 %18 = shr i64 %1 %17 29 %19 = conv u8 0 %18 30 %20 = const u64 2 31 %21 = const u64 1 32 %22 = chk.bounds 3 %16 %2 %20 %21 33 %23 = store %22 %2 %20 %19 34 %24 = const i64 24 35 %25 = shr i64 %1 %24 36 %26 = conv u8 0 %25 37 %27 = const u64 3 38 %28 = const u64 1 39 %29 = chk.bounds 3 %23 %2 %27 %28 40 %30 = store %29 %2 %27 %26 41 %31 = const i64 32 42 %32 = shr i64 %1 %31 43 %33 = conv u8 0 %32 44 %34 = const u64 4 45 %35 = const u64 1 46 %36 = chk.bounds 3 %30 %2 %34 %35 47 %37 = store %36 %2 %34 %33 48 %38 = const i64 40 49 %39 = shr i64 %1 %38 50 %40 = conv u8 0 %39 51 %41 = const u64 5 52 %42 = const u64 1 53 %43 = chk.bounds 3 %37 %2 %41 %42 54 %44 = store %43 %2 %41 %40 55 %45 = const i64 48 56 %46 = shr i64 %1 %45 57 %47 = conv u8 0 %46 58 %48 = const u64 6 59 %49 = const u64 1 60 %50 = chk.bounds 3 %44 %2 %48 %49 61 %51 = store %50 %2 %48 %47 62 %52 = const i64 56 63 %53 = shr i64 %1 %52 64 %54 = conv u8 0 %53 65 %55 = const u64 7 66 %56 = const u64 1 67 %57 = chk.bounds 3 %51 %2 %55 %56 68 %58 = store %57 %2 %55 %54 69 %59 = const u64 0 70 %60 = const u64 8 71 %61 = chk.slice 3 %58 %2 %59 %60 72 %62 = const i32 1 73 %63 %64 = host i64 54 %61 %62 %2 %59 %60 74 ret %63 75 end 76 export @f1 flags 0 -> i32 77 block ^0 78 %1 = const u64 0 79 %2 = not u64 %1 80 %3 = chk.conv i32 5 %0 %2 81 %4 = conv i32 0 %2 82 %5 = const i64 0 83 %6 = const i64 31 84 %7 = conv i64 0 %1 85 %8 = mul i64 %5 %6 86 %9 = add i64 %8 %7 87 %10 = conv i64 0 %2 88 %11 = mul i64 %9 %6 89 %12 = add i64 %11 %10 90 %13 = conv i64 0 %4 91 %14 = mul i64 %12 %6 92 %15 = add i64 %14 %13 93 %16 = call void %3 @f0 %15 94 %17 = const i64 63 95 %18 = and i64 %15 %17 96 %19 = conv i32 0 %18 97 retv %16 %19 98 end