#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*/ BITBOARD_init();
int /*<<< orphan*/ hash_test(char *, int);
int main() {
  BITBOARD_init();
  hash_test("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1",
            0x463b96181691fc9c);
  hash_test("rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1",
            0x823c9b50fd114196);
  hash_test("rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq d6 0 2",
            0x0756b94461c50fb0);
  hash_test("rnbqkbnr/ppp1pppp/8/3pP3/8/8/PPPP1PPP/RNBQKBNR b KQkq - 0 2",
            0x662fafb965db29d4);
  hash_test("rnbqkbnr/ppp1p1pp/8/3pPp2/8/8/PPPP1PPP/RNBQKBNR w KQkq f6 0 3",
            0x22a48b5a8e47ff78);
  hash_test("rnbqkbnr/ppp1p1pp/8/3pPp2/8/8/PPPPKPPP/RNBQ1BNR b kq - 0 3",
            0x652a607ca3f242c1);
  hash_test("rnbq1bnr/ppp1pkpp/8/3pPp2/8/8/PPPPKPPP/RNBQ1BNR w - - 0 4",
            0x00fdd303c946bdd9);
  hash_test("rnbqkbnr/p1pppppp/8/8/PpP4P/8/1P1PPPP1/RNBQKBNR b KQkq c3 0 3",
            0x3c8123ea7b067637);
  hash_test("rnbqkbnr/p1pppppp/8/8/P6P/R1p5/1P1PPPP1/1NBQKBNR b Kkq - 0 4",
            0x5c3f9b829b279560);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <BITBOARD_init@plt>
lea    0xec3(%rip),%rdi
mov    $0x1691fc9c,%esi
call   1030 <hash_test@plt>
lea    0xeeb(%rip),%rdi
mov    $0xfd114196,%esi
call   1030 <hash_test@plt>
lea    0xf16(%rip),%rdi
mov    $0x61c50fb0,%esi
call   1030 <hash_test@plt>
lea    0xf43(%rip),%rdi
mov    $0x65db29d4,%esi
call   1030 <hash_test@plt>
lea    0xf6e(%rip),%rdi
mov    $0x8e47ff78,%esi
call   1030 <hash_test@plt>
lea    0xf9b(%rip),%rdi
mov    $0xa3f242c1,%esi
call   1030 <hash_test@plt>
lea    0xfc5(%rip),%rdi
mov    $0xc946bdd9,%esi
call   1030 <hash_test@plt>
lea    0xfee(%rip),%rdi
mov    $0x7b067637,%esi
call   1030 <hash_test@plt>
lea    0x101b(%rip),%rdi
mov    $0x9b279560,%esi
call   1030 <hash_test@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <BITBOARD_init@plt>
lea    0xed1(%rip),%rdi
mov    $0x1691fc9c,%esi
call   1030 <hash_test@plt>
lea    0xef9(%rip),%rdi
mov    $0xfd114196,%esi
call   1030 <hash_test@plt>
lea    0xf24(%rip),%rdi
mov    $0x61c50fb0,%esi
call   1030 <hash_test@plt>
lea    0xf51(%rip),%rdi
mov    $0x65db29d4,%esi
call   1030 <hash_test@plt>
lea    0xf7c(%rip),%rdi
mov    $0x8e47ff78,%esi
call   1030 <hash_test@plt>
lea    0xfa9(%rip),%rdi
mov    $0xa3f242c1,%esi
call   1030 <hash_test@plt>
lea    0xfd3(%rip),%rdi
mov    $0xc946bdd9,%esi
call   1030 <hash_test@plt>
lea    0xffc(%rip),%rdi
mov    $0x7b067637,%esi
call   1030 <hash_test@plt>
lea    0x1029(%rip),%rdi
mov    $0x9b279560,%esi
call   1030 <hash_test@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [57 x i8] c"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1\00"
@.str.1 = [60 x i8] c"rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1\00"
@.str.2 = [62 x i8] c"rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq d6 0 2\00"
@.str.3 = [60 x i8] c"rnbqkbnr/ppp1pppp/8/3pP3/8/8/PPPP1PPP/RNBQKBNR b KQkq - 0 2\00"
@.str.4 = [62 x i8] c"rnbqkbnr/ppp1p1pp/8/3pPp2/8/8/PPPP1PPP/RNBQKBNR w KQkq f6 0 3\00"
@.str.5 = [59 x i8] c"rnbqkbnr/ppp1p1pp/8/3pPp2/8/8/PPPPKPPP/RNBQ1BNR b kq - 0 3\00"
@.str.6 = [58 x i8] c"rnbq1bnr/ppp1pkpp/8/3pPp2/8/8/PPPPKPPP/RNBQ1BNR w - - 0 4\00"
@.str.7 = [62 x i8] c"rnbqkbnr/p1pppppp/8/8/PpP4P/8/1P1PPPP1/RNBQKBNR b KQkq c3 0 3\00"
@.str.8 = [61 x i8] c"rnbqkbnr/p1pppppp/8/8/P6P/R1p5/1P1PPPP1/1NBQKBNR b Kkq - 0 4\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @BITBOARD_init()
%3 = call i32 @hash_test(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i32 378666140)
%4 = call i32 @hash_test(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0), i32 -49200746)
%5 = call i32 @hash_test(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0), i32 1640304560)
%6 = call i32 @hash_test(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0), i32 1708861908)
%7 = call i32 @hash_test(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0), i32 -1907884168)
%8 = call i32 @hash_test(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0), i32 -1544404287)
%9 = call i32 @hash_test(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.6, i64 0, i64 0), i32 -918110759)
%10 = call i32 @hash_test(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0), i32 2064021047)
%11 = call i32 @hash_test(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0), i32 -1691904672)
ret i32 0
}

LLVM IR (-O2):
@.str = [57 x i8] c"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1\00"
@.str.1 = [60 x i8] c"rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1\00"
@.str.2 = [62 x i8] c"rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq d6 0 2\00"
@.str.3 = [60 x i8] c"rnbqkbnr/ppp1pppp/8/3pP3/8/8/PPPP1PPP/RNBQKBNR b KQkq - 0 2\00"
@.str.4 = [62 x i8] c"rnbqkbnr/ppp1p1pp/8/3pPp2/8/8/PPPP1PPP/RNBQKBNR w KQkq f6 0 3\00"
@.str.5 = [59 x i8] c"rnbqkbnr/ppp1p1pp/8/3pPp2/8/8/PPPPKPPP/RNBQ1BNR b kq - 0 3\00"
@.str.6 = [58 x i8] c"rnbq1bnr/ppp1pkpp/8/3pPp2/8/8/PPPPKPPP/RNBQ1BNR w - - 0 4\00"
@.str.7 = [62 x i8] c"rnbqkbnr/p1pppppp/8/8/PpP4P/8/1P1PPPP1/RNBQKBNR b KQkq c3 0 3\00"
@.str.8 = [61 x i8] c"rnbqkbnr/p1pppppp/8/8/P6P/R1p5/1P1PPPP1/1NBQKBNR b Kkq - 0 4\00"
define i32 @main() {
%1 = tail call i32 (...) @BITBOARD_init()
%2 = tail call i32 @hash_test(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i32 378666140)
%3 = tail call i32 @hash_test(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0), i32 -49200746)
%4 = tail call i32 @hash_test(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0), i32 1640304560)
%5 = tail call i32 @hash_test(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0), i32 1708861908)
%6 = tail call i32 @hash_test(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0), i32 -1907884168)
%7 = tail call i32 @hash_test(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0), i32 -1544404287)
%8 = tail call i32 @hash_test(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.6, i64 0, i64 0), i32 -918110759)
%9 = tail call i32 @hash_test(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0), i32 2064021047)
%10 = tail call i32 @hash_test(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0), i32 -1691904672)
ret i32 0
}