#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(int argc, char const *argv[]) {
  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    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x6,-0x14(%rbp)
jge    1183 <main+0x73>
movb   $0x41,-0x15(%rbp)
movsbl -0x15(%rbp),%eax
cmp    $0x4b,%eax
jge    1167 <main+0x57>
movsbl -0x15(%rbp),%esi
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x15(%rbp),%al
add    $0x1,%al
mov    %al,-0x15(%rbp)
jmp    113b <main+0x2b>
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    112d <main+0x1d>
xor    %eax,%eax
add    $0x20,%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(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %8
8: ; preds = %25, %2
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 6
br i1 %10, label %11, label %28
11: ; preds = %8
store i8 65, i8* %7
br label %12
12: ; preds = %20, %11
%13 = load i8, i8* %7
%14 = sext i8 %13 to i32
%15 = icmp slt i32 %14, 75
br i1 %15, label %16, label %23
16: ; preds = %12
%17 = load i8, i8* %7
%18 = sext i8 %17 to i32
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %18)
br label %20
20: ; preds = %16
%21 = load i8, i8* %7
%22 = add i8 %21, 1
store i8 %22, i8* %7
br label %12
23: ; preds = %12
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %25
25: ; preds = %23
%26 = load i32, i32* %6
%27 = add nsw i32 %26, 1
store i32 %27, i32* %6
br label %8
28: ; preds = %8
ret i32 0
}

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