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


x86 assembly (clang, -O0):
<defineColors>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%edx
xor    %edi,%edi
mov    $0x7,%esi
call   1030 <init_pair@plt>
mov    0x2e78(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <init_pair@plt>
mov    0x2e93(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%edi
xor    %esi,%esi
call   1030 <init_pair@plt>
mov    0x2e5e(%rip),%rax
mov    (%rax),%edx
mov    $0x3,%edi
xor    %esi,%esi
call   1030 <init_pair@plt>
mov    0x2e41(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%edi
xor    %esi,%esi
call   1030 <init_pair@plt>
mov    0x2e44(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%edi
xor    %esi,%esi
call   1030 <init_pair@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%edx
mov    $0x6,%edi
xor    %esi,%esi
call   1030 <init_pair@plt>
mov    0x2e12(%rip),%rax
mov    (%rax),%edx
mov    $0x7,%edi
xor    %esi,%esi
call   1030 <init_pair@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<defineColors>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%edx
xor    %edi,%edi
mov    $0x7,%esi
call   1030 <init_pair@plt>
mov    0x2e7b(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <init_pair@plt>
mov    0x2e96(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%edi
xor    %esi,%esi
call   1030 <init_pair@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edx
mov    $0x3,%edi
xor    %esi,%esi
call   1030 <init_pair@plt>
mov    0x2e44(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%edi
xor    %esi,%esi
call   1030 <init_pair@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%edi
xor    %esi,%esi
call   1030 <init_pair@plt>
mov    0x2e4a(%rip),%rax
mov    (%rax),%edx
mov    $0x6,%edi
xor    %esi,%esi
call   1030 <init_pair@plt>
mov    0x2e15(%rip),%rax
mov    (%rax),%edx
mov    $0x7,%edi
xor    %esi,%esi
pop    %rax
jmp    1030 <init_pair@plt>

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

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