#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int COLORS;
#define COLOR_BLACK 135
#define COLOR_BLUE 134
#define COLOR_CYAN 133
#define COLOR_GREEN 132
#define COLOR_MAGENTA 131
int /*<<< orphan*/ COLOR_PAIR(int);
int /*<<< orphan*/ COLOR_PAIRS;
#define COLOR_RED 130
#define COLOR_WHITE 129
#define COLOR_YELLOW 128
int /*<<< orphan*/ attroff(int /*<<< orphan*/);
int /*<<< orphan*/ attron(int /*<<< orphan*/);
int /*<<< orphan*/ curs_set(int /*<<< orphan*/);
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ getch();
int /*<<< orphan*/ init_pair(int, int, int);
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ printw(char *, ...);
int /*<<< orphan*/ start_color();
int /*<<< orphan*/ use_default_colors();
void ui_list_colors() {
  int i, pair = 0;
  initscr();
  curs_set(0);
  start_color();
  printw("Colors: %d  Color pairs: %d\n", COLORS, COLOR_PAIRS);
  printw("Standard colors\n");
  for (i = 0; i < 8; i++) {
    switch (i) {
    case COLOR_BLACK:
      printw("%-8s", "black");
      break;
    case COLOR_RED:
      printw("%-8s", "red");
      break;
    case COLOR_GREEN:
      printw("%-8s", "green");
      break;
    case COLOR_YELLOW:
      printw("%-8s", "yellow");
      break;
    case COLOR_BLUE:
      printw("%-8s", "blue");
      break;
    case COLOR_MAGENTA:
      printw("%-8s", "magenta");
      break;
    case COLOR_CYAN:
      printw("%-8s", "cyan");
      break;
    case COLOR_WHITE:
      printw("%-8s", "white");
      break;
    default:
      printw("%-8s", "");
    }
  }
  printw("\n");
  for (i = 0; i < 8; i++) {
    init_pair(++pair, i, 0);
    attron(COLOR_PAIR(pair));
    printw(" %2d ", i);
    init_pair(++pair, 0, i);
    attron(COLOR_PAIR(pair));
    printw(" %2d ", i);
    attroff(COLOR_PAIR(pair));
  }
  if (COLORS > 8) {
    printw("\nHigh-intensity colors\n");
    for (i = 8; i < 16; i++) {
      init_pair(++pair, i, 0);
      attron(COLOR_PAIR(pair));
      printw(" %2d ", i);
      init_pair(++pair, 0, i);
      attron(COLOR_PAIR(pair));
      printw(" %2d ", i);
      attroff(COLOR_PAIR(pair));
    }
    if (COLORS > 16) {
      printw("\n216 colors\n");
      for (i = 0; i < 6; i++) {
        int j;
        for (j = 0; j < 18; j++) {
          int bg = 16 + i * 36 + j;
          init_pair(++pair, 7, bg);
          attron(COLOR_PAIR(pair));
          printw(" %3d", bg);
          attroff(COLOR_PAIR(pair));
        }
        printw("\n");
      }
      for (i = 0; i < 6; i++) {
        int j;
        for (j = 18; j < 36; j++) {
          int bg = 16 + i * 36 + j;
          init_pair(++pair, 0, bg);
          attron(COLOR_PAIR(pair));
          printw(" %3d", bg);
          attroff(COLOR_PAIR(pair));
        }
        printw("\n");
      }
      printw("Grayscale colors\n");
      for (i = 0; i < 24; i++) {
        int bg = 232 + i;
        int fg = i >= 12 ? 0 : 7;
        init_pair(++pair, fg, bg);
        attron(COLOR_PAIR(pair));
        printw("%3d", bg);
        attroff(COLOR_PAIR(pair));
      }
    }
  }
  getch();
  endwin();
  use_default_colors();
}


x86 assembly (clang, -O0):
<ui_list_colors>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x8(%rbp)
mov    $0x0,%al
call   1060 <initscr@plt>
xor    %edi,%edi
call   10d0 <curs_set@plt>
mov    $0x0,%al
call   1070 <start_color@plt>
mov    0x2dfd(%rip),%rax
mov    (%rax),%esi
mov    0x2e04(%rip),%rax
mov    (%rax),%edx
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x8,-0x4(%rbp)
jge    1334 <ui_list_colors+0x184>
mov    -0x4(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x7,%eax
ja     130c <ui_list_colors+0x15c>
mov    -0x28(%rbp),%rax
lea    0xdcd(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe0b(%rip),%rdi
lea    0xe09(%rip),%rsi
mov    $0x0,%al
call   1090 <printw@plt>
jmp    1321 <ui_list_colors+0x171>
lea    0xdf1(%rip),%rdi
lea    0xdf5(%rip),%rsi
mov    $0x0,%al
call   1090 <printw@plt>
jmp    1321 <ui_list_colors+0x171>
lea    0xdd7(%rip),%rdi
lea    0xddf(%rip),%rsi
mov    $0x0,%al
call   1090 <printw@plt>
jmp    1321 <ui_list_colors+0x171>
lea    0xdbd(%rip),%rdi
lea    0xdcb(%rip),%rsi
mov    $0x0,%al
call   1090 <printw@plt>
jmp    1321 <ui_list_colors+0x171>
lea    0xda3(%rip),%rdi
lea    0xdb8(%rip),%rsi
mov    $0x0,%al
call   1090 <printw@plt>
jmp    1321 <ui_list_colors+0x171>
lea    0xd89(%rip),%rdi
lea    0xda3(%rip),%rsi
mov    $0x0,%al
call   1090 <printw@plt>
jmp    1321 <ui_list_colors+0x171>
lea    0xd6f(%rip),%rdi
lea    0xd91(%rip),%rsi
mov    $0x0,%al
call   1090 <printw@plt>
jmp    1321 <ui_list_colors+0x171>
lea    0xd55(%rip),%rdi
lea    0xd7c(%rip),%rsi
mov    $0x0,%al
call   1090 <printw@plt>
jmp    1321 <ui_list_colors+0x171>
lea    0xd3b(%rip),%rdi
lea    0xd22(%rip),%rsi
mov    $0x0,%al
call   1090 <printw@plt>
jmp    1326 <ui_list_colors+0x176>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1209 <ui_list_colors+0x59>
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x8,-0x4(%rbp)
jge    13d6 <ui_list_colors+0x226>
mov    -0x8(%rbp),%edi
add    $0x1,%edi
mov    %edi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
xor    %edx,%edx
call   1050 <init_pair@plt>
mov    -0x8(%rbp),%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    -0x4(%rbp),%esi
lea    0xd03(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
mov    -0x8(%rbp),%edi
add    $0x1,%edi
mov    %edi,-0x8(%rbp)
mov    -0x4(%rbp),%edx
xor    %esi,%esi
call   1050 <init_pair@plt>
mov    -0x8(%rbp),%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    -0x4(%rbp),%esi
lea    0xcd0(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
mov    -0x8(%rbp),%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1349 <ui_list_colors+0x199>
mov    0x2bfb(%rip),%rax
cmpl   $0x8,(%rax)
jle    1677 <ui_list_colors+0x4c7>
lea    0xc9b(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
movl   $0x8,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1488 <ui_list_colors+0x2d8>
mov    -0x8(%rbp),%edi
add    $0x1,%edi
mov    %edi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
xor    %edx,%edx
call   1050 <init_pair@plt>
mov    -0x8(%rbp),%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    -0x4(%rbp),%esi
lea    0xc51(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
mov    -0x8(%rbp),%edi
add    $0x1,%edi
mov    %edi,-0x8(%rbp)
mov    -0x4(%rbp),%edx
xor    %esi,%esi
call   1050 <init_pair@plt>
mov    -0x8(%rbp),%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    -0x4(%rbp),%esi
lea    0xc1e(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
mov    -0x8(%rbp),%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    13fb <ui_list_colors+0x24b>
mov    0x2b49(%rip),%rax
cmpl   $0x10,(%rax)
jle    1672 <ui_list_colors+0x4c2>
lea    0xc01(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x6,-0x4(%rbp)
jge    1544 <ui_list_colors+0x394>
movl   $0x0,-0xc(%rbp)
cmpl   $0x12,-0xc(%rbp)
jge    1528 <ui_list_colors+0x378>
imul   $0x24,-0x4(%rbp),%eax
add    $0x10,%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%edi
add    $0x1,%edi
mov    %edi,-0x8(%rbp)
mov    -0x10(%rbp),%edx
mov    $0x7,%esi
call   1050 <init_pair@plt>
mov    -0x8(%rbp),%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    -0x10(%rbp),%esi
lea    0xba9(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
mov    -0x8(%rbp),%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    14be <ui_list_colors+0x30e>
lea    0xb0c(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    14ad <ui_list_colors+0x2fd>
movl   $0x0,-0x4(%rbp)
cmpl   $0x6,-0x4(%rbp)
jge    15df <ui_list_colors+0x42f>
movl   $0x12,-0x14(%rbp)
cmpl   $0x24,-0x14(%rbp)
jge    15c3 <ui_list_colors+0x413>
imul   $0x24,-0x4(%rbp),%eax
add    $0x10,%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%edi
add    $0x1,%edi
mov    %edi,-0x8(%rbp)
mov    -0x18(%rbp),%edx
xor    %esi,%esi
call   1050 <init_pair@plt>
mov    -0x8(%rbp),%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    -0x18(%rbp),%esi
lea    0xb0e(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
mov    -0x8(%rbp),%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    155c <ui_list_colors+0x3ac>
lea    0xa71(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    154b <ui_list_colors+0x39b>
lea    0xacc(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x18,-0x4(%rbp)
jge    166d <ui_list_colors+0x4bd>
mov    -0x4(%rbp),%eax
add    $0xe8,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x4(%rbp),%edx
mov    $0x7,%eax
xor    %ecx,%ecx
cmp    $0xc,%edx
cmovge %ecx,%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%edi
add    $0x1,%edi
mov    %edi,-0x8(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
call   1050 <init_pair@plt>
mov    -0x8(%rbp),%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    -0x1c(%rbp),%esi
lea    0xa65(%rip),%rdi
mov    $0x0,%al
call   1090 <printw@plt>
mov    -0x8(%rbp),%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    15f4 <ui_list_colors+0x444>
jmp    1672 <ui_list_colors+0x4c2>
jmp    1677 <ui_list_colors+0x4c7>
mov    $0x0,%al
call   10b0 <getch@plt>
mov    $0x0,%al
call   10c0 <endwin@plt>
mov    $0x0,%al
call   1040 <use_default_colors@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ui_list_colors>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1060 <initscr@plt>
xor    %edi,%edi
call   10d0 <curs_set@plt>
xor    %eax,%eax
call   1070 <start_color@plt>
mov    0x2e01(%rip),%r12
mov    (%r12),%esi
mov    0x2e06(%rip),%rax
mov    (%rax),%edx
lea    0xe15(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
lea    0xe24(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
lea    0xe27(%rip),%rbx
lea    0xe0e(%rip),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <printw@plt>
lea    0xd9e(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
mov    $0x2,%ebx
lea    0xda3(%rip),%r14
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    -0x1(%rbx),%r15d
mov    %r15d,%edi
mov    %ebp,%esi
xor    %edx,%edx
call   1050 <init_pair@plt>
mov    %r15d,%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %ebx,%edi
xor    %esi,%esi
mov    %ebp,%edx
call   1050 <init_pair@plt>
mov    %ebx,%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %ebx,%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
add    $0x1,%ebp
add    $0x2,%ebx
cmp    $0x12,%ebx
jne    12a0 <ui_list_colors+0xf0>
cmpl   $0x9,(%r12)
jl     1555 <ui_list_colors+0x3a5>
lea    0xd1e(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
mov    $0x8,%ebx
mov    $0x11,%ebp
lea    0xd00(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebp,%edi
mov    %ebx,%esi
xor    %edx,%edx
call   1050 <init_pair@plt>
mov    %ebp,%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1090 <printw@plt>
lea    0x1(%rbp),%r15d
mov    %r15d,%edi
xor    %esi,%esi
mov    %ebx,%edx
call   1050 <init_pair@plt>
mov    %r15d,%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %r15d,%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
add    $0x1,%ebx
add    $0x2,%ebp
cmp    $0x21,%ebp
jne    1340 <ui_list_colors+0x190>
cmpl   $0x11,(%r12)
jl     1555 <ui_list_colors+0x3a5>
lea    0xc95(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
mov    $0x20,%ebp
mov    $0x10,%r12d
lea    0xc89(%rip),%r15
xor    %r13d,%r13d
nopl   0x0(%rax,%rax,1)
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%ebp
lea    (%r12,%r14,1),%ebx
mov    %ebp,%edi
mov    $0x7,%esi
mov    %ebx,%edx
call   1050 <init_pair@plt>
mov    %ebp,%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %ebp,%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
add    $0x1,%r14d
cmp    $0x12,%r14d
jne    13f0 <ui_list_colors+0x240>
lea    0xbdd(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
add    $0x1,%r13d
add    $0x24,%r12d
cmp    $0x6,%r13d
jne    13e0 <ui_list_colors+0x230>
mov    $0x22,%r12d
lea    0xbfe(%rip),%r14
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%ebp
xor    %r15d,%r15d
mov    %ebp,%ebx
nopl   0x0(%rax,%rax,1)
lea    (%r12,%r15,1),%ebp
mov    %ebx,%edi
xor    %esi,%esi
mov    %ebp,%edx
call   1050 <init_pair@plt>
mov    %ebx,%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %ebx,%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
add    $0x1,%ebx
add    $0x1,%r15d
cmp    $0x12,%r15d
jne    1480 <ui_list_colors+0x2d0>
lea    0xb50(%rip),%rdi
xor    %eax,%eax
call   1090 <printw@plt>
add    $0x1,%r13d
lea    -0x1(%rbx),%ebp
add    $0x24,%r12d
cmp    $0x6,%r13d
jne    1470 <ui_list_colors+0x2c0>
lea    0xb79(%rip),%rdi
xor    %r12d,%r12d
xor    %eax,%eax
call   1090 <printw@plt>
lea    0xb64(%rip),%r14
xor    %ebp,%ebp
nopl   (%rax)
cmp    $0xc,%ebp
mov    $0x7,%esi
cmovae %r12d,%esi
lea    (%rbx,%rbp,1),%r13d
lea    0xe8(%rbp),%r15d
mov    %r13d,%edi
mov    %r15d,%edx
call   1050 <init_pair@plt>
mov    %r13d,%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1080 <attron@plt>
mov    %r14,%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1090 <printw@plt>
mov    %r13d,%edi
call   10a0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
add    $0x1,%ebp
cmp    $0x18,%ebp
jne    1500 <ui_list_colors+0x350>
xor    %eax,%eax
call   10b0 <getch@plt>
xor    %eax,%eax
call   10c0 <endwin@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <use_default_colors@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"Colors: %d Color pairs: %d\0A\00"
@COLORS = global i32 0
@COLOR_PAIRS = global i32 0
@.str.1 = [17 x i8] c"Standard colors\0A\00"
@.str.2 = [5 x i8] c"%-8s\00"
@.str.3 = [6 x i8] c"black\00"
@.str.4 = [4 x i8] c"red\00"
@.str.5 = [6 x i8] c"green\00"
@.str.6 = [7 x i8] c"yellow\00"
@.str.7 = [5 x i8] c"blue\00"
@.str.8 = [8 x i8] c"magenta\00"
@.str.9 = [5 x i8] c"cyan\00"
@.str.10 = [6 x i8] c"white\00"
@.str.11 = [1 x i8] zeroinitializer
@.str.12 = [2 x i8] c"\0A\00"
@.str.13 = [6 x i8] c" %2d \00"
@.str.14 = [24 x i8] c"\0AHigh-intensity colors\0A\00"
@.str.15 = [13 x i8] c"\0A216 colors\0A\00"
@.str.16 = [5 x i8] c" %3d\00"
@.str.17 = [18 x i8] c"Grayscale colors\0A\00"
@.str.18 = [4 x i8] c"%3d\00"
define void @ui_list_colors() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %2
%9 = call i32 (...) @initscr()
%10 = call i32 @curs_set(i32 0)
%11 = call i32 (...) @start_color()
%12 = load i32, i32* @COLORS
%13 = load i32, i32* @COLOR_PAIRS
%14 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %13)
%15 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %16
16: ; preds = %40, %0
%17 = load i32, i32* %1
%18 = icmp slt i32 %17, 8
br i1 %18, label %19, label %43
19: ; preds = %16
%20 = load i32, i32* %1
switch i32 %20, label %37 [
i32 135, label %21
i32 130, label %23
i32 132, label %25
i32 128, label %27
i32 134, label %29
i32 131, label %31
i32 133, label %33
i32 129, label %35
]
21: ; preds = %19
%22 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %39
23: ; preds = %19
%24 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %39
25: ; preds = %19
%26 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
br label %39
27: ; preds = %19
%28 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %39
29: ; preds = %19
%30 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %39
31: ; preds = %19
%32 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
br label %39
33: ; preds = %19
%34 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
br label %39
35: ; preds = %19
%36 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %39
37: ; preds = %19
%38 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
br label %39
39: ; preds = %37, %35, %33, %31, %29, %27, %25, %23, %21
br label %40
40: ; preds = %39
%41 = load i32, i32* %1
%42 = add nsw i32 %41, 1
store i32 %42, i32* %1
br label %16
43: ; preds = %16
%44 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %1
br label %45
45: ; preds = %70, %43
%46 = load i32, i32* %1
%47 = icmp slt i32 %46, 8
br i1 %47, label %48, label %73
48: ; preds = %45
%49 = load i32, i32* %2
%50 = add nsw i32 %49, 1
store i32 %50, i32* %2
%51 = load i32, i32* %1
%52 = call i32 @init_pair(i32 %50, i32 %51, i32 0)
%53 = load i32, i32* %2
%54 = call i32 @COLOR_PAIR(i32 %53)
%55 = call i32 @attron(i32 %54)
%56 = load i32, i32* %1
%57 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i32 %56)
%58 = load i32, i32* %2
%59 = add nsw i32 %58, 1
store i32 %59, i32* %2
%60 = load i32, i32* %1
%61 = call i32 @init_pair(i32 %59, i32 0, i32 %60)
%62 = load i32, i32* %2
%63 = call i32 @COLOR_PAIR(i32 %62)
%64 = call i32 @attron(i32 %63)
%65 = load i32, i32* %1
%66 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i32 %65)
%67 = load i32, i32* %2
%68 = call i32 @COLOR_PAIR(i32 %67)
%69 = call i32 @attroff(i32 %68)
br label %70
70: ; preds = %48
%71 = load i32, i32* %1
%72 = add nsw i32 %71, 1
store i32 %72, i32* %1
br label %45
73: ; preds = %45
%74 = load i32, i32* @COLORS
%75 = icmp sgt i32 %74, 8
br i1 %75, label %76, label %208
76: ; preds = %73
%77 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.14, i64 0, i64 0))
store i32 8, i32* %1
br label %78
78: ; preds = %103, %76
%79 = load i32, i32* %1
%80 = icmp slt i32 %79, 16
br i1 %80, label %81, label %106
81: ; preds = %78
%82 = load i32, i32* %2
%83 = add nsw i32 %82, 1
store i32 %83, i32* %2
%84 = load i32, i32* %1
%85 = call i32 @init_pair(i32 %83, i32 %84, i32 0)
%86 = load i32, i32* %2
%87 = call i32 @COLOR_PAIR(i32 %86)
%88 = call i32 @attron(i32 %87)
%89 = load i32, i32* %1
%90 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i32 %89)
%91 = load i32, i32* %2
%92 = add nsw i32 %91, 1
store i32 %92, i32* %2
%93 = load i32, i32* %1
%94 = call i32 @init_pair(i32 %92, i32 0, i32 %93)
%95 = load i32, i32* %2
%96 = call i32 @COLOR_PAIR(i32 %95)
%97 = call i32 @attron(i32 %96)
%98 = load i32, i32* %1
%99 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i32 %98)
%100 = load i32, i32* %2
%101 = call i32 @COLOR_PAIR(i32 %100)
%102 = call i32 @attroff(i32 %101)
br label %103
103: ; preds = %81
%104 = load i32, i32* %1
%105 = add nsw i32 %104, 1
store i32 %105, i32* %1
br label %78
106: ; preds = %78
%107 = load i32, i32* @COLORS
%108 = icmp sgt i32 %107, 16
br i1 %108, label %109, label %207
109: ; preds = %106
%110 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
store i32 0, i32* %1
br label %111
111: ; preds = %141, %109
%112 = load i32, i32* %1
%113 = icmp slt i32 %112, 6
br i1 %113, label %114, label %144
114: ; preds = %111
store i32 0, i32* %3
br label %115
115: ; preds = %136, %114
%116 = load i32, i32* %3
%117 = icmp slt i32 %116, 18
br i1 %117, label %118, label %139
118: ; preds = %115
%119 = load i32, i32* %1
%120 = mul nsw i32 %119, 36
%121 = add nsw i32 16, %120
%122 = load i32, i32* %3
%123 = add nsw i32 %121, %122
store i32 %123, i32* %4
%124 = load i32, i32* %2
%125 = add nsw i32 %124, 1
store i32 %125, i32* %2
%126 = load i32, i32* %4
%127 = call i32 @init_pair(i32 %125, i32 7, i32 %126)
%128 = load i32, i32* %2
%129 = call i32 @COLOR_PAIR(i32 %128)
%130 = call i32 @attron(i32 %129)
%131 = load i32, i32* %4
%132 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 %131)
%133 = load i32, i32* %2
%134 = call i32 @COLOR_PAIR(i32 %133)
%135 = call i32 @attroff(i32 %134)
br label %136
136: ; preds = %118
%137 = load i32, i32* %3
%138 = add nsw i32 %137, 1
store i32 %138, i32* %3
br label %115
139: ; preds = %115
%140 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
br label %141
141: ; preds = %139
%142 = load i32, i32* %1
%143 = add nsw i32 %142, 1
store i32 %143, i32* %1
br label %111
144: ; preds = %111
store i32 0, i32* %1
br label %145
145: ; preds = %175, %144
%146 = load i32, i32* %1
%147 = icmp slt i32 %146, 6
br i1 %147, label %148, label %178
148: ; preds = %145
store i32 18, i32* %5
br label %149
149: ; preds = %170, %148
%150 = load i32, i32* %5
%151 = icmp slt i32 %150, 36
br i1 %151, label %152, label %173
152: ; preds = %149
%153 = load i32, i32* %1
%154 = mul nsw i32 %153, 36
%155 = add nsw i32 16, %154
%156 = load i32, i32* %5
%157 = add nsw i32 %155, %156
store i32 %157, i32* %6
%158 = load i32, i32* %2
%159 = add nsw i32 %158, 1
store i32 %159, i32* %2
%160 = load i32, i32* %6
%161 = call i32 @init_pair(i32 %159, i32 0, i32 %160)
%162 = load i32, i32* %2
%163 = call i32 @COLOR_PAIR(i32 %162)
%164 = call i32 @attron(i32 %163)
%165 = load i32, i32* %6
%166 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 %165)
%167 = load i32, i32* %2
%168 = call i32 @COLOR_PAIR(i32 %167)
%169 = call i32 @attroff(i32 %168)
br label %170
170: ; preds = %152
%171 = load i32, i32* %5
%172 = add nsw i32 %171, 1
store i32 %172, i32* %5
br label %149
173: ; preds = %149
%174 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
br label %175
175: ; preds = %173
%176 = load i32, i32* %1
%177 = add nsw i32 %176, 1
store i32 %177, i32* %1
br label %145
178: ; preds = %145
%179 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0))
store i32 0, i32* %1
br label %180
180: ; preds = %203, %178
%181 = load i32, i32* %1
%182 = icmp slt i32 %181, 24
br i1 %182, label %183, label %206
183: ; preds = %180
%184 = load i32, i32* %1
%185 = add nsw i32 232, %184
store i32 %185, i32* %7
%186 = load i32, i32* %1
%187 = icmp sge i32 %186, 12
%188 = zext i1 %187 to i64
%189 = select i1 %187, i32 0, i32 7
store i32 %189, i32* %8
%190 = load i32, i32* %2
%191 = add nsw i32 %190, 1
store i32 %191, i32* %2
%192 = load i32, i32* %8
%193 = load i32, i32* %7
%194 = call i32 @init_pair(i32 %191, i32 %192, i32 %193)
%195 = load i32, i32* %2
%196 = call i32 @COLOR_PAIR(i32 %195)
%197 = call i32 @attron(i32 %196)
%198 = load i32, i32* %7
%199 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %198)
%200 = load i32, i32* %2
%201 = call i32 @COLOR_PAIR(i32 %200)
%202 = call i32 @attroff(i32 %201)
br label %203
203: ; preds = %183
%204 = load i32, i32* %1
%205 = add nsw i32 %204, 1
store i32 %205, i32* %1
br label %180
206: ; preds = %180
br label %207
207: ; preds = %206, %106
br label %208
208: ; preds = %207, %73
%209 = call i32 (...) @getch()
%210 = call i32 (...) @endwin()
%211 = call i32 (...) @use_default_colors()
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"Colors: %d Color pairs: %d\0A\00"
@COLORS = global i32 0
@COLOR_PAIRS = global i32 0
@.str.1 = [17 x i8] c"Standard colors\0A\00"
@.str.2 = [5 x i8] c"%-8s\00"
@.str.11 = [1 x i8] zeroinitializer
@.str.12 = [2 x i8] c"\0A\00"
@.str.13 = [6 x i8] c" %2d \00"
@.str.14 = [24 x i8] c"\0AHigh-intensity colors\0A\00"
@.str.15 = [13 x i8] c"\0A216 colors\0A\00"
@.str.16 = [5 x i8] c" %3d\00"
@.str.17 = [18 x i8] c"Grayscale colors\0A\00"
@.str.18 = [4 x i8] c"%3d\00"
define void @ui_list_colors() {
%1 = tail call i32 (...) @initscr()
%2 = tail call i32 @curs_set(i32 0)
%3 = tail call i32 (...) @start_color()
%4 = load i32, i32* @COLORS
%5 = load i32, i32* @COLOR_PAIRS
%6 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %5)
%7 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.11, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
br label %17
17: ; preds = %0, %17
%18 = phi i32 [ 0, %0 ], [ %32, %17 ]
%19 = phi i32 [ 0, %0 ], [ %25, %17 ]
%20 = or i32 %19, 1
%21 = tail call i32 @init_pair(i32 %20, i32 %18, i32 0)
%22 = tail call i32 @COLOR_PAIR(i32 %20)
%23 = tail call i32 @attron(i32 %22)
%24 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i32 %18)
%25 = add nuw nsw i32 %19, 2
%26 = tail call i32 @init_pair(i32 %25, i32 0, i32 %18)
%27 = tail call i32 @COLOR_PAIR(i32 %25)
%28 = tail call i32 @attron(i32 %27)
%29 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i32 %18)
%30 = tail call i32 @COLOR_PAIR(i32 %25)
%31 = tail call i32 @attroff(i32 %30)
%32 = add nuw nsw i32 %18, 1
%33 = icmp eq i32 %32, 8
br i1 %33, label %34, label %17
34: ; preds = %17
%35 = load i32, i32* @COLORS
%36 = icmp sgt i32 %35, 8
br i1 %36, label %37, label %122
37: ; preds = %34
%38 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.14, i64 0, i64 0))
br label %39
39: ; preds = %37, %39
%40 = phi i32 [ 8, %37 ], [ %54, %39 ]
%41 = phi i32 [ 16, %37 ], [ %47, %39 ]
%42 = or i32 %41, 1
%43 = tail call i32 @init_pair(i32 %42, i32 %40, i32 0)
%44 = tail call i32 @COLOR_PAIR(i32 %42)
%45 = tail call i32 @attron(i32 %44)
%46 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i32 %40)
%47 = add nuw nsw i32 %41, 2
%48 = tail call i32 @init_pair(i32 %47, i32 0, i32 %40)
%49 = tail call i32 @COLOR_PAIR(i32 %47)
%50 = tail call i32 @attron(i32 %49)
%51 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i32 %40)
%52 = tail call i32 @COLOR_PAIR(i32 %47)
%53 = tail call i32 @attroff(i32 %52)
%54 = add nuw nsw i32 %40, 1
%55 = icmp eq i32 %54, 16
br i1 %55, label %56, label %39
56: ; preds = %39
%57 = load i32, i32* @COLORS
%58 = icmp sgt i32 %57, 16
br i1 %58, label %59, label %122
59: ; preds = %56
%60 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
br label %61
61: ; preds = %59, %79
%62 = phi i32 [ 0, %59 ], [ %81, %79 ]
%63 = phi i32 [ 32, %59 ], [ %70, %79 ]
%64 = mul nuw nsw i32 %62, 36
%65 = add nuw nsw i32 %64, 16
br label %66
66: ; preds = %61, %66
%67 = phi i32 [ %63, %61 ], [ %70, %66 ]
%68 = phi i32 [ 0, %61 ], [ %77, %66 ]
%69 = add nuw nsw i32 %65, %68
%70 = add nsw i32 %67, 1
%71 = tail call i32 @init_pair(i32 %70, i32 7, i32 %69)
%72 = tail call i32 @COLOR_PAIR(i32 %70)
%73 = tail call i32 @attron(i32 %72)
%74 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 %69)
%75 = tail call i32 @COLOR_PAIR(i32 %70)
%76 = tail call i32 @attroff(i32 %75)
%77 = add nuw nsw i32 %68, 1
%78 = icmp eq i32 %77, 18
br i1 %78, label %79, label %66
79: ; preds = %66
%80 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%81 = add nuw nsw i32 %62, 1
%82 = icmp eq i32 %81, 6
br i1 %82, label %83, label %61
83: ; preds = %79, %101
%84 = phi i32 [ %103, %101 ], [ 0, %79 ]
%85 = phi i32 [ %92, %101 ], [ %70, %79 ]
%86 = mul nuw nsw i32 %84, 36
%87 = add nuw nsw i32 %86, 16
br label %88
88: ; preds = %83, %88
%89 = phi i32 [ %85, %83 ], [ %92, %88 ]
%90 = phi i32 [ 18, %83 ], [ %99, %88 ]
%91 = add nuw nsw i32 %87, %90
%92 = add nsw i32 %89, 1
%93 = tail call i32 @init_pair(i32 %92, i32 0, i32 %91)
%94 = tail call i32 @COLOR_PAIR(i32 %92)
%95 = tail call i32 @attron(i32 %94)
%96 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 %91)
%97 = tail call i32 @COLOR_PAIR(i32 %92)
%98 = tail call i32 @attroff(i32 %97)
%99 = add nuw nsw i32 %90, 1
%100 = icmp eq i32 %99, 36
br i1 %100, label %101, label %88
101: ; preds = %88
%102 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%103 = add nuw nsw i32 %84, 1
%104 = icmp eq i32 %103, 6
br i1 %104, label %105, label %83
105: ; preds = %101
%106 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0))
br label %107
107: ; preds = %105, %107
%108 = phi i32 [ 0, %105 ], [ %120, %107 ]
%109 = phi i32 [ %92, %105 ], [ %113, %107 ]
%110 = add nuw nsw i32 %108, 232
%111 = icmp ugt i32 %108, 11
%112 = select i1 %111, i32 0, i32 7
%113 = add nsw i32 %109, 1
%114 = tail call i32 @init_pair(i32 %113, i32 %112, i32 %110)
%115 = tail call i32 @COLOR_PAIR(i32 %113)
%116 = tail call i32 @attron(i32 %115)
%117 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %110)
%118 = tail call i32 @COLOR_PAIR(i32 %113)
%119 = tail call i32 @attroff(i32 %118)
%120 = add nuw nsw i32 %108, 1
%121 = icmp eq i32 %120, 24
br i1 %121, label %122, label %107
122: ; preds = %107, %56, %34
%123 = tail call i32 (...) @getch()
%124 = tail call i32 (...) @endwin()
%125 = tail call i32 (...) @use_default_colors()
ret void
}