#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_CYAN;
int /*<<< orphan*/ COLOR_GREEN;
int /*<<< orphan*/ COLOR_RED;
int /*<<< orphan*/ COLOR_WHITE;
int /*<<< orphan*/ COLOR_YELLOW;
int /*<<< orphan*/ err(char *, int);
int /*<<< orphan*/ init_pair(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ start_color();
void init_colors() {
  err("<init_colors>", +1);
  start_color();
  init_pair(1, COLOR_RED, COLOR_BLACK);
  init_pair(2, COLOR_WHITE, COLOR_BLACK);
  init_pair(3, COLOR_CYAN, COLOR_BLACK);
  init_pair(4, COLOR_WHITE, COLOR_WHITE);
  init_pair(5, COLOR_GREEN, COLOR_WHITE);
  init_pair(6, COLOR_BLACK, COLOR_WHITE);
  init_pair(7, COLOR_WHITE, COLOR_GREEN);
  init_pair(8, COLOR_GREEN, COLOR_BLACK);
  init_pair(9, COLOR_GREEN, COLOR_GREEN);
  init_pair(10, COLOR_RED, COLOR_RED);
  init_pair(14, COLOR_YELLOW, COLOR_YELLOW);
  init_pair(11, COLOR_GREEN, COLOR_BLACK);
  init_pair(12, COLOR_RED, COLOR_WHITE);
  init_pair(13, COLOR_RED, COLOR_BLACK);
  err("</init_colors>", -1);
}


x86 assembly (clang, -O0):
<init_colors>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
mov    $0x1,%esi
call   1050 <err@plt>
mov    $0x0,%al
call   1040 <start_color@plt>
mov    0x2e65(%rip),%rax
mov    (%rax),%esi
mov    0x2e8c(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    0x2e59(%rip),%rax
mov    (%rax),%esi
mov    0x2e70(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%edi
call   1030 <init_pair@plt>
mov    0x2e55(%rip),%rax
mov    (%rax),%esi
mov    0x2e54(%rip),%rax
mov    (%rax),%edx
mov    $0x3,%edi
call   1030 <init_pair@plt>
mov    0x2e21(%rip),%rax
mov    (%rax),%esi
mov    0x2e18(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%edi
call   1030 <init_pair@plt>
mov    0x2e15(%rip),%rax
mov    (%rax),%esi
mov    0x2dfc(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%edi
call   1030 <init_pair@plt>
mov    0x2e09(%rip),%rax
mov    (%rax),%esi
mov    0x2de0(%rip),%rax
mov    (%rax),%edx
mov    $0x6,%edi
call   1030 <init_pair@plt>
mov    0x2dcd(%rip),%rax
mov    (%rax),%esi
mov    0x2dd4(%rip),%rax
mov    (%rax),%edx
mov    $0x7,%edi
call   1030 <init_pair@plt>
mov    0x2dc1(%rip),%rax
mov    (%rax),%esi
mov    0x2dc8(%rip),%rax
mov    (%rax),%edx
mov    $0x8,%edi
call   1030 <init_pair@plt>
mov    0x2da5(%rip),%rax
mov    (%rax),%esi
mov    0x2d9c(%rip),%rax
mov    (%rax),%edx
mov    $0x9,%edi
call   1030 <init_pair@plt>
mov    0x2d69(%rip),%rax
mov    (%rax),%esi
mov    0x2d60(%rip),%rax
mov    (%rax),%edx
mov    $0xa,%edi
call   1030 <init_pair@plt>
mov    0x2d55(%rip),%rax
mov    (%rax),%esi
mov    0x2d4c(%rip),%rax
mov    (%rax),%edx
mov    $0xe,%edi
call   1030 <init_pair@plt>
mov    0x2d51(%rip),%rax
mov    (%rax),%esi
mov    0x2d58(%rip),%rax
mov    (%rax),%edx
mov    $0xb,%edi
call   1030 <init_pair@plt>
mov    0x2d15(%rip),%rax
mov    (%rax),%esi
mov    0x2d1c(%rip),%rax
mov    (%rax),%edx
mov    $0xc,%edi
call   1030 <init_pair@plt>
mov    0x2cf9(%rip),%rax
mov    (%rax),%esi
mov    0x2d20(%rip),%rax
mov    (%rax),%edx
mov    $0xd,%edi
call   1030 <init_pair@plt>
lea    0xd33(%rip),%rdi
mov    $0xffffffff,%esi
call   1050 <err@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_colors>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xec1(%rip),%rdi
mov    $0x1,%esi
call   1050 <err@plt>
xor    %eax,%eax
call   1040 <start_color@plt>
mov    0x2e61(%rip),%r14
mov    (%r14),%esi
mov    0x2e87(%rip),%r12
mov    (%r12),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    0x2e52(%rip),%r15
mov    (%r15),%esi
mov    (%r12),%edx
mov    $0x2,%edi
call   1030 <init_pair@plt>
mov    0x2e52(%rip),%rax
mov    (%rax),%esi
mov    (%r12),%edx
mov    $0x3,%edi
call   1030 <init_pair@plt>
mov    (%r15),%edx
mov    $0x4,%edi
mov    %edx,%esi
call   1030 <init_pair@plt>
mov    0x2e24(%rip),%rbx
mov    (%rbx),%esi
mov    (%r15),%edx
mov    $0x5,%edi
call   1030 <init_pair@plt>
mov    (%r12),%esi
mov    (%r15),%edx
mov    $0x6,%edi
call   1030 <init_pair@plt>
mov    (%r15),%esi
mov    (%rbx),%edx
mov    $0x7,%edi
call   1030 <init_pair@plt>
mov    (%rbx),%esi
mov    (%r12),%edx
mov    $0x8,%edi
call   1030 <init_pair@plt>
mov    (%rbx),%edx
mov    $0x9,%edi
mov    %edx,%esi
call   1030 <init_pair@plt>
mov    (%r14),%edx
mov    $0xa,%edi
mov    %edx,%esi
call   1030 <init_pair@plt>
mov    0x2da9(%rip),%rax
mov    (%rax),%edx
mov    $0xe,%edi
mov    %edx,%esi
call   1030 <init_pair@plt>
mov    (%rbx),%esi
mov    (%r12),%edx
mov    $0xb,%edi
call   1030 <init_pair@plt>
mov    (%r14),%esi
mov    (%r15),%edx
mov    $0xc,%edi
call   1030 <init_pair@plt>
mov    (%r14),%esi
mov    (%r12),%edx
mov    $0xd,%edi
call   1030 <init_pair@plt>
lea    0xdb1(%rip),%rdi
mov    $0xffffffff,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1050 <err@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"<init_colors>\00"
@COLOR_RED = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_WHITE = global i32 0
@COLOR_CYAN = global i32 0
@COLOR_GREEN = global i32 0
@COLOR_YELLOW = global i32 0
@.str.1 = [15 x i8] c"</init_colors>\00"
define void @init_colors() {
%1 = call i32 @err(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = call i32 (...) @start_color()
%3 = load i32, i32* @COLOR_RED
%4 = load i32, i32* @COLOR_BLACK
%5 = call i32 @init_pair(i32 1, i32 %3, i32 %4)
%6 = load i32, i32* @COLOR_WHITE
%7 = load i32, i32* @COLOR_BLACK
%8 = call i32 @init_pair(i32 2, i32 %6, i32 %7)
%9 = load i32, i32* @COLOR_CYAN
%10 = load i32, i32* @COLOR_BLACK
%11 = call i32 @init_pair(i32 3, i32 %9, i32 %10)
%12 = load i32, i32* @COLOR_WHITE
%13 = load i32, i32* @COLOR_WHITE
%14 = call i32 @init_pair(i32 4, i32 %12, i32 %13)
%15 = load i32, i32* @COLOR_GREEN
%16 = load i32, i32* @COLOR_WHITE
%17 = call i32 @init_pair(i32 5, i32 %15, i32 %16)
%18 = load i32, i32* @COLOR_BLACK
%19 = load i32, i32* @COLOR_WHITE
%20 = call i32 @init_pair(i32 6, i32 %18, i32 %19)
%21 = load i32, i32* @COLOR_WHITE
%22 = load i32, i32* @COLOR_GREEN
%23 = call i32 @init_pair(i32 7, i32 %21, i32 %22)
%24 = load i32, i32* @COLOR_GREEN
%25 = load i32, i32* @COLOR_BLACK
%26 = call i32 @init_pair(i32 8, i32 %24, i32 %25)
%27 = load i32, i32* @COLOR_GREEN
%28 = load i32, i32* @COLOR_GREEN
%29 = call i32 @init_pair(i32 9, i32 %27, i32 %28)
%30 = load i32, i32* @COLOR_RED
%31 = load i32, i32* @COLOR_RED
%32 = call i32 @init_pair(i32 10, i32 %30, i32 %31)
%33 = load i32, i32* @COLOR_YELLOW
%34 = load i32, i32* @COLOR_YELLOW
%35 = call i32 @init_pair(i32 14, i32 %33, i32 %34)
%36 = load i32, i32* @COLOR_GREEN
%37 = load i32, i32* @COLOR_BLACK
%38 = call i32 @init_pair(i32 11, i32 %36, i32 %37)
%39 = load i32, i32* @COLOR_RED
%40 = load i32, i32* @COLOR_WHITE
%41 = call i32 @init_pair(i32 12, i32 %39, i32 %40)
%42 = load i32, i32* @COLOR_RED
%43 = load i32, i32* @COLOR_BLACK
%44 = call i32 @init_pair(i32 13, i32 %42, i32 %43)
%45 = call i32 @err(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 -1)
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"<init_colors>\00"
@COLOR_RED = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_WHITE = global i32 0
@COLOR_CYAN = global i32 0
@COLOR_GREEN = global i32 0
@COLOR_YELLOW = global i32 0
@.str.1 = [15 x i8] c"</init_colors>\00"
define void @init_colors() {
%1 = tail call i32 @err(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 (...) @start_color()
%3 = load i32, i32* @COLOR_RED
%4 = load i32, i32* @COLOR_BLACK
%5 = tail call i32 @init_pair(i32 1, i32 %3, i32 %4)
%6 = load i32, i32* @COLOR_WHITE
%7 = load i32, i32* @COLOR_BLACK
%8 = tail call i32 @init_pair(i32 2, i32 %6, i32 %7)
%9 = load i32, i32* @COLOR_CYAN
%10 = load i32, i32* @COLOR_BLACK
%11 = tail call i32 @init_pair(i32 3, i32 %9, i32 %10)
%12 = load i32, i32* @COLOR_WHITE
%13 = tail call i32 @init_pair(i32 4, i32 %12, i32 %12)
%14 = load i32, i32* @COLOR_GREEN
%15 = load i32, i32* @COLOR_WHITE
%16 = tail call i32 @init_pair(i32 5, i32 %14, i32 %15)
%17 = load i32, i32* @COLOR_BLACK
%18 = load i32, i32* @COLOR_WHITE
%19 = tail call i32 @init_pair(i32 6, i32 %17, i32 %18)
%20 = load i32, i32* @COLOR_WHITE
%21 = load i32, i32* @COLOR_GREEN
%22 = tail call i32 @init_pair(i32 7, i32 %20, i32 %21)
%23 = load i32, i32* @COLOR_GREEN
%24 = load i32, i32* @COLOR_BLACK
%25 = tail call i32 @init_pair(i32 8, i32 %23, i32 %24)
%26 = load i32, i32* @COLOR_GREEN
%27 = tail call i32 @init_pair(i32 9, i32 %26, i32 %26)
%28 = load i32, i32* @COLOR_RED
%29 = tail call i32 @init_pair(i32 10, i32 %28, i32 %28)
%30 = load i32, i32* @COLOR_YELLOW
%31 = tail call i32 @init_pair(i32 14, i32 %30, i32 %30)
%32 = load i32, i32* @COLOR_GREEN
%33 = load i32, i32* @COLOR_BLACK
%34 = tail call i32 @init_pair(i32 11, i32 %32, i32 %33)
%35 = load i32, i32* @COLOR_RED
%36 = load i32, i32* @COLOR_WHITE
%37 = tail call i32 @init_pair(i32 12, i32 %35, i32 %36)
%38 = load i32, i32* @COLOR_RED
%39 = load i32, i32* @COLOR_BLACK
%40 = tail call i32 @init_pair(i32 13, i32 %38, i32 %39)
%41 = tail call i32 @err(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 -1)
ret void
}