#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*/ allocate_resources();
int /*<<< orphan*/ init_authentication_scheme();
int /*<<< orphan*/ init_thread_tree(int, char *);
int /*<<< orphan*/ initialize_memory_checker();
int /*<<< orphan*/ initialize_network();
int /*<<< orphan*/ parse_default_config_file();
int /*<<< orphan*/ set_run_path(char **);
int /*<<< orphan*/ setup_defaults();
int /*<<< orphan*/ setup_signal_traps();
int /*<<< orphan*/ startup_mode();
int /*<<< orphan*/ thread_lib_init();
int main(int argc, char **argv) {
  initialize_memory_checker();
  set_run_path(argv);
  thread_lib_init();
  init_thread_tree(134,
                   "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                   "outputs/2022-01-22/02-19-57/repos/roice/ntripcaster/refs/"
                   "heads/master/ntripcaster0.1.5/src/main.c");
  setup_defaults();
  setup_signal_traps();
  allocate_resources();
  init_authentication_scheme();
  parse_default_config_file();
  initialize_network();
  startup_mode();
  return 0;
}


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   10a0 <initialize_memory_checker@plt>
mov    -0x10(%rbp),%rdi
call   1050 <set_run_path@plt>
mov    $0x0,%al
call   1080 <thread_lib_init@plt>
mov    $0x86,%edi
lea    0xe17(%rip),%rsi
call   10d0 <init_thread_tree@plt>
mov    $0x0,%al
call   1040 <setup_defaults@plt>
mov    $0x0,%al
call   1070 <setup_signal_traps@plt>
mov    $0x0,%al
call   1060 <allocate_resources@plt>
mov    $0x0,%al
call   10b0 <init_authentication_scheme@plt>
mov    $0x0,%al
call   1090 <parse_default_config_file@plt>
mov    $0x0,%al
call   10c0 <initialize_network@plt>
mov    $0x0,%al
call   1030 <startup_mode@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    %rsi,%rbx
xor    %eax,%eax
call   10a0 <initialize_memory_checker@plt>
mov    %rbx,%rdi
call   1050 <set_run_path@plt>
xor    %eax,%eax
call   1080 <thread_lib_init@plt>
lea    0xe2f(%rip),%rsi
mov    $0x86,%edi
call   10d0 <init_thread_tree@plt>
xor    %eax,%eax
call   1040 <setup_defaults@plt>
xor    %eax,%eax
call   1070 <setup_signal_traps@plt>
xor    %eax,%eax
call   1060 <allocate_resources@plt>
xor    %eax,%eax
call   10b0 <init_authentication_scheme@plt>
xor    %eax,%eax
call   1090 <parse_default_config_file@plt>
xor    %eax,%eax
call   10c0 <initialize_network@plt>
xor    %eax,%eax
call   1030 <startup_mode@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [154 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/roice/ntripcaster/refs/heads/master/ntripcaster0.1.5/src/main.c\00"
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 (...) @initialize_memory_checker()
%7 = load i8**, i8*** %5
%8 = call i32 @set_run_path(i8** %7)
%9 = call i32 (...) @thread_lib_init()
%10 = call i32 @init_thread_tree(i32 134, i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (...) @setup_defaults()
%12 = call i32 (...) @setup_signal_traps()
%13 = call i32 (...) @allocate_resources()
%14 = call i32 (...) @init_authentication_scheme()
%15 = call i32 (...) @parse_default_config_file()
%16 = call i32 (...) @initialize_network()
%17 = call i32 (...) @startup_mode()
ret i32 0
}

LLVM IR (-O2):
@.str = [154 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/roice/ntripcaster/refs/heads/master/ntripcaster0.1.5/src/main.c\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 (...) @initialize_memory_checker()
%4 = tail call i32 @set_run_path(i8** %1)
%5 = tail call i32 (...) @thread_lib_init()
%6 = tail call i32 @init_thread_tree(i32 134, i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 (...) @setup_defaults()
%8 = tail call i32 (...) @setup_signal_traps()
%9 = tail call i32 (...) @allocate_resources()
%10 = tail call i32 (...) @init_authentication_scheme()
%11 = tail call i32 (...) @parse_default_config_file()
%12 = tail call i32 (...) @initialize_network()
%13 = tail call i32 (...) @startup_mode()
ret i32 0
}