#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*/ init_color(int /*<<< orphan*/, int, int /*<<< orphan*/,
                              int /*<<< orphan*/);
int /*<<< orphan*/ init_pair(int, int /*<<< orphan*/, int /*<<< orphan*/);
void initColors() {
  init_color(COLOR_BLACK, 255, 0, 0);
  init_pair(1, COLOR_RED, COLOR_BLACK);
  init_pair(2, COLOR_CYAN, COLOR_BLACK);
  init_pair(3, COLOR_GREEN, COLOR_BLACK);
  init_pair(4, COLOR_YELLOW, COLOR_BLACK);
  init_pair(5, COLOR_MAGENTA, COLOR_BLACK);
  init_pair(6, COLOR_BLUE, COLOR_BLACK);
  init_pair(7, COLOR_WHITE, COLOR_BLACK);
}


x86 assembly (clang, -O0):
<initColors>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    $0xff,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1030 <init_color@plt>
mov    0x2e66(%rip),%rax
mov    (%rax),%esi
mov    0x2e9d(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1040 <init_pair@plt>
mov    0x2e82(%rip),%rax
mov    (%rax),%esi
mov    0x2e81(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%edi
call   1040 <init_pair@plt>
mov    0x2e5e(%rip),%rax
mov    (%rax),%esi
mov    0x2e65(%rip),%rax
mov    (%rax),%edx
mov    $0x3,%edi
call   1040 <init_pair@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%esi
mov    0x2e49(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%edi
call   1040 <init_pair@plt>
mov    0x2e16(%rip),%rax
mov    (%rax),%esi
mov    0x2e2d(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%edi
call   1040 <init_pair@plt>
mov    0x2de2(%rip),%rax
mov    (%rax),%esi
mov    0x2e11(%rip),%rax
mov    (%rax),%edx
mov    $0x6,%edi
call   1040 <init_pair@plt>
mov    0x2dd6(%rip),%rax
mov    (%rax),%esi
mov    0x2df5(%rip),%rax
mov    (%rax),%edx
mov    $0x7,%edi
call   1040 <init_pair@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<initColors>:
push   %rbx
mov    0x2ec0(%rip),%rbx
mov    (%rbx),%edi
mov    $0xff,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1030 <init_color@plt>
mov    0x2e69(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x1,%edi
call   1040 <init_pair@plt>
mov    0x2e8c(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x2,%edi
call   1040 <init_pair@plt>
mov    0x2e6f(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x3,%edi
call   1040 <init_pair@plt>
mov    0x2e3a(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x4,%edi
call   1040 <init_pair@plt>
mov    0x2e35(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x5,%edi
call   1040 <init_pair@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x6,%edi
call   1040 <init_pair@plt>
mov    0x2e03(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x7,%edi
pop    %rbx
jmp    1040 <init_pair@plt>

LLVM IR (-O0):
@COLOR_BLACK = global i32 0
@COLOR_RED = global i32 0
@COLOR_CYAN = global i32 0
@COLOR_GREEN = global i32 0
@COLOR_YELLOW = global i32 0
@COLOR_MAGENTA = global i32 0
@COLOR_BLUE = global i32 0
@COLOR_WHITE = global i32 0
define void @initColors() {
%1 = load i32, i32* @COLOR_BLACK
%2 = call i32 @init_color(i32 %1, i32 255, i32 0, i32 0)
%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_CYAN
%7 = load i32, i32* @COLOR_BLACK
%8 = call i32 @init_pair(i32 2, i32 %6, i32 %7)
%9 = load i32, i32* @COLOR_GREEN
%10 = load i32, i32* @COLOR_BLACK
%11 = call i32 @init_pair(i32 3, i32 %9, i32 %10)
%12 = load i32, i32* @COLOR_YELLOW
%13 = load i32, i32* @COLOR_BLACK
%14 = call i32 @init_pair(i32 4, i32 %12, i32 %13)
%15 = load i32, i32* @COLOR_MAGENTA
%16 = load i32, i32* @COLOR_BLACK
%17 = call i32 @init_pair(i32 5, i32 %15, i32 %16)
%18 = load i32, i32* @COLOR_BLUE
%19 = load i32, i32* @COLOR_BLACK
%20 = call i32 @init_pair(i32 6, i32 %18, i32 %19)
%21 = load i32, i32* @COLOR_WHITE
%22 = load i32, i32* @COLOR_BLACK
%23 = call i32 @init_pair(i32 7, i32 %21, i32 %22)
ret void
}

LLVM IR (-O2):
@COLOR_BLACK = global i32 0
@COLOR_RED = global i32 0
@COLOR_CYAN = global i32 0
@COLOR_GREEN = global i32 0
@COLOR_YELLOW = global i32 0
@COLOR_MAGENTA = global i32 0
@COLOR_BLUE = global i32 0
@COLOR_WHITE = global i32 0
define void @initColors() {
%1 = load i32, i32* @COLOR_BLACK
%2 = tail call i32 @init_color(i32 %1, i32 255, i32 0, i32 0)
%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_CYAN
%7 = load i32, i32* @COLOR_BLACK
%8 = tail call i32 @init_pair(i32 2, i32 %6, i32 %7)
%9 = load i32, i32* @COLOR_GREEN
%10 = load i32, i32* @COLOR_BLACK
%11 = tail call i32 @init_pair(i32 3, i32 %9, i32 %10)
%12 = load i32, i32* @COLOR_YELLOW
%13 = load i32, i32* @COLOR_BLACK
%14 = tail call i32 @init_pair(i32 4, i32 %12, i32 %13)
%15 = load i32, i32* @COLOR_MAGENTA
%16 = load i32, i32* @COLOR_BLACK
%17 = tail call i32 @init_pair(i32 5, i32 %15, i32 %16)
%18 = load i32, i32* @COLOR_BLUE
%19 = load i32, i32* @COLOR_BLACK
%20 = tail call i32 @init_pair(i32 6, i32 %18, i32 %19)
%21 = load i32, i32* @COLOR_WHITE
%22 = load i32, i32* @COLOR_BLACK
%23 = tail call i32 @init_pair(i32 7, i32 %21, i32 %22)
ret void
}