#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 **argv) {
  char test1[16] = {14, 15, 16, 17, 18, 19, 20, 21,
                    22, 23, 24, 25, 26, 27, 28, 29};
  char test2[4] = {3, 4, 3, 4};
  char test3[4] = {7, 9, 7, 9};
  int i = 0;
  printf("The following memory dump contains the literal "
         "':<:<6767ABCDEFGHIJKLMNOP'. This is our three arrays.\n");
  for (i = -100; i < 100; i++)
    printf("%c", (int)test1[i] + 51);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xed3(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xed0(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xece(%rip),%eax
mov    %eax,-0x24(%rbp)
mov    0xec9(%rip),%eax
mov    %eax,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0xffffff9c,-0x2c(%rbp)
cmpl   $0x64,-0x2c(%rbp)
jge    119c <main+0x8c>
movslq -0x2c(%rbp),%rax
movsbl -0x20(%rbp,%rax,1),%esi
add    $0x33,%esi
lea    0xef7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    116a <main+0x5a>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xee5(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffffffffff38,%rbx
lea    0xec2(%rip),%r14
xchg   %ax,%ax
movsbl 0x64(%rbx,%r14,1),%edi
add    $0x33,%edi
call   1030 <putchar@plt>
inc    %rbx
jne    1140 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.test1 = [16 x i8] c"\0E\0F\10\11\12\13\14\15\16\17\18\19\1A\1B\1C\1D"
@__const.main.test2 = [4 x i8] c"\03\04\03\04"
@__const.main.test3 = [4 x i8] c"\07\09\07\09"
@.str = [102 x i8] c"The following memory dump contains the literal ':<:<6767ABCDEFGHIJKLMNOP'. This is our three arrays.\0A\00"
@.str.1 = [3 x i8] c"%c\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [16 x i8]
%7 = alloca [4 x i8]
%8 = alloca [4 x i8]
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = bitcast [16 x i8]* %6 to i8*
%11 = bitcast [4 x i8]* %7 to i8*
%12 = bitcast [4 x i8]* %8 to i8*
store i32 0, i32* %9
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str, i64 0, i64 0))
store i32 -100, i32* %9
br label %14
14: ; preds = %25, %2
%15 = load i32, i32* %9
%16 = icmp slt i32 %15, 100
br i1 %16, label %17, label %28
17: ; preds = %14
%18 = load i32, i32* %9
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 %19
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = add nsw i32 %22, 51
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %23)
br label %25
25: ; preds = %17
%26 = load i32, i32* %9
%27 = add nsw i32 %26, 1
store i32 %27, i32* %9
br label %14
28: ; preds = %14
ret i32 0
}

LLVM IR (-O2):
@__const.main.test1 = [16 x i8] c"\0E\0F\10\11\12\13\14\15\16\17\18\19\1A\1B\1C\1D"
@str = [101 x i8] c"The following memory dump contains the literal ':<:<6767ABCDEFGHIJKLMNOP'. This is our three arrays.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([101 x i8], [101 x i8]* @str, i64 0, i64 0))
br label %4
4: ; preds = %2, %4
%5 = phi i64 [ -100, %2 ], [ %11, %4 ]
%6 = getelementptr inbounds [16 x i8], [16 x i8]* @__const.main.test1, i64 0, i64 %5
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
%9 = add nsw i32 %8, 51
%10 = tail call i32 @putchar(i32 %9)
%11 = add nsw i64 %5, 1
%12 = icmp eq i64 %11, 100
br i1 %12, label %13, label %4
13: ; preds = %4
ret i32 0
}