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


x86 assembly (clang, -O0):
<init_colors>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <start_color@plt>
mov    0x2e7e(%rip),%rax
mov    (%rax),%esi
mov    0x2e75(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    0x2e92(%rip),%rax
mov    (%rax),%esi
mov    0x2e89(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%edi
call   1030 <init_pair@plt>
mov    0x2e56(%rip),%rax
mov    (%rax),%esi
mov    0x2e4d(%rip),%rax
mov    (%rax),%edx
mov    $0x3,%edi
call   1030 <init_pair@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%esi
mov    0x2e29(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%edi
call   1030 <init_pair@plt>
mov    0x2e2e(%rip),%rax
mov    (%rax),%esi
mov    0x2e25(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%edi
call   1030 <init_pair@plt>
mov    0x2e2a(%rip),%rax
mov    (%rax),%esi
mov    0x2e21(%rip),%rax
mov    (%rax),%edx
mov    $0x6,%edi
call   1030 <init_pair@plt>
mov    0x2dee(%rip),%rax
mov    (%rax),%esi
mov    0x2de5(%rip),%rax
mov    (%rax),%edx
mov    $0x7,%edi
call   1030 <init_pair@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_colors>:
push   %rax
xor    %eax,%eax
call   1040 <start_color@plt>
mov    0x2e81(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
mov    %edx,%esi
call   1030 <init_pair@plt>
mov    0x2e9c(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%edi
mov    %edx,%esi
call   1030 <init_pair@plt>
mov    0x2e67(%rip),%rax
mov    (%rax),%edx
mov    $0x3,%edi
mov    %edx,%esi
call   1030 <init_pair@plt>
mov    0x2e4a(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%edi
mov    %edx,%esi
call   1030 <init_pair@plt>
mov    0x2e4d(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%edi
mov    %edx,%esi
call   1030 <init_pair@plt>
mov    0x2e50(%rip),%rax
mov    (%rax),%edx
mov    $0x6,%edi
mov    %edx,%esi
call   1030 <init_pair@plt>
mov    0x2e1b(%rip),%rax
mov    (%rax),%edx
mov    $0x7,%edi
mov    %edx,%esi
pop    %rax
jmp    1030 <init_pair@plt>

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

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