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/b-bcopy.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 / b-bcopy.oir` 69 lines ยท 1415 bytes Raw Blame History 1 omegair 1 2 type %t32 = array u8 65536 3 type %t33 = ref edit host %t32 4 global @g0 %t32 zero 5 global @g1 %t32 zero 6 export @f0 flags 0 -> i32 7 block ^0 8 %1 = gaddr %t33 @g0 9 %2 = gaddr %t33 @g1 10 %3 = const u64 0 11 br ^1 %0 %3 12 block ^1 %4:tok %5:u64 13 %6 = const u64 65536 14 %7 = lt bool %5 %6 15 cbr %4 %7 ^2 ^3 16 block ^2 %8:tok 17 %9 = const u64 1 18 %10 = const u64 7 19 %11 = mul u64 %5 %10 20 %12 = const u64 255 21 %13 = and u64 %11 %12 22 %14 = chk.conv u8 5 %8 %13 23 %15 = conv u8 0 %13 24 %16 = chk.bounds 3 %14 %1 %5 %9 25 %17 = store %16 %1 %5 %15 26 %18 = add u64 %5 %9 27 br ^1 %17 %18 28 block ^3 %19:tok 29 %20 = const u64 0 30 br ^4 %19 %20 31 block ^4 %21:tok %22:u64 32 %23 = const u64 8 33 %24 = lt bool %22 %23 34 cbr %21 %24 ^5 ^6 35 block ^5 %25:tok 36 %26 = const u64 255 37 %27 = and u64 %22 %26 38 %28 = chk.conv u8 5 %25 %27 39 %29 = conv u8 0 %27 40 %30 = const u64 0 41 br ^7 %28 %30 42 block ^6 %31:tok 43 %32 = const u64 0 44 %33 = const u64 65536 45 %34 = const i32 1 46 %35 = chk.slice 3 %31 %2 %32 %33 47 %36 %37 = host i64 54 %35 %34 %2 %32 %33 48 %38 = const i32 0 49 retv %36 %38 50 block ^7 %39:tok %40:u64 51 %41 = const u64 65536 52 %42 = lt bool %40 %41 53 cbr %39 %42 ^8 ^9 54 block ^8 %43:tok 55 %44 = const u64 1 56 %45 = chk.bounds 3 %43 %1 %40 %44 57 %46 = load u8 %45 %1 %40 58 %47 = xor u8 %46 %29 59 %48 = const u64 65535 60 %49 = sub u64 %48 %40 61 %50 = chk.bounds 3 %45 %2 %49 %44 62 %51 = store %50 %2 %49 %47 63 %52 = add u64 %40 %44 64 br ^7 %51 %52 65 block ^9 %53:tok 66 %54 = const u64 1 67 %55 = add u64 %22 %54 68 br ^4 %53 %55 69 end