#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*/ adsbus_opts_add();
int /*<<< orphan*/ beast_init();
int /*<<< orphan*/ exec_cleanup();
int /*<<< orphan*/ exec_init();
int /*<<< orphan*/ file_cleanup();
int /*<<< orphan*/ file_init();
int /*<<< orphan*/ hex_init();
int /*<<< orphan*/ incoming_cleanup();
int /*<<< orphan*/ incoming_init();
int /*<<< orphan*/ json_cleanup();
int /*<<< orphan*/ json_init();
int /*<<< orphan*/ log_cleanup();
int /*<<< orphan*/ log_cleanup_peer();
int /*<<< orphan*/ log_init();
int /*<<< orphan*/ log_init_peer();
int /*<<< orphan*/ opts_init(int, char **);
int /*<<< orphan*/ outgoing_cleanup();
int /*<<< orphan*/ outgoing_init();
int /*<<< orphan*/ peer_cleanup();
int /*<<< orphan*/ peer_init();
int /*<<< orphan*/ peer_loop();
int /*<<< orphan*/ proto_cleanup();
int /*<<< orphan*/ proto_init();
int /*<<< orphan*/ rand_cleanup();
int /*<<< orphan*/ rand_init();
int /*<<< orphan*/ receive_cleanup();
int /*<<< orphan*/ receive_init();
int /*<<< orphan*/ resolve_cleanup();
int /*<<< orphan*/ resolve_init();
int /*<<< orphan*/ send_cleanup();
int /*<<< orphan*/ send_init();
int /*<<< orphan*/ send_receive_cleanup();
int /*<<< orphan*/ server_init();
int /*<<< orphan*/ stats_init();
int /*<<< orphan*/ stdinout_cleanup();
int /*<<< orphan*/ stdinout_init();
int /*<<< orphan*/ stdinout_preinit();
int /*<<< orphan*/ wakeup_cleanup();
int /*<<< orphan*/ wakeup_init();
int main(int argc, char *argv[]) {
  stdinout_preinit();
  adsbus_opts_add();
  opts_init(argc, argv);
  hex_init();
  rand_init();
  log_init();
  server_init();
  resolve_init();
  wakeup_init();
  peer_init();
  log_init_peer();
  receive_init();
  send_init();
  beast_init();
  json_init();
  proto_init();
  stats_init();
  outgoing_init();
  incoming_init();
  exec_init();
  file_init();
  stdinout_init();
  peer_loop();
  resolve_cleanup();
  receive_cleanup();
  send_cleanup();
  send_receive_cleanup();
  incoming_cleanup();
  outgoing_cleanup();
  exec_cleanup();
  file_cleanup();
  json_cleanup();
  proto_cleanup();
  rand_cleanup();
  wakeup_cleanup();
  log_cleanup_peer();
  peer_cleanup();
  log_cleanup();
  stdinout_cleanup();
  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   10f0 <stdinout_preinit@plt>
mov    $0x0,%al
call   11e0 <adsbus_opts_add@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1150 <opts_init@plt>
mov    $0x0,%al
call   10c0 <hex_init@plt>
mov    $0x0,%al
call   10b0 <rand_init@plt>
mov    $0x0,%al
call   1030 <log_init@plt>
mov    $0x0,%al
call   1110 <server_init@plt>
mov    $0x0,%al
call   10e0 <resolve_init@plt>
mov    $0x0,%al
call   1130 <wakeup_init@plt>
mov    $0x0,%al
call   1100 <peer_init@plt>
mov    $0x0,%al
call   10d0 <log_init_peer@plt>
mov    $0x0,%al
call   1260 <receive_init@plt>
mov    $0x0,%al
call   1220 <send_init@plt>
mov    $0x0,%al
call   1240 <beast_init@plt>
mov    $0x0,%al
call   1230 <json_init@plt>
mov    $0x0,%al
call   1210 <proto_init@plt>
mov    $0x0,%al
call   1050 <stats_init@plt>
mov    $0x0,%al
call   1060 <outgoing_init@plt>
mov    $0x0,%al
call   1200 <incoming_init@plt>
mov    $0x0,%al
call   10a0 <exec_init@plt>
mov    $0x0,%al
call   1140 <file_init@plt>
mov    $0x0,%al
call   1280 <stdinout_init@plt>
mov    $0x0,%al
call   1270 <peer_loop@plt>
mov    $0x0,%al
call   11a0 <resolve_cleanup@plt>
mov    $0x0,%al
call   11b0 <receive_cleanup@plt>
mov    $0x0,%al
call   1180 <send_cleanup@plt>
mov    $0x0,%al
call   1170 <send_receive_cleanup@plt>
mov    $0x0,%al
call   1070 <incoming_cleanup@plt>
mov    $0x0,%al
call   1090 <outgoing_cleanup@plt>
mov    $0x0,%al
call   1080 <exec_cleanup@plt>
mov    $0x0,%al
call   1040 <file_cleanup@plt>
mov    $0x0,%al
call   11f0 <json_cleanup@plt>
mov    $0x0,%al
call   1290 <proto_cleanup@plt>
mov    $0x0,%al
call   1160 <rand_cleanup@plt>
mov    $0x0,%al
call   1190 <wakeup_cleanup@plt>
mov    $0x0,%al
call   1250 <log_cleanup_peer@plt>
mov    $0x0,%al
call   1120 <peer_cleanup@plt>
mov    $0x0,%al
call   11c0 <log_cleanup@plt>
mov    $0x0,%al
call   11d0 <stdinout_cleanup@plt>
mov    0x2b3d(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %eax,%eax
call   10f0 <stdinout_preinit@plt>
xor    %eax,%eax
call   11e0 <adsbus_opts_add@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1150 <opts_init@plt>
xor    %eax,%eax
call   10c0 <hex_init@plt>
xor    %eax,%eax
call   10b0 <rand_init@plt>
xor    %eax,%eax
call   1030 <log_init@plt>
xor    %eax,%eax
call   1110 <server_init@plt>
xor    %eax,%eax
call   10e0 <resolve_init@plt>
xor    %eax,%eax
call   1130 <wakeup_init@plt>
xor    %eax,%eax
call   1100 <peer_init@plt>
xor    %eax,%eax
call   10d0 <log_init_peer@plt>
xor    %eax,%eax
call   1260 <receive_init@plt>
xor    %eax,%eax
call   1220 <send_init@plt>
xor    %eax,%eax
call   1240 <beast_init@plt>
xor    %eax,%eax
call   1230 <json_init@plt>
xor    %eax,%eax
call   1210 <proto_init@plt>
xor    %eax,%eax
call   1050 <stats_init@plt>
xor    %eax,%eax
call   1060 <outgoing_init@plt>
xor    %eax,%eax
call   1200 <incoming_init@plt>
xor    %eax,%eax
call   10a0 <exec_init@plt>
xor    %eax,%eax
call   1140 <file_init@plt>
xor    %eax,%eax
call   1280 <stdinout_init@plt>
xor    %eax,%eax
call   1270 <peer_loop@plt>
xor    %eax,%eax
call   11a0 <resolve_cleanup@plt>
xor    %eax,%eax
call   11b0 <receive_cleanup@plt>
xor    %eax,%eax
call   1180 <send_cleanup@plt>
xor    %eax,%eax
call   1170 <send_receive_cleanup@plt>
xor    %eax,%eax
call   1070 <incoming_cleanup@plt>
xor    %eax,%eax
call   1090 <outgoing_cleanup@plt>
xor    %eax,%eax
call   1080 <exec_cleanup@plt>
xor    %eax,%eax
call   1040 <file_cleanup@plt>
xor    %eax,%eax
call   11f0 <json_cleanup@plt>
xor    %eax,%eax
call   1290 <proto_cleanup@plt>
xor    %eax,%eax
call   1160 <rand_cleanup@plt>
xor    %eax,%eax
call   1190 <wakeup_cleanup@plt>
xor    %eax,%eax
call   1250 <log_cleanup_peer@plt>
xor    %eax,%eax
call   1120 <peer_cleanup@plt>
xor    %eax,%eax
call   11c0 <log_cleanup@plt>
xor    %eax,%eax
call   11d0 <stdinout_cleanup@plt>
mov    0x2b4d(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
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 (...) @stdinout_preinit()
%7 = call i32 (...) @adsbus_opts_add()
%8 = load i32, i32* %4
%9 = load i8**, i8*** %5
%10 = call i32 @opts_init(i32 %8, i8** %9)
%11 = call i32 (...) @hex_init()
%12 = call i32 (...) @rand_init()
%13 = call i32 (...) @log_init()
%14 = call i32 (...) @server_init()
%15 = call i32 (...) @resolve_init()
%16 = call i32 (...) @wakeup_init()
%17 = call i32 (...) @peer_init()
%18 = call i32 (...) @log_init_peer()
%19 = call i32 (...) @receive_init()
%20 = call i32 (...) @send_init()
%21 = call i32 (...) @beast_init()
%22 = call i32 (...) @json_init()
%23 = call i32 (...) @proto_init()
%24 = call i32 (...) @stats_init()
%25 = call i32 (...) @outgoing_init()
%26 = call i32 (...) @incoming_init()
%27 = call i32 (...) @exec_init()
%28 = call i32 (...) @file_init()
%29 = call i32 (...) @stdinout_init()
%30 = call i32 (...) @peer_loop()
%31 = call i32 (...) @resolve_cleanup()
%32 = call i32 (...) @receive_cleanup()
%33 = call i32 (...) @send_cleanup()
%34 = call i32 (...) @send_receive_cleanup()
%35 = call i32 (...) @incoming_cleanup()
%36 = call i32 (...) @outgoing_cleanup()
%37 = call i32 (...) @exec_cleanup()
%38 = call i32 (...) @file_cleanup()
%39 = call i32 (...) @json_cleanup()
%40 = call i32 (...) @proto_cleanup()
%41 = call i32 (...) @rand_cleanup()
%42 = call i32 (...) @wakeup_cleanup()
%43 = call i32 (...) @log_cleanup_peer()
%44 = call i32 (...) @peer_cleanup()
%45 = call i32 (...) @log_cleanup()
%46 = call i32 (...) @stdinout_cleanup()
%47 = load i32, i32* @EXIT_SUCCESS
ret i32 %47
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 (...) @stdinout_preinit()
%4 = tail call i32 (...) @adsbus_opts_add()
%5 = tail call i32 @opts_init(i32 %0, i8** %1)
%6 = tail call i32 (...) @hex_init()
%7 = tail call i32 (...) @rand_init()
%8 = tail call i32 (...) @log_init()
%9 = tail call i32 (...) @server_init()
%10 = tail call i32 (...) @resolve_init()
%11 = tail call i32 (...) @wakeup_init()
%12 = tail call i32 (...) @peer_init()
%13 = tail call i32 (...) @log_init_peer()
%14 = tail call i32 (...) @receive_init()
%15 = tail call i32 (...) @send_init()
%16 = tail call i32 (...) @beast_init()
%17 = tail call i32 (...) @json_init()
%18 = tail call i32 (...) @proto_init()
%19 = tail call i32 (...) @stats_init()
%20 = tail call i32 (...) @outgoing_init()
%21 = tail call i32 (...) @incoming_init()
%22 = tail call i32 (...) @exec_init()
%23 = tail call i32 (...) @file_init()
%24 = tail call i32 (...) @stdinout_init()
%25 = tail call i32 (...) @peer_loop()
%26 = tail call i32 (...) @resolve_cleanup()
%27 = tail call i32 (...) @receive_cleanup()
%28 = tail call i32 (...) @send_cleanup()
%29 = tail call i32 (...) @send_receive_cleanup()
%30 = tail call i32 (...) @incoming_cleanup()
%31 = tail call i32 (...) @outgoing_cleanup()
%32 = tail call i32 (...) @exec_cleanup()
%33 = tail call i32 (...) @file_cleanup()
%34 = tail call i32 (...) @json_cleanup()
%35 = tail call i32 (...) @proto_cleanup()
%36 = tail call i32 (...) @rand_cleanup()
%37 = tail call i32 (...) @wakeup_cleanup()
%38 = tail call i32 (...) @log_cleanup_peer()
%39 = tail call i32 (...) @peer_cleanup()
%40 = tail call i32 (...) @log_cleanup()
%41 = tail call i32 (...) @stdinout_cleanup()
%42 = load i32, i32* @EXIT_SUCCESS
ret i32 %42
}