#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 */
scalar_t__ LINES;
int /*<<< orphan*/ clear();
int /*<<< orphan*/ getch();
int /*<<< orphan*/ mvprintw(scalar_t__, int /*<<< orphan*/, char *);
int /*<<< orphan*/ printw(char *);
void titleScreen() {
  printw("********************************\n");
  printw("* Daleks! Adaption by A Clarke *\n");
  printw("********************************\n\n");
  printw("This is a game based of the Dr. Who");
  printw(" television show where the point is to\n");
  printw("help Dr Who (denoted by \"@\") escape ");
  printw("these horrible monster robot things called\n");
  printw("Daleks (denoted by \"F\"), to kill them you");
  printw(" must make them crash into eachother\n");
  printw("or at your disposal you also have the power of");
  printw(" SONIC SCREW, whatever that is \n");
  printw("(ones awarded each stage).  It will make any");
  printw(" daleks around you disappear.  \n");
  printw("Dr. Who also knows how to teleport to a");
  printw(" random location, but beware, you might \n");
  printw("teleport right into a dalek.\n");
  printw("Well that's it, have fun.\n\n");
  printw("Controls:\n");
  printw("t = teleport; s = super screw; q = quit\n");
  printw("Movement:\n");
  printw("7   8   9\n");
  printw("  \\ | /\n");
  printw("u - i - o\n");
  printw("  / | \\\n");
  printw("j   k   l");
  mvprintw(LINES - 1, 0, "Press a key to start.");
  getch();
  clear();
}


x86 assembly (clang, -O0):
<titleScreen>:
push   %rbp
mov    %rsp,%rbp
lea    0xeb5(%rip),%rdi
call   1030 <printw@plt>
lea    0xecb(%rip),%rdi
call   1030 <printw@plt>
lea    0xee1(%rip),%rdi
call   1030 <printw@plt>
lea    0xef8(%rip),%rdi
call   1030 <printw@plt>
lea    0xf10(%rip),%rdi
call   1030 <printw@plt>
lea    0xf2c(%rip),%rdi
call   1030 <printw@plt>
lea    0xf45(%rip),%rdi
call   1030 <printw@plt>
lea    0xf65(%rip),%rdi
call   1030 <printw@plt>
lea    0xf83(%rip),%rdi
call   1030 <printw@plt>
lea    0xf9d(%rip),%rdi
call   1030 <printw@plt>
lea    0xfc0(%rip),%rdi
call   1030 <printw@plt>
lea    0xfd5(%rip),%rdi
call   1030 <printw@plt>
lea    0xff6(%rip),%rdi
call   1030 <printw@plt>
lea    0x100b(%rip),%rdi
call   1030 <printw@plt>
lea    0x1027(%rip),%rdi
call   1030 <printw@plt>
lea    0x1045(%rip),%rdi
call   1030 <printw@plt>
lea    0x1057(%rip),%rdi
call   1030 <printw@plt>
lea    0x1067(%rip),%rdi
call   1030 <printw@plt>
lea    0x1066(%rip),%rdi
call   1030 <printw@plt>
lea    0x1083(%rip),%rdi
call   1030 <printw@plt>
lea    0x1082(%rip),%rdi
call   1030 <printw@plt>
lea    0x1081(%rip),%rdi
call   1030 <printw@plt>
lea    0x107e(%rip),%rdi
call   1030 <printw@plt>
lea    0x107d(%rip),%rdi
call   1030 <printw@plt>
lea    0x107a(%rip),%rdi
call   1030 <printw@plt>
mov    0x2d71(%rip),%rax
mov    (%rax),%rdi
sub    $0x1,%rdi
xor    %esi,%esi
lea    0x1068(%rip),%rdx
call   1060 <mvprintw@plt>
mov    $0x0,%al
call   1040 <getch@plt>
mov    $0x0,%al
call   1050 <clear@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<titleScreen>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1030 <printw@plt>
lea    0xece(%rip),%rdi
call   1030 <printw@plt>
lea    0xee4(%rip),%rdi
call   1030 <printw@plt>
lea    0xefb(%rip),%rdi
call   1030 <printw@plt>
lea    0xf13(%rip),%rdi
call   1030 <printw@plt>
lea    0xf2f(%rip),%rdi
call   1030 <printw@plt>
lea    0xf48(%rip),%rdi
call   1030 <printw@plt>
lea    0xf68(%rip),%rdi
call   1030 <printw@plt>
lea    0xf86(%rip),%rdi
call   1030 <printw@plt>
lea    0xfa0(%rip),%rdi
call   1030 <printw@plt>
lea    0xfc3(%rip),%rdi
call   1030 <printw@plt>
lea    0xfd8(%rip),%rdi
call   1030 <printw@plt>
lea    0xff9(%rip),%rdi
call   1030 <printw@plt>
lea    0x100e(%rip),%rdi
call   1030 <printw@plt>
lea    0x102a(%rip),%rdi
call   1030 <printw@plt>
lea    0x1048(%rip),%rdi
call   1030 <printw@plt>
lea    0x105a(%rip),%rdi
call   1030 <printw@plt>
lea    0x106a(%rip),%rdi
call   1030 <printw@plt>
lea    0x1069(%rip),%rdi
call   1030 <printw@plt>
lea    0x1086(%rip),%rdi
call   1030 <printw@plt>
lea    0x1085(%rip),%rdi
call   1030 <printw@plt>
lea    0x1084(%rip),%rdi
call   1030 <printw@plt>
lea    0x1081(%rip),%rdi
call   1030 <printw@plt>
lea    0x1080(%rip),%rdi
call   1030 <printw@plt>
lea    0x107d(%rip),%rdi
call   1030 <printw@plt>
mov    0x2d74(%rip),%rax
mov    (%rax),%rdi
add    $0xffffffffffffffff,%rdi
lea    0x106d(%rip),%rdx
xor    %esi,%esi
call   1060 <mvprintw@plt>
xor    %eax,%eax
call   1040 <getch@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <clear@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"********************************\0A\00"
@.str.1 = [34 x i8] c"* Daleks! Adaption by A Clarke *\0A\00"
@.str.2 = [35 x i8] c"********************************\0A\0A\00"
@.str.3 = [36 x i8] c"This is a game based of the Dr. Who\00"
@.str.4 = [40 x i8] c" television show where the point is to\0A\00"
@.str.5 = [37 x i8] c"help Dr Who (denoted by \22@\22) escape \00"
@.str.6 = [44 x i8] c"these horrible monster robot things called\0A\00"
@.str.7 = [42 x i8] c"Daleks (denoted by \22F\22), to kill them you\00"
@.str.8 = [38 x i8] c" must make them crash into eachother\0A\00"
@.str.9 = [47 x i8] c"or at your disposal you also have the power of\00"
@.str.10 = [33 x i8] c" SONIC SCREW, whatever that is \0A\00"
@.str.11 = [45 x i8] c"(ones awarded each stage). It will make any\00"
@.str.12 = [33 x i8] c" daleks around you disappear. \0A\00"
@.str.13 = [40 x i8] c"Dr. Who also knows how to teleport to a\00"
@.str.14 = [42 x i8] c" random location, but beware, you might \0A\00"
@.str.15 = [30 x i8] c"teleport right into a dalek.\0A\00"
@.str.16 = [28 x i8] c"Well that's it, have fun.\0A\0A\00"
@.str.17 = [11 x i8] c"Controls:\0A\00"
@.str.18 = [41 x i8] c"t = teleport; s = super screw; q = quit\0A\00"
@.str.19 = [11 x i8] c"Movement:\0A\00"
@.str.20 = [11 x i8] c"7 8 9\0A\00"
@.str.21 = [9 x i8] c" \\ | /\0A\00"
@.str.22 = [11 x i8] c"u - i - o\0A\00"
@.str.23 = [9 x i8] c" / | \\\0A\00"
@.str.24 = [10 x i8] c"j k l\00"
@LINES = global i64 0
@.str.25 = [22 x i8] c"Press a key to start.\00"
define void @titleScreen() {
%1 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printw(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printw(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printw(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printw(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printw(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printw(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printw(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printw(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printw(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printw(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printw(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printw(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printw(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i64 0, i64 0))
%26 = load i64, i64* @LINES
%27 = sub nsw i64 %26, 1
%28 = call i32 @mvprintw(i64 %27, i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0))
%29 = call i32 (...) @getch()
%30 = call i32 (...) @clear()
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c"********************************\0A\00"
@.str.1 = [34 x i8] c"* Daleks! Adaption by A Clarke *\0A\00"
@.str.2 = [35 x i8] c"********************************\0A\0A\00"
@.str.3 = [36 x i8] c"This is a game based of the Dr. Who\00"
@.str.4 = [40 x i8] c" television show where the point is to\0A\00"
@.str.5 = [37 x i8] c"help Dr Who (denoted by \22@\22) escape \00"
@.str.6 = [44 x i8] c"these horrible monster robot things called\0A\00"
@.str.7 = [42 x i8] c"Daleks (denoted by \22F\22), to kill them you\00"
@.str.8 = [38 x i8] c" must make them crash into eachother\0A\00"
@.str.9 = [47 x i8] c"or at your disposal you also have the power of\00"
@.str.10 = [33 x i8] c" SONIC SCREW, whatever that is \0A\00"
@.str.11 = [45 x i8] c"(ones awarded each stage). It will make any\00"
@.str.12 = [33 x i8] c" daleks around you disappear. \0A\00"
@.str.13 = [40 x i8] c"Dr. Who also knows how to teleport to a\00"
@.str.14 = [42 x i8] c" random location, but beware, you might \0A\00"
@.str.15 = [30 x i8] c"teleport right into a dalek.\0A\00"
@.str.16 = [28 x i8] c"Well that's it, have fun.\0A\0A\00"
@.str.17 = [11 x i8] c"Controls:\0A\00"
@.str.18 = [41 x i8] c"t = teleport; s = super screw; q = quit\0A\00"
@.str.19 = [11 x i8] c"Movement:\0A\00"
@.str.20 = [11 x i8] c"7 8 9\0A\00"
@.str.21 = [9 x i8] c" \\ | /\0A\00"
@.str.22 = [11 x i8] c"u - i - o\0A\00"
@.str.23 = [9 x i8] c" / | \\\0A\00"
@.str.24 = [10 x i8] c"j k l\00"
@LINES = global i64 0
@.str.25 = [22 x i8] c"Press a key to start.\00"
define void @titleScreen() {
%1 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printw(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printw(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printw(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printw(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printw(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @printw(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @printw(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @printw(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @printw(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @printw(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @printw(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @printw(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @printw(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @printw(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0))
%18 = tail call i32 @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
%19 = tail call i32 @printw(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.18, i64 0, i64 0))
%20 = tail call i32 @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0))
%21 = tail call i32 @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0))
%22 = tail call i32 @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
%23 = tail call i32 @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.22, i64 0, i64 0))
%24 = tail call i32 @printw(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.23, i64 0, i64 0))
%25 = tail call i32 @printw(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.24, i64 0, i64 0))
%26 = load i64, i64* @LINES
%27 = add nsw i64 %26, -1
%28 = tail call i32 @mvprintw(i64 %27, i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0))
%29 = tail call i32 (...) @getch()
%30 = tail call i32 (...) @clear()
ret void
}