#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 *, int, char);
int main() {
  int x;
  char a;
  for (x = 1; x < 11; x++) {
    for (a = 'A'; a < 'A' + 10; a++)
      printf("%d%c%\t", x, a);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0xb,-0x8(%rbp)
jge    1174 <main+0x64>
movb   $0x41,-0x9(%rbp)
movsbl -0x9(%rbp),%eax
cmp    $0x4b,%eax
jge    1161 <main+0x51>
mov    -0x8(%rbp),%esi
lea    0xeb5(%rip),%rdi
movsbl -0x9(%rbp),%edx
call   1030 <printf@plt>
mov    -0x9(%rbp),%al
add    $0x1,%al
mov    %al,-0x9(%rbp)
jmp    1134 <main+0x24>
jmp    1166 <main+0x56>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0x1,%ebx
lea    0xee0(%rip),%r14
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x41,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x42,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x43,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x44,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x45,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x46,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x47,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x48,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x49,%edx
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x4a,%edx
call   1030 <printf@plt>
add    $0x1,%ebx
cmp    $0xb,%ebx
jne    1120 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%d%c%\09\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
store i32 0, i32* %1
store i32 1, i32* %2
br label %4
4: ; preds = %20, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 11
br i1 %6, label %7, label %23
7: ; preds = %4
store i8 65, i8* %3
br label %8
8: ; preds = %16, %7
%9 = load i8, i8* %3
%10 = sext i8 %9 to i32
%11 = icmp slt i32 %10, 75
br i1 %11, label %12, label %19
12: ; preds = %8
%13 = load i32, i32* %2
%14 = load i8, i8* %3
%15 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %13, i8 signext %14)
br label %16
16: ; preds = %12
%17 = load i8, i8* %3
%18 = add i8 %17, 1
store i8 %18, i8* %3
br label %8
19: ; preds = %8
br label %20
20: ; preds = %19
%21 = load i32, i32* %2
%22 = add nsw i32 %21, 1
store i32 %22, i32* %2
br label %4
23: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%d%c%\09\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 1, %0 ], [ %13, %1 ]
%3 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 65)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 66)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 67)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 68)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 69)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 70)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 71)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 72)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 73)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %2, i8 signext 74)
%13 = add nuw nsw i32 %2, 1
%14 = icmp eq i32 %13, 11
br i1 %14, label %15, label %1
15: ; preds = %1
ret i32 0
}