#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 EXIT_SUCCESS;
int /*<<< orphan*/ attacksInit();
int /*<<< orphan*/ bbInit();
int /*<<< orphan*/ bitbaseInit();
int /*<<< orphan*/ bitbaseQuit();
int /*<<< orphan*/ evalInit();
int /*<<< orphan*/ evalQuit();
int /*<<< orphan*/ posInit();
int /*<<< orphan*/ searchInit();
int /*<<< orphan*/ searchQuit();
int /*<<< orphan*/ ttInit();
int /*<<< orphan*/ ttQuit();
int /*<<< orphan*/ uciInit();
int /*<<< orphan*/ uciLoop();
int main(int argc, char **argv) {
  uciInit();
  bbInit();
  attacksInit();
  bitbaseInit();
  posInit();
  evalInit();
  ttInit();
  searchInit();
  uciLoop();
  searchQuit();
  ttQuit();
  evalQuit();
  bitbaseQuit();
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1070 <uciInit@plt>
mov    $0x0,%al
call   10f0 <bbInit@plt>
mov    $0x0,%al
call   1060 <attacksInit@plt>
mov    $0x0,%al
call   10e0 <bitbaseInit@plt>
mov    $0x0,%al
call   10a0 <posInit@plt>
mov    $0x0,%al
call   10d0 <evalInit@plt>
mov    $0x0,%al
call   1030 <ttInit@plt>
mov    $0x0,%al
call   1040 <searchInit@plt>
mov    $0x0,%al
call   10b0 <uciLoop@plt>
mov    $0x0,%al
call   1050 <searchQuit@plt>
mov    $0x0,%al
call   1080 <ttQuit@plt>
mov    $0x0,%al
call   1090 <evalQuit@plt>
mov    $0x0,%al
call   10c0 <bitbaseQuit@plt>
mov    0x2d98(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1070 <uciInit@plt>
xor    %eax,%eax
call   10f0 <bbInit@plt>
xor    %eax,%eax
call   1060 <attacksInit@plt>
xor    %eax,%eax
call   10e0 <bitbaseInit@plt>
xor    %eax,%eax
call   10a0 <posInit@plt>
xor    %eax,%eax
call   10d0 <evalInit@plt>
xor    %eax,%eax
call   1030 <ttInit@plt>
xor    %eax,%eax
call   1040 <searchInit@plt>
xor    %eax,%eax
call   10b0 <uciLoop@plt>
xor    %eax,%eax
call   1050 <searchQuit@plt>
xor    %eax,%eax
call   1080 <ttQuit@plt>
xor    %eax,%eax
call   1090 <evalQuit@plt>
xor    %eax,%eax
call   10c0 <bitbaseQuit@plt>
mov    0x2dad(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @uciInit()
%7 = call i32 (...) @bbInit()
%8 = call i32 (...) @attacksInit()
%9 = call i32 (...) @bitbaseInit()
%10 = call i32 (...) @posInit()
%11 = call i32 (...) @evalInit()
%12 = call i32 (...) @ttInit()
%13 = call i32 (...) @searchInit()
%14 = call i32 (...) @uciLoop()
%15 = call i32 (...) @searchQuit()
%16 = call i32 (...) @ttQuit()
%17 = call i32 (...) @evalQuit()
%18 = call i32 (...) @bitbaseQuit()
%19 = load i32, i32* @EXIT_SUCCESS
ret i32 %19
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @uciInit()
%4 = tail call i32 (...) @bbInit()
%5 = tail call i32 (...) @attacksInit()
%6 = tail call i32 (...) @bitbaseInit()
%7 = tail call i32 (...) @posInit()
%8 = tail call i32 (...) @evalInit()
%9 = tail call i32 (...) @ttInit()
%10 = tail call i32 (...) @searchInit()
%11 = tail call i32 (...) @uciLoop()
%12 = tail call i32 (...) @searchQuit()
%13 = tail call i32 (...) @ttQuit()
%14 = tail call i32 (...) @evalQuit()
%15 = tail call i32 (...) @bitbaseQuit()
%16 = load i32, i32* @EXIT_SUCCESS
ret i32 %16
}