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


x86 assembly (clang, -O0):
<init_colors>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e8d(%rip),%rax
mov    (%rax),%esi
mov    0x2ec4(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    0x2ea1(%rip),%rax
mov    (%rax),%esi
mov    0x2ea8(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%edi
call   1030 <init_pair@plt>
mov    0x2e65(%rip),%rax
mov    (%rax),%esi
mov    0x2e8c(%rip),%rax
mov    (%rax),%edx
mov    $0x3,%edi
call   1030 <init_pair@plt>
mov    0x2e41(%rip),%rax
mov    (%rax),%esi
mov    0x2e70(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%edi
call   1030 <init_pair@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%esi
mov    0x2e54(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%edi
call   1030 <init_pair@plt>
mov    0x2e39(%rip),%rax
mov    (%rax),%esi
mov    0x2e38(%rip),%rax
mov    (%rax),%edx
mov    $0x6,%edi
call   1030 <init_pair@plt>
mov    0x2ded(%rip),%rax
mov    (%rax),%esi
mov    0x2df4(%rip),%rax
mov    (%rax),%edx
mov    $0x7,%edi
call   1030 <init_pair@plt>
mov    0x2de1(%rip),%rax
mov    (%rax),%esi
mov    0x2dc0(%rip),%rax
mov    (%rax),%edx
mov    $0x8,%edi
call   1030 <init_pair@plt>
mov    0x2ded(%rip),%rax
mov    (%rax),%esi
mov    0x2dd4(%rip),%rax
mov    (%rax),%edx
mov    $0x9,%edi
call   1030 <init_pair@plt>
mov    0x2d99(%rip),%rax
mov    (%rax),%esi
mov    0x2d98(%rip),%rax
mov    (%rax),%edx
mov    $0xa,%edi
call   1030 <init_pair@plt>
mov    0x2d8d(%rip),%rax
mov    (%rax),%esi
mov    0x2d74(%rip),%rax
mov    (%rax),%edx
mov    $0xb,%edi
call   1030 <init_pair@plt>
mov    0x2d71(%rip),%rax
mov    (%rax),%esi
mov    0x2d70(%rip),%rax
mov    (%rax),%edx
mov    $0xc,%edi
call   1030 <init_pair@plt>
mov    0x2d7d(%rip),%rax
mov    (%rax),%esi
mov    0x2d6c(%rip),%rax
mov    (%rax),%edx
mov    $0xd,%edi
call   1030 <init_pair@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_colors>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    0x2e86(%rip),%rax
mov    (%rax),%esi
mov    0x2ebd(%rip),%rbx
mov    (%rbx),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    0x2e9a(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x2,%edi
call   1030 <init_pair@plt>
mov    0x2e65(%rip),%r12
mov    (%r12),%esi
mov    (%rbx),%edx
mov    $0x3,%edi
call   1030 <init_pair@plt>
mov    0x2e46(%rip),%r13
mov    0x0(%r13),%esi
mov    (%rbx),%edx
mov    $0x4,%edi
call   1030 <init_pair@plt>
mov    0x2e47(%rip),%rbp
mov    0x0(%rbp),%esi
mov    (%rbx),%edx
mov    $0x5,%edi
call   1030 <init_pair@plt>
mov    0x2e49(%rip),%r14
mov    (%r14),%esi
mov    (%rbx),%edx
mov    $0x6,%edi
call   1030 <init_pair@plt>
mov    0x0(%r13),%esi
mov    0x2e0f(%rip),%r15
mov    (%r15),%edx
mov    $0x7,%edi
call   1030 <init_pair@plt>
mov    (%r15),%esi
mov    0x2de0(%rip),%rax
mov    (%rax),%edx
mov    $0x8,%edi
call   1030 <init_pair@plt>
mov    (%rbx),%esi
mov    0x2dfb(%rip),%rax
mov    (%rax),%edx
mov    $0x9,%edi
call   1030 <init_pair@plt>
mov    0x0(%r13),%esi
mov    (%r12),%edx
mov    $0xa,%edi
call   1030 <init_pair@plt>
mov    (%r15),%esi
mov    0x0(%r13),%edx
mov    $0xb,%edi
call   1030 <init_pair@plt>
mov    (%r15),%esi
mov    0x0(%rbp),%edx
mov    $0xc,%edi
call   1030 <init_pair@plt>
mov    (%rbx),%esi
mov    (%r14),%edx
mov    $0xd,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <init_pair@plt>

LLVM IR (-O0):
@COLOR_RED = global i32 0
@COLOR_BLACK = 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 = load i32, i32* @COLOR_RED
%2 = load i32, i32* @COLOR_BLACK
%3 = call i32 @init_pair(i32 1, i32 %1, i32 %2)
%4 = load i32, i32* @COLOR_GREEN
%5 = load i32, i32* @COLOR_BLACK
%6 = call i32 @init_pair(i32 2, i32 %4, i32 %5)
%7 = load i32, i32* @COLOR_YELLOW
%8 = load i32, i32* @COLOR_BLACK
%9 = call i32 @init_pair(i32 3, i32 %7, i32 %8)
%10 = load i32, i32* @COLOR_BLUE
%11 = load i32, i32* @COLOR_BLACK
%12 = call i32 @init_pair(i32 4, i32 %10, i32 %11)
%13 = load i32, i32* @COLOR_MAGENTA
%14 = load i32, i32* @COLOR_BLACK
%15 = call i32 @init_pair(i32 5, i32 %13, i32 %14)
%16 = load i32, i32* @COLOR_CYAN
%17 = load i32, i32* @COLOR_BLACK
%18 = call i32 @init_pair(i32 6, i32 %16, i32 %17)
%19 = load i32, i32* @COLOR_BLUE
%20 = load i32, i32* @COLOR_WHITE
%21 = call i32 @init_pair(i32 7, i32 %19, i32 %20)
%22 = load i32, i32* @COLOR_WHITE
%23 = load i32, i32* @COLOR_RED
%24 = call i32 @init_pair(i32 8, i32 %22, i32 %23)
%25 = load i32, i32* @COLOR_BLACK
%26 = load i32, i32* @COLOR_GREEN
%27 = call i32 @init_pair(i32 9, i32 %25, i32 %26)
%28 = load i32, i32* @COLOR_BLUE
%29 = load i32, i32* @COLOR_YELLOW
%30 = call i32 @init_pair(i32 10, i32 %28, i32 %29)
%31 = load i32, i32* @COLOR_WHITE
%32 = load i32, i32* @COLOR_BLUE
%33 = call i32 @init_pair(i32 11, i32 %31, i32 %32)
%34 = load i32, i32* @COLOR_WHITE
%35 = load i32, i32* @COLOR_MAGENTA
%36 = call i32 @init_pair(i32 12, i32 %34, i32 %35)
%37 = load i32, i32* @COLOR_BLACK
%38 = load i32, i32* @COLOR_CYAN
%39 = call i32 @init_pair(i32 13, i32 %37, i32 %38)
ret void
}

LLVM IR (-O2):
@COLOR_RED = global i32 0
@COLOR_BLACK = 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 = load i32, i32* @COLOR_RED
%2 = load i32, i32* @COLOR_BLACK
%3 = tail call i32 @init_pair(i32 1, i32 %1, i32 %2)
%4 = load i32, i32* @COLOR_GREEN
%5 = load i32, i32* @COLOR_BLACK
%6 = tail call i32 @init_pair(i32 2, i32 %4, i32 %5)
%7 = load i32, i32* @COLOR_YELLOW
%8 = load i32, i32* @COLOR_BLACK
%9 = tail call i32 @init_pair(i32 3, i32 %7, i32 %8)
%10 = load i32, i32* @COLOR_BLUE
%11 = load i32, i32* @COLOR_BLACK
%12 = tail call i32 @init_pair(i32 4, i32 %10, i32 %11)
%13 = load i32, i32* @COLOR_MAGENTA
%14 = load i32, i32* @COLOR_BLACK
%15 = tail call i32 @init_pair(i32 5, i32 %13, i32 %14)
%16 = load i32, i32* @COLOR_CYAN
%17 = load i32, i32* @COLOR_BLACK
%18 = tail call i32 @init_pair(i32 6, i32 %16, i32 %17)
%19 = load i32, i32* @COLOR_BLUE
%20 = load i32, i32* @COLOR_WHITE
%21 = tail call i32 @init_pair(i32 7, i32 %19, i32 %20)
%22 = load i32, i32* @COLOR_WHITE
%23 = load i32, i32* @COLOR_RED
%24 = tail call i32 @init_pair(i32 8, i32 %22, i32 %23)
%25 = load i32, i32* @COLOR_BLACK
%26 = load i32, i32* @COLOR_GREEN
%27 = tail call i32 @init_pair(i32 9, i32 %25, i32 %26)
%28 = load i32, i32* @COLOR_BLUE
%29 = load i32, i32* @COLOR_YELLOW
%30 = tail call i32 @init_pair(i32 10, i32 %28, i32 %29)
%31 = load i32, i32* @COLOR_WHITE
%32 = load i32, i32* @COLOR_BLUE
%33 = tail call i32 @init_pair(i32 11, i32 %31, i32 %32)
%34 = load i32, i32* @COLOR_WHITE
%35 = load i32, i32* @COLOR_MAGENTA
%36 = tail call i32 @init_pair(i32 12, i32 %34, i32 %35)
%37 = load i32, i32* @COLOR_BLACK
%38 = load i32, i32* @COLOR_CYAN
%39 = tail call i32 @init_pair(i32 13, i32 %37, i32 %38)
ret void
}