#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 */
typedef int uint64_t;
typedef int /*<<< orphan*/ enc_tests;
typedef int /*<<< orphan*/ dec_tests;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ rhash_decode(int *, char const *);
int /*<<< orphan*/ rhash_encode(char *, int, int const);
int main(int argc, char **argv) {
  static const uint64_t enc_tests[] = {
      0x0000000000000000ULL, 0x0000000000000001ULL, 0x0000000000000010ULL,
      0x0000000000000100ULL, 0x0000000000030000ULL, 0x0000A00000000000ULL,
      0x000B000000000000ULL, 0xFF00000000000000ULL, 0xFFFFFFFFFFFFFFFFULL,
      0x1001001001001001ULL, 0xAAAAAAAAAAAAAAAAULL, 0x53A0E4C21F69BD78ULL,
  };
  static const unsigned char enc_num = sizeof(enc_tests) / sizeof(uint64_t);
  static const char *dec_tests[] = {
      "A",           "B",           "Q",           "AE",          "AAAAAAAAA8P",
      "__________P", "BABABABABAB", "qqqqqqqqqqK", "41bafIM5gOF",
  };
  static const unsigned char dec_num = sizeof(dec_tests) / sizeof(char *);
  char hash[(16)];
  uint64_t id;
  int index;
  printf("Testing rhash_encode()\n");
  for (index = 0; index < enc_num; ++index) {
    rhash_encode(hash, (16), enc_tests[index]);
    printf("    0x%016llX => %18s\n", enc_tests[index], hash);
  }
  printf("Testing rhash_decode()\n");
  for (index = 0; index < dec_num; ++index) {
    rhash_decode(&id, dec_tests[index]);
    printf("    %18s => 0x%016llX\n", dec_tests[index], id);
  }
  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)
lea    0xf28(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x28(%rbp)
cmpl   $0xc,-0x28(%rbp)
jge    11af <main+0x7f>
lea    -0x20(%rbp),%rdi
movslq -0x28(%rbp),%rcx
lea    0xe8c(%rip),%rax
mov    (%rax,%rcx,4),%edx
mov    $0x10,%esi
call   1030 <rhash_encode@plt>
movslq -0x28(%rbp),%rcx
lea    0xe74(%rip),%rax
mov    (%rax,%rcx,4),%esi
lea    -0x20(%rbp),%rdx
lea    0xef3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    115b <main+0x2b>
lea    0xeee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x28(%rbp)
cmpl   $0x9,-0x28(%rbp)
jge    1214 <main+0xe4>
movslq -0x28(%rbp),%rcx
lea    0x2e67(%rip),%rax
mov    (%rax,%rcx,8),%rsi
lea    -0x24(%rbp),%rdi
call   1050 <rhash_decode@plt>
movslq -0x28(%rbp),%rcx
lea    0x2e4f(%rip),%rax
mov    (%rax,%rcx,8),%rsi
mov    -0x24(%rbp),%edx
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    11c4 <main+0x94>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
lea    0xf21(%rip),%rdi
call   1030 <puts@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x10,%esi
xor    %edx,%edx
call   1040 <rhash_encode@plt>
lea    0xed3(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    $0x1,%edx
call   1040 <rhash_encode@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    $0x10,%edx
call   1040 <rhash_encode@plt>
mov    %r14,%rdi
mov    $0x10,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    $0x100,%edx
call   1040 <rhash_encode@plt>
mov    %r14,%rdi
mov    $0x100,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    $0x30000,%edx
call   1040 <rhash_encode@plt>
mov    %r14,%rdi
mov    $0x30000,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
xor    %edx,%edx
call   1040 <rhash_encode@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
xor    %edx,%edx
call   1040 <rhash_encode@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
xor    %edx,%edx
call   1040 <rhash_encode@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    $0xffffffff,%edx
call   1040 <rhash_encode@plt>
mov    %r14,%rdi
mov    $0xffffffff,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    $0x1001001,%edx
call   1040 <rhash_encode@plt>
mov    %r14,%rdi
mov    $0x1001001,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    $0xaaaaaaaa,%edx
call   1040 <rhash_encode@plt>
mov    %r14,%rdi
mov    $0xaaaaaaaa,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    $0x1f69bd78,%edx
call   1040 <rhash_encode@plt>
mov    %r14,%rdi
mov    $0x1f69bd78,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd88(%rip),%rdi
call   1030 <puts@plt>
lea    0xcf4(%rip),%rbx
lea    0xc(%rsp),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <rhash_decode@plt>
mov    0xc(%rsp),%edx
lea    0xd33(%rip),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcee(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <rhash_decode@plt>
mov    0xc(%rsp),%edx
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xca4(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <rhash_decode@plt>
mov    0xc(%rsp),%edx
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc83(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <rhash_decode@plt>
mov    0xc(%rsp),%edx
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc63(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <rhash_decode@plt>
mov    0xc(%rsp),%edx
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc4c(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <rhash_decode@plt>
mov    0xc(%rsp),%edx
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc35(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <rhash_decode@plt>
mov    0xc(%rsp),%edx
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc1e(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <rhash_decode@plt>
mov    0xc(%rsp),%edx
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc07(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <rhash_decode@plt>
mov    0xc(%rsp),%edx
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@main.enc_tests = internal constant [12 x i32] [i32 0, i32 1, i32 16, i32 256, i32 196608, i32 0, i32 0, i32 0, i32 -1, i32 16781313, i32 -1431655766, i32 527023480]
@main.enc_num = internal constant i8 12
@main.dec_tests = internal global [9 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i32 0, i32 0)]
@.str = [2 x i8] c"A\00"
@.str.1 = [2 x i8] c"B\00"
@.str.2 = [2 x i8] c"Q\00"
@.str.3 = [3 x i8] c"AE\00"
@.str.4 = [12 x i8] c"AAAAAAAAA8P\00"
@.str.5 = [12 x i8] c"__________P\00"
@.str.6 = [12 x i8] c"BABABABABAB\00"
@.str.7 = [12 x i8] c"qqqqqqqqqqK\00"
@.str.8 = [12 x i8] c"41bafIM5gOF\00"
@main.dec_num = internal constant i8 9
@.str.9 = [24 x i8] c"Testing rhash_encode()\0A\00"
@.str.10 = [23 x i8] c" 0x%016llX => %18s\0A\00"
@.str.11 = [24 x i8] c"Testing rhash_decode()\0A\00"
@.str.12 = [23 x i8] c" %18s => 0x%016llX\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [16 x i8]
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %8
br label %10
10: ; preds = %26, %2
%11 = load i32, i32* %8
%12 = icmp slt i32 %11, 12
br i1 %12, label %13, label %29
13: ; preds = %10
%14 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%15 = load i32, i32* %8
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [12 x i32], [12 x i32]* @main.enc_tests, i64 0, i64 %16
%18 = load i32, i32* %17
%19 = call i32 @rhash_encode(i8* %14, i32 16, i32 %18)
%20 = load i32, i32* %8
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [12 x i32], [12 x i32]* @main.enc_tests, i64 0, i64 %21
%23 = load i32, i32* %22
%24 = getelementptr inbounds [16 x i8], [16 x i8]* %6, i64 0, i64 0
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 %23, i8* %24)
br label %26
26: ; preds = %13
%27 = load i32, i32* %8
%28 = add nsw i32 %27, 1
store i32 %28, i32* %8
br label %10
29: ; preds = %10
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %8
br label %31
31: ; preds = %46, %29
%32 = load i32, i32* %8
%33 = icmp slt i32 %32, 9
br i1 %33, label %34, label %49
34: ; preds = %31
%35 = load i32, i32* %8
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [9 x i8*], [9 x i8*]* @main.dec_tests, i64 0, i64 %36
%38 = load i8*, i8** %37
%39 = call i32 @rhash_decode(i32* %7, i8* %38)
%40 = load i32, i32* %8
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [9 x i8*], [9 x i8*]* @main.dec_tests, i64 0, i64 %41
%43 = load i8*, i8** %42
%44 = load i32, i32* %7
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i8* %43, i32 %44)
br label %46
46: ; preds = %34
%47 = load i32, i32* %8
%48 = add nsw i32 %47, 1
store i32 %48, i32* %8
br label %31
49: ; preds = %31
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"A\00"
@.str.1 = [2 x i8] c"B\00"
@.str.2 = [2 x i8] c"Q\00"
@.str.3 = [3 x i8] c"AE\00"
@.str.4 = [12 x i8] c"AAAAAAAAA8P\00"
@.str.5 = [12 x i8] c"__________P\00"
@.str.6 = [12 x i8] c"BABABABABAB\00"
@.str.7 = [12 x i8] c"qqqqqqqqqqK\00"
@.str.8 = [12 x i8] c"41bafIM5gOF\00"
@.str.10 = [23 x i8] c" 0x%016llX => %18s\0A\00"
@.str.12 = [23 x i8] c" %18s => 0x%016llX\0A\00"
@str = [23 x i8] c"Testing rhash_encode()\00"
@str.13 = [23 x i8] c"Testing rhash_decode()\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [16 x i8]
%4 = alloca i32
%5 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%6 = bitcast i32* %4 to i8*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%8 = call i32 @rhash_encode(i8* %5, i32 16, i32 0)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 0, i8* %5)
%10 = call i32 @rhash_encode(i8* %5, i32 16, i32 1)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 1, i8* %5)
%12 = call i32 @rhash_encode(i8* %5, i32 16, i32 16)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 16, i8* %5)
%14 = call i32 @rhash_encode(i8* %5, i32 16, i32 256)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 256, i8* %5)
%16 = call i32 @rhash_encode(i8* %5, i32 16, i32 196608)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 196608, i8* %5)
%18 = call i32 @rhash_encode(i8* %5, i32 16, i32 0)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 0, i8* %5)
%20 = call i32 @rhash_encode(i8* %5, i32 16, i32 0)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 0, i8* %5)
%22 = call i32 @rhash_encode(i8* %5, i32 16, i32 0)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 0, i8* %5)
%24 = call i32 @rhash_encode(i8* %5, i32 16, i32 -1)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 -1, i8* %5)
%26 = call i32 @rhash_encode(i8* %5, i32 16, i32 16781313)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 16781313, i8* %5)
%28 = call i32 @rhash_encode(i8* %5, i32 16, i32 -1431655766)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 -1431655766, i8* %5)
%30 = call i32 @rhash_encode(i8* %5, i32 16, i32 527023480)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 527023480, i8* %5)
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.13, i64 0, i64 0))
%33 = call i32 @rhash_decode(i32* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%34 = load i32, i32* %4
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 %34)
%36 = call i32 @rhash_decode(i32* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%37 = load i32, i32* %4
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %37)
%39 = call i32 @rhash_decode(i32* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%40 = load i32, i32* %4
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 %40)
%42 = call i32 @rhash_decode(i32* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%43 = load i32, i32* %4
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %43)
%45 = call i32 @rhash_decode(i32* %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%46 = load i32, i32* %4
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %46)
%48 = call i32 @rhash_decode(i32* %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%49 = load i32, i32* %4
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %49)
%51 = call i32 @rhash_decode(i32* %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%52 = load i32, i32* %4
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %52)
%54 = call i32 @rhash_decode(i32* %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%55 = load i32, i32* %4
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %55)
%57 = call i32 @rhash_decode(i32* %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%58 = load i32, i32* %4
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 %58)
ret i32 0
}