#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*/ fputc(char, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  int i, j;
  static char *hex =
      "\00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff";
  for (j = 0; j < 8192 / 16; j++)
    for (i = 0; i < 16; i++)
      fputc(hex[j % 16], stdout);
}


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,-0x18(%rbp)
cmpl   $0x200,-0x18(%rbp)
jge    119d <main+0x8d>
movl   $0x0,-0x14(%rbp)
cmpl   $0x10,-0x14(%rbp)
jge    118a <main+0x7a>
mov    0x2ed6(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    -0x20(%rbp),%rax
movslq %edx,%rcx
mov    (%rax,%rcx,1),%al
mov    0x2e6e(%rip),%rcx
mov    (%rcx),%esi
movsbl %al,%edi
call   1030 <fputc@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1141 <main+0x31>
jmp    118f <main+0x7f>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    112d <main+0x1d>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
xor    %r14d,%r14d
lea    0xede(%rip),%r15
mov    0x2eb7(%rip),%r12
nopl   0x0(%rax)
mov    %r14d,%eax
and    $0xf,%eax
movsbl (%rax,%r15,1),%ebx
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
mov    (%r12),%esi
mov    %ebx,%edi
call   1030 <fputc@plt>
add    $0x1,%r14d
cmp    $0x200,%r14d
jne    1130 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@main.hex = internal global i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i32 0, i32 0)
@.str = [17 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
br label %8
8: ; preds = %28, %2
%9 = load i32, i32* %7
%10 = icmp slt i32 %9, 512
br i1 %10, label %11, label %31
11: ; preds = %8
store i32 0, i32* %6
br label %12
12: ; preds = %24, %11
%13 = load i32, i32* %6
%14 = icmp slt i32 %13, 16
br i1 %14, label %15, label %27
15: ; preds = %12
%16 = load i8*, i8** @main.hex
%17 = load i32, i32* %7
%18 = srem i32 %17, 16
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, i8* %16, i64 %19
%21 = load i8, i8* %20
%22 = load i32, i32* @stdout
%23 = call i32 @fputc(i8 signext %21, i32 %22)
br label %24
24: ; preds = %15
%25 = load i32, i32* %6
%26 = add nsw i32 %25, 1
store i32 %26, i32* %6
br label %12
27: ; preds = %12
br label %28
28: ; preds = %27
%29 = load i32, i32* %7
%30 = add nsw i32 %29, 1
store i32 %30, i32* %7
br label %8
31: ; preds = %8
%32 = load i32, i32* %3
ret i32 %32
}

LLVM IR (-O2):
@.str = [17 x i8] c"\00\11\223DUfw\88\99\AA\BB\CC\DD\EE\FF\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i32 [ 0, %2 ], [ %41, %3 ]
%5 = and i32 %4, 15
%6 = zext i32 %5 to i64
%7 = getelementptr inbounds [17 x i8], [17 x i8]* @.str, i64 0, i64 %6
%8 = load i8, i8* %7
%9 = load i32, i32* @stdout
%10 = tail call i32 @fputc(i8 signext %8, i32 %9)
%11 = load i32, i32* @stdout
%12 = tail call i32 @fputc(i8 signext %8, i32 %11)
%13 = load i32, i32* @stdout
%14 = tail call i32 @fputc(i8 signext %8, i32 %13)
%15 = load i32, i32* @stdout
%16 = tail call i32 @fputc(i8 signext %8, i32 %15)
%17 = load i32, i32* @stdout
%18 = tail call i32 @fputc(i8 signext %8, i32 %17)
%19 = load i32, i32* @stdout
%20 = tail call i32 @fputc(i8 signext %8, i32 %19)
%21 = load i32, i32* @stdout
%22 = tail call i32 @fputc(i8 signext %8, i32 %21)
%23 = load i32, i32* @stdout
%24 = tail call i32 @fputc(i8 signext %8, i32 %23)
%25 = load i32, i32* @stdout
%26 = tail call i32 @fputc(i8 signext %8, i32 %25)
%27 = load i32, i32* @stdout
%28 = tail call i32 @fputc(i8 signext %8, i32 %27)
%29 = load i32, i32* @stdout
%30 = tail call i32 @fputc(i8 signext %8, i32 %29)
%31 = load i32, i32* @stdout
%32 = tail call i32 @fputc(i8 signext %8, i32 %31)
%33 = load i32, i32* @stdout
%34 = tail call i32 @fputc(i8 signext %8, i32 %33)
%35 = load i32, i32* @stdout
%36 = tail call i32 @fputc(i8 signext %8, i32 %35)
%37 = load i32, i32* @stdout
%38 = tail call i32 @fputc(i8 signext %8, i32 %37)
%39 = load i32, i32* @stdout
%40 = tail call i32 @fputc(i8 signext %8, i32 %39)
%41 = add nuw nsw i32 %4, 1
%42 = icmp eq i32 %41, 512
br i1 %42, label %43, label %3
43: ; preds = %3
ret i32 0
}