#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_GREEN;
int /*<<< orphan*/ COLOR_RED;
int /*<<< orphan*/ init_pair(int, int /*<<< orphan*/, int /*<<< orphan*/);
void inicializar_colores() {
  init_pair(1, COLOR_RED, COLOR_BLACK);
  init_pair(2, COLOR_BLACK, COLOR_RED);
  init_pair(3, COLOR_BLUE, COLOR_BLACK);
  init_pair(4, COLOR_GREEN, COLOR_BLACK);
}


x86 assembly (clang, -O0):
<inicializar_colores>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ead(%rip),%rax
mov    (%rax),%esi
mov    0x2ec4(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    0x2eb1(%rip),%rax
mov    (%rax),%esi
mov    0x2e88(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%edi
call   1030 <init_pair@plt>
mov    0x2e7d(%rip),%rax
mov    (%rax),%esi
mov    0x2e8c(%rip),%rax
mov    (%rax),%edx
mov    $0x3,%edi
call   1030 <init_pair@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%esi
mov    0x2e70(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%edi
call   1030 <init_pair@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<inicializar_colores>:
push   %r14
push   %rbx
push   %rax
mov    0x2ead(%rip),%r14
mov    (%r14),%esi
mov    0x2ec3(%rip),%rbx
mov    (%rbx),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    (%rbx),%esi
mov    (%r14),%edx
mov    $0x2,%edi
call   1030 <init_pair@plt>
mov    0x2e89(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x3,%edi
call   1030 <init_pair@plt>
mov    0x2e84(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x4,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <init_pair@plt>

LLVM IR (-O0):
@COLOR_RED = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_BLUE = global i32 0
@COLOR_GREEN = global i32 0
define void @inicializar_colores() {
%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_BLACK
%5 = load i32, i32* @COLOR_RED
%6 = call i32 @init_pair(i32 2, i32 %4, i32 %5)
%7 = load i32, i32* @COLOR_BLUE
%8 = load i32, i32* @COLOR_BLACK
%9 = call i32 @init_pair(i32 3, i32 %7, i32 %8)
%10 = load i32, i32* @COLOR_GREEN
%11 = load i32, i32* @COLOR_BLACK
%12 = call i32 @init_pair(i32 4, i32 %10, i32 %11)
ret void
}

LLVM IR (-O2):
@COLOR_RED = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_BLUE = global i32 0
@COLOR_GREEN = global i32 0
define void @inicializar_colores() {
%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_BLACK
%5 = load i32, i32* @COLOR_RED
%6 = tail call i32 @init_pair(i32 2, i32 %4, i32 %5)
%7 = load i32, i32* @COLOR_BLUE
%8 = load i32, i32* @COLOR_BLACK
%9 = tail call i32 @init_pair(i32 3, i32 %7, i32 %8)
%10 = load i32, i32* @COLOR_GREEN
%11 = load i32, i32* @COLOR_BLACK
%12 = tail call i32 @init_pair(i32 4, i32 %10, i32 %11)
ret void
}