#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*/ printf(char *, unsigned long);
int main() {
  printf(" A_NORMAL: %lu\n", (1UL - 1UL));
  printf(" A_ATTRIBUTES: %lu\n", ((~(1UL - 1UL)) << ((0) + 8)));
  printf(" A_CHARTEXT: %lu\n", (((1UL) << ((0) + 8)) - 1UL));
  printf(" A_COLOR: %lu\n", ((((1UL) << 8) - 1UL) << ((0) + 8)));
  printf(" A_STANDOUT: %lu\n", ((1UL) << ((8) + 8)));
  printf(" A_UNDERLINE: %lu\n", ((1UL) << ((9) + 8)));
  printf(" A_REVERSE: %lu\n", ((1UL) << ((10) + 8)));
  printf(" A_BLINK: %lu\n", ((1UL) << ((11) + 8)));
  printf(" A_DIM: %lu\n", ((1UL) << ((12) + 8)));
  printf(" A_BOLD: %lu\n", ((1UL) << ((13) + 8)));
  printf(" A_ALTCHARSET: %lu\n", ((1UL) << ((14) + 8)));
  printf(" A_INVIS: %lu\n", ((1UL) << ((15) + 8)));
  printf(" A_PROTECT: %lu\n", ((1UL) << ((16) + 8)));
  printf(" A_HORIZONTAL: %lu\n", ((1UL) << ((17) + 8)));
  printf(" A_LEFT: %lu\n", ((1UL) << ((18) + 8)));
  printf(" A_LOW: %lu\n", ((1UL) << ((19) + 8)));
  printf(" A_RIGHT: %lu\n", ((1UL) << ((20) + 8)));
  printf(" A_TOP: %lu\n", ((1UL) << ((21) + 8)));
  printf(" A_VERTICAL: %lu\n", ((1UL) << ((22) + 8)));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0xffffffffffffff00,%rsi
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0xff,%esi
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
mov    $0xff00,%esi
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x10000,%esi
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x20000,%esi
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x40000,%esi
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x80000,%esi
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x100000,%esi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x200000,%esi
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
mov    $0x400000,%esi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x800000,%esi
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x1000000,%esi
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x2000000,%esi
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x4000000,%esi
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x8000000,%esi
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
mov    $0x10000000,%esi
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x20000000,%esi
call   1030 <printf@plt>
lea    0xecb(%rip),%rdi
mov    $0x40000000,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xeea(%rip),%rdi
mov    $0xffffffffffffff00,%rsi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0xff,%esi
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0xff00,%esi
call   1030 <printf@plt>
lea    0xeea(%rip),%rdi
mov    $0x10000,%esi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x20000,%esi
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x40000,%esi
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x80000,%esi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x100000,%esi
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x200000,%esi
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x400000,%esi
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x800000,%esi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x1000000,%esi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x2000000,%esi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x4000000,%esi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x8000000,%esi
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x10000000,%esi
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x20000000,%esi
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x40000000,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [16 x i8] c" A_NORMAL: %lu\0A\00"
@.str.1 = [20 x i8] c" A_ATTRIBUTES: %lu\0A\00"
@.str.2 = [18 x i8] c" A_CHARTEXT: %lu\0A\00"
@.str.3 = [15 x i8] c" A_COLOR: %lu\0A\00"
@.str.4 = [18 x i8] c" A_STANDOUT: %lu\0A\00"
@.str.5 = [19 x i8] c" A_UNDERLINE: %lu\0A\00"
@.str.6 = [17 x i8] c" A_REVERSE: %lu\0A\00"
@.str.7 = [15 x i8] c" A_BLINK: %lu\0A\00"
@.str.8 = [13 x i8] c" A_DIM: %lu\0A\00"
@.str.9 = [14 x i8] c" A_BOLD: %lu\0A\00"
@.str.10 = [20 x i8] c" A_ALTCHARSET: %lu\0A\00"
@.str.11 = [15 x i8] c" A_INVIS: %lu\0A\00"
@.str.12 = [17 x i8] c" A_PROTECT: %lu\0A\00"
@.str.13 = [20 x i8] c" A_HORIZONTAL: %lu\0A\00"
@.str.14 = [14 x i8] c" A_LEFT: %lu\0A\00"
@.str.15 = [13 x i8] c" A_LOW: %lu\0A\00"
@.str.16 = [15 x i8] c" A_RIGHT: %lu\0A\00"
@.str.17 = [13 x i8] c" A_TOP: %lu\0A\00"
@.str.18 = [18 x i8] c" A_VERTICAL: %lu\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i64 0)
%3 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i64 -256)
%4 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i64 255)
%5 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i64 65280)
%6 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i64 65536)
%7 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i64 131072)
%8 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i64 262144)
%9 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i64 524288)
%10 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i64 1048576)
%11 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i64 2097152)
%12 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i64 4194304)
%13 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i64 8388608)
%14 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i64 16777216)
%15 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0), i64 33554432)
%16 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i64 67108864)
%17 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i64 134217728)
%18 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i64 268435456)
%19 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i64 536870912)
%20 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i64 1073741824)
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c" A_NORMAL: %lu\0A\00"
@.str.1 = [20 x i8] c" A_ATTRIBUTES: %lu\0A\00"
@.str.2 = [18 x i8] c" A_CHARTEXT: %lu\0A\00"
@.str.3 = [15 x i8] c" A_COLOR: %lu\0A\00"
@.str.4 = [18 x i8] c" A_STANDOUT: %lu\0A\00"
@.str.5 = [19 x i8] c" A_UNDERLINE: %lu\0A\00"
@.str.6 = [17 x i8] c" A_REVERSE: %lu\0A\00"
@.str.7 = [15 x i8] c" A_BLINK: %lu\0A\00"
@.str.8 = [13 x i8] c" A_DIM: %lu\0A\00"
@.str.9 = [14 x i8] c" A_BOLD: %lu\0A\00"
@.str.10 = [20 x i8] c" A_ALTCHARSET: %lu\0A\00"
@.str.11 = [15 x i8] c" A_INVIS: %lu\0A\00"
@.str.12 = [17 x i8] c" A_PROTECT: %lu\0A\00"
@.str.13 = [20 x i8] c" A_HORIZONTAL: %lu\0A\00"
@.str.14 = [14 x i8] c" A_LEFT: %lu\0A\00"
@.str.15 = [13 x i8] c" A_LOW: %lu\0A\00"
@.str.16 = [15 x i8] c" A_RIGHT: %lu\0A\00"
@.str.17 = [13 x i8] c" A_TOP: %lu\0A\00"
@.str.18 = [18 x i8] c" A_VERTICAL: %lu\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i64 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i64 -256)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i64 255)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i64 65280)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i64 65536)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i64 131072)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i64 262144)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i64 524288)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i64 1048576)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i64 2097152)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i64 4194304)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i64 8388608)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), i64 16777216)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0), i64 33554432)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i64 67108864)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i64 134217728)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i64 268435456)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i64 536870912)
%19 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.18, i64 0, i64 0), i64 1073741824)
ret i32 0
}