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/a-mem.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 / a-mem.oir` 52 lines ยท 1275 bytes Raw Blame History 1 omegair 1 2 type %t32 = array u32 16 3 type %t33 = ref edit host %t32 4 type %t34 = array u8 4 5 type %t35 = struct 16 u64@0:le i32@8:le %t34@12:le 6 type %t36 = ref edit private %t35 7 type %t37 = slice edit host u32 8 type %t38 = vec u32 4 9 type %t39 = ref edit private %t34 10 type %t40 = ref view host %t34 11 global @g0 %t32 zero 12 global @g1 %t34 data `01020304` 13 export @f0 flags 0 -> i32 14 block ^0 15 %1 = gaddr %t33 @g0 16 %2 = const u64 3 17 %3 = const u64 1 18 %4 = chk.bounds 3 %0 %1 %2 %3 19 %5 = load u32 %4 %1 %2 20 %6 = const u32 7 21 %7 = add u32 %5 %6 22 %8 = store %4 %1 %2 %7 23 %9 = const u64 4 24 %10 = chk.bounds 3 %8 %1 %9 %9 25 %11 = vload %t38 %10 %1 %9 26 %12 = vsplat %t38 %6 27 %13 = add %t38 %11 %12 28 %14 = vstore %10 %1 %9 %13 29 %15 = vreduce u32 0 %13 30 %16 = vextract u32 2 %13 31 %17 = vinsert %t38 1 %13 %15 32 %18 = len u64 %1 33 %19 = const u64 0 34 %20 = chk.slice 3 %14 %1 %19 %18 35 %21 = slice %t37 %20 %1 %19 %18 36 fact.slice 0 %1 %19 %18 37 %22 = chk.bounds 3 %20 %21 %2 %3 38 %23 %24 = atom u32 512 %22 %21 %2 %6 39 %25 %26 = atomcas u32 512 %23 %21 %2 %24 %6 40 fact.inbounds 0 %21 %2 %3 41 %27 = fill %25 %21 %6 42 %28 %29 = alloca %t36 %27 43 %30 = fload u64 0 %28 %29 44 %31 = const i32 -1 45 %32 = fstore 1 %28 %29 %31 46 %33 = fref %t39 2 %29 47 %34 = gaddr %t40 @g1 48 %35 = const u32 0 49 fact.range 1 %5 %35 %6 50 %36 = conv i32 0 %15 51 retv %32 %36 52 end