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/a64/tests/oir/s-ts2.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 / a64 / tests / oir / s-ts2.oir` 47 lines ยท 1089 bytes Raw Blame History 1 omegair 1 2 type %t32 = array u8 64 3 type %t33 = ref edit host %t32 4 type %t34 = slice edit host u8 5 type %t35 = array u32 16 6 type %t36 = ref edit host %t35 7 type %t37 = slice edit host u32 8 type %t38 = array u64 8 9 type %t39 = ref edit host %t38 10 type %t40 = slice edit host u64 11 global @g0 %t32 zero 12 global @g1 %t35 zero 13 global @g2 %t38 zero 14 fn @f0 flags 0 %1:%t34 %2:u64 %3:u64 -> u64 15 block ^0 16 %4 = chk.slice 3 %0 %1 %2 %3 17 %5 = slice %t34 %4 %1 %2 %3 18 %6 = len u64 %5 19 retv %4 %6 20 end 21 export @f1 flags 0 -> i32 22 block ^0 23 %1 = gaddr %t33 @g0 24 %2 = const u64 0 25 %3 = len u64 %1 26 %4 = chk.slice 3 %0 %1 %2 %3 27 %5 = slice %t34 %4 %1 %2 %3 28 %6 = const u64 2 29 %7 = const u64 16 30 %8 = chk.slice 3 %4 %5 %6 %7 31 %9 = slice %t34 %8 %5 %6 %7 32 %10 = const u64 16 33 %11 = const u64 17 34 %12 %13 = call u64 %8 @f0 %9 %10 %2 35 %14 = const u64 1 36 %15 = chk.bounds 3 %12 %5 %2 %14 37 %16 = const u64 48 38 %17 = add u64 %13 %16 39 %18 = conv u8 0 %17 40 %19 = store %15 %5 %2 %18 41 %20 = const i32 1 42 %21 = chk.slice 3 %19 %5 %2 %14 43 %22 %23 = host i64 54 %21 %20 %5 %2 %14 44 %24 %25 = call u64 %22 @f0 %9 %11 %2 45 %26 = conv i32 0 %25 46 retv %24 %26 47 end