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/opt/o-pool-loop.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 / opt / o-pool-loop.oir` 75 lines ยท 1576 bytes Raw Blame History 1 omegair 1 2 global @g0 u64 pool 3 export @f0 flags 0 -> i32 4 block ^0 5 %1 = const u64 0 6 %2 = const u64 0 7 br ^1 %0 %1 %2 8 block ^1 %3:tok %4:u64 %5:u64 9 %6 = const u64 64 10 %7 = lt bool %4 %6 11 cbr %3 %7 ^2 ^3 12 block ^2 %8:tok 13 %9 = const u64 `1000000` 14 %10 = chk.fuel 4 %8 %5 %9 15 %11 = const u64 1 16 %12 = add u64 %5 %11 17 %13 = pool.len u64 @g0 %10 18 %14 = ge bool %4 %13 19 cbr %10 %14 ^4 ^5 20 block ^3 %15:tok 21 %16 = const u64 0 22 %17 = const u64 0 23 %18 = const u64 0 24 br ^10 %15 %4 %16 %17 %18 25 block ^4 %19:tok 26 %20 = pool.len u64 @g0 %19 27 %21 = const u64 2 28 %22 = mul u64 %20 %21 29 %23 = const u64 1 30 %24 = add u64 %22 %23 31 %25 %26 = pool.grow i64 @g0 %19 %24 32 %27 = const i64 0 33 %28 = ne bool %26 %27 34 cbr %25 %28 ^6 ^7 35 block ^5 %29:tok 36 br ^9 %29 %4 %12 37 block ^6 %30:tok 38 %31 = const i32 2 39 retv %30 %31 40 block ^7 %32:tok 41 br ^8 %32 %4 %12 %26 42 block ^8 %33:tok %34:u64 %35:u64 %36:i64 43 br ^9 %33 %34 %35 44 block ^9 %37:tok %38:u64 %39:u64 45 %40 = pool.store @g0 %37 %38 %38 46 %41 = const u64 1 47 %42 = add u64 %38 %41 48 br ^1 %40 %42 %39 49 block ^10 %43:tok %44:u64 %45:u64 %46:u64 %47:u64 50 %48 = const u64 64 51 %49 = lt bool %46 %48 52 cbr %43 %49 ^11 ^12 53 block ^11 %50:tok 54 %51 = const u64 `1000000` 55 %52 = chk.fuel 4 %50 %47 %51 56 %53 = const u64 1 57 %54 = add u64 %47 %53 58 %55 = pool.load u64 @g0 %52 %46 59 %56 = add u64 %45 %55 60 %57 = const u64 1 61 %58 = add u64 %46 %57 62 br ^10 %52 %44 %56 %58 %54 63 block ^12 %59:tok 64 %60 = const u64 2016 65 %61 = ne bool %45 %60 66 cbr %59 %61 ^13 ^14 67 block ^13 %62:tok 68 %63 = const i32 1 69 retv %62 %63 70 block ^14 %64:tok 71 br ^15 %64 %44 %45 %46 72 block ^15 %65:tok %66:u64 %67:u64 %68:u64 73 %69 = const i32 7 74 retv %65 %69 75 end