#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 */
typedef int /*<<< orphan*/ time_t;

/* Variables and functions */
int COLOR_BLACK;
int /*<<< orphan*/ COLOR_BLUE;
int /*<<< orphan*/ COLOR_CYAN;
int COLS;
int EXIT_SUCCESS;
int /*<<< orphan*/ FALSE;
int LINES;
int /*<<< orphan*/ TRUE;
int /*<<< orphan*/ curs_set(int);
int /*<<< orphan*/ endwin();
int getch();
scalar_t__ has_colors();
int /*<<< orphan*/ init_pair(int, int /*<<< orphan*/, int);
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ keypad(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ mvaddch(int, int, char);
int /*<<< orphan*/ mvaddstr(int, int, char *);
int /*<<< orphan*/ napms(int);
int next_j(int);
int /*<<< orphan*/ nl();
int /*<<< orphan*/ nodelay(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ noecho();
int rand();
int /*<<< orphan*/ srand(int);
int /*<<< orphan*/ start_color();
int /*<<< orphan*/ stdscr;
int time(int /*<<< orphan*/ *);
int /*<<< orphan*/ timeout(int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  int x, y, j, r, c, seed;
  static int xpos[5], ypos[5];
  initscr();
  seed = time((time_t *)0);
  srand(seed);
  if (has_colors()) {
    int bg = COLOR_BLACK;
    start_color();
    init_pair(1, COLOR_BLUE, bg);
    init_pair(2, COLOR_CYAN, bg);
  }
  nl();
  noecho();
  curs_set(0);
  timeout(0);
  keypad(stdscr, TRUE);
  r = LINES - 4;
  c = COLS - 4;
  for (j = 5; --j >= 0;) {
    xpos[j] = rand() % c + 2;
    ypos[j] = rand() % r + 2;
  }
  for (j = 0;;) {
    x = rand() % c + 2;
    y = rand() % r + 2;
    mvaddch(y, x, '.');
    mvaddch(ypos[j], xpos[j], 'o');
    j = next_j(j);
    mvaddch(ypos[j], xpos[j], 'O');
    j = next_j(j);
    mvaddch(ypos[j] - 1, xpos[j], '-');
    mvaddstr(ypos[j], xpos[j] - 1, "|.|");
    mvaddch(ypos[j] + 1, xpos[j], '-');
    j = next_j(j);
    mvaddch(ypos[j] - 2, xpos[j], '-');
    mvaddstr(ypos[j] - 1, xpos[j] - 1, "/ \\");
    mvaddstr(ypos[j], xpos[j] - 2, "| O |");
    mvaddstr(ypos[j] + 1, xpos[j] - 1, "\\ /");
    mvaddch(ypos[j] + 2, xpos[j], '-');
    j = next_j(j);
    mvaddch(ypos[j] - 2, xpos[j], ' ');
    mvaddstr(ypos[j] - 1, xpos[j] - 1, "   ");
    mvaddstr(ypos[j], xpos[j] - 2, "     ");
    mvaddstr(ypos[j] + 1, xpos[j] - 1, "   ");
    mvaddch(ypos[j] + 2, xpos[j], ' ');
    xpos[j] = x;
    ypos[j] = y;
    switch (getch()) {
    case 'q':
    case 'Q':
      curs_set(1);
      endwin();
      return EXIT_SUCCESS;
    case 's':
      nodelay(stdscr, FALSE);
      break;
    case ' ':
      nodelay(stdscr, TRUE);
    }
    napms(50);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1070 <initscr@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10b0 <time@plt>
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%edi
call   10a0 <srand@plt>
mov    $0x0,%al
call   1040 <has_colors@plt>
cmp    $0x0,%rax
je     12b1 <main+0x81>
mov    0x2d57(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    $0x0,%al
call   1080 <start_color@plt>
mov    0x2d1c(%rip),%rax
mov    (%rax),%esi
mov    -0x2c(%rbp),%edx
mov    $0x1,%edi
call   1050 <init_pair@plt>
mov    0x2d26(%rip),%rax
mov    (%rax),%esi
mov    -0x2c(%rbp),%edx
mov    $0x2,%edi
call   1050 <init_pair@plt>
mov    $0x0,%al
call   1030 <nl@plt>
mov    $0x0,%al
call   1100 <noecho@plt>
xor    %edi,%edi
call   1140 <curs_set@plt>
xor    %edi,%edi
call   1090 <timeout@plt>
mov    0x2d0c(%rip),%rax
mov    (%rax),%edi
mov    0x2cfb(%rip),%rax
mov    (%rax),%esi
call   1060 <keypad@plt>
mov    0x2cfd(%rip),%rax
mov    (%rax),%eax
sub    $0x4,%eax
mov    %eax,-0x20(%rbp)
mov    0x2cc6(%rip),%rax
mov    (%rax),%eax
sub    $0x4,%eax
mov    %eax,-0x24(%rbp)
movl   $0x5,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
cmp    $0x0,%eax
jl     1358 <main+0x128>
mov    $0x0,%al
call   1150 <rand@plt>
cltd
idivl  -0x24(%rbp)
add    $0x2,%edx
movslq -0x1c(%rbp),%rcx
lea    0x2d9c(%rip),%rax
mov    %edx,(%rax,%rcx,4)
mov    $0x0,%al
call   1150 <rand@plt>
cltd
idivl  -0x20(%rbp)
add    $0x2,%edx
movslq -0x1c(%rbp),%rcx
lea    0x2da0(%rip),%rax
mov    %edx,(%rax,%rcx,4)
jmp    1309 <main+0xd9>
movl   $0x0,-0x1c(%rbp)
xor    %eax,%eax
mov    %al,-0x31(%rbp)
call   1150 <rand@plt>
mov    -0x24(%rbp),%ecx
cltd
idiv   %ecx
mov    -0x31(%rbp),%al
add    $0x2,%edx
mov    %edx,-0x14(%rbp)
call   1150 <rand@plt>
mov    -0x20(%rbp),%ecx
cltd
idiv   %ecx
add    $0x2,%edx
mov    %edx,-0x18(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    $0x2e,%edx
call   1110 <mvaddch@plt>
movslq -0x1c(%rbp),%rcx
lea    0x2d4c(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    (%rax,%rcx,4),%edi
lea    0x2d1e(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    (%rax,%rcx,4),%esi
mov    $0x6f,%edx
call   1110 <mvaddch@plt>
mov    -0x1c(%rbp),%edi
call   10c0 <next_j@plt>
mov    -0x40(%rbp),%rdx
mov    %eax,%ecx
mov    -0x48(%rbp),%rax
mov    %ecx,-0x1c(%rbp)
movslq -0x1c(%rbp),%rcx
mov    (%rdx,%rcx,4),%edi
mov    (%rax,%rcx,4),%esi
mov    $0x4f,%edx
call   1110 <mvaddch@plt>
mov    -0x1c(%rbp),%edi
call   10c0 <next_j@plt>
mov    -0x40(%rbp),%rdx
mov    %eax,%ecx
mov    -0x48(%rbp),%rax
mov    %ecx,-0x1c(%rbp)
movslq -0x1c(%rbp),%rcx
mov    (%rdx,%rcx,4),%edi
add    $0xffffffff,%edi
mov    (%rax,%rcx,4),%esi
mov    $0x2d,%edx
mov    %edx,-0x5c(%rbp)
call   1110 <mvaddch@plt>
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rdx,%rcx,4),%edi
mov    (%rax,%rcx,4),%esi
add    $0xffffffff,%esi
lea    0xbc9(%rip),%rdx
call   1120 <mvaddstr@plt>
mov    -0x5c(%rbp),%edx
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rsi,%rcx,4),%edi
add    $0x1,%edi
mov    (%rax,%rcx,4),%esi
call   1110 <mvaddch@plt>
mov    -0x1c(%rbp),%edi
call   10c0 <next_j@plt>
mov    -0x5c(%rbp),%edx
mov    -0x40(%rbp),%rsi
mov    %eax,%ecx
mov    -0x48(%rbp),%rax
mov    %ecx,-0x1c(%rbp)
movslq -0x1c(%rbp),%rcx
mov    (%rsi,%rcx,4),%edi
add    $0xfffffffe,%edi
mov    (%rax,%rcx,4),%esi
call   1110 <mvaddch@plt>
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rdx,%rcx,4),%edi
add    $0xffffffff,%edi
mov    (%rax,%rcx,4),%esi
add    $0xffffffff,%esi
lea    0xb62(%rip),%rdx
call   1120 <mvaddstr@plt>
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rdx,%rcx,4),%edi
mov    (%rax,%rcx,4),%esi
add    $0xfffffffe,%esi
lea    0xb45(%rip),%rdx
call   1120 <mvaddstr@plt>
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rdx,%rcx,4),%edi
add    $0x1,%edi
mov    (%rax,%rcx,4),%esi
add    $0xffffffff,%esi
lea    0xb27(%rip),%rdx
call   1120 <mvaddstr@plt>
mov    -0x5c(%rbp),%edx
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rsi,%rcx,4),%edi
add    $0x2,%edi
mov    (%rax,%rcx,4),%esi
call   1110 <mvaddch@plt>
mov    -0x1c(%rbp),%edi
call   10c0 <next_j@plt>
mov    -0x40(%rbp),%rdx
mov    %eax,%ecx
mov    -0x48(%rbp),%rax
mov    %ecx,-0x1c(%rbp)
movslq -0x1c(%rbp),%rcx
mov    (%rdx,%rcx,4),%edi
add    $0xfffffffe,%edi
mov    (%rax,%rcx,4),%esi
mov    $0x20,%edx
mov    %edx,-0x4c(%rbp)
call   1110 <mvaddch@plt>
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rdx,%rcx,4),%edi
add    $0xffffffff,%edi
mov    (%rax,%rcx,4),%esi
add    $0xffffffff,%esi
lea    0xabd(%rip),%rdx
mov    %rdx,-0x58(%rbp)
call   1120 <mvaddstr@plt>
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rdx,%rcx,4),%edi
mov    (%rax,%rcx,4),%esi
add    $0xfffffffe,%esi
lea    0xa96(%rip),%rdx
call   1120 <mvaddstr@plt>
mov    -0x58(%rbp),%rdx
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rsi,%rcx,4),%edi
add    $0x1,%edi
mov    (%rax,%rcx,4),%esi
add    $0xffffffff,%esi
call   1120 <mvaddstr@plt>
mov    -0x4c(%rbp),%edx
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rsi,%rcx,4),%edi
add    $0x2,%edi
mov    (%rax,%rcx,4),%esi
call   1110 <mvaddch@plt>
mov    -0x48(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0x31(%rbp),%al
mov    -0x14(%rbp),%edi
movslq -0x1c(%rbp),%rsi
mov    %edi,(%rdx,%rsi,4)
mov    -0x18(%rbp),%esi
movslq -0x1c(%rbp),%rdx
mov    %esi,(%rcx,%rdx,4)
call   10e0 <getch@plt>
mov    %eax,%ecx
mov    %ecx,-0x30(%rbp)
sub    $0x20,%eax
je     1665 <main+0x435>
jmp    15f6 <main+0x3c6>
mov    -0x30(%rbp),%eax
sub    $0x51,%eax
je     1629 <main+0x3f9>
jmp    1607 <main+0x3d7>
mov    -0x30(%rbp),%eax
sub    $0x71,%eax
je     1629 <main+0x3f9>
jmp    1618 <main+0x3e8>
mov    -0x30(%rbp),%eax
sub    $0x73,%eax
je     1649 <main+0x419>
jmp    167c <main+0x44c>
mov    $0x1,%edi
call   1140 <curs_set@plt>
mov    $0x0,%al
call   10f0 <endwin@plt>
mov    0x296f(%rip),%rax
mov    (%rax),%eax
add    $0x60,%rsp
pop    %rbp
ret
mov    0x2990(%rip),%rax
mov    (%rax),%edi
mov    0x2947(%rip),%rax
mov    (%rax),%esi
call   10d0 <nodelay@plt>
jmp    167c <main+0x44c>
mov    0x2974(%rip),%rax
mov    (%rax),%edi
mov    0x2963(%rip),%rax
mov    (%rax),%esi
call   10d0 <nodelay@plt>
mov    $0x32,%edi
call   1130 <napms@plt>
jmp    135f <main+0x12f>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
xor    %eax,%eax
call   1070 <initscr@plt>
xor    %edi,%edi
call   10b0 <time@plt>
mov    %eax,%edi
call   10a0 <srand@plt>
xor    %eax,%eax
call   1040 <has_colors@plt>
test   %rax,%rax
je     1299 <main+0x69>
mov    0x2d6a(%rip),%rax
mov    (%rax),%ebx
xor    %eax,%eax
call   1080 <start_color@plt>
mov    0x2d32(%rip),%rax
mov    (%rax),%esi
mov    $0x1,%edi
mov    %ebx,%edx
call   1050 <init_pair@plt>
mov    0x2d3d(%rip),%rax
mov    (%rax),%esi
mov    $0x2,%edi
mov    %ebx,%edx
call   1050 <init_pair@plt>
xor    %eax,%eax
call   1030 <nl@plt>
xor    %eax,%eax
call   1100 <noecho@plt>
xor    %edi,%edi
call   1140 <curs_set@plt>
xor    %edi,%edi
call   1090 <timeout@plt>
mov    0x2d24(%rip),%rax
mov    (%rax),%edi
mov    0x2d13(%rip),%rax
mov    (%rax),%esi
call   1060 <keypad@plt>
mov    0x2d15(%rip),%rax
mov    (%rax),%ebx
add    $0xfffffffc,%ebx
mov    0x2ce1(%rip),%rax
mov    (%rax),%ebp
add    $0xfffffffc,%ebp
xor    %eax,%eax
call   1150 <rand@plt>
cltd
idiv   %ebp
add    $0x2,%edx
mov    %edx,0x2de9(%rip)
xor    %eax,%eax
call   1150 <rand@plt>
cltd
idiv   %ebx
add    $0x2,%edx
mov    %edx,0x2df6(%rip)
xor    %eax,%eax
call   1150 <rand@plt>
cltd
idiv   %ebp
add    $0x2,%edx
mov    %edx,0x2dbf(%rip)
xor    %eax,%eax
call   1150 <rand@plt>
cltd
idiv   %ebx
add    $0x2,%edx
mov    %edx,0x2dcc(%rip)
xor    %eax,%eax
call   1150 <rand@plt>
cltd
idiv   %ebp
add    $0x2,%edx
mov    %edx,0x2d95(%rip)
xor    %eax,%eax
call   1150 <rand@plt>
cltd
idiv   %ebx
add    $0x2,%edx
mov    %edx,0x2da2(%rip)
xor    %eax,%eax
call   1150 <rand@plt>
cltd
idiv   %ebp
add    $0x2,%edx
mov    %edx,0x2d6b(%rip)
xor    %eax,%eax
call   1150 <rand@plt>
cltd
idiv   %ebx
add    $0x2,%edx
mov    %edx,0x2d78(%rip)
xor    %eax,%eax
call   1150 <rand@plt>
cltd
mov    %ebp,0xc(%rsp)
idiv   %ebp
add    $0x2,%edx
mov    %edx,0x2d3d(%rip)
xor    %eax,%eax
call   1150 <rand@plt>
cltd
mov    %ebx,0x10(%rsp)
idiv   %ebx
add    $0x2,%edx
mov    %edx,0x2d46(%rip)
lea    0x2d3f(%rip),%r13
lea    0x2d18(%rip),%rbx
xor    %ebp,%ebp
jmp    13ee <main+0x1be>
nopl   0x0(%rax)
cmp    $0x20,%eax
jne    15d5 <main+0x3a5>
mov    0x2c08(%rip),%rcx
mov    0x2c09(%rip),%rax
mov    (%rax),%edi
mov    (%rcx),%esi
call   10d0 <nodelay@plt>
mov    $0x32,%edi
call   1130 <napms@plt>
mov    0x14(%rsp),%ebp
xor    %eax,%eax
call   1150 <rand@plt>
cltd
idivl  0xc(%rsp)
mov    %edx,%r14d
add    $0x2,%r14d
xor    %eax,%eax
call   1150 <rand@plt>
cltd
idivl  0x10(%rsp)
mov    %edx,%r15d
add    $0x2,%r15d
mov    %r15d,%edi
mov    %r14d,%esi
mov    $0x2e,%edx
call   1110 <mvaddch@plt>
movslq %ebp,%rbp
mov    0x0(%r13,%rbp,4),%edi
mov    (%rbx,%rbp,4),%esi
mov    $0x6f,%edx
call   1110 <mvaddch@plt>
mov    %ebp,%edi
call   10c0 <next_j@plt>
movslq %eax,%rbp
mov    0x0(%r13,%rbp,4),%edi
mov    (%rbx,%rbp,4),%esi
mov    $0x4f,%edx
call   1110 <mvaddch@plt>
mov    %ebp,%edi
call   10c0 <next_j@plt>
movslq %eax,%rbp
mov    0x0(%r13,%rbp,4),%edi
add    $0xffffffff,%edi
mov    (%rbx,%rbp,4),%esi
mov    $0x2d,%edx
call   1110 <mvaddch@plt>
mov    0x0(%r13,%rbp,4),%edi
mov    (%rbx,%rbp,4),%esi
add    $0xffffffff,%esi
lea    0xb7a(%rip),%rdx
call   1120 <mvaddstr@plt>
mov    0x0(%r13,%rbp,4),%edi
add    $0x1,%edi
mov    (%rbx,%rbp,4),%esi
mov    $0x2d,%edx
call   1110 <mvaddch@plt>
mov    %ebp,%edi
call   10c0 <next_j@plt>
movslq %eax,%rbp
mov    0x0(%r13,%rbp,4),%edi
add    $0xfffffffe,%edi
mov    (%rbx,%rbp,4),%esi
mov    $0x2d,%edx
call   1110 <mvaddch@plt>
mov    0x0(%r13,%rbp,4),%edi
add    $0xffffffff,%edi
mov    (%rbx,%rbp,4),%esi
add    $0xffffffff,%esi
lea    0xb30(%rip),%rdx
call   1120 <mvaddstr@plt>
mov    0x0(%r13,%rbp,4),%edi
mov    (%rbx,%rbp,4),%esi
add    $0xfffffffe,%esi
lea    0xb1d(%rip),%rdx
call   1120 <mvaddstr@plt>
mov    0x0(%r13,%rbp,4),%edi
add    $0x1,%edi
mov    (%rbx,%rbp,4),%esi
add    $0xffffffff,%esi
lea    0xb09(%rip),%rdx
call   1120 <mvaddstr@plt>
mov    0x0(%r13,%rbp,4),%edi
add    $0x2,%edi
mov    (%rbx,%rbp,4),%esi
mov    $0x2d,%edx
call   1110 <mvaddch@plt>
mov    %ebp,%edi
call   10c0 <next_j@plt>
mov    %eax,0x14(%rsp)
movslq %eax,%rbp
mov    0x0(%r13,%rbp,4),%edi
add    $0xfffffffe,%edi
mov    (%rbx,%rbp,4),%esi
mov    $0x20,%edx
call   1110 <mvaddch@plt>
mov    0x0(%r13,%rbp,4),%edi
add    $0xffffffff,%edi
mov    (%rbx,%rbp,4),%esi
add    $0xffffffff,%esi
lea    0xabd(%rip),%r12
mov    %r12,%rdx
call   1120 <mvaddstr@plt>
mov    0x0(%r13,%rbp,4),%edi
mov    (%rbx,%rbp,4),%esi
add    $0xfffffffe,%esi
lea    0xaa1(%rip),%rdx
call   1120 <mvaddstr@plt>
mov    0x0(%r13,%rbp,4),%edi
add    $0x1,%edi
mov    (%rbx,%rbp,4),%esi
add    $0xffffffff,%esi
mov    %r12,%rdx
call   1120 <mvaddstr@plt>
mov    0x0(%r13,%rbp,4),%edi
add    $0x2,%edi
mov    (%rbx,%rbp,4),%esi
mov    $0x20,%edx
call   1110 <mvaddch@plt>
mov    %r14d,(%rbx,%rbp,4)
mov    %r15d,0x0(%r13,%rbp,4)
xor    %eax,%eax
call   10e0 <getch@plt>
cmp    $0x70,%eax
jle    13c0 <main+0x190>
mov    0x29df(%rip),%rcx
cmp    $0x73,%eax
je     13d0 <main+0x1a0>
cmp    $0x71,%eax
jne    13e0 <main+0x1b0>
jmp    15de <main+0x3ae>
cmp    $0x51,%eax
jne    13e0 <main+0x1b0>
mov    $0x1,%edi
call   1140 <curs_set@plt>
xor    %eax,%eax
call   10f0 <endwin@plt>
mov    0x29ba(%rip),%rax
mov    (%rax),%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@main.xpos = internal global [5 x i32] zeroinitializer
@main.ypos = internal global [5 x i32] zeroinitializer
@COLOR_BLACK = global i32 0
@COLOR_BLUE = global i32 0
@COLOR_CYAN = global i32 0
@stdscr = global i32 0
@TRUE = global i32 0
@LINES = global i32 0
@COLS = global i32 0
@.str = [4 x i8] c"|.|\00"
@.str.1 = [4 x i8] c"/ \\\00"
@.str.2 = [6 x i8] c"| O |\00"
@.str.3 = [4 x i8] c"\\ /\00"
@.str.4 = [4 x i8] c" \00"
@.str.5 = [6 x i8] c" \00"
@EXIT_SUCCESS = global i32 0
@FALSE = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = call i32 (...) @initscr()
%14 = call i32 @time(i32* null)
store i32 %14, i32* %11
%15 = load i32, i32* %11
%16 = call i32 @srand(i32 %15)
%17 = call i64 (...) @has_colors()
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %28
19: ; preds = %2
%20 = load i32, i32* @COLOR_BLACK
store i32 %20, i32* %12
%21 = call i32 (...) @start_color()
%22 = load i32, i32* @COLOR_BLUE
%23 = load i32, i32* %12
%24 = call i32 @init_pair(i32 1, i32 %22, i32 %23)
%25 = load i32, i32* @COLOR_CYAN
%26 = load i32, i32* %12
%27 = call i32 @init_pair(i32 2, i32 %25, i32 %26)
br label %28
28: ; preds = %19, %2
%29 = call i32 (...) @nl()
%30 = call i32 (...) @noecho()
%31 = call i32 @curs_set(i32 0)
%32 = call i32 @timeout(i32 0)
%33 = load i32, i32* @stdscr
%34 = load i32, i32* @TRUE
%35 = call i32 @keypad(i32 %33, i32 %34)
%36 = load i32, i32* @LINES
%37 = sub nsw i32 %36, 4
store i32 %37, i32* %9
%38 = load i32, i32* @COLS
%39 = sub nsw i32 %38, 4
store i32 %39, i32* %10
store i32 5, i32* %8
br label %40
40: ; preds = %44, %28
%41 = load i32, i32* %8
%42 = add nsw i32 %41, -1
store i32 %42, i32* %8
%43 = icmp sge i32 %42, 0
br i1 %43, label %44, label %59
44: ; preds = %40
%45 = call i32 (...) @rand()
%46 = load i32, i32* %10
%47 = srem i32 %45, %46
%48 = add nsw i32 %47, 2
%49 = load i32, i32* %8
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %50
store i32 %48, i32* %51
%52 = call i32 (...) @rand()
%53 = load i32, i32* %9
%54 = srem i32 %52, %53
%55 = add nsw i32 %54, 2
%56 = load i32, i32* %8
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %57
store i32 %55, i32* %58
br label %40
59: ; preds = %40
store i32 0, i32* %8
br label %60
60: ; preds = %253, %59
%61 = call i32 (...) @rand()
%62 = load i32, i32* %10
%63 = srem i32 %61, %62
%64 = add nsw i32 %63, 2
store i32 %64, i32* %6
%65 = call i32 (...) @rand()
%66 = load i32, i32* %9
%67 = srem i32 %65, %66
%68 = add nsw i32 %67, 2
store i32 %68, i32* %7
%69 = load i32, i32* %7
%70 = load i32, i32* %6
%71 = call i32 @mvaddch(i32 %69, i32 %70, i8 signext 46)
%72 = load i32, i32* %8
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = load i32, i32* %8
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %77
%79 = load i32, i32* %78
%80 = call i32 @mvaddch(i32 %75, i32 %79, i8 signext 111)
%81 = load i32, i32* %8
%82 = call i32 @next_j(i32 %81)
store i32 %82, i32* %8
%83 = load i32, i32* %8
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %84
%86 = load i32, i32* %85
%87 = load i32, i32* %8
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %88
%90 = load i32, i32* %89
%91 = call i32 @mvaddch(i32 %86, i32 %90, i8 signext 79)
%92 = load i32, i32* %8
%93 = call i32 @next_j(i32 %92)
store i32 %93, i32* %8
%94 = load i32, i32* %8
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %95
%97 = load i32, i32* %96
%98 = sub nsw i32 %97, 1
%99 = load i32, i32* %8
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %100
%102 = load i32, i32* %101
%103 = call i32 @mvaddch(i32 %98, i32 %102, i8 signext 45)
%104 = load i32, i32* %8
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %105
%107 = load i32, i32* %106
%108 = load i32, i32* %8
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %109
%111 = load i32, i32* %110
%112 = sub nsw i32 %111, 1
%113 = call i32 @mvaddstr(i32 %107, i32 %112, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%114 = load i32, i32* %8
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %115
%117 = load i32, i32* %116
%118 = add nsw i32 %117, 1
%119 = load i32, i32* %8
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %120
%122 = load i32, i32* %121
%123 = call i32 @mvaddch(i32 %118, i32 %122, i8 signext 45)
%124 = load i32, i32* %8
%125 = call i32 @next_j(i32 %124)
store i32 %125, i32* %8
%126 = load i32, i32* %8
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %127
%129 = load i32, i32* %128
%130 = sub nsw i32 %129, 2
%131 = load i32, i32* %8
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %132
%134 = load i32, i32* %133
%135 = call i32 @mvaddch(i32 %130, i32 %134, i8 signext 45)
%136 = load i32, i32* %8
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %137
%139 = load i32, i32* %138
%140 = sub nsw i32 %139, 1
%141 = load i32, i32* %8
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %142
%144 = load i32, i32* %143
%145 = sub nsw i32 %144, 1
%146 = call i32 @mvaddstr(i32 %140, i32 %145, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%147 = load i32, i32* %8
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %148
%150 = load i32, i32* %149
%151 = load i32, i32* %8
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %152
%154 = load i32, i32* %153
%155 = sub nsw i32 %154, 2
%156 = call i32 @mvaddstr(i32 %150, i32 %155, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%157 = load i32, i32* %8
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %158
%160 = load i32, i32* %159
%161 = add nsw i32 %160, 1
%162 = load i32, i32* %8
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %163
%165 = load i32, i32* %164
%166 = sub nsw i32 %165, 1
%167 = call i32 @mvaddstr(i32 %161, i32 %166, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%168 = load i32, i32* %8
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %169
%171 = load i32, i32* %170
%172 = add nsw i32 %171, 2
%173 = load i32, i32* %8
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %174
%176 = load i32, i32* %175
%177 = call i32 @mvaddch(i32 %172, i32 %176, i8 signext 45)
%178 = load i32, i32* %8
%179 = call i32 @next_j(i32 %178)
store i32 %179, i32* %8
%180 = load i32, i32* %8
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %181
%183 = load i32, i32* %182
%184 = sub nsw i32 %183, 2
%185 = load i32, i32* %8
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %186
%188 = load i32, i32* %187
%189 = call i32 @mvaddch(i32 %184, i32 %188, i8 signext 32)
%190 = load i32, i32* %8
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %191
%193 = load i32, i32* %192
%194 = sub nsw i32 %193, 1
%195 = load i32, i32* %8
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %196
%198 = load i32, i32* %197
%199 = sub nsw i32 %198, 1
%200 = call i32 @mvaddstr(i32 %194, i32 %199, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%201 = load i32, i32* %8
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %202
%204 = load i32, i32* %203
%205 = load i32, i32* %8
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %206
%208 = load i32, i32* %207
%209 = sub nsw i32 %208, 2
%210 = call i32 @mvaddstr(i32 %204, i32 %209, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%211 = load i32, i32* %8
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %212
%214 = load i32, i32* %213
%215 = add nsw i32 %214, 1
%216 = load i32, i32* %8
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %217
%219 = load i32, i32* %218
%220 = sub nsw i32 %219, 1
%221 = call i32 @mvaddstr(i32 %215, i32 %220, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%222 = load i32, i32* %8
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %223
%225 = load i32, i32* %224
%226 = add nsw i32 %225, 2
%227 = load i32, i32* %8
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %228
%230 = load i32, i32* %229
%231 = call i32 @mvaddch(i32 %226, i32 %230, i8 signext 32)
%232 = load i32, i32* %6
%233 = load i32, i32* %8
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %234
store i32 %232, i32* %235
%236 = load i32, i32* %7
%237 = load i32, i32* %8
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %238
store i32 %236, i32* %239
%240 = call i32 (...) @getch()
switch i32 %240, label %253 [
i32 113, label %241
i32 81, label %241
i32 115, label %245
i32 32, label %249
]
241: ; preds = %60, %60
%242 = call i32 @curs_set(i32 1)
%243 = call i32 (...) @endwin()
%244 = load i32, i32* @EXIT_SUCCESS
ret i32 %244
245: ; preds = %60
%246 = load i32, i32* @stdscr
%247 = load i32, i32* @FALSE
%248 = call i32 @nodelay(i32 %246, i32 %247)
br label %253
249: ; preds = %60
%250 = load i32, i32* @stdscr
%251 = load i32, i32* @TRUE
%252 = call i32 @nodelay(i32 %250, i32 %251)
br label %253
253: ; preds = %249, %60, %245
%254 = call i32 @napms(i32 50)
br label %60
}

LLVM IR (-O2):
@main.xpos = internal unnamed_addr global [5 x i32] zeroinitializer
@main.ypos = internal unnamed_addr global [5 x i32] zeroinitializer
@COLOR_BLACK = global i32 0
@COLOR_BLUE = global i32 0
@COLOR_CYAN = global i32 0
@stdscr = global i32 0
@TRUE = global i32 0
@LINES = global i32 0
@COLS = global i32 0
@.str = [4 x i8] c"|.|\00"
@.str.1 = [4 x i8] c"/ \\\00"
@.str.2 = [6 x i8] c"| O |\00"
@.str.3 = [4 x i8] c"\\ /\00"
@.str.4 = [4 x i8] c" \00"
@.str.5 = [6 x i8] c" \00"
@EXIT_SUCCESS = global i32 0
@FALSE = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @initscr()
%4 = tail call i32 @time(i32* null)
%5 = tail call i32 @srand(i32 %4)
%6 = tail call i64 (...) @has_colors()
%7 = icmp eq i64 %6, 0
br i1 %7, label %15, label %8
8: ; preds = %2
%9 = load i32, i32* @COLOR_BLACK
%10 = tail call i32 (...) @start_color()
%11 = load i32, i32* @COLOR_BLUE
%12 = tail call i32 @init_pair(i32 1, i32 %11, i32 %9)
%13 = load i32, i32* @COLOR_CYAN
%14 = tail call i32 @init_pair(i32 2, i32 %13, i32 %9)
br label %15
15: ; preds = %8, %2
%16 = tail call i32 (...) @nl()
%17 = tail call i32 (...) @noecho()
%18 = tail call i32 @curs_set(i32 0)
%19 = tail call i32 @timeout(i32 0)
%20 = load i32, i32* @stdscr
%21 = load i32, i32* @TRUE
%22 = tail call i32 @keypad(i32 %20, i32 %21)
%23 = load i32, i32* @LINES
%24 = add nsw i32 %23, -4
%25 = load i32, i32* @COLS
%26 = add nsw i32 %25, -4
%27 = tail call i32 (...) @rand()
%28 = srem i32 %27, %26
%29 = add nsw i32 %28, 2
store i32 %29, i32* getelementptr inbounds ([5 x i32], [5 x i32]* @main.xpos, i64 0, i64 4)
%30 = tail call i32 (...) @rand()
%31 = srem i32 %30, %24
%32 = add nsw i32 %31, 2
store i32 %32, i32* getelementptr inbounds ([5 x i32], [5 x i32]* @main.ypos, i64 0, i64 4)
%33 = tail call i32 (...) @rand()
%34 = srem i32 %33, %26
%35 = add nsw i32 %34, 2
store i32 %35, i32* getelementptr inbounds ([5 x i32], [5 x i32]* @main.xpos, i64 0, i64 3)
%36 = tail call i32 (...) @rand()
%37 = srem i32 %36, %24
%38 = add nsw i32 %37, 2
store i32 %38, i32* getelementptr inbounds ([5 x i32], [5 x i32]* @main.ypos, i64 0, i64 3)
%39 = tail call i32 (...) @rand()
%40 = srem i32 %39, %26
%41 = add nsw i32 %40, 2
store i32 %41, i32* getelementptr inbounds ([5 x i32], [5 x i32]* @main.xpos, i64 0, i64 2)
%42 = tail call i32 (...) @rand()
%43 = srem i32 %42, %24
%44 = add nsw i32 %43, 2
store i32 %44, i32* getelementptr inbounds ([5 x i32], [5 x i32]* @main.ypos, i64 0, i64 2)
%45 = tail call i32 (...) @rand()
%46 = srem i32 %45, %26
%47 = add nsw i32 %46, 2
store i32 %47, i32* getelementptr inbounds ([5 x i32], [5 x i32]* @main.xpos, i64 0, i64 1)
%48 = tail call i32 (...) @rand()
%49 = srem i32 %48, %24
%50 = add nsw i32 %49, 2
store i32 %50, i32* getelementptr inbounds ([5 x i32], [5 x i32]* @main.ypos, i64 0, i64 1)
%51 = tail call i32 (...) @rand()
%52 = srem i32 %51, %26
%53 = add nsw i32 %52, 2
store i32 %53, i32* getelementptr inbounds ([5 x i32], [5 x i32]* @main.xpos, i64 0, i64 0)
%54 = tail call i32 (...) @rand()
%55 = srem i32 %54, %24
%56 = add nsw i32 %55, 2
store i32 %56, i32* getelementptr inbounds ([5 x i32], [5 x i32]* @main.ypos, i64 0, i64 0)
br label %57
57: ; preds = %15, %158
%58 = phi i32 [ %121, %158 ], [ 0, %15 ]
%59 = tail call i32 (...) @rand()
%60 = srem i32 %59, %26
%61 = add nsw i32 %60, 2
%62 = tail call i32 (...) @rand()
%63 = srem i32 %62, %24
%64 = add nsw i32 %63, 2
%65 = tail call i32 @mvaddch(i32 %64, i32 %61, i8 signext 46)
%66 = sext i32 %58 to i64
%67 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %66
%68 = load i32, i32* %67
%69 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %66
%70 = load i32, i32* %69
%71 = tail call i32 @mvaddch(i32 %68, i32 %70, i8 signext 111)
%72 = tail call i32 @next_j(i32 %58)
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %73
%77 = load i32, i32* %76
%78 = tail call i32 @mvaddch(i32 %75, i32 %77, i8 signext 79)
%79 = tail call i32 @next_j(i32 %72)
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %80
%82 = load i32, i32* %81
%83 = add nsw i32 %82, -1
%84 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %80
%85 = load i32, i32* %84
%86 = tail call i32 @mvaddch(i32 %83, i32 %85, i8 signext 45)
%87 = load i32, i32* %81
%88 = load i32, i32* %84
%89 = add nsw i32 %88, -1
%90 = tail call i32 @mvaddstr(i32 %87, i32 %89, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%91 = load i32, i32* %81
%92 = add nsw i32 %91, 1
%93 = load i32, i32* %84
%94 = tail call i32 @mvaddch(i32 %92, i32 %93, i8 signext 45)
%95 = tail call i32 @next_j(i32 %79)
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %96
%98 = load i32, i32* %97
%99 = add nsw i32 %98, -2
%100 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %96
%101 = load i32, i32* %100
%102 = tail call i32 @mvaddch(i32 %99, i32 %101, i8 signext 45)
%103 = load i32, i32* %97
%104 = add nsw i32 %103, -1
%105 = load i32, i32* %100
%106 = add nsw i32 %105, -1
%107 = tail call i32 @mvaddstr(i32 %104, i32 %106, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%108 = load i32, i32* %97
%109 = load i32, i32* %100
%110 = add nsw i32 %109, -2
%111 = tail call i32 @mvaddstr(i32 %108, i32 %110, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%112 = load i32, i32* %97
%113 = add nsw i32 %112, 1
%114 = load i32, i32* %100
%115 = add nsw i32 %114, -1
%116 = tail call i32 @mvaddstr(i32 %113, i32 %115, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%117 = load i32, i32* %97
%118 = add nsw i32 %117, 2
%119 = load i32, i32* %100
%120 = tail call i32 @mvaddch(i32 %118, i32 %119, i8 signext 45)
%121 = tail call i32 @next_j(i32 %95)
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [5 x i32], [5 x i32]* @main.ypos, i64 0, i64 %122
%124 = load i32, i32* %123
%125 = add nsw i32 %124, -2
%126 = getelementptr inbounds [5 x i32], [5 x i32]* @main.xpos, i64 0, i64 %122
%127 = load i32, i32* %126
%128 = tail call i32 @mvaddch(i32 %125, i32 %127, i8 signext 32)
%129 = load i32, i32* %123
%130 = add nsw i32 %129, -1
%131 = load i32, i32* %126
%132 = add nsw i32 %131, -1
%133 = tail call i32 @mvaddstr(i32 %130, i32 %132, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%134 = load i32, i32* %123
%135 = load i32, i32* %126
%136 = add nsw i32 %135, -2
%137 = tail call i32 @mvaddstr(i32 %134, i32 %136, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%138 = load i32, i32* %123
%139 = add nsw i32 %138, 1
%140 = load i32, i32* %126
%141 = add nsw i32 %140, -1
%142 = tail call i32 @mvaddstr(i32 %139, i32 %141, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%143 = load i32, i32* %123
%144 = add nsw i32 %143, 2
%145 = load i32, i32* %126
%146 = tail call i32 @mvaddch(i32 %144, i32 %145, i8 signext 32)
store i32 %61, i32* %126
store i32 %64, i32* %123
%147 = tail call i32 (...) @getch()
switch i32 %147, label %158 [
i32 113, label %148
i32 81, label %148
i32 115, label %153
i32 32, label %152
]
148: ; preds = %57, %57
%149 = tail call i32 @curs_set(i32 1)
%150 = tail call i32 (...) @endwin()
%151 = load i32, i32* @EXIT_SUCCESS
ret i32 %151
152: ; preds = %57
br label %153
153: ; preds = %57, %152
%154 = phi i32* [ @TRUE, %152 ], [ @FALSE, %57 ]
%155 = load i32, i32* @stdscr
%156 = load i32, i32* %154
%157 = tail call i32 @nodelay(i32 %155, i32 %156)
br label %158
158: ; preds = %153, %57
%159 = tail call i32 @napms(i32 50)
br label %57
}