#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 COLOR_BLACK;
int COLOR_BLUE;
int COLOR_GREEN;
int COLOR_RED;
int COLOR_WHITE;
int COLOR_YELLOW;
int /*<<< orphan*/ assume_default_colors(int, int);
int /*<<< orphan*/ init_pair(int, int, int);
int /*<<< orphan*/ start_color();
int /*<<< orphan*/ use_default_colors();
void configure_color() {
  use_default_colors();
  assume_default_colors(-1, -1);
  start_color();
  init_pair(COLOR_WHITE, COLOR_BLACK, COLOR_WHITE);
  init_pair(COLOR_BLUE, COLOR_BLUE, -1);
  init_pair(COLOR_RED, COLOR_RED, -1);
  init_pair(COLOR_GREEN, COLOR_GREEN, -1);
  init_pair(COLOR_YELLOW, COLOR_YELLOW, -1);
}


x86 assembly (clang, -O0):
<configure_color>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <use_default_colors@plt>
mov    $0xffffffff,%esi
mov    %esi,%edi
call   1030 <assume_default_colors@plt>
mov    $0x0,%al
call   1060 <start_color@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%edi
mov    0x2e7a(%rip),%rax
mov    (%rax),%esi
mov    0x2e59(%rip),%rax
mov    (%rax),%edx
call   1050 <init_pair@plt>
mov    0x2e3b(%rip),%rax
mov    (%rax),%edi
mov    0x2e32(%rip),%rax
mov    (%rax),%esi
mov    $0xffffffff,%edx
call   1050 <init_pair@plt>
mov    0x2e17(%rip),%rax
mov    (%rax),%edi
mov    0x2e0e(%rip),%rax
mov    (%rax),%esi
mov    $0xffffffff,%edx
call   1050 <init_pair@plt>
mov    0x2e23(%rip),%rax
mov    (%rax),%edi
mov    0x2e1a(%rip),%rax
mov    (%rax),%esi
mov    $0xffffffff,%edx
call   1050 <init_pair@plt>
mov    0x2def(%rip),%rax
mov    (%rax),%edi
mov    0x2de6(%rip),%rax
mov    (%rax),%esi
mov    $0xffffffff,%edx
call   1050 <init_pair@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<configure_color>:
push   %rax
xor    %eax,%eax
call   1040 <use_default_colors@plt>
mov    $0xffffffff,%edi
mov    $0xffffffff,%esi
call   1030 <assume_default_colors@plt>
xor    %eax,%eax
call   1060 <start_color@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%edi
mov    0x2e7a(%rip),%rax
mov    (%rax),%esi
mov    %edi,%edx
call   1050 <init_pair@plt>
mov    0x2e42(%rip),%rax
mov    (%rax),%edi
mov    %edi,%esi
mov    $0xffffffff,%edx
call   1050 <init_pair@plt>
mov    0x2e25(%rip),%rax
mov    (%rax),%edi
mov    %edi,%esi
mov    $0xffffffff,%edx
call   1050 <init_pair@plt>
mov    0x2e38(%rip),%rax
mov    (%rax),%edi
mov    %edi,%esi
mov    $0xffffffff,%edx
call   1050 <init_pair@plt>
mov    0x2e0b(%rip),%rax
mov    (%rax),%edi
mov    %edi,%esi
mov    $0xffffffff,%edx
pop    %rax
jmp    1050 <init_pair@plt>

LLVM IR (-O0):
@COLOR_WHITE = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_BLUE = global i32 0
@COLOR_RED = global i32 0
@COLOR_GREEN = global i32 0
@COLOR_YELLOW = global i32 0
define void @configure_color() {
%1 = call i32 (...) @use_default_colors()
%2 = call i32 @assume_default_colors(i32 -1, i32 -1)
%3 = call i32 (...) @start_color()
%4 = load i32, i32* @COLOR_WHITE
%5 = load i32, i32* @COLOR_BLACK
%6 = load i32, i32* @COLOR_WHITE
%7 = call i32 @init_pair(i32 %4, i32 %5, i32 %6)
%8 = load i32, i32* @COLOR_BLUE
%9 = load i32, i32* @COLOR_BLUE
%10 = call i32 @init_pair(i32 %8, i32 %9, i32 -1)
%11 = load i32, i32* @COLOR_RED
%12 = load i32, i32* @COLOR_RED
%13 = call i32 @init_pair(i32 %11, i32 %12, i32 -1)
%14 = load i32, i32* @COLOR_GREEN
%15 = load i32, i32* @COLOR_GREEN
%16 = call i32 @init_pair(i32 %14, i32 %15, i32 -1)
%17 = load i32, i32* @COLOR_YELLOW
%18 = load i32, i32* @COLOR_YELLOW
%19 = call i32 @init_pair(i32 %17, i32 %18, i32 -1)
ret void
}

LLVM IR (-O2):
@COLOR_WHITE = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_BLUE = global i32 0
@COLOR_RED = global i32 0
@COLOR_GREEN = global i32 0
@COLOR_YELLOW = global i32 0
define void @configure_color() {
%1 = tail call i32 (...) @use_default_colors()
%2 = tail call i32 @assume_default_colors(i32 -1, i32 -1)
%3 = tail call i32 (...) @start_color()
%4 = load i32, i32* @COLOR_WHITE
%5 = load i32, i32* @COLOR_BLACK
%6 = tail call i32 @init_pair(i32 %4, i32 %5, i32 %4)
%7 = load i32, i32* @COLOR_BLUE
%8 = tail call i32 @init_pair(i32 %7, i32 %7, i32 -1)
%9 = load i32, i32* @COLOR_RED
%10 = tail call i32 @init_pair(i32 %9, i32 %9, i32 -1)
%11 = load i32, i32* @COLOR_GREEN
%12 = tail call i32 @init_pair(i32 %11, i32 %11, i32 -1)
%13 = load i32, i32* @COLOR_YELLOW
%14 = tail call i32 @init_pair(i32 %13, i32 %13, i32 -1)
ret void
}