int main(argc, argv)
int argc;
char **argv;
{
  static char CCDEFS[800];
  static char CCWARN[800];
  static char CCOPT[800];
  static char CCDEBUG[800];
  static char CCLIBS[800];
  CCDEFS[0] = CCWARN[0] = CCOPT[0] = CCDEBUG[0] = CCLIBS[0] = 0;
  strcat(CCDEBUG, "-DNDEBUG");
  if (!working_toupper())
    strcat(CCDEFS, "-DBROKEN_CTYPES ");
  if (sizeof(void *) == 8)
    strcat(CCDEFS, "-DPOINTER_64 ");
  strcat(CCOPT, "-fno-strict-aliasing ");
  strcat(CCOPT, "-O2 ");
  strcat(CCWARN, "-Wall ");
  strcat(CCLIBS, "`gcc -print-libgcc-file-name` ");
  printf("CCOPT=\"%s\"\n", CCOPT);
  printf("CCDEFS=\"%s\"\n", CCDEFS);
  printf("CCWARN=\"%s\"\n", CCWARN);
  printf("CCDEBUG=\"%s\"\n", CCDEBUG);
  printf("CCLIBS=\"%s\"\n", CCLIBS);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x0,0x3b83(%rip)
movb   $0x0,0x385c(%rip)
movb   $0x0,0x3535(%rip)
movb   $0x0,0x320e(%rip)
movb   $0x0,0x2ee7(%rip)
lea    0x3840(%rip),%rdi
lea    0xe89(%rip),%rsi
call   1050 <strcat@plt>
mov    $0x0,%al
call   1040 <working_toupper@plt>
cmp    $0x0,%eax
jne    119f <main+0x6f>
lea    0x2ebd(%rip),%rdi
lea    0xe6f(%rip),%rsi
call   1050 <strcat@plt>
lea    0x2eaa(%rip),%rdi
lea    0xe6d(%rip),%rsi
call   1050 <strcat@plt>
lea    0x34d7(%rip),%rdi
lea    0xe68(%rip),%rsi
call   1050 <strcat@plt>
lea    0x34c4(%rip),%rdi
lea    0xe6b(%rip),%rsi
call   1050 <strcat@plt>
lea    0x3191(%rip),%rdi
lea    0xe5d(%rip),%rsi
call   1050 <strcat@plt>
lea    0x3ade(%rip),%rdi
lea    0xe51(%rip),%rsi
call   1050 <strcat@plt>
lea    0xe64(%rip),%rdi
lea    0x3484(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe5b(%rip),%rdi
lea    0x2e2f(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe53(%rip),%rdi
lea    0x313a(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4b(%rip),%rdi
lea    0x3765(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe44(%rip),%rdi
lea    0x3a70(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
movb   $0x0,0x3b91(%rip)
movb   $0x0,0x386a(%rip)
lea    0x3863(%rip),%rbx
movb   $0x0,0x353c(%rip)
movb   $0x0,0x3215(%rip)
movb   $0x0,0x2eee(%rip)
mov    %rbx,%rdi
call   1030 <strlen@plt>
movabs $0x47554245444e442d,%rcx
42 55 47
mov    %rcx,(%rax,%rbx,1)
movb   $0x0,0x8(%rax,%rbx,1)
xor    %eax,%eax
call   1050 <working_toupper@plt>
test   %eax,%eax
jne    11a7 <main+0x77>
lea    0x2ec1(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
movups 0xe6b(%rip),%xmm0
movups %xmm0,(%rax,%rbx,1)
movb   $0x0,0x10(%rax,%rbx,1)
lea    0x2ea2(%rip),%r14
mov    %r14,%rdi
call   1030 <strlen@plt>
movabs $0x45544e494f50442d,%rcx
4e 54 45
mov    %rcx,(%rax,%r14,1)
movabs $0x2034365f524554,%rcx
mov    %rcx,0x6(%rax,%r14,1)
lea    0x34b6(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
movabs $0x20676e69736169,%rcx
mov    %rcx,0xe(%rax,%rbx,1)
movups 0xe30(%rip),%xmm0
movups %xmm0,(%rax,%rbx,1)
mov    %rbx,%rdi
call   1030 <strlen@plt>
movl   $0x20324f2d,(%rax,%rbx,1)
movb   $0x0,0x4(%rax,%rbx,1)
lea    0x3159(%rip),%r12
mov    %r12,%rdi
call   1030 <strlen@plt>
movl   $0x6c61572d,(%rax,%r12,1)
6c
movl   $0x206c6c,0x3(%rax,%r12,1)
lea    0x3a99(%rip),%r15
mov    %r15,%rdi
call   1030 <strlen@plt>
movups 0xe04(%rip),%xmm0
movups %xmm0,(%rax,%r15,1)
movups 0xe07(%rip),%xmm0
movups %xmm0,0xf(%rax,%r15,1)
lea    0xe0a(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe05(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe01(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdfd(%rip),%rdi
lea    0x3717(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdf6(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@main.CCDEFS = internal global [800 x i8] zeroinitializer
@main.CCWARN = internal global [800 x i8] zeroinitializer
@main.CCOPT = internal global [800 x i8] zeroinitializer
@main.CCDEBUG = internal global [800 x i8] zeroinitializer
@main.CCLIBS = internal global [800 x i8] zeroinitializer
@.str = [9 x i8] c"-DNDEBUG\00"
@.str.1 = [17 x i8] c"-DBROKEN_CTYPES \00"
@.str.2 = [14 x i8] c"-DPOINTER_64 \00"
@.str.3 = [22 x i8] c"-fno-strict-aliasing \00"
@.str.4 = [5 x i8] c"-O2 \00"
@.str.5 = [7 x i8] c"-Wall \00"
@.str.6 = [31 x i8] c"`gcc -print-libgcc-file-name` \00"
@.str.7 = [12 x i8] c"CCOPT=\22%s\22\0A\00"
@.str.8 = [13 x i8] c"CCDEFS=\22%s\22\0A\00"
@.str.9 = [13 x i8] c"CCWARN=\22%s\22\0A\00"
@.str.10 = [14 x i8] c"CCDEBUG=\22%s\22\0A\00"
@.str.11 = [13 x i8] c"CCLIBS=\22%s\22\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8 0, i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCLIBS, i64 0, i64 0)
store i8 0, i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEBUG, i64 0, i64 0)
store i8 0, i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCOPT, i64 0, i64 0)
store i8 0, i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCWARN, i64 0, i64 0)
store i8 0, i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEFS, i64 0, i64 0)
%6 = call i8* @strcat(i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEBUG, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (...) @working_toupper()
%8 = icmp ne i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %2
%10 = call i8* @strcat(i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEFS, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %11
11: ; preds = %9, %2
%12 = call i8* @strcat(i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEFS, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%13 = call i8* @strcat(i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCOPT, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%14 = call i8* @strcat(i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCOPT, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%15 = call i8* @strcat(i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCWARN, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%16 = call i8* @strcat(i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCLIBS, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCOPT, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEFS, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCWARN, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEBUG, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCLIBS, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@main.CCDEFS = internal global [800 x i8] zeroinitializer
@main.CCWARN = internal global [800 x i8] zeroinitializer
@main.CCOPT = internal global [800 x i8] zeroinitializer
@main.CCDEBUG = internal global [800 x i8] zeroinitializer
@main.CCLIBS = internal global [800 x i8] zeroinitializer
@.str = [9 x i8] c"-DNDEBUG\00"
@.str.1 = [17 x i8] c"-DBROKEN_CTYPES \00"
@.str.2 = [14 x i8] c"-DPOINTER_64 \00"
@.str.3 = [22 x i8] c"-fno-strict-aliasing \00"
@.str.4 = [5 x i8] c"-O2 \00"
@.str.5 = [7 x i8] c"-Wall \00"
@.str.6 = [31 x i8] c"`gcc -print-libgcc-file-name` \00"
@.str.7 = [12 x i8] c"CCOPT=\22%s\22\0A\00"
@.str.8 = [13 x i8] c"CCDEFS=\22%s\22\0A\00"
@.str.9 = [13 x i8] c"CCWARN=\22%s\22\0A\00"
@.str.10 = [14 x i8] c"CCDEBUG=\22%s\22\0A\00"
@.str.11 = [13 x i8] c"CCLIBS=\22%s\22\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
store i8 0, i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCLIBS, i64 0, i64 0)
store i8 0, i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEBUG, i64 0, i64 0)
store i8 0, i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCOPT, i64 0, i64 0)
store i8 0, i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCWARN, i64 0, i64 0)
store i8 0, i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEFS, i64 0, i64 0)
%3 = tail call i64 @strlen(i8* dereferenceable(1) getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEBUG, i64 0, i64 0))
%4 = getelementptr [800 x i8], [800 x i8]* @main.CCDEBUG, i64 0, i64 %3
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(9) %4, i8* align 1 dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i64 9, i1 false)
%5 = tail call i32 (...) @working_toupper()
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = tail call i64 @strlen(i8* dereferenceable(1) getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEFS, i64 0, i64 0))
%9 = getelementptr [800 x i8], [800 x i8]* @main.CCDEFS, i64 0, i64 %8
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(17) %9, i8* align 1 dereferenceable(17) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i64 17, i1 false)
br label %10
10: ; preds = %7, %2
%11 = tail call i64 @strlen(i8* dereferenceable(1) getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEFS, i64 0, i64 0))
%12 = getelementptr [800 x i8], [800 x i8]* @main.CCDEFS, i64 0, i64 %11
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(14) %12, i8* align 1 dereferenceable(14) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i64 14, i1 false)
%13 = tail call i64 @strlen(i8* dereferenceable(1) getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCOPT, i64 0, i64 0))
%14 = getelementptr [800 x i8], [800 x i8]* @main.CCOPT, i64 0, i64 %13
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(22) %14, i8* align 1 dereferenceable(22) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i64 22, i1 false)
%15 = tail call i64 @strlen(i8* dereferenceable(1) getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCOPT, i64 0, i64 0))
%16 = getelementptr [800 x i8], [800 x i8]* @main.CCOPT, i64 0, i64 %15
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(5) %16, i8* align 1 dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i64 5, i1 false)
%17 = tail call i64 @strlen(i8* dereferenceable(1) getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCWARN, i64 0, i64 0))
%18 = getelementptr [800 x i8], [800 x i8]* @main.CCWARN, i64 0, i64 %17
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(7) %18, i8* align 1 dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i64 7, i1 false)
%19 = tail call i64 @strlen(i8* dereferenceable(1) getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCLIBS, i64 0, i64 0))
%20 = getelementptr [800 x i8], [800 x i8]* @main.CCLIBS, i64 0, i64 %19
tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 dereferenceable(31) %20, i8* align 1 dereferenceable(31) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i64 31, i1 false)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCOPT, i64 0, i64 0))
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEFS, i64 0, i64 0))
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCWARN, i64 0, i64 0))
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCDEBUG, i64 0, i64 0))
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([800 x i8], [800 x i8]* @main.CCLIBS, i64 0, i64 0))
ret i32 0
}