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-ts.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-ts.oir` 49 lines ยท 1127 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 4 33 %11 = const u64 12 34 %12 = const u64 5 35 %13 = const u64 12 36 %14 %15 = call u64 %8 @f0 %9 %10 %11 37 %16 = const u64 1 38 %17 = chk.bounds 3 %14 %5 %2 %16 39 %18 = const u64 48 40 %19 = add u64 %15 %18 41 %20 = conv u8 0 %19 42 %21 = store %17 %5 %2 %20 43 %22 = const i32 1 44 %23 = chk.slice 3 %21 %5 %2 %16 45 %24 %25 = host i64 54 %23 %22 %5 %2 %16 46 %26 %27 = call u64 %24 @f0 %9 %12 %13 47 %28 = conv i32 0 %27 48 retv %26 %28 49 end