#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 /*<<< orphan*/ COLOR_BLACK;
int /*<<< orphan*/ COLOR_PAIR(int);
int /*<<< orphan*/ COLOR_WHITE;
int /*<<< orphan*/ attroff(int /*<<< orphan*/);
int /*<<< orphan*/ attron(int /*<<< orphan*/);
int /*<<< orphan*/ clear();
int /*<<< orphan*/ curs_set(int /*<<< orphan*/);
int /*<<< orphan*/ endwin();
int getch();
int /*<<< orphan*/ getmaxyx(int /*<<< orphan*/, int, int);
int /*<<< orphan*/ init_pair(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ mvprintw(int, int, char *, ...);
int /*<<< orphan*/ noecho();
int /*<<< orphan*/ raw();
int /*<<< orphan*/ start_color();
int /*<<< orphan*/ stdscr;
int strlen(char *);
int main() {
  while (1) {
    int row, col;
    int y = 0;
    int t = -1;
    int h = 550;
    int v = 45;
    int f = 150;
    int e = 48;
    char tit[] = "      ";
    char title[] = " LUNA ";
    char author[] = "by Whitespace";
    char cockpit[] = "Tigsource Cockpit Competition 2009";
    initscr();
    curs_set(0);
    raw();
    noecho();
    clear();
    start_color();
    init_pair(1, COLOR_BLACK, COLOR_WHITE);
    attron(COLOR_PAIR(1));
    getmaxyx(stdscr, row, col);
    mvprintw(row / 2 - 1, (col - strlen(tit)) / 2, "%s", tit);
    mvprintw(row / 2, (col - strlen(title)) / 2, "%s", title);
    mvprintw(row / 2 + 1, (col - strlen(tit)) / 2, "%s", tit);
    attroff(COLOR_PAIR(1));
    mvprintw(row / 2 + 3, (col - strlen(author)) / 2, "%s", author);
    mvprintw(row / 2 + 4, (col - strlen(cockpit)) / 2, "%s\n", cockpit);
    getch();
    clear();
    while (h > 0) {
      clear();
      y = e - 48;
      t += 1;
      f -= y;
      if (f < 0) {
        f = 0;
        y = 0;
      };
      v += (5 - y);
      h -= v;
      if (h < 0) {
        h = 0;
      };
      mvprintw(10, 35, "Time:%d", t);
      mvprintw(11, 35, "Height:%d", h);
      mvprintw(12, 35, "Speed:%d", v);
      mvprintw(13, 35, "Fuel:%d", f);
      attron(COLOR_PAIR(1));
      mvprintw(15, 25, " Burn fuel units:(press 0-9) ");
      attroff(COLOR_PAIR(1));
      if (h == 0 && v > 5) {
        clear();
        char fail1[] = "You are on the moon.";
        char fail2[] = "You landed too fast.";
        char fail3[] = "Now you're dead.";
        mvprintw(row / 2 - 1, (col - strlen(fail1)) / 2, "%s", fail1);
        mvprintw(row / 2, (col - strlen(fail2)) / 2, "%s", fail2);
        mvprintw(row / 2 + 1, (col - strlen(fail3)) / 2, "%s", fail3);
        break;
      };
      if (h == 0 && v < 6) {
        clear();
        char succ1[] = "You succesfully landed on the moon.";
        char succ2[] = "I wonder what you want to do here.";
        mvprintw(row / 2 - 1, (col - strlen(succ1)) / 2, "%s", succ1);
        mvprintw(row / 2, (col - strlen(succ2)) / 2, "%s", succ2);
        break;
      };
      e = getch();
      while (e < 48 || e > 57) {
        e = getch();
      }
    }
    getch();
  }
  endwin();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0xffffffff,-0x14(%rbp)
movl   $0x226,-0x18(%rbp)
movl   $0x2d,-0x1c(%rbp)
movl   $0x96,-0x20(%rbp)
movl   $0x30,-0x24(%rbp)
mov    0xdce(%rip),%eax
mov    %eax,-0x2b(%rbp)
mov    0xdc8(%rip),%ax
mov    %ax,-0x27(%rbp)
mov    0xdc0(%rip),%al
mov    %al,-0x25(%rbp)
mov    0xdb8(%rip),%eax
mov    %eax,-0x32(%rbp)
mov    0xdb2(%rip),%ax
mov    %ax,-0x2e(%rbp)
mov    0xdaa(%rip),%al
mov    %al,-0x2c(%rbp)
mov    0xda1(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xd9f(%rip),%eax
mov    %eax,-0x38(%rbp)
mov    0xd99(%rip),%ax
mov    %ax,-0x34(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xde0(%rip),%rsi
mov    $0x23,%edx
call   10b0 <memcpy@plt>
mov    $0x0,%al
call   1060 <initscr@plt>
xor    %edi,%edi
call   1100 <curs_set@plt>
mov    $0x0,%al
call   1070 <raw@plt>
mov    $0x0,%al
call   10e0 <noecho@plt>
mov    $0x0,%al
call   10f0 <clear@plt>
mov    $0x0,%al
call   1080 <start_color@plt>
mov    0x2d15(%rip),%rax
mov    (%rax),%esi
mov    0x2cfc(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1050 <init_pair@plt>
mov    $0x1,%edi
call   10c0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1090 <attron@plt>
mov    0x2cf0(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   10a0 <getmaxyx@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
sub    $0x1,%eax
mov    %eax,-0x158(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x154(%rbp)
lea    -0x2b(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x158(%rbp),%edi
mov    %eax,%ecx
mov    -0x154(%rbp),%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    -0x2b(%rbp),%rcx
lea    0xccc(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x150(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x14c(%rbp)
lea    -0x32(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x150(%rbp),%edi
mov    %eax,%ecx
mov    -0x14c(%rbp),%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    -0x32(%rbp),%rcx
lea    0xc7d(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0x1,%eax
mov    %eax,-0x148(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x144(%rbp)
lea    -0x2b(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x148(%rbp),%edi
mov    %eax,%ecx
mov    -0x144(%rbp),%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    -0x2b(%rbp),%rcx
lea    0xc2b(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
mov    $0x1,%edi
call   10c0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0x3,%eax
mov    %eax,-0x140(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x13c(%rbp)
lea    -0x40(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x140(%rbp),%edi
mov    %eax,%ecx
mov    -0x13c(%rbp),%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    -0x40(%rbp),%rcx
lea    0xbc8(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0x4,%eax
mov    %eax,-0x138(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x134(%rbp)
lea    -0x70(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x138(%rbp),%edi
mov    %eax,%ecx
mov    -0x134(%rbp),%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    -0x70(%rbp),%rcx
lea    0xb79(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
mov    $0x0,%al
call   10d0 <getch@plt>
mov    $0x0,%al
call   10f0 <clear@plt>
cmpl   $0x0,-0x18(%rbp)
jle    18cd <main+0x6dd>
mov    $0x0,%al
call   10f0 <clear@plt>
mov    -0x24(%rbp),%eax
sub    $0x30,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%ecx
mov    -0x20(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jge    1501 <main+0x311>
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x10(%rbp)
mov    $0x5,%eax
sub    -0x10(%rbp),%eax
add    -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x18(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jge    152b <main+0x33b>
movl   $0x0,-0x18(%rbp)
mov    -0x14(%rbp),%ecx
mov    $0xa,%edi
mov    $0x23,%esi
lea    0xae4(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
mov    -0x18(%rbp),%ecx
mov    $0xb,%edi
mov    $0x23,%esi
lea    0xad1(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
mov    -0x1c(%rbp),%ecx
mov    $0xc,%edi
mov    $0x23,%esi
lea    0xac0(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
mov    -0x20(%rbp),%ecx
mov    $0xd,%edi
mov    $0x23,%esi
lea    0xaae(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
mov    $0x1,%edi
call   10c0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1090 <attron@plt>
mov    $0xf,%edi
mov    $0x19,%esi
lea    0xa8d(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
mov    $0x1,%edi
call   10c0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
cmpl   $0x0,-0x18(%rbp)
jne    1780 <main+0x590>
cmpl   $0x5,-0x1c(%rbp)
jle    1780 <main+0x590>
mov    $0x0,%al
call   10f0 <clear@plt>
mov    0xaad(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    0xaa7(%rip),%rax
mov    %rax,-0x88(%rbp)
mov    0xaa2(%rip),%eax
mov    %eax,-0x80(%rbp)
mov    0xa9d(%rip),%al
mov    %al,-0x7c(%rbp)
mov    0xa9f(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0xa99(%rip),%rax
mov    %rax,-0xa8(%rbp)
mov    0xa94(%rip),%eax
mov    %eax,-0xa0(%rbp)
mov    0xa8c(%rip),%al
mov    %al,-0x9c(%rbp)
mov    0xa8b(%rip),%rax
mov    %rax,-0xd0(%rbp)
mov    0xa85(%rip),%rax
mov    %rax,-0xc8(%rbp)
mov    0xa80(%rip),%al
mov    %al,-0xc0(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
sub    $0x1,%eax
mov    %eax,-0x170(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x16c(%rbp)
lea    -0x90(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x170(%rbp),%edi
mov    %eax,%ecx
mov    -0x16c(%rbp),%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    -0x90(%rbp),%rcx
lea    0x955(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x168(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x164(%rbp)
lea    -0xb0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x168(%rbp),%edi
mov    %eax,%ecx
mov    -0x164(%rbp),%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    -0xb0(%rbp),%rcx
lea    0x900(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
add    $0x1,%eax
mov    %eax,-0x160(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x15c(%rbp)
lea    -0xd0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x160(%rbp),%edi
mov    %eax,%ecx
mov    -0x15c(%rbp),%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    -0xd0(%rbp),%rcx
lea    0x8a8(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
jmp    18cd <main+0x6dd>
cmpl   $0x0,-0x18(%rbp)
jne    187d <main+0x68d>
cmpl   $0x6,-0x1c(%rbp)
jge    187d <main+0x68d>
mov    $0x0,%al
call   10f0 <clear@plt>
lea    -0x100(%rbp),%rdi
lea    0x957(%rip),%rsi
mov    $0x24,%edx
call   10b0 <memcpy@plt>
lea    -0x130(%rbp),%rdi
lea    0x96f(%rip),%rsi
mov    $0x23,%edx
call   10b0 <memcpy@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
sub    $0x1,%eax
mov    %eax,-0x180(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x17c(%rbp)
lea    -0x100(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x180(%rbp),%edi
mov    %eax,%ecx
mov    -0x17c(%rbp),%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    -0x100(%rbp),%rcx
lea    0x800(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x178(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x174(%rbp)
lea    -0x130(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x178(%rbp),%edi
mov    %eax,%ecx
mov    -0x174(%rbp),%eax
sub    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    -0x130(%rbp),%rcx
lea    0x7ab(%rip),%rdx
mov    $0x0,%al
call   1110 <mvprintw@plt>
jmp    18cd <main+0x6dd>
mov    $0x0,%al
call   10d0 <getch@plt>
mov    %eax,-0x24(%rbp)
mov    $0x1,%al
cmpl   $0x30,-0x24(%rbp)
mov    %al,-0x181(%rbp)
jl     18a6 <main+0x6b6>
cmpl   $0x39,-0x24(%rbp)
setg   %al
mov    %al,-0x181(%rbp)
mov    -0x181(%rbp),%al
test   $0x1,%al
jne    18b9 <main+0x6c9>
jmp    18c8 <main+0x6d8>
mov    $0x0,%al
call   10d0 <getch@plt>
mov    %eax,-0x24(%rbp)
jmp    1887 <main+0x697>
jmp    14bb <main+0x2cb>
mov    $0x0,%al
call   10d0 <getch@plt>
jmp    1202 <main+0x12>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
jmp    12c5 <main+0xe5>
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   10e0 <clear@plt>
movaps 0xe92(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movabs $0x2e6e6f6f6d2065,%rax
mov    %rax,0x5d(%rsp)
movaps 0xe97(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movabs $0x2e74736166206f,%rax
mov    %rax,0x2d(%rsp)
movaps 0xe9c(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movb   $0x0,0x90(%rsp)
lea    0x50(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strlen@plt>
mov    $0xffffffff,%edi
xor    %esi,%esi
lea    0xdad(%rip),%rbx
mov    %rbx,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1100 <mvprintw@plt>
lea    0x20(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strlen@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    %rbx,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1100 <mvprintw@plt>
lea    0x80(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strlen@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    %rbx,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1100 <mvprintw@plt>
xor    %eax,%eax
call   10c0 <getch@plt>
movl   $0x202020,0xb(%rsp)
movl   $0x20202020,0x8(%rsp)
20
movl   $0x20414e,0x3(%rsp)
movl   $0x4e554c20,(%rsp)
movabs $0x65636170736574,%rax
mov    %rax,0x16(%rsp)
movabs $0x6574696857207962,%rax
69 74 65
mov    %rax,0x10(%rsp)
movaps 0xd77(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xd58(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movl   $0x393030,0xbf(%rsp)
xor    %eax,%eax
call   1060 <initscr@plt>
xor    %edi,%edi
call   10f0 <curs_set@plt>
xor    %eax,%eax
call   1070 <raw@plt>
xor    %eax,%eax
call   10d0 <noecho@plt>
xor    %eax,%eax
call   10e0 <clear@plt>
xor    %eax,%eax
call   1080 <start_color@plt>
mov    0x2c84(%rip),%rax
mov    (%rax),%esi
mov    0x2c6b(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1050 <init_pair@plt>
mov    $0x1,%edi
call   10b0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1090 <attron@plt>
mov    0x2c5f(%rip),%rax
mov    (%rax),%edi
call   10a0 <getmaxyx@plt>
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0xffffffff,%edi
xor    %esi,%esi
lea    0xc71(%rip),%r14
mov    %r14,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1100 <mvprintw@plt>
mov    %rsp,%rbp
mov    %rbp,%rdi
call   1040 <strlen@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    %r14,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1100 <mvprintw@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    %r14,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1100 <mvprintw@plt>
mov    $0x1,%edi
call   10b0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x3,%edi
xor    %esi,%esi
mov    %r14,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1100 <mvprintw@plt>
lea    0xa0(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x4,%edi
xor    %esi,%esi
lea    0xbdf(%rip),%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1100 <mvprintw@plt>
xor    %eax,%eax
call   10c0 <getch@plt>
xor    %eax,%eax
call   10e0 <clear@plt>
mov    $0x226,%r14d
mov    $0x2d,%r12d
mov    $0x96,%ebx
mov    $0x30,%r13d
mov    $0xffffffff,%r15d
jmp    1488 <main+0x2a8>
nopw   0x0(%rax,%rax,1)
test   %ebp,%ebp
jle    12be <main+0xde>
mov    %r12d,%ebp
xor    %eax,%eax
call   10e0 <clear@plt>
add    $0x1,%r15d
sub    %r13d,%ebx
add    $0x30,%ebx
mov    $0x35,%r12d
sub    %r13d,%r12d
test   %ebx,%ebx
mov    $0x0,%eax
cmovs  %eax,%ebx
mov    $0x5,%eax
cmovs  %eax,%r12d
add    %ebp,%r12d
mov    %r14d,%ebp
sub    %r12d,%ebp
mov    $0x0,%r14d
cmovns %ebp,%r14d
mov    $0xa,%edi
mov    $0x23,%esi
lea    0xb47(%rip),%rdx
mov    %r15d,%ecx
xor    %eax,%eax
call   1100 <mvprintw@plt>
mov    $0xb,%edi
mov    $0x23,%esi
lea    0xb34(%rip),%rdx
mov    %r14d,%ecx
xor    %eax,%eax
call   1100 <mvprintw@plt>
mov    $0xc,%edi
mov    $0x23,%esi
lea    0xb23(%rip),%rdx
mov    %r12d,%ecx
xor    %eax,%eax
call   1100 <mvprintw@plt>
mov    $0xd,%edi
mov    $0x23,%esi
lea    0xb11(%rip),%rdx
mov    %ebx,%ecx
xor    %eax,%eax
call   1100 <mvprintw@plt>
mov    $0x1,%edi
call   10b0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1090 <attron@plt>
mov    $0xf,%edi
mov    $0x19,%esi
lea    0xaee(%rip),%rdx
xor    %eax,%eax
call   1100 <mvprintw@plt>
mov    $0x1,%edi
call   10b0 <COLOR_PAIR@plt>
mov    %eax,%edi
call   1030 <attroff@plt>
cmp    $0x6,%r12d
jl     157e <main+0x39e>
test   %ebp,%ebp
jle    1200 <main+0x20>
cmp    $0x5,%r12d
jg     1588 <main+0x3a8>
test   %ebp,%ebp
jle    15c0 <main+0x3e0>
xor    %eax,%eax
call   10c0 <getch@plt>
mov    %eax,%r13d
add    $0xffffffc6,%eax
cmp    $0xfffffff5,%eax
ja     1480 <main+0x2a0>
xchg   %ax,%ax
xor    %eax,%eax
call   10c0 <getch@plt>
mov    %eax,%r13d
lea    -0x3a(%r13),%eax
cmp    $0xfffffff6,%eax
jb     15a0 <main+0x3c0>
jmp    1480 <main+0x2a0>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   10e0 <clear@plt>
movaps 0xb42(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xb26(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movl   $0x2e6e6f,0x70(%rsp)
movaps 0xb52(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xb36(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movl   $0x2e6572,0x3f(%rsp)
lea    0x50(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strlen@plt>
mov    $0xffffffff,%edi
xor    %esi,%esi
lea    0x9fa(%rip),%rbx
mov    %rbx,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1100 <mvprintw@plt>
lea    0x20(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strlen@plt>
xor    %edi,%edi
jmp    12af <main+0xcf>

LLVM IR (-O0):
@__const.main.tit = [7 x i8] c" \00"
@__const.main.title = [7 x i8] c" LUNA \00"
@__const.main.author = [14 x i8] c"by Whitespace\00"
@__const.main.cockpit = [35 x i8] c"Tigsource Cockpit Competition 2009\00"
@COLOR_BLACK = global i32 0
@COLOR_WHITE = global i32 0
@stdscr = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [8 x i8] c"Time:%d\00"
@.str.3 = [10 x i8] c"Height:%d\00"
@.str.4 = [9 x i8] c"Speed:%d\00"
@.str.5 = [8 x i8] c"Fuel:%d\00"
@.str.6 = [30 x i8] c" Burn fuel units:(press 0-9) \00"
@__const.main.fail1 = [21 x i8] c"You are on the moon.\00"
@__const.main.fail2 = [21 x i8] c"You landed too fast.\00"
@__const.main.fail3 = [17 x i8] c"Now you're dead.\00"
@__const.main.succ1 = [36 x i8] c"You succesfully landed on the moon.\00"
@__const.main.succ2 = [35 x i8] c"I wonder what you want to do here.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca [7 x i8]
%11 = alloca [7 x i8]
%12 = alloca [14 x i8]
%13 = alloca [35 x i8]
%14 = alloca [21 x i8]
%15 = alloca [21 x i8]
%16 = alloca [17 x i8]
%17 = alloca [36 x i8]
%18 = alloca [35 x i8]
store i32 0, i32* %1
br label %19
19: ; preds = %0, %213
store i32 0, i32* %4
store i32 -1, i32* %5
store i32 550, i32* %6
store i32 45, i32* %7
store i32 150, i32* %8
store i32 48, i32* %9
%20 = bitcast [7 x i8]* %10 to i8*
%21 = bitcast [7 x i8]* %11 to i8*
%22 = bitcast [14 x i8]* %12 to i8*
%23 = bitcast [35 x i8]* %13 to i8*
%24 = call i32 (...) @initscr()
%25 = call i32 @curs_set(i32 0)
%26 = call i32 (...) @raw()
%27 = call i32 (...) @noecho()
%28 = call i32 (...) @clear()
%29 = call i32 (...) @start_color()
%30 = load i32, i32* @COLOR_BLACK
%31 = load i32, i32* @COLOR_WHITE
%32 = call i32 @init_pair(i32 1, i32 %30, i32 %31)
%33 = call i32 @COLOR_PAIR(i32 1)
%34 = call i32 @attron(i32 %33)
%35 = load i32, i32* @stdscr
%36 = load i32, i32* %2
%37 = load i32, i32* %3
%38 = call i32 @getmaxyx(i32 %35, i32 %36, i32 %37)
%39 = load i32, i32* %2
%40 = sdiv i32 %39, 2
%41 = sub nsw i32 %40, 1
%42 = load i32, i32* %3
%43 = getelementptr inbounds [7 x i8], [7 x i8]* %10, i64 0, i64 0
%44 = call i32 @strlen(i8* %43)
%45 = sub nsw i32 %42, %44
%46 = sdiv i32 %45, 2
%47 = getelementptr inbounds [7 x i8], [7 x i8]* %10, i64 0, i64 0
%48 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 %41, i32 %46, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %47)
%49 = load i32, i32* %2
%50 = sdiv i32 %49, 2
%51 = load i32, i32* %3
%52 = getelementptr inbounds [7 x i8], [7 x i8]* %11, i64 0, i64 0
%53 = call i32 @strlen(i8* %52)
%54 = sub nsw i32 %51, %53
%55 = sdiv i32 %54, 2
%56 = getelementptr inbounds [7 x i8], [7 x i8]* %11, i64 0, i64 0
%57 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 %50, i32 %55, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %56)
%58 = load i32, i32* %2
%59 = sdiv i32 %58, 2
%60 = add nsw i32 %59, 1
%61 = load i32, i32* %3
%62 = getelementptr inbounds [7 x i8], [7 x i8]* %10, i64 0, i64 0
%63 = call i32 @strlen(i8* %62)
%64 = sub nsw i32 %61, %63
%65 = sdiv i32 %64, 2
%66 = getelementptr inbounds [7 x i8], [7 x i8]* %10, i64 0, i64 0
%67 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 %60, i32 %65, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %66)
%68 = call i32 @COLOR_PAIR(i32 1)
%69 = call i32 @attroff(i32 %68)
%70 = load i32, i32* %2
%71 = sdiv i32 %70, 2
%72 = add nsw i32 %71, 3
%73 = load i32, i32* %3
%74 = getelementptr inbounds [14 x i8], [14 x i8]* %12, i64 0, i64 0
%75 = call i32 @strlen(i8* %74)
%76 = sub nsw i32 %73, %75
%77 = sdiv i32 %76, 2
%78 = getelementptr inbounds [14 x i8], [14 x i8]* %12, i64 0, i64 0
%79 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 %72, i32 %77, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %78)
%80 = load i32, i32* %2
%81 = sdiv i32 %80, 2
%82 = add nsw i32 %81, 4
%83 = load i32, i32* %3
%84 = getelementptr inbounds [35 x i8], [35 x i8]* %13, i64 0, i64 0
%85 = call i32 @strlen(i8* %84)
%86 = sub nsw i32 %83, %85
%87 = sdiv i32 %86, 2
%88 = getelementptr inbounds [35 x i8], [35 x i8]* %13, i64 0, i64 0
%89 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 %82, i32 %87, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %88)
%90 = call i32 (...) @getch()
%91 = call i32 (...) @clear()
br label %92
92: ; preds = %212, %19
%93 = load i32, i32* %6
%94 = icmp sgt i32 %93, 0
br i1 %94, label %95, label %213
95: ; preds = %92
%96 = call i32 (...) @clear()
%97 = load i32, i32* %9
%98 = sub nsw i32 %97, 48
store i32 %98, i32* %4
%99 = load i32, i32* %5
%100 = add nsw i32 %99, 1
store i32 %100, i32* %5
%101 = load i32, i32* %4
%102 = load i32, i32* %8
%103 = sub nsw i32 %102, %101
store i32 %103, i32* %8
%104 = load i32, i32* %8
%105 = icmp slt i32 %104, 0
br i1 %105, label %106, label %107
106: ; preds = %95
store i32 0, i32* %8
store i32 0, i32* %4
br label %107
107: ; preds = %106, %95
%108 = load i32, i32* %4
%109 = sub nsw i32 5, %108
%110 = load i32, i32* %7
%111 = add nsw i32 %110, %109
store i32 %111, i32* %7
%112 = load i32, i32* %7
%113 = load i32, i32* %6
%114 = sub nsw i32 %113, %112
store i32 %114, i32* %6
%115 = load i32, i32* %6
%116 = icmp slt i32 %115, 0
br i1 %116, label %117, label %118
117: ; preds = %107
store i32 0, i32* %6
br label %118
118: ; preds = %117, %107
%119 = load i32, i32* %5
%120 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 10, i32 35, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %119)
%121 = load i32, i32* %6
%122 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 11, i32 35, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %121)
%123 = load i32, i32* %7
%124 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 12, i32 35, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %123)
%125 = load i32, i32* %8
%126 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 13, i32 35, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 %125)
%127 = call i32 @COLOR_PAIR(i32 1)
%128 = call i32 @attron(i32 %127)
%129 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 15, i32 25, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%130 = call i32 @COLOR_PAIR(i32 1)
%131 = call i32 @attroff(i32 %130)
%132 = load i32, i32* %6
%133 = icmp eq i32 %132, 0
br i1 %133, label %134, label %171
134: ; preds = %118
%135 = load i32, i32* %7
%136 = icmp sgt i32 %135, 5
br i1 %136, label %137, label %171
137: ; preds = %134
%138 = call i32 (...) @clear()
%139 = bitcast [21 x i8]* %14 to i8*
%140 = bitcast [21 x i8]* %15 to i8*
%141 = bitcast [17 x i8]* %16 to i8*
%142 = load i32, i32* %2
%143 = sdiv i32 %142, 2
%144 = sub nsw i32 %143, 1
%145 = load i32, i32* %3
%146 = getelementptr inbounds [21 x i8], [21 x i8]* %14, i64 0, i64 0
%147 = call i32 @strlen(i8* %146)
%148 = sub nsw i32 %145, %147
%149 = sdiv i32 %148, 2
%150 = getelementptr inbounds [21 x i8], [21 x i8]* %14, i64 0, i64 0
%151 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 %144, i32 %149, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %150)
%152 = load i32, i32* %2
%153 = sdiv i32 %152, 2
%154 = load i32, i32* %3
%155 = getelementptr inbounds [21 x i8], [21 x i8]* %15, i64 0, i64 0
%156 = call i32 @strlen(i8* %155)
%157 = sub nsw i32 %154, %156
%158 = sdiv i32 %157, 2
%159 = getelementptr inbounds [21 x i8], [21 x i8]* %15, i64 0, i64 0
%160 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 %153, i32 %158, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %159)
%161 = load i32, i32* %2
%162 = sdiv i32 %161, 2
%163 = add nsw i32 %162, 1
%164 = load i32, i32* %3
%165 = getelementptr inbounds [17 x i8], [17 x i8]* %16, i64 0, i64 0
%166 = call i32 @strlen(i8* %165)
%167 = sub nsw i32 %164, %166
%168 = sdiv i32 %167, 2
%169 = getelementptr inbounds [17 x i8], [17 x i8]* %16, i64 0, i64 0
%170 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 %163, i32 %168, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %169)
br label %213
171: ; preds = %134, %118
%172 = load i32, i32* %6
%173 = icmp eq i32 %172, 0
br i1 %173, label %174, label %200
174: ; preds = %171
%175 = load i32, i32* %7
%176 = icmp slt i32 %175, 6
br i1 %176, label %177, label %200
177: ; preds = %174
%178 = call i32 (...) @clear()
%179 = bitcast [36 x i8]* %17 to i8*
%180 = bitcast [35 x i8]* %18 to i8*
%181 = load i32, i32* %2
%182 = sdiv i32 %181, 2
%183 = sub nsw i32 %182, 1
%184 = load i32, i32* %3
%185 = getelementptr inbounds [36 x i8], [36 x i8]* %17, i64 0, i64 0
%186 = call i32 @strlen(i8* %185)
%187 = sub nsw i32 %184, %186
%188 = sdiv i32 %187, 2
%189 = getelementptr inbounds [36 x i8], [36 x i8]* %17, i64 0, i64 0
%190 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 %183, i32 %188, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %189)
%191 = load i32, i32* %2
%192 = sdiv i32 %191, 2
%193 = load i32, i32* %3
%194 = getelementptr inbounds [35 x i8], [35 x i8]* %18, i64 0, i64 0
%195 = call i32 @strlen(i8* %194)
%196 = sub nsw i32 %193, %195
%197 = sdiv i32 %196, 2
%198 = getelementptr inbounds [35 x i8], [35 x i8]* %18, i64 0, i64 0
%199 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 %192, i32 %197, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %198)
br label %213
200: ; preds = %174, %171
%201 = call i32 (...) @getch()
store i32 %201, i32* %9
br label %202
202: ; preds = %210, %200
%203 = load i32, i32* %9
%204 = icmp slt i32 %203, 48
br i1 %204, label %208, label %205
205: ; preds = %202
%206 = load i32, i32* %9
%207 = icmp sgt i32 %206, 57
br label %208
208: ; preds = %205, %202
%209 = phi i1 [ true, %202 ], [ %207, %205 ]
br i1 %209, label %210, label %212
210: ; preds = %208
%211 = call i32 (...) @getch()
store i32 %211, i32* %9
br label %202
212: ; preds = %208
br label %92
213: ; preds = %177, %137, %92
%214 = call i32 (...) @getch()
br label %19
}

LLVM IR (-O2):
@__const.main.tit = [7 x i8] c" \00"
@__const.main.title = [7 x i8] c" LUNA \00"
@__const.main.author = [14 x i8] c"by Whitespace\00"
@__const.main.cockpit = [35 x i8] c"Tigsource Cockpit Competition 2009\00"
@COLOR_BLACK = global i32 0
@COLOR_WHITE = global i32 0
@stdscr = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [8 x i8] c"Time:%d\00"
@.str.3 = [10 x i8] c"Height:%d\00"
@.str.4 = [9 x i8] c"Speed:%d\00"
@.str.5 = [8 x i8] c"Fuel:%d\00"
@.str.6 = [30 x i8] c" Burn fuel units:(press 0-9) \00"
@__const.main.fail1 = [21 x i8] c"You are on the moon.\00"
@__const.main.fail2 = [21 x i8] c"You landed too fast.\00"
@__const.main.fail3 = [17 x i8] c"Now you're dead.\00"
@__const.main.succ1 = [36 x i8] c"You succesfully landed on the moon.\00"
@__const.main.succ2 = [35 x i8] c"I wonder what you want to do here.\00"
define i32 @main() {
%1 = alloca [7 x i8]
%2 = alloca [7 x i8]
%3 = alloca [14 x i8]
%4 = alloca [35 x i8]
%5 = alloca [21 x i8]
%6 = alloca [21 x i8]
%7 = alloca [17 x i8]
%8 = alloca [36 x i8]
%9 = alloca [35 x i8]
%10 = getelementptr inbounds [7 x i8], [7 x i8]* %1, i64 0, i64 0
%11 = getelementptr inbounds [7 x i8], [7 x i8]* %2, i64 0, i64 0
%12 = getelementptr inbounds [14 x i8], [14 x i8]* %3, i64 0, i64 0
%13 = getelementptr inbounds [35 x i8], [35 x i8]* %4, i64 0, i64 0
%14 = getelementptr inbounds [36 x i8], [36 x i8]* %8, i64 0, i64 0
%15 = getelementptr inbounds [35 x i8], [35 x i8]* %9, i64 0, i64 0
%16 = getelementptr inbounds [21 x i8], [21 x i8]* %5, i64 0, i64 0
%17 = getelementptr inbounds [21 x i8], [21 x i8]* %6, i64 0, i64 0
%18 = getelementptr inbounds [17 x i8], [17 x i8]* %7, i64 0, i64 0
br label %19
19: ; preds = %0, %104
%20 = call i32 (...) @initscr()
%21 = call i32 @curs_set(i32 0)
%22 = call i32 (...) @raw()
%23 = call i32 (...) @noecho()
%24 = call i32 (...) @clear()
%25 = call i32 (...) @start_color()
%26 = load i32, i32* @COLOR_BLACK
%27 = load i32, i32* @COLOR_WHITE
%28 = call i32 @init_pair(i32 1, i32 %26, i32 %27)
%29 = call i32 @COLOR_PAIR(i32 1)
%30 = call i32 @attron(i32 %29)
%31 = load i32, i32* @stdscr
%32 = call i32 @getmaxyx(i32 %31, i32 undef, i32 undef)
%33 = call i32 @strlen(i8* %10)
%34 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 -1, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%35 = call i32 @strlen(i8* %11)
%36 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 0, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %11)
%37 = call i32 @strlen(i8* %10)
%38 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 1, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %10)
%39 = call i32 @COLOR_PAIR(i32 1)
%40 = call i32 @attroff(i32 %39)
%41 = call i32 @strlen(i8* %12)
%42 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 3, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %12)
%43 = call i32 @strlen(i8* %13)
%44 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 4, i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %13)
%45 = call i32 (...) @getch()
%46 = call i32 (...) @clear()
br label %49
47: ; preds = %100, %96
%48 = phi i32 [ %97, %96 ], [ %101, %100 ]
br i1 %76, label %104, label %49
49: ; preds = %19, %47
%50 = phi i32 [ 48, %19 ], [ %48, %47 ]
%51 = phi i32 [ 150, %19 ], [ %60, %47 ]
%52 = phi i32 [ 45, %19 ], [ %63, %47 ]
%53 = phi i32 [ 550, %19 ], [ %66, %47 ]
%54 = phi i32 [ -1, %19 ], [ %56, %47 ]
%55 = call i32 (...) @clear()
%56 = add nsw i32 %54, 1
%57 = add nuw i32 %51, 48
%58 = sub i32 %57, %50
%59 = icmp slt i32 %58, 0
%60 = select i1 %59, i32 0, i32 %58
%61 = sub nsw i32 53, %50
%62 = select i1 %59, i32 5, i32 %61
%63 = add nsw i32 %62, %52
%64 = sub nsw i32 %53, %63
%65 = icmp sgt i32 %64, 0
%66 = select i1 %65, i32 %64, i32 0
%67 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 10, i32 35, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %56)
%68 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 11, i32 35, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %66)
%69 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 12, i32 35, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %63)
%70 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 13, i32 35, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 %60)
%71 = call i32 @COLOR_PAIR(i32 1)
%72 = call i32 @attron(i32 %71)
%73 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 15, i32 25, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0))
%74 = call i32 @COLOR_PAIR(i32 1)
%75 = call i32 @attroff(i32 %74)
%76 = icmp slt i32 %64, 1
%77 = icmp sgt i32 %63, 5
%78 = and i1 %77, %76
br i1 %78, label %79, label %87
79: ; preds = %49
%80 = call i32 (...) @clear()
%81 = call i32 @strlen(i8* %16)
%82 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 -1, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %16)
%83 = call i32 @strlen(i8* %17)
%84 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 0, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %17)
%85 = call i32 @strlen(i8* %18)
%86 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 1, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %18)
br label %104
87: ; preds = %49
%88 = icmp slt i32 %63, 6
%89 = and i1 %88, %76
br i1 %89, label %90, label %96
90: ; preds = %87
%91 = call i32 (...) @clear()
%92 = call i32 @strlen(i8* %14)
%93 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 -1, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %14)
%94 = call i32 @strlen(i8* %15)
%95 = call i32 (i32, i32, i8*, ...) @mvprintw(i32 0, i32 0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %15)
br label %104
96: ; preds = %87
%97 = call i32 (...) @getch()
%98 = add i32 %97, -58
%99 = icmp ult i32 %98, -10
br i1 %99, label %100, label %47
100: ; preds = %96, %100
%101 = call i32 (...) @getch()
%102 = add i32 %101, -58
%103 = icmp ult i32 %102, -10
br i1 %103, label %100, label %47
104: ; preds = %47, %90, %79
%105 = call i32 (...) @getch()
br label %19
}