#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_BLUE;
int /*<<< orphan*/ COLOR_CYAN;
int /*<<< orphan*/ COLOR_GREEN;
int /*<<< orphan*/ COLOR_MAGENTA;
int /*<<< orphan*/ COLOR_RED;
int /*<<< orphan*/ COLOR_WHITE;
int /*<<< orphan*/ COLOR_YELLOW;
int /*<<< orphan*/ cbreak();
int /*<<< orphan*/ curs_set(int /*<<< orphan*/);
int /*<<< orphan*/ init_color(int /*<<< orphan*/, int /*<<< orphan*/,
                              int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ init_pair(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ keypad(int /*<<< orphan*/, int);
int /*<<< orphan*/ noecho();
int /*<<< orphan*/ start_color();
int /*<<< orphan*/ stdscr;
void init_raycaster() {
  initscr();
  noecho();
  cbreak();
  keypad(stdscr, 1);
  curs_set(0);
  start_color();
  init_color(COLOR_BLACK, 0, 0, 0);
  init_pair(1, COLOR_WHITE, COLOR_BLACK);
  init_pair(2, COLOR_RED, COLOR_BLACK);
  init_pair(3, COLOR_GREEN, COLOR_BLACK);
  init_pair(4, COLOR_YELLOW, COLOR_BLACK);
  init_pair(5, COLOR_BLUE, COLOR_BLACK);
  init_pair(6, COLOR_MAGENTA, COLOR_BLACK);
  init_pair(7, COLOR_CYAN, COLOR_BLACK);
}


x86 assembly (clang, -O0):
<init_raycaster>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1070 <initscr@plt>
mov    $0x0,%al
call   1090 <noecho@plt>
mov    $0x0,%al
call   1040 <cbreak@plt>
mov    0x2e48(%rip),%rax
mov    (%rax),%edi
mov    $0x1,%esi
call   1060 <keypad@plt>
xor    %edi,%edi
call   10a0 <curs_set@plt>
mov    $0x0,%al
call   1080 <start_color@plt>
mov    0x2e1f(%rip),%rax
mov    (%rax),%edi
xor    %ecx,%ecx
mov    %ecx,%esi
mov    %ecx,%edx
call   1030 <init_color@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%esi
mov    0x2e02(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1050 <init_pair@plt>
mov    0x2daf(%rip),%rax
mov    (%rax),%esi
mov    0x2de6(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%edi
call   1050 <init_pair@plt>
mov    0x2dc3(%rip),%rax
mov    (%rax),%esi
mov    0x2dca(%rip),%rax
mov    (%rax),%edx
mov    $0x3,%edi
call   1050 <init_pair@plt>
mov    0x2d87(%rip),%rax
mov    (%rax),%esi
mov    0x2dae(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%edi
call   1050 <init_pair@plt>
mov    0x2d63(%rip),%rax
mov    (%rax),%esi
mov    0x2d92(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%edi
call   1050 <init_pair@plt>
mov    0x2d5f(%rip),%rax
mov    (%rax),%esi
mov    0x2d76(%rip),%rax
mov    (%rax),%edx
mov    $0x6,%edi
call   1050 <init_pair@plt>
mov    0x2d5b(%rip),%rax
mov    (%rax),%esi
mov    0x2d5a(%rip),%rax
mov    (%rax),%edx
mov    $0x7,%edi
call   1050 <init_pair@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_raycaster>:
push   %rbx
xor    %eax,%eax
call   1070 <initscr@plt>
xor    %eax,%eax
call   1090 <noecho@plt>
xor    %eax,%eax
call   1040 <cbreak@plt>
mov    0x2e4b(%rip),%rax
mov    (%rax),%edi
mov    $0x1,%esi
call   1060 <keypad@plt>
xor    %edi,%edi
call   10a0 <curs_set@plt>
xor    %eax,%eax
call   1080 <start_color@plt>
mov    0x2e22(%rip),%rbx
mov    (%rbx),%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1030 <init_color@plt>
mov    0x2de6(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x1,%edi
call   1050 <init_pair@plt>
mov    0x2db9(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x2,%edi
call   1050 <init_pair@plt>
mov    0x2dd4(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x3,%edi
call   1050 <init_pair@plt>
mov    0x2d9f(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x4,%edi
call   1050 <init_pair@plt>
mov    0x2d82(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x5,%edi
call   1050 <init_pair@plt>
mov    0x2d85(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x6,%edi
call   1050 <init_pair@plt>
mov    0x2d88(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x7,%edi
pop    %rbx
jmp    1050 <init_pair@plt>

LLVM IR (-O0):
@stdscr = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_WHITE = global i32 0
@COLOR_RED = global i32 0
@COLOR_GREEN = global i32 0
@COLOR_YELLOW = global i32 0
@COLOR_BLUE = global i32 0
@COLOR_MAGENTA = global i32 0
@COLOR_CYAN = global i32 0
define void @init_raycaster() {
%1 = call i32 (...) @initscr()
%2 = call i32 (...) @noecho()
%3 = call i32 (...) @cbreak()
%4 = load i32, i32* @stdscr
%5 = call i32 @keypad(i32 %4, i32 1)
%6 = call i32 @curs_set(i32 0)
%7 = call i32 (...) @start_color()
%8 = load i32, i32* @COLOR_BLACK
%9 = call i32 @init_color(i32 %8, i32 0, i32 0, i32 0)
%10 = load i32, i32* @COLOR_WHITE
%11 = load i32, i32* @COLOR_BLACK
%12 = call i32 @init_pair(i32 1, i32 %10, i32 %11)
%13 = load i32, i32* @COLOR_RED
%14 = load i32, i32* @COLOR_BLACK
%15 = call i32 @init_pair(i32 2, i32 %13, i32 %14)
%16 = load i32, i32* @COLOR_GREEN
%17 = load i32, i32* @COLOR_BLACK
%18 = call i32 @init_pair(i32 3, i32 %16, i32 %17)
%19 = load i32, i32* @COLOR_YELLOW
%20 = load i32, i32* @COLOR_BLACK
%21 = call i32 @init_pair(i32 4, i32 %19, i32 %20)
%22 = load i32, i32* @COLOR_BLUE
%23 = load i32, i32* @COLOR_BLACK
%24 = call i32 @init_pair(i32 5, i32 %22, i32 %23)
%25 = load i32, i32* @COLOR_MAGENTA
%26 = load i32, i32* @COLOR_BLACK
%27 = call i32 @init_pair(i32 6, i32 %25, i32 %26)
%28 = load i32, i32* @COLOR_CYAN
%29 = load i32, i32* @COLOR_BLACK
%30 = call i32 @init_pair(i32 7, i32 %28, i32 %29)
ret void
}

LLVM IR (-O2):
@stdscr = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_WHITE = global i32 0
@COLOR_RED = global i32 0
@COLOR_GREEN = global i32 0
@COLOR_YELLOW = global i32 0
@COLOR_BLUE = global i32 0
@COLOR_MAGENTA = global i32 0
@COLOR_CYAN = global i32 0
define void @init_raycaster() {
%1 = tail call i32 (...) @initscr()
%2 = tail call i32 (...) @noecho()
%3 = tail call i32 (...) @cbreak()
%4 = load i32, i32* @stdscr
%5 = tail call i32 @keypad(i32 %4, i32 1)
%6 = tail call i32 @curs_set(i32 0)
%7 = tail call i32 (...) @start_color()
%8 = load i32, i32* @COLOR_BLACK
%9 = tail call i32 @init_color(i32 %8, i32 0, i32 0, i32 0)
%10 = load i32, i32* @COLOR_WHITE
%11 = load i32, i32* @COLOR_BLACK
%12 = tail call i32 @init_pair(i32 1, i32 %10, i32 %11)
%13 = load i32, i32* @COLOR_RED
%14 = load i32, i32* @COLOR_BLACK
%15 = tail call i32 @init_pair(i32 2, i32 %13, i32 %14)
%16 = load i32, i32* @COLOR_GREEN
%17 = load i32, i32* @COLOR_BLACK
%18 = tail call i32 @init_pair(i32 3, i32 %16, i32 %17)
%19 = load i32, i32* @COLOR_YELLOW
%20 = load i32, i32* @COLOR_BLACK
%21 = tail call i32 @init_pair(i32 4, i32 %19, i32 %20)
%22 = load i32, i32* @COLOR_BLUE
%23 = load i32, i32* @COLOR_BLACK
%24 = tail call i32 @init_pair(i32 5, i32 %22, i32 %23)
%25 = load i32, i32* @COLOR_MAGENTA
%26 = load i32, i32* @COLOR_BLACK
%27 = tail call i32 @init_pair(i32 6, i32 %25, i32 %26)
%28 = load i32, i32* @COLOR_CYAN
%29 = load i32, i32* @COLOR_BLACK
%30 = tail call i32 @init_pair(i32 7, i32 %28, i32 %29)
ret void
}