#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 hash_func(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int rand();
int /*<<< orphan*/ srand(unsigned int);
scalar_t__ time(int /*<<< orphan*/ *);
int main(void) {
  int D[10000];
  int K[5];
  int *Hash[15000] = {0};
  int sum_count = 0;
  srand((unsigned)time(NULL));
  for (int i = 0; i < 10000; i++) {
    D[i] = rand() % 20000;
  }
  for (int i = 0; i < 5; i++) {
    K[i] = rand() % 20000;
  }
  for (int i = 0; i < 10000; i++) {
    int k;
    for (k = hash_func(D[i]); Hash[k]; k++) {
      k = hash_func(k);
    }
    Hash[k] = &D[i];
  }
  for (int i = 0; i < 5; i++) {
    int k;
    int count = 0;
    for (k = hash_func(K[i]); Hash[k]; k++) {
      count++;
      if (K[i] == *Hash[k]) {
        break;
      }
    }
    printf("%d回目の探索\n", i + 1);
    printf("探索データ: %d\n", K[i]);
    if (Hash[k]) {
      printf("データ番号: %d\n", k);
    } else {
      printf("データは見つかりませんでした。\n");
    }
    putchar('\n');
    sum_count += count;
  }
  printf("探索回数の平均: %f\n", (double)sum_count / 5);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x27150,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x27130(%rbp),%rdi
xor    %esi,%esi
mov    $0x1d4c0,%edx
call   1060 <memset@plt>
movl   $0x0,-0x27134(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
movl   $0x0,-0x27138(%rbp)
cmpl   $0x2710,-0x27138(%rbp)
jge    11fa <main+0x8a>
mov    $0x0,%al
call   1090 <rand@plt>
mov    $0x4e20,%ecx
cltd
idiv   %ecx
movslq -0x27138(%rbp),%rax
mov    %edx,-0x9c50(%rbp,%rax,4)
mov    -0x27138(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27138(%rbp)
jmp    11b9 <main+0x49>
movl   $0x0,-0x2713c(%rbp)
cmpl   $0x5,-0x2713c(%rbp)
jge    1242 <main+0xd2>
mov    $0x0,%al
call   1090 <rand@plt>
mov    $0x4e20,%ecx
cltd
idiv   %ecx
movslq -0x2713c(%rbp),%rax
mov    %edx,-0x9c70(%rbp,%rax,4)
mov    -0x2713c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2713c(%rbp)
jmp    1204 <main+0x94>
movl   $0x0,-0x27140(%rbp)
cmpl   $0x2710,-0x27140(%rbp)
jge    12e8 <main+0x178>
movslq -0x27140(%rbp),%rax
mov    -0x9c50(%rbp,%rax,4),%edi
call   1040 <hash_func@plt>
mov    %eax,-0x27144(%rbp)
movslq -0x27144(%rbp),%rax
cmpq   $0x0,-0x27130(%rbp,%rax,8)
je     12b0 <main+0x140>
mov    -0x27144(%rbp),%edi
call   1040 <hash_func@plt>
mov    %eax,-0x27144(%rbp)
mov    -0x27144(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27144(%rbp)
jmp    1275 <main+0x105>
movslq -0x27140(%rbp),%rax
lea    -0x9c50(%rbp),%rcx
shl    $0x2,%rax
add    %rax,%rcx
movslq -0x27144(%rbp),%rax
mov    %rcx,-0x27130(%rbp,%rax,8)
ff
mov    -0x27140(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27140(%rbp)
jmp    124c <main+0xdc>
movl   $0x0,-0x27148(%rbp)
cmpl   $0x5,-0x27148(%rbp)
jge    142a <main+0x2ba>
movl   $0x0,-0x27150(%rbp)
movslq -0x27148(%rbp),%rax
mov    -0x9c70(%rbp,%rax,4),%edi
call   1040 <hash_func@plt>
mov    %eax,-0x2714c(%rbp)
movslq -0x2714c(%rbp),%rax
cmpq   $0x0,-0x27130(%rbp,%rax,8)
je     138a <main+0x21a>
mov    -0x27150(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27150(%rbp)
movslq -0x27148(%rbp),%rax
mov    -0x9c70(%rbp,%rax,4),%eax
movslq -0x2714c(%rbp),%rcx
mov    -0x27130(%rbp,%rcx,8),%rcx
ff
cmp    (%rcx),%eax
jne    1371 <main+0x201>
jmp    138a <main+0x21a>
jmp    1376 <main+0x206>
mov    -0x2714c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2714c(%rbp)
jmp    1322 <main+0x1b2>
mov    -0x27148(%rbp),%esi
add    $0x1,%esi
lea    0xc6e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movslq -0x27148(%rbp),%rax
mov    -0x9c70(%rbp,%rax,4),%esi
lea    0xc65(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movslq -0x2714c(%rbp),%rax
cmpq   $0x0,-0x27130(%rbp,%rax,8)
je     13ec <main+0x27c>
mov    -0x2714c(%rbp),%esi
lea    0xc50(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13fa <main+0x28a>
lea    0xc52(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x27150(%rbp),%eax
add    -0x27134(%rbp),%eax
mov    %eax,-0x27134(%rbp)
mov    -0x27148(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x27148(%rbp)
jmp    12f2 <main+0x182>
cvtsi2sdl -0x27134(%rbp),%xmm0
ff
movsd  0xbc6(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xc2f(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x27150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x27128,%rsp
lea    0x9c60(%rsp),%rdi
mov    $0x1d4c0,%edx
xor    %esi,%esi
call   1070 <memset@plt>
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1080 <srand@plt>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   10a0 <rand@plt>
cltq
imul   $0x68db8bad,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x2d,%rcx
add    %edx,%ecx
imul   $0x4e20,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x20(%rsp,%rbx,4)
add    $0x1,%rbx
cmp    $0x2710,%rbx
jne    11c0 <main+0x40>
xor    %ebp,%ebp
xor    %eax,%eax
call   10a0 <rand@plt>
movslq %eax,%rbx
imul   $0x68db8bad,%rbx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x2d,%rax
add    %ecx,%eax
imul   $0x4e20,%eax,%eax
sub    %eax,%ebx
mov    %ebx,(%rsp)
xor    %eax,%eax
call   10a0 <rand@plt>
cltq
imul   $0x68db8bad,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x2d,%rcx
add    %edx,%ecx
imul   $0x4e20,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x4(%rsp)
xor    %eax,%eax
call   10a0 <rand@plt>
cltq
imul   $0x68db8bad,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x2d,%rcx
add    %edx,%ecx
imul   $0x4e20,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x8(%rsp)
xor    %eax,%eax
call   10a0 <rand@plt>
cltq
imul   $0x68db8bad,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x2d,%rcx
add    %edx,%ecx
imul   $0x4e20,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0xc(%rsp)
xor    %eax,%eax
call   10a0 <rand@plt>
cltq
imul   $0x68db8bad,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x2d,%rcx
add    %edx,%ecx
imul   $0x4e20,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x10(%rsp)
jmp    12ed <main+0x16d>
nopw   0x0(%rax,%rax,1)
lea    (%rsp,%rbp,4),%rax
add    $0x20,%rax
mov    %rax,0x9c60(%rsp,%rcx,8)
add    $0x1,%rbp
cmp    $0x2710,%rbp
je     132e <main+0x1ae>
mov    0x20(%rsp,%rbp,4),%edi
call   1050 <hash_func@plt>
movslq %eax,%rcx
cmpq   $0x0,0x9c60(%rsp,%rcx,8)
je     12d0 <main+0x150>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %eax,%edi
call   1050 <hash_func@plt>
movslq %eax,%rcx
add    $0x1,%eax
cmpq   $0x0,0x9c68(%rsp,%rcx,8)
jne    1310 <main+0x190>
add    $0x1,%rcx
jmp    12d0 <main+0x150>
xor    %ebp,%ebp
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebx,%edi
call   1050 <hash_func@plt>
mov    %eax,%r12d
cltq
mov    0x9c60(%rsp,%rax,8),%rdx
test   %rdx,%rdx
je     1390 <main+0x210>
mov    $0x1,%esi
xchg   %ax,%ax
mov    %esi,%r14d
mov    (%rdx),%ecx
cmp    %ecx,%ebx
je     137e <main+0x1fe>
mov    0x9c68(%rsp,%rax,8),%rdx
add    $0x1,%rax
lea    0x1(%r14),%esi
test   %rdx,%rdx
jne    1360 <main+0x1e0>
mov    %eax,%r12d
cmp    %ecx,%ebx
setne  %r15b
jmp    1396 <main+0x216>
nopl   0x0(%rax)
mov    $0x1,%r15b
xor    %r14d,%r14d
add    $0x1,%rbp
lea    0xc67(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xc6a(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
test   %r15b,%r15b
je     13d0 <main+0x250>
lea    0xc9a(%rip),%rdi
call   1040 <puts@plt>
jmp    13e1 <main+0x261>
nopl   (%rax)
lea    0xc59(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    %r14d,%r13d
cmp    $0x5,%rbp
je     13fc <main+0x27c>
mov    (%rsp,%rbp,4),%ebx
jmp    1340 <main+0x1c0>
cvtsi2sd %r13d,%xmm0
divsd  0xbf7(%rip),%xmm0
lea    0xc35(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x27128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [19 x i8] c"%d\E5\9B\9E\E7\9B\AE\E3\81\AE\E6\8E\A2\E7\B4\A2\0A\00"
@.str.1 = [21 x i8] c"\E6\8E\A2\E7\B4\A2\E3\83\87\E3\83\BC\E3\82\BF: %d\0A\00"
@.str.2 = [21 x i8] c"\E3\83\87\E3\83\BC\E3\82\BF\E7\95\AA\E5\8F\B7: %d\0A\00"
@.str.3 = [47 x i8] c"\E3\83\87\E3\83\BC\E3\82\BF\E3\81\AF\E8\A6\8B\E3\81\A4\E3\81\8B\E3\82\8A\E3\81\BE\E3\81\9B\E3\82\93\E3\81\A7\E3\81\97\E3\81\9F\E3\80\82\0A\00"
@.str.4 = [27 x i8] c"\E6\8E\A2\E7\B4\A2\E5\9B\9E\E6\95\B0\E3\81\AE\E5\B9\B3\E5\9D\87: %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10000 x i32]
%3 = alloca [5 x i32]
%4 = alloca [15000 x i32*]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %1
%13 = bitcast [15000 x i32*]* %4 to i8*
store i32 0, i32* %5
%14 = call i64 @time(i32* null)
%15 = trunc i64 %14 to i32
%16 = call i32 @srand(i32 %15)
store i32 0, i32* %6
br label %17
17: ; preds = %26, %0
%18 = load i32, i32* %6
%19 = icmp slt i32 %18, 10000
br i1 %19, label %20, label %29
20: ; preds = %17
%21 = call i32 (...) @rand()
%22 = srem i32 %21, 20000
%23 = load i32, i32* %6
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [10000 x i32], [10000 x i32]* %2, i64 0, i64 %24
store i32 %22, i32* %25
br label %26
26: ; preds = %20
%27 = load i32, i32* %6
%28 = add nsw i32 %27, 1
store i32 %28, i32* %6
br label %17
29: ; preds = %17
store i32 0, i32* %7
br label %30
30: ; preds = %39, %29
%31 = load i32, i32* %7
%32 = icmp slt i32 %31, 5
br i1 %32, label %33, label %42
33: ; preds = %30
%34 = call i32 (...) @rand()
%35 = srem i32 %34, 20000
%36 = load i32, i32* %7
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 %37
store i32 %35, i32* %38
br label %39
39: ; preds = %33
%40 = load i32, i32* %7
%41 = add nsw i32 %40, 1
store i32 %41, i32* %7
br label %30
42: ; preds = %30
store i32 0, i32* %8
br label %43
43: ; preds = %71, %42
%44 = load i32, i32* %8
%45 = icmp slt i32 %44, 10000
br i1 %45, label %46, label %74
46: ; preds = %43
%47 = load i32, i32* %8
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [10000 x i32], [10000 x i32]* %2, i64 0, i64 %48
%50 = load i32, i32* %49
%51 = call i32 @hash_func(i32 %50)
store i32 %51, i32* %9
br label %52
52: ; preds = %61, %46
%53 = load i32, i32* %9
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [15000 x i32*], [15000 x i32*]* %4, i64 0, i64 %54
%56 = load i32*, i32** %55
%57 = icmp ne i32* %56, null
br i1 %57, label %58, label %64
58: ; preds = %52
%59 = load i32, i32* %9
%60 = call i32 @hash_func(i32 %59)
store i32 %60, i32* %9
br label %61
61: ; preds = %58
%62 = load i32, i32* %9
%63 = add nsw i32 %62, 1
store i32 %63, i32* %9
br label %52
64: ; preds = %52
%65 = load i32, i32* %8
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [10000 x i32], [10000 x i32]* %2, i64 0, i64 %66
%68 = load i32, i32* %9
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [15000 x i32*], [15000 x i32*]* %4, i64 0, i64 %69
store i32* %67, i32** %70
br label %71
71: ; preds = %64
%72 = load i32, i32* %8
%73 = add nsw i32 %72, 1
store i32 %73, i32* %8
br label %43
74: ; preds = %43
store i32 0, i32* %10
br label %75
75: ; preds = %132, %74
%76 = load i32, i32* %10
%77 = icmp slt i32 %76, 5
br i1 %77, label %78, label %135
78: ; preds = %75
store i32 0, i32* %12
%79 = load i32, i32* %10
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 %80
%82 = load i32, i32* %81
%83 = call i32 @hash_func(i32 %82)
store i32 %83, i32* %11
br label %84
84: ; preds = %105, %78
%85 = load i32, i32* %11
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [15000 x i32*], [15000 x i32*]* %4, i64 0, i64 %86
%88 = load i32*, i32** %87
%89 = icmp ne i32* %88, null
br i1 %89, label %90, label %108
90: ; preds = %84
%91 = load i32, i32* %12
%92 = add nsw i32 %91, 1
store i32 %92, i32* %12
%93 = load i32, i32* %10
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 %94
%96 = load i32, i32* %95
%97 = load i32, i32* %11
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [15000 x i32*], [15000 x i32*]* %4, i64 0, i64 %98
%100 = load i32*, i32** %99
%101 = load i32, i32* %100
%102 = icmp eq i32 %96, %101
br i1 %102, label %103, label %104
103: ; preds = %90
br label %108
104: ; preds = %90
br label %105
105: ; preds = %104
%106 = load i32, i32* %11
%107 = add nsw i32 %106, 1
store i32 %107, i32* %11
br label %84
108: ; preds = %103, %84
%109 = load i32, i32* %10
%110 = add nsw i32 %109, 1
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %110)
%112 = load i32, i32* %10
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 %113
%115 = load i32, i32* %114
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %115)
%117 = load i32, i32* %11
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [15000 x i32*], [15000 x i32*]* %4, i64 0, i64 %118
%120 = load i32*, i32** %119
%121 = icmp ne i32* %120, null
br i1 %121, label %122, label %125
122: ; preds = %108
%123 = load i32, i32* %11
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %123)
br label %127
125: ; preds = %108
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0))
br label %127
127: ; preds = %125, %122
%128 = call i32 @putchar(i8 signext 10)
%129 = load i32, i32* %12
%130 = load i32, i32* %5
%131 = add nsw i32 %130, %129
store i32 %131, i32* %5
br label %132
132: ; preds = %127
%133 = load i32, i32* %10
%134 = add nsw i32 %133, 1
store i32 %134, i32* %10
br label %75
135: ; preds = %75
%136 = load i32, i32* %5
%137 = sitofp i32 %136 to double
%138 = fdiv double %137, 5.000000e+00
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), double %138)
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"%d\E5\9B\9E\E7\9B\AE\E3\81\AE\E6\8E\A2\E7\B4\A2\0A\00"
@.str.1 = [21 x i8] c"\E6\8E\A2\E7\B4\A2\E3\83\87\E3\83\BC\E3\82\BF: %d\0A\00"
@.str.2 = [21 x i8] c"\E3\83\87\E3\83\BC\E3\82\BF\E7\95\AA\E5\8F\B7: %d\0A\00"
@.str.4 = [27 x i8] c"\E6\8E\A2\E7\B4\A2\E5\9B\9E\E6\95\B0\E3\81\AE\E5\B9\B3\E5\9D\87: %f\0A\00"
@str = [46 x i8] c"\E3\83\87\E3\83\BC\E3\82\BF\E3\81\AF\E8\A6\8B\E3\81\A4\E3\81\8B\E3\82\8A\E3\81\BE\E3\81\9B\E3\82\93\E3\81\A7\E3\81\97\E3\81\9F\E3\80\82\00"
define i32 @main() {
%1 = alloca [10000 x i32]
%2 = alloca [5 x i32]
%3 = alloca [15000 x i32*]
%4 = bitcast [10000 x i32]* %1 to i8*
%5 = bitcast [5 x i32]* %2 to i8*
%6 = bitcast [15000 x i32*]* %3 to i8*
%7 = tail call i64 @time(i32* null)
%8 = trunc i64 %7 to i32
%9 = tail call i32 @srand(i32 %8)
br label %10
10: ; preds = %0, %10
%11 = phi i64 [ 0, %0 ], [ %15, %10 ]
%12 = tail call i32 (...) @rand()
%13 = srem i32 %12, 20000
%14 = getelementptr inbounds [10000 x i32], [10000 x i32]* %1, i64 0, i64 %11
store i32 %13, i32* %14
%15 = add nuw nsw i64 %11, 1
%16 = icmp eq i64 %15, 10000
br i1 %16, label %17, label %10
17: ; preds = %10
%18 = tail call i32 (...) @rand()
%19 = srem i32 %18, 20000
%20 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 0
store i32 %19, i32* %20
%21 = tail call i32 (...) @rand()
%22 = srem i32 %21, 20000
%23 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 1
store i32 %22, i32* %23
%24 = tail call i32 (...) @rand()
%25 = srem i32 %24, 20000
%26 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 2
store i32 %25, i32* %26
%27 = tail call i32 (...) @rand()
%28 = srem i32 %27, 20000
%29 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 3
store i32 %28, i32* %29
%30 = tail call i32 (...) @rand()
%31 = srem i32 %30, 20000
%32 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 4
store i32 %31, i32* %32
br label %33
33: ; preds = %17, %50
%34 = phi i64 [ 0, %17 ], [ %53, %50 ]
%35 = getelementptr inbounds [10000 x i32], [10000 x i32]* %1, i64 0, i64 %34
%36 = load i32, i32* %35
%37 = call i32 @hash_func(i32 %36)
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [15000 x i32*], [15000 x i32*]* %3, i64 0, i64 %38
%40 = load i32*, i32** %39
%41 = icmp eq i32* %40, null
br i1 %41, label %50, label %42
42: ; preds = %33, %42
%43 = phi i32 [ %45, %42 ], [ %37, %33 ]
%44 = call i32 @hash_func(i32 %43)
%45 = add nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [15000 x i32*], [15000 x i32*]* %3, i64 0, i64 %46
%48 = load i32*, i32** %47
%49 = icmp eq i32* %48, null
br i1 %49, label %50, label %42
50: ; preds = %42, %33
%51 = phi i64 [ %38, %33 ], [ %46, %42 ]
%52 = getelementptr inbounds [15000 x i32*], [15000 x i32*]* %3, i64 0, i64 %51
store i32* %35, i32** %52
%53 = add nuw nsw i64 %34, 1
%54 = icmp eq i64 %53, 10000
br i1 %54, label %59, label %33
55: ; preds = %99
%56 = sitofp i32 %101 to double
%57 = fdiv double %56, 5.000000e+00
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), double %57)
ret i32 0
59: ; preds = %50, %103
%60 = phi i32 [ %105, %103 ], [ %19, %50 ]
%61 = phi i64 [ %91, %103 ], [ 0, %50 ]
%62 = phi i32 [ %101, %103 ], [ 0, %50 ]
%63 = call i32 @hash_func(i32 %60)
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [15000 x i32*], [15000 x i32*]* %3, i64 0, i64 %64
%66 = load i32*, i32** %65
%67 = icmp eq i32* %66, null
br i1 %67, label %87, label %68
68: ; preds = %59, %76
%69 = phi i64 [ %77, %76 ], [ %64, %59 ]
%70 = phi i32* [ %80, %76 ], [ %66, %59 ]
%71 = phi i32 [ %73, %76 ], [ 0, %59 ]
%72 = phi i32 [ %78, %76 ], [ %63, %59 ]
%73 = add nuw nsw i32 %71, 1
%74 = load i32, i32* %70
%75 = icmp eq i32 %60, %74
br i1 %75, label %82, label %76
76: ; preds = %68
%77 = add i64 %69, 1
%78 = add nsw i32 %72, 1
%79 = getelementptr inbounds [15000 x i32*], [15000 x i32*]* %3, i64 0, i64 %77
%80 = load i32*, i32** %79
%81 = icmp eq i32* %80, null
br i1 %81, label %84, label %68
82: ; preds = %68
%83 = trunc i64 %69 to i32
br label %84
84: ; preds = %76, %82
%85 = phi i32 [ %83, %82 ], [ %78, %76 ]
%86 = xor i1 %75, true
br label %87
87: ; preds = %84, %59
%88 = phi i32 [ %63, %59 ], [ %85, %84 ]
%89 = phi i1 [ true, %59 ], [ %86, %84 ]
%90 = phi i32 [ 0, %59 ], [ %73, %84 ]
%91 = add nuw nsw i64 %61, 1
%92 = trunc i64 %91 to i32
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %92)
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %60)
br i1 %89, label %97, label %95
95: ; preds = %87
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %88)
br label %99
97: ; preds = %87
%98 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
br label %99
99: ; preds = %97, %95
%100 = call i32 @putchar(i8 signext 10)
%101 = add nsw i32 %90, %62
%102 = icmp eq i64 %91, 5
br i1 %102, label %55, label %103
103: ; preds = %99
%104 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %91
%105 = load i32, i32* %104
br label %59
}