#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 *, char, char, char, char, char);
int main() {
  char a, b, c, d, e;
  for (a = 'A'; a <= 'Z'; a = a + 1)
    for (b = 'B'; b <= 'Z'; b = b + 1)
      for (c = 'C'; c <= 'Z'; c = c + 1)
        for (d = 'D'; d <= 'Z'; d = d + 1)
          for (e = 'E'; e <= 'Z'; e = e + 1)
            printf("%c%c%c%c%c\t", a, b, c, d, e);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x41,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x5a,%eax
jg     11ff <main+0xef>
movb   $0x42,-0x6(%rbp)
movsbl -0x6(%rbp),%eax
cmp    $0x5a,%eax
jg     11eb <main+0xdb>
movb   $0x43,-0x7(%rbp)
movsbl -0x7(%rbp),%eax
cmp    $0x5a,%eax
jg     11d7 <main+0xc7>
movb   $0x44,-0x8(%rbp)
movsbl -0x8(%rbp),%eax
cmp    $0x5a,%eax
jg     11c3 <main+0xb3>
movb   $0x45,-0x9(%rbp)
movsbl -0x9(%rbp),%eax
cmp    $0x5a,%eax
jg     11af <main+0x9f>
mov    -0x5(%rbp),%sil
mov    -0x6(%rbp),%dl
mov    -0x7(%rbp),%cl
mov    -0x8(%rbp),%al
lea    0xe78(%rip),%rdi
movsbl %sil,%esi
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %al,%r8d
movsbl -0x9(%rbp),%r9d
call   1030 <printf@plt>
movsbl -0x9(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x9(%rbp)
jmp    1167 <main+0x57>
jmp    11b4 <main+0xa4>
movsbl -0x8(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x8(%rbp)
jmp    1156 <main+0x46>
jmp    11c8 <main+0xb8>
movsbl -0x7(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x7(%rbp)
jmp    1145 <main+0x35>
jmp    11dc <main+0xcc>
movsbl -0x6(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x6(%rbp)
jmp    1134 <main+0x24>
jmp    11f0 <main+0xe0>
movsbl -0x5(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x5(%rbp)
jmp    1123 <main+0x13>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x41,%r15b
lea    0xedb(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x42,%r12b
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x43,%r13b
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x44,%bl
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x45,%bpl
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsbl %r15b,%esi
movsbl %r12b,%edx
movsbl %r13b,%ecx
movsbl %bl,%r8d
movsbl %bpl,%ebp
mov    %r14,%rdi
mov    %ebp,%r9d
call   1030 <printf@plt>
add    $0x1,%bpl
cmp    $0x5b,%bpl
jne    1170 <main+0x60>
add    $0x1,%bl
cmp    $0x5b,%bl
jne    1160 <main+0x50>
add    $0x1,%r13b
cmp    $0x5b,%r13b
jne    1150 <main+0x40>
add    $0x1,%r12b
cmp    $0x5b,%r12b
jne    1140 <main+0x30>
add    $0x1,%r15b
cmp    $0x5b,%r15b
jne    1130 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%c%c%c%c%c\09\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8
store i32 0, i32* %1
store i8 65, i8* %2
br label %7
7: ; preds = %62, %0
%8 = load i8, i8* %2
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 90
br i1 %10, label %11, label %67
11: ; preds = %7
store i8 66, i8* %3
br label %12
12: ; preds = %56, %11
%13 = load i8, i8* %3
%14 = sext i8 %13 to i32
%15 = icmp sle i32 %14, 90
br i1 %15, label %16, label %61
16: ; preds = %12
store i8 67, i8* %4
br label %17
17: ; preds = %50, %16
%18 = load i8, i8* %4
%19 = sext i8 %18 to i32
%20 = icmp sle i32 %19, 90
br i1 %20, label %21, label %55
21: ; preds = %17
store i8 68, i8* %5
br label %22
22: ; preds = %44, %21
%23 = load i8, i8* %5
%24 = sext i8 %23 to i32
%25 = icmp sle i32 %24, 90
br i1 %25, label %26, label %49
26: ; preds = %22
store i8 69, i8* %6
br label %27
27: ; preds = %38, %26
%28 = load i8, i8* %6
%29 = sext i8 %28 to i32
%30 = icmp sle i32 %29, 90
br i1 %30, label %31, label %43
31: ; preds = %27
%32 = load i8, i8* %2
%33 = load i8, i8* %3
%34 = load i8, i8* %4
%35 = load i8, i8* %5
%36 = load i8, i8* %6
%37 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8 signext %32, i8 signext %33, i8 signext %34, i8 signext %35, i8 signext %36)
br label %38
38: ; preds = %31
%39 = load i8, i8* %6
%40 = sext i8 %39 to i32
%41 = add nsw i32 %40, 1
%42 = trunc i32 %41 to i8
store i8 %42, i8* %6
br label %27
43: ; preds = %27
br label %44
44: ; preds = %43
%45 = load i8, i8* %5
%46 = sext i8 %45 to i32
%47 = add nsw i32 %46, 1
%48 = trunc i32 %47 to i8
store i8 %48, i8* %5
br label %22
49: ; preds = %22
br label %50
50: ; preds = %49
%51 = load i8, i8* %4
%52 = sext i8 %51 to i32
%53 = add nsw i32 %52, 1
%54 = trunc i32 %53 to i8
store i8 %54, i8* %4
br label %17
55: ; preds = %17
br label %56
56: ; preds = %55
%57 = load i8, i8* %3
%58 = sext i8 %57 to i32
%59 = add nsw i32 %58, 1
%60 = trunc i32 %59 to i8
store i8 %60, i8* %3
br label %12
61: ; preds = %12
br label %62
62: ; preds = %61
%63 = load i8, i8* %2
%64 = sext i8 %63 to i32
%65 = add nsw i32 %64, 1
%66 = trunc i32 %65 to i8
store i8 %66, i8* %2
br label %7
67: ; preds = %7
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%c%c%c%c%c\09\00"
define i32 @main() {
br label %1
1: ; preds = %0, %23
%2 = phi i8 [ 65, %0 ], [ %24, %23 ]
br label %3
3: ; preds = %1, %20
%4 = phi i8 [ 66, %1 ], [ %21, %20 ]
br label %5
5: ; preds = %3, %17
%6 = phi i8 [ 67, %3 ], [ %18, %17 ]
br label %7
7: ; preds = %5, %14
%8 = phi i8 [ 68, %5 ], [ %15, %14 ]
br label %9
9: ; preds = %7, %9
%10 = phi i8 [ 69, %7 ], [ %12, %9 ]
%11 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8 signext %2, i8 signext %4, i8 signext %6, i8 signext %8, i8 signext %10)
%12 = add nuw nsw i8 %10, 1
%13 = icmp eq i8 %12, 91
br i1 %13, label %14, label %9
14: ; preds = %9
%15 = add nuw nsw i8 %8, 1
%16 = icmp eq i8 %15, 91
br i1 %16, label %17, label %7
17: ; preds = %14
%18 = add nuw nsw i8 %6, 1
%19 = icmp eq i8 %18, 91
br i1 %19, label %20, label %5
20: ; preds = %17
%21 = add nuw nsw i8 %4, 1
%22 = icmp eq i8 %21, 91
br i1 %22, label %23, label %3
23: ; preds = %20
%24 = add nuw nsw i8 %2, 1
%25 = icmp eq i8 %24, 91
br i1 %25, label %26, label %1
26: ; preds = %23
ret i32 0
}