#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 main(void) {
  int row;
  char ch;
  for (row = 0; row < 6; row++) {
    for (ch = 'A'; ch < ('A' + 10); ch++)
      printf("%c", ch);
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x6,-0x8(%rbp)
jge    117c <main+0x6c>
movb   $0x41,-0x9(%rbp)
movsbl -0x9(%rbp),%eax
cmp    $0x4b,%eax
jge    1160 <main+0x50>
movsbl -0x9(%rbp),%esi
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x9(%rbp),%al
add    $0x1,%al
mov    %al,-0x9(%rbp)
jmp    1134 <main+0x24>
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
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   %rax
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x42,%edi
call   1030 <putchar@plt>
mov    $0x43,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0x47,%edi
call   1030 <putchar@plt>
mov    $0x48,%edi
call   1030 <putchar@plt>
mov    $0x49,%edi
call   1030 <putchar@plt>
mov    $0x4a,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x42,%edi
call   1030 <putchar@plt>
mov    $0x43,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0x47,%edi
call   1030 <putchar@plt>
mov    $0x48,%edi
call   1030 <putchar@plt>
mov    $0x49,%edi
call   1030 <putchar@plt>
mov    $0x4a,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x42,%edi
call   1030 <putchar@plt>
mov    $0x43,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0x47,%edi
call   1030 <putchar@plt>
mov    $0x48,%edi
call   1030 <putchar@plt>
mov    $0x49,%edi
call   1030 <putchar@plt>
mov    $0x4a,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x42,%edi
call   1030 <putchar@plt>
mov    $0x43,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0x47,%edi
call   1030 <putchar@plt>
mov    $0x48,%edi
call   1030 <putchar@plt>
mov    $0x49,%edi
call   1030 <putchar@plt>
mov    $0x4a,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x42,%edi
call   1030 <putchar@plt>
mov    $0x43,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0x47,%edi
call   1030 <putchar@plt>
mov    $0x48,%edi
call   1030 <putchar@plt>
mov    $0x49,%edi
call   1030 <putchar@plt>
mov    $0x4a,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x41,%edi
call   1030 <putchar@plt>
mov    $0x42,%edi
call   1030 <putchar@plt>
mov    $0x43,%edi
call   1030 <putchar@plt>
mov    $0x44,%edi
call   1030 <putchar@plt>
mov    $0x45,%edi
call   1030 <putchar@plt>
mov    $0x46,%edi
call   1030 <putchar@plt>
mov    $0x47,%edi
call   1030 <putchar@plt>
mov    $0x48,%edi
call   1030 <putchar@plt>
mov    $0x49,%edi
call   1030 <putchar@plt>
mov    $0x4a,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
store i32 0, i32* %1
store i32 0, i32* %2
br label %4
4: ; preds = %21, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 6
br i1 %6, label %7, label %24
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 i8, i8* %3
%14 = sext i8 %13 to i32
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %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
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %21
21: ; preds = %19
%22 = load i32, i32* %2
%23 = add nsw i32 %22, 1
store i32 %23, i32* %2
br label %4
24: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @putchar(i32 65)
%2 = tail call i32 @putchar(i32 66)
%3 = tail call i32 @putchar(i32 67)
%4 = tail call i32 @putchar(i32 68)
%5 = tail call i32 @putchar(i32 69)
%6 = tail call i32 @putchar(i32 70)
%7 = tail call i32 @putchar(i32 71)
%8 = tail call i32 @putchar(i32 72)
%9 = tail call i32 @putchar(i32 73)
%10 = tail call i32 @putchar(i32 74)
%11 = tail call i32 @putchar(i32 10)
%12 = tail call i32 @putchar(i32 65)
%13 = tail call i32 @putchar(i32 66)
%14 = tail call i32 @putchar(i32 67)
%15 = tail call i32 @putchar(i32 68)
%16 = tail call i32 @putchar(i32 69)
%17 = tail call i32 @putchar(i32 70)
%18 = tail call i32 @putchar(i32 71)
%19 = tail call i32 @putchar(i32 72)
%20 = tail call i32 @putchar(i32 73)
%21 = tail call i32 @putchar(i32 74)
%22 = tail call i32 @putchar(i32 10)
%23 = tail call i32 @putchar(i32 65)
%24 = tail call i32 @putchar(i32 66)
%25 = tail call i32 @putchar(i32 67)
%26 = tail call i32 @putchar(i32 68)
%27 = tail call i32 @putchar(i32 69)
%28 = tail call i32 @putchar(i32 70)
%29 = tail call i32 @putchar(i32 71)
%30 = tail call i32 @putchar(i32 72)
%31 = tail call i32 @putchar(i32 73)
%32 = tail call i32 @putchar(i32 74)
%33 = tail call i32 @putchar(i32 10)
%34 = tail call i32 @putchar(i32 65)
%35 = tail call i32 @putchar(i32 66)
%36 = tail call i32 @putchar(i32 67)
%37 = tail call i32 @putchar(i32 68)
%38 = tail call i32 @putchar(i32 69)
%39 = tail call i32 @putchar(i32 70)
%40 = tail call i32 @putchar(i32 71)
%41 = tail call i32 @putchar(i32 72)
%42 = tail call i32 @putchar(i32 73)
%43 = tail call i32 @putchar(i32 74)
%44 = tail call i32 @putchar(i32 10)
%45 = tail call i32 @putchar(i32 65)
%46 = tail call i32 @putchar(i32 66)
%47 = tail call i32 @putchar(i32 67)
%48 = tail call i32 @putchar(i32 68)
%49 = tail call i32 @putchar(i32 69)
%50 = tail call i32 @putchar(i32 70)
%51 = tail call i32 @putchar(i32 71)
%52 = tail call i32 @putchar(i32 72)
%53 = tail call i32 @putchar(i32 73)
%54 = tail call i32 @putchar(i32 74)
%55 = tail call i32 @putchar(i32 10)
%56 = tail call i32 @putchar(i32 65)
%57 = tail call i32 @putchar(i32 66)
%58 = tail call i32 @putchar(i32 67)
%59 = tail call i32 @putchar(i32 68)
%60 = tail call i32 @putchar(i32 69)
%61 = tail call i32 @putchar(i32 70)
%62 = tail call i32 @putchar(i32 71)
%63 = tail call i32 @putchar(i32 72)
%64 = tail call i32 @putchar(i32 73)
%65 = tail call i32 @putchar(i32 74)
%66 = tail call i32 @putchar(i32 10)
ret i32 0
}