#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*/ A_ALTCHARSET;
int /*<<< orphan*/ A_BLINK;
int /*<<< orphan*/ A_BOLD;
int /*<<< orphan*/ A_CHARTEXT;
int /*<<< orphan*/ A_DIM;
int /*<<< orphan*/ A_INVIS;
int /*<<< orphan*/ A_ITALIC;
int /*<<< orphan*/ A_NORMAL;
int /*<<< orphan*/ A_PROTECT;
int /*<<< orphan*/ A_REVERSE;
int /*<<< orphan*/ A_STANDOUT;
int /*<<< orphan*/ A_UNDERLINE;
int /*<<< orphan*/ printf(char *, char *, int /*<<< orphan*/, char *);
int main() {
  printf("% 15s = % 10lu_u32 # - %s\n", "A_NORMAL", A_NORMAL,
         "Normal display (no highlight)");
  printf("% 15s = % 10lu_u32 # - %s\n", "A_STANDOUT", A_STANDOUT,
         "Best highlighting mode of the terminal.");
  printf("% 15s = % 10lu_u32 # - %s\n", "A_UNDERLINE", A_UNDERLINE,
         "Underlining");
  printf("% 15s = % 10lu_u32 # - %s\n", "A_REVERSE", A_REVERSE,
         "Reverse video");
  printf("% 15s = % 10lu_u32 # - %s\n", "A_BLINK", A_BLINK, "Blinking");
  printf("% 15s = % 10lu_u32 # - %s\n", "A_DIM", A_DIM, "Half bright");
  printf("% 15s = % 10lu_u32 # - %s\n", "A_BOLD", A_BOLD,
         "Extra bright or bold");
  printf("% 15s = % 10lu_u32 # - %s\n", "A_PROTECT", A_PROTECT,
         "Protected mode");
  printf("% 15s = % 10lu_u32 # - %s\n", "A_INVIS", A_INVIS,
         "Invisible or blank mode");
  printf("% 15s = % 10lu_u32 # - %s\n", "A_ALTCHARSET", A_ALTCHARSET,
         "Alternate character set");
  printf("% 15s = % 10lu_u32 # - %s\n", "A_ITALIC", A_ITALIC,
         "Italics (non-X/Open extension)");
  printf("% 15s = % 10lu_u32 # - %s\n", "A_CHARTEXT", A_CHARTEXT,
         "Bit-mask to extract a character");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2ec2(%rip),%rax
mov    (%rax),%edx
lea    0xed1(%rip),%rdi
lea    0xee5(%rip),%rsi
lea    0xee7(%rip),%rcx
call   1030 <printf@plt>
mov    0x2e57(%rip),%rax
mov    (%rax),%edx
lea    0xeae(%rip),%rdi
lea    0xee9(%rip),%rsi
lea    0xeed(%rip),%rcx
call   1030 <printf@plt>
mov    0x2e1c(%rip),%rax
mov    (%rax),%edx
lea    0xe8b(%rip),%rdi
lea    0xef9(%rip),%rsi
lea    0xefe(%rip),%rcx
call   1030 <printf@plt>
mov    0x2e19(%rip),%rax
mov    (%rax),%edx
lea    0xe68(%rip),%rdi
lea    0xeee(%rip),%rsi
lea    0xef1(%rip),%rcx
call   1030 <printf@plt>
mov    0x2e0e(%rip),%rax
mov    (%rax),%edx
lea    0xe45(%rip),%rdi
lea    0xee3(%rip),%rsi
lea    0xee4(%rip),%rcx
call   1030 <printf@plt>
mov    0x2dc3(%rip),%rax
mov    (%rax),%edx
lea    0xe22(%rip),%rdi
lea    0xed1(%rip),%rsi
lea    0xed0(%rip),%rcx
call   1030 <printf@plt>
mov    0x2d98(%rip),%rax
mov    (%rax),%edx
lea    0xdff(%rip),%rdi
lea    0xec0(%rip),%rsi
lea    0xec0(%rip),%rcx
call   1030 <printf@plt>
mov    0x2d9d(%rip),%rax
mov    (%rax),%edx
lea    0xddc(%rip),%rdi
lea    0xeb9(%rip),%rsi
lea    0xebc(%rip),%rcx
call   1030 <printf@plt>
mov    0x2d8a(%rip),%rax
mov    (%rax),%edx
lea    0xdb9(%rip),%rdi
lea    0xeaf(%rip),%rsi
lea    0xeb0(%rip),%rcx
call   1030 <printf@plt>
mov    0x2d6f(%rip),%rax
mov    (%rax),%edx
lea    0xd96(%rip),%rdi
lea    0xeac(%rip),%rsi
lea    0xeb2(%rip),%rcx
call   1030 <printf@plt>
mov    0x2d5c(%rip),%rax
mov    (%rax),%edx
lea    0xd73(%rip),%rdi
lea    0xeae(%rip),%rsi
lea    0xeb0(%rip),%rcx
call   1030 <printf@plt>
mov    0x2d31(%rip),%rax
mov    (%rax),%edx
lea    0xd50(%rip),%rdi
lea    0xeb3(%rip),%rsi
lea    0xeb7(%rip),%rcx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2ed0(%rip),%rax
mov    (%rax),%edx
lea    0xedf(%rip),%rbx
lea    0xef3(%rip),%rsi
lea    0xef5(%rip),%rcx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2e62(%rip),%rax
mov    (%rax),%edx
lea    0xefb(%rip),%rsi
lea    0xeff(%rip),%rcx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2e2b(%rip),%rax
mov    (%rax),%edx
lea    0xf0f(%rip),%rsi
lea    0xf14(%rip),%rcx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2e2c(%rip),%rax
mov    (%rax),%edx
lea    0xf08(%rip),%rsi
lea    0xf0b(%rip),%rcx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2e25(%rip),%rax
mov    (%rax),%edx
lea    0xf01(%rip),%rsi
lea    0xf02(%rip),%rcx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%edx
lea    0xef3(%rip),%rsi
lea    0xef2(%rip),%rcx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2db7(%rip),%rax
mov    (%rax),%edx
lea    0xee6(%rip),%rsi
lea    0xee6(%rip),%rcx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2dc0(%rip),%rax
mov    (%rax),%edx
lea    0xee3(%rip),%rsi
lea    0xee6(%rip),%rcx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2db1(%rip),%rax
mov    (%rax),%edx
lea    0xedd(%rip),%rsi
lea    0xede(%rip),%rcx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2d9a(%rip),%rax
mov    (%rax),%edx
lea    0xede(%rip),%rsi
lea    0xee4(%rip),%rcx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2d8b(%rip),%rax
mov    (%rax),%edx
lea    0xee4(%rip),%rsi
lea    0xee6(%rip),%rcx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0x2d64(%rip),%rax
mov    (%rax),%edx
lea    0xeed(%rip),%rsi
lea    0xef1(%rip),%rcx
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"% 15s = % 10lu_u32 # - %s\0A\00"
@.str.1 = [9 x i8] c"A_NORMAL\00"
@A_NORMAL = global i32 0
@.str.2 = [30 x i8] c"Normal display (no highlight)\00"
@.str.3 = [11 x i8] c"A_STANDOUT\00"
@A_STANDOUT = global i32 0
@.str.4 = [40 x i8] c"Best highlighting mode of the terminal.\00"
@.str.5 = [12 x i8] c"A_UNDERLINE\00"
@A_UNDERLINE = global i32 0
@.str.6 = [12 x i8] c"Underlining\00"
@.str.7 = [10 x i8] c"A_REVERSE\00"
@A_REVERSE = global i32 0
@.str.8 = [14 x i8] c"Reverse video\00"
@.str.9 = [8 x i8] c"A_BLINK\00"
@A_BLINK = global i32 0
@.str.10 = [9 x i8] c"Blinking\00"
@.str.11 = [6 x i8] c"A_DIM\00"
@A_DIM = global i32 0
@.str.12 = [12 x i8] c"Half bright\00"
@.str.13 = [7 x i8] c"A_BOLD\00"
@A_BOLD = global i32 0
@.str.14 = [21 x i8] c"Extra bright or bold\00"
@.str.15 = [10 x i8] c"A_PROTECT\00"
@A_PROTECT = global i32 0
@.str.16 = [15 x i8] c"Protected mode\00"
@.str.17 = [8 x i8] c"A_INVIS\00"
@A_INVIS = global i32 0
@.str.18 = [24 x i8] c"Invisible or blank mode\00"
@.str.19 = [13 x i8] c"A_ALTCHARSET\00"
@A_ALTCHARSET = global i32 0
@.str.20 = [24 x i8] c"Alternate character set\00"
@.str.21 = [9 x i8] c"A_ITALIC\00"
@A_ITALIC = global i32 0
@.str.22 = [31 x i8] c"Italics (non-X/Open extension)\00"
@.str.23 = [11 x i8] c"A_CHARTEXT\00"
@A_CHARTEXT = global i32 0
@.str.24 = [32 x i8] c"Bit-mask to extract a character\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @A_NORMAL
%3 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %2, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%4 = load i32, i32* @A_STANDOUT
%5 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %4, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%6 = load i32, i32* @A_UNDERLINE
%7 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%8 = load i32, i32* @A_REVERSE
%9 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %8, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%10 = load i32, i32* @A_BLINK
%11 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%12 = load i32, i32* @A_DIM
%13 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 %12, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%14 = load i32, i32* @A_BOLD
%15 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i32 %14, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0))
%16 = load i32, i32* @A_PROTECT
%17 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %16, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0))
%18 = load i32, i32* @A_INVIS
%19 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i32 %18, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0))
%20 = load i32, i32* @A_ALTCHARSET
%21 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0), i32 %20, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.20, i64 0, i64 0))
%22 = load i32, i32* @A_ITALIC
%23 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0), i32 %22, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.22, i64 0, i64 0))
%24 = load i32, i32* @A_CHARTEXT
%25 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0), i32 %24, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.24, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [27 x i8] c"% 15s = % 10lu_u32 # - %s\0A\00"
@.str.1 = [9 x i8] c"A_NORMAL\00"
@A_NORMAL = global i32 0
@.str.2 = [30 x i8] c"Normal display (no highlight)\00"
@.str.3 = [11 x i8] c"A_STANDOUT\00"
@A_STANDOUT = global i32 0
@.str.4 = [40 x i8] c"Best highlighting mode of the terminal.\00"
@.str.5 = [12 x i8] c"A_UNDERLINE\00"
@A_UNDERLINE = global i32 0
@.str.6 = [12 x i8] c"Underlining\00"
@.str.7 = [10 x i8] c"A_REVERSE\00"
@A_REVERSE = global i32 0
@.str.8 = [14 x i8] c"Reverse video\00"
@.str.9 = [8 x i8] c"A_BLINK\00"
@A_BLINK = global i32 0
@.str.10 = [9 x i8] c"Blinking\00"
@.str.11 = [6 x i8] c"A_DIM\00"
@A_DIM = global i32 0
@.str.12 = [12 x i8] c"Half bright\00"
@.str.13 = [7 x i8] c"A_BOLD\00"
@A_BOLD = global i32 0
@.str.14 = [21 x i8] c"Extra bright or bold\00"
@.str.15 = [10 x i8] c"A_PROTECT\00"
@A_PROTECT = global i32 0
@.str.16 = [15 x i8] c"Protected mode\00"
@.str.17 = [8 x i8] c"A_INVIS\00"
@A_INVIS = global i32 0
@.str.18 = [24 x i8] c"Invisible or blank mode\00"
@.str.19 = [13 x i8] c"A_ALTCHARSET\00"
@A_ALTCHARSET = global i32 0
@.str.20 = [24 x i8] c"Alternate character set\00"
@.str.21 = [9 x i8] c"A_ITALIC\00"
@A_ITALIC = global i32 0
@.str.22 = [31 x i8] c"Italics (non-X/Open extension)\00"
@.str.23 = [11 x i8] c"A_CHARTEXT\00"
@A_CHARTEXT = global i32 0
@.str.24 = [32 x i8] c"Bit-mask to extract a character\00"
define i32 @main() {
%1 = load i32, i32* @A_NORMAL
%2 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 %1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%3 = load i32, i32* @A_STANDOUT
%4 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %3, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%5 = load i32, i32* @A_UNDERLINE
%6 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%7 = load i32, i32* @A_REVERSE
%8 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %7, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%9 = load i32, i32* @A_BLINK
%10 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 %9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%11 = load i32, i32* @A_DIM
%12 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%13 = load i32, i32* @A_BOLD
%14 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i32 %13, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0))
%15 = load i32, i32* @A_PROTECT
%16 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %15, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0))
%17 = load i32, i32* @A_INVIS
%18 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i32 %17, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0))
%19 = load i32, i32* @A_ALTCHARSET
%20 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0), i32 %19, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.20, i64 0, i64 0))
%21 = load i32, i32* @A_ITALIC
%22 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0), i32 %21, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.22, i64 0, i64 0))
%23 = load i32, i32* @A_CHARTEXT
%24 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0), i32 %23, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.24, i64 0, i64 0))
ret i32 0
}