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/h-mono.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 / h-mono.oir` 74 lines ยท 1549 bytes Raw Blame History 1 omegair 1 2 fn @f0 flags 0 %1:u64 -> u64 3 block ^0 4 %2 = const u64 0 5 %3 = const u64 0 6 %4 = const u64 0 7 br ^1 %0 %1 %2 %3 %4 8 block ^1 %5:tok %6:u64 %7:u64 %8:u64 %9:u64 9 %10 = lt bool %8 %6 10 cbr %5 %10 ^2 ^3 11 block ^2 %11:tok 12 %12 = const u64 `1000000` 13 %13 = chk.fuel 4 %11 %9 %12 14 %14 = const u64 1 15 %15 = add u64 %9 %14 16 %16 = const u64 3 17 %17 = chk.shift 7 %13 %16 18 %18 = shr u64 %8 %16 19 %19 = xor u64 %8 %18 20 %20 = add u64 %7 %19 21 br ^4 %17 %6 %20 %8 %15 22 block ^3 %21:tok 23 retv %21 %7 24 block ^4 %22:tok %23:u64 %24:u64 %25:u64 %26:u64 25 %27 = const u64 1 26 %28 = add u64 %25 %27 27 br ^1 %22 %23 %24 %28 %26 28 end 29 export @f1 flags 0 -> i32 30 block ^0 31 %1 %2 = host i64 109 %0 32 %3 = const u64 100000 33 %4 %5 = call u64 %1 @f0 %3 34 %6 %7 = host i64 109 %4 35 %8 = const i64 `1000000000` 36 %9 = le bool %2 %8 37 cbr %6 %9 ^1 ^2 38 block ^1 %10:tok 39 %11 = const i32 1 40 retv %10 %11 41 block ^2 %12:tok 42 br ^3 %12 %2 %5 %7 43 block ^3 %13:tok %14:i64 %15:u64 %16:i64 44 %17 = lt bool %16 %14 45 cbr %13 %17 ^4 ^5 46 block ^4 %18:tok 47 %19 = const i32 2 48 retv %18 %19 49 block ^5 %20:tok 50 br ^6 %20 %14 %15 %16 51 block ^6 %21:tok %22:i64 %23:u64 %24:i64 52 %25 = chk.sub 1 %21 %24 %22 53 %26 = sub i64 %24 %22 54 %27 = const i64 `1000000000000` 55 %28 = ge bool %26 %27 56 cbr %25 %28 ^7 ^8 57 block ^7 %29:tok 58 %30 = const i32 3 59 retv %29 %30 60 block ^8 %31:tok 61 br ^9 %31 %22 %23 %24 62 block ^9 %32:tok %33:i64 %34:u64 %35:i64 63 %36 = const u64 0 64 %37 = eq bool %34 %36 65 cbr %32 %37 ^10 ^11 66 block ^10 %38:tok 67 %39 = const i32 4 68 retv %38 %39 69 block ^11 %40:tok 70 br ^12 %40 %33 %34 %35 71 block ^12 %41:tok %42:i64 %43:u64 %44:i64 72 %45 = const i32 7 73 retv %41 %45 74 end