#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 *, ...);
void PrintHashTable(char hashTable[][5]) {
  int i;
  printf("----- Hash Table -----\n");
  for (i = 0; i < 8495; i += 5) {
    printf("%4d) ", i);
    printf("%5s", hashTable[i]);
    printf("\t%4d) ", i + 1);
    printf("%5s", hashTable[i + 1]);
    printf("\t%4d) ", i + 2);
    printf("%5s", hashTable[i + 2]);
    printf("\t%4d) ", i + 3);
    printf("%5s", hashTable[i + 3]);
    printf("\t%4d) ", i + 4);
    printf("%5s", hashTable[i + 4]);
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<PrintHashTable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x212f,-0xc(%rbp)
jge    125c <PrintHashTable+0x14c>
mov    -0xc(%rbp),%esi
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
movslq -0xc(%rbp),%rax
imul   $0x5,%rax,%rax
add    %rax,%rsi
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
add    $0x1,%esi
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%eax
add    $0x1,%eax
cltq
imul   $0x5,%rax,%rax
add    %rax,%rsi
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
add    $0x2,%esi
lea    0xe6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%eax
add    $0x2,%eax
cltq
imul   $0x5,%rax,%rax
add    %rax,%rsi
lea    0xe49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
add    $0x3,%esi
lea    0xe39(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%eax
add    $0x3,%eax
cltq
imul   $0x5,%rax,%rax
add    %rax,%rsi
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
add    $0x4,%esi
lea    0xe04(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%eax
add    $0x4,%eax
cltq
imul   $0x5,%rax,%rax
add    %rax,%rsi
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdcf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x5,%eax
mov    %eax,-0xc(%rbp)
jmp    1131 <PrintHashTable+0x21>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintHashTable>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdi,%r13
lea    0xec8(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb6(%rip),%r14
lea    0xeaa(%rip),%r15
lea    0xea7(%rip),%r12
xor    %ebx,%ebx
nop
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1(%rbx),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x5(%r13),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x2(%rbx),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xa(%r13),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x3(%rbx),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf(%r13),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x4(%rbx),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x14(%r13),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x5(%rbx),%rax
add    $0x19,%r13
cmp    $0x212a,%rbx
mov    %rax,%rbx
jb     1160 <PrintHashTable+0x30>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [24 x i8] c"----- Hash Table -----\0A\00"
@.str.1 = [6 x i8] c"%4d) \00"
@.str.2 = [4 x i8] c"%5s\00"
@.str.3 = [7 x i8] c"\09%4d) \00"
@.str.4 = [2 x i8] c"\0A\00"
define void @PrintHashTable([5 x i8]* %0) {
%2 = alloca [5 x i8]*
%3 = alloca i32
store [5 x i8]* %0, [5 x i8]** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %5
5: ; preds = %58, %1
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 8495
br i1 %7, label %8, label %61
8: ; preds = %5
%9 = load i32, i32* %3
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%11 = load [5 x i8]*, [5 x i8]** %2
%12 = load i32, i32* %3
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [5 x i8], [5 x i8]* %11, i64 %13
%15 = getelementptr inbounds [5 x i8], [5 x i8]* %14, i64 0, i64 0
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %15)
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 1
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %18)
%20 = load [5 x i8]*, [5 x i8]** %2
%21 = load i32, i32* %3
%22 = add nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [5 x i8], [5 x i8]* %20, i64 %23
%25 = getelementptr inbounds [5 x i8], [5 x i8]* %24, i64 0, i64 0
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %25)
%27 = load i32, i32* %3
%28 = add nsw i32 %27, 2
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %28)
%30 = load [5 x i8]*, [5 x i8]** %2
%31 = load i32, i32* %3
%32 = add nsw i32 %31, 2
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [5 x i8], [5 x i8]* %30, i64 %33
%35 = getelementptr inbounds [5 x i8], [5 x i8]* %34, i64 0, i64 0
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %35)
%37 = load i32, i32* %3
%38 = add nsw i32 %37, 3
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %38)
%40 = load [5 x i8]*, [5 x i8]** %2
%41 = load i32, i32* %3
%42 = add nsw i32 %41, 3
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [5 x i8], [5 x i8]* %40, i64 %43
%45 = getelementptr inbounds [5 x i8], [5 x i8]* %44, i64 0, i64 0
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %45)
%47 = load i32, i32* %3
%48 = add nsw i32 %47, 4
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %48)
%50 = load [5 x i8]*, [5 x i8]** %2
%51 = load i32, i32* %3
%52 = add nsw i32 %51, 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [5 x i8], [5 x i8]* %50, i64 %53
%55 = getelementptr inbounds [5 x i8], [5 x i8]* %54, i64 0, i64 0
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %55)
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %58
58: ; preds = %8
%59 = load i32, i32* %3
%60 = add nsw i32 %59, 5
store i32 %60, i32* %3
br label %5
61: ; preds = %5
ret void
}

LLVM IR (-O2):
@.str.1 = [6 x i8] c"%4d) \00"
@.str.2 = [4 x i8] c"%5s\00"
@.str.3 = [7 x i8] c"\09%4d) \00"
@str = [23 x i8] c"----- Hash Table -----\00"
define void @PrintHashTable([5 x i8]* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
br label %3
3: ; preds = %1, %3
%4 = phi i64 [ 0, %1 ], [ %30, %3 ]
%5 = trunc i64 %4 to i32
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = getelementptr inbounds [5 x i8], [5 x i8]* %0, i64 %4, i64 0
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %7)
%9 = add nuw nsw i64 %4, 1
%10 = trunc i64 %9 to i32
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %10)
%12 = getelementptr inbounds [5 x i8], [5 x i8]* %0, i64 %9, i64 0
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %12)
%14 = add nuw nsw i64 %4, 2
%15 = trunc i64 %14 to i32
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %15)
%17 = getelementptr inbounds [5 x i8], [5 x i8]* %0, i64 %14, i64 0
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %17)
%19 = add nuw nsw i64 %4, 3
%20 = trunc i64 %19 to i32
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %20)
%22 = getelementptr inbounds [5 x i8], [5 x i8]* %0, i64 %19, i64 0
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %22)
%24 = add nuw nsw i64 %4, 4
%25 = trunc i64 %24 to i32
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 %25)
%27 = getelementptr inbounds [5 x i8], [5 x i8]* %0, i64 %24, i64 0
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %27)
%29 = tail call i32 @putchar(i32 10)
%30 = add nuw nsw i64 %4, 5
%31 = icmp ult i64 %4, 8490
br i1 %31, label %3, label %32
32: ; preds = %3
ret void
}