#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*/ fprintf(int /*<<< orphan*/, char *, int);
int jhash_3words(int, int, int, int);
int /*<<< orphan*/ stderr;
int main() {
  fprintf(stderr, "0xffffffff,0xeeeeeeee,0xdddddddd,0x00000000 : %08x\n",
          jhash_3words(0xffffffff, 0xeeeeeeee, 0xdddddddd, 0x00000000));
  fprintf(stderr, "0x11223344,0x44332211,0x01020304,0x12345678 : %08x\n",
          jhash_3words(0x11223344, 0x44332211, 0x01020304, 0x12345678));
  fprintf(stderr, "0x00000000,0x00000000,0x00000000,0x00000000 : %08x\n",
          jhash_3words(0x00000000, 0x00000000, 0x00000000, 0x00000000));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eaa(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
mov    $0xffffffff,%edi
mov    $0xeeeeeeee,%esi
mov    $0xdddddddd,%edx
xor    %ecx,%ecx
call   1040 <jhash_3words@plt>
mov    -0x10(%rbp),%edi
mov    %eax,%edx
lea    0xea3(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e77(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    $0x11223344,%edi
mov    $0x44332211,%esi
mov    $0x1020304,%edx
mov    $0x12345678,%ecx
call   1040 <jhash_3words@plt>
mov    -0xc(%rbp),%edi
mov    %eax,%edx
lea    0xea1(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e41(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
xor    %ecx,%ecx
mov    %ecx,%edi
mov    %ecx,%esi
mov    %ecx,%edx
call   1040 <jhash_3words@plt>
mov    -0x8(%rbp),%edi
mov    %eax,%edx
lea    0xeab(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    0x2eb5(%rip),%r14
mov    (%r14),%ebx
mov    $0xffffffff,%edi
mov    $0xeeeeeeee,%esi
mov    $0xdddddddd,%edx
xor    %ecx,%ecx
call   1040 <jhash_3words@plt>
lea    0xeb5(%rip),%rsi
mov    %ebx,%edi
mov    %eax,%edx
call   1030 <fprintf@plt>
mov    (%r14),%ebx
mov    $0x11223344,%edi
mov    $0x44332211,%esi
mov    $0x1020304,%edx
mov    $0x12345678,%ecx
call   1040 <jhash_3words@plt>
lea    0xebd(%rip),%rsi
mov    %ebx,%edi
mov    %eax,%edx
call   1030 <fprintf@plt>
mov    (%r14),%ebx
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1040 <jhash_3words@plt>
lea    0xed1(%rip),%rsi
mov    %ebx,%edi
mov    %eax,%edx
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [52 x i8] c"0xffffffff,0xeeeeeeee,0xdddddddd,0x00000000 : %08x\0A\00"
@.str.1 = [52 x i8] c"0x11223344,0x44332211,0x01020304,0x12345678 : %08x\0A\00"
@.str.2 = [52 x i8] c"0x00000000,0x00000000,0x00000000,0x00000000 : %08x\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @stderr
%3 = call i32 @jhash_3words(i32 -1, i32 -286331154, i32 -572662307, i32 0)
%4 = call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stderr
%6 = call i32 @jhash_3words(i32 287454020, i32 1144201745, i32 16909060, i32 305419896)
%7 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @stderr
%9 = call i32 @jhash_3words(i32 0, i32 0, i32 0, i32 0)
%10 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0), i32 %9)
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [52 x i8] c"0xffffffff,0xeeeeeeee,0xdddddddd,0x00000000 : %08x\0A\00"
@.str.1 = [52 x i8] c"0x11223344,0x44332211,0x01020304,0x12345678 : %08x\0A\00"
@.str.2 = [52 x i8] c"0x00000000,0x00000000,0x00000000,0x00000000 : %08x\0A\00"
define i32 @main() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @jhash_3words(i32 -1, i32 -286331154, i32 -572662307, i32 0)
%3 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = load i32, i32* @stderr
%5 = tail call i32 @jhash_3words(i32 287454020, i32 1144201745, i32 16909060, i32 305419896)
%6 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = tail call i32 @jhash_3words(i32 0, i32 0, i32 0, i32 0)
%9 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0), i32 %8)
ret i32 0
}