#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*/ PDC_set_title(char *);
int /*<<< orphan*/ curs_set(int /*<<< orphan*/);
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ keypad(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ nodelay(int /*<<< orphan*/, int);
int /*<<< orphan*/ noecho();
int /*<<< orphan*/ nonl();
int /*<<< orphan*/ raw();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ stdscr;
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
void init() {
  srand(time(NULL));
  initscr();
  PDC_set_title("Shox by Cymon's Games");
  raw();
  nodelay(stdscr, 1);
  noecho();
  curs_set(0);
  nonl();
  keypad(stdscr, 0);
}


x86 assembly (clang, -O0):
<init>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
mov    %eax,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
mov    $0x0,%al
call   1050 <initscr@plt>
lea    0xe3e(%rip),%rdi
call   1040 <PDC_set_title@plt>
mov    $0x0,%al
call   1060 <raw@plt>
mov    0x2e13(%rip),%rax
mov    (%rax),%edi
mov    $0x1,%esi
call   10a0 <nodelay@plt>
mov    $0x0,%al
call   10b0 <noecho@plt>
xor    %edi,%edi
call   10c0 <curs_set@plt>
mov    $0x0,%al
call   1080 <nonl@plt>
mov    0x2deb(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1030 <keypad@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init>:
push   %rbx
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
xor    %eax,%eax
call   1050 <initscr@plt>
lea    0xe43(%rip),%rdi
call   1040 <PDC_set_title@plt>
xor    %eax,%eax
call   1060 <raw@plt>
mov    0x2e18(%rip),%rbx
mov    (%rbx),%edi
mov    $0x1,%esi
call   10a0 <nodelay@plt>
xor    %eax,%eax
call   10b0 <noecho@plt>
xor    %edi,%edi
call   10c0 <curs_set@plt>
xor    %eax,%eax
call   1080 <nonl@plt>
mov    (%rbx),%edi
xor    %esi,%esi
pop    %rbx
jmp    1030 <keypad@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"Shox by Cymon's Games\00"
@stdscr = global i32 0
define void @init() {
%1 = call i32 @time(i32* null)
%2 = call i32 @srand(i32 %1)
%3 = call i32 (...) @initscr()
%4 = call i32 @PDC_set_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%5 = call i32 (...) @raw()
%6 = load i32, i32* @stdscr
%7 = call i32 @nodelay(i32 %6, i32 1)
%8 = call i32 (...) @noecho()
%9 = call i32 @curs_set(i32 0)
%10 = call i32 (...) @nonl()
%11 = load i32, i32* @stdscr
%12 = call i32 @keypad(i32 %11, i32 0)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"Shox by Cymon's Games\00"
@stdscr = global i32 0
define void @init() {
%1 = tail call i32 @time(i32* null)
%2 = tail call i32 @srand(i32 %1)
%3 = tail call i32 (...) @initscr()
%4 = tail call i32 @PDC_set_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 (...) @raw()
%6 = load i32, i32* @stdscr
%7 = tail call i32 @nodelay(i32 %6, i32 1)
%8 = tail call i32 (...) @noecho()
%9 = tail call i32 @curs_set(i32 0)
%10 = tail call i32 (...) @nonl()
%11 = load i32, i32* @stdscr
%12 = tail call i32 @keypad(i32 %11, i32 0)
ret void
}