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-te.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-te.oir` 52 lines ยท 1199 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 = const u64 0 17 %5 = const u64 4 18 %6 = chk.bounds 3 %0 %1 %4 %5 19 %7 = const u64 3 20 %8 = load u8 %6 %1 %4 21 %9 = conv u64 0 %8 22 retv %6 %9 23 end 24 export @f1 flags 0 -> i32 25 block ^0 26 %1 = gaddr %t33 @g0 27 %2 = const u64 0 28 %3 = len u64 %1 29 %4 = chk.slice 3 %0 %1 %2 %3 30 %5 = slice %t34 %4 %1 %2 %3 31 %6 = const u64 7 32 %7 = const u64 4 33 %8 = chk.slice 3 %4 %5 %6 %7 34 %9 = slice %t34 %8 %5 %6 %7 35 %10 = const u64 7 36 %11 = const u64 3 37 %12 = chk.slice 3 %8 %5 %10 %11 38 %13 = slice %t34 %12 %5 %10 %11 39 %14 %15 = call u64 %12 @f0 %9 %2 %2 40 %16 = const u64 1 41 %17 = chk.bounds 3 %14 %5 %2 %16 42 %18 = const u64 48 43 %19 = add u64 %15 %18 44 %20 = conv u8 0 %19 45 %21 = store %17 %5 %2 %20 46 %22 = const i32 1 47 %23 = chk.slice 3 %21 %5 %2 %16 48 %24 %25 = host i64 54 %23 %22 %5 %2 %16 49 %26 %27 = call u64 %24 @f0 %13 %2 %2 50 %28 = conv i32 0 %27 51 retv %26 %28 52 end