void cfg_discover_paths(void) {
  {
    log_prefix("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
               "outputs/2022-01-22/02-19-57/repos/cosminadrianpopescu/vifm/"
               "refs/heads/master/src/cfg/config.c",
               __FUNCTION__, 225);
    log_msg("Entered into this function");
  };
  find_home_dir();
  find_config_dir();
  find_data_dir();
  find_config_file();
  store_config_paths();
  setup_dirs();
}


x86 assembly (clang, -O0):
<cfg_discover_paths>:
push   %rbp
mov    %rsp,%rbp
lea    0xe75(%rip),%rdi
lea    0xf04(%rip),%rsi
mov    $0xe1,%edx
mov    $0x0,%al
call   1050 <log_prefix@plt>
lea    0xf04(%rip),%rdi
mov    $0x0,%al
call   1090 <log_msg@plt>
mov    $0x0,%al
call   1030 <find_home_dir@plt>
mov    $0x0,%al
call   1070 <find_config_dir@plt>
mov    $0x0,%al
call   1040 <find_data_dir@plt>
mov    $0x0,%al
call   1060 <find_config_file@plt>
mov    $0x0,%al
call   1080 <store_config_paths@plt>
mov    $0x0,%al
call   10a0 <setup_dirs@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cfg_discover_paths>:
push   %rax
lea    0xe78(%rip),%rdi
lea    0xf07(%rip),%rsi
mov    $0xe1,%edx
xor    %eax,%eax
call   1050 <log_prefix@plt>
lea    0xf07(%rip),%rdi
xor    %eax,%eax
call   1090 <log_msg@plt>
xor    %eax,%eax
call   1030 <find_home_dir@plt>
xor    %eax,%eax
call   1070 <find_config_dir@plt>
xor    %eax,%eax
call   1040 <find_data_dir@plt>
xor    %eax,%eax
call   1060 <find_config_file@plt>
xor    %eax,%eax
call   1080 <store_config_paths@plt>
xor    %eax,%eax
pop    %rcx
jmp    10a0 <setup_dirs@plt>

LLVM IR (-O0):
@.str = [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/cosminadrianpopescu/vifm/refs/heads/master/src/cfg/config.c\00"
@__FUNCTION__.cfg_discover_paths = [19 x i8] c"cfg_discover_paths\00"
@.str.1 = [27 x i8] c"Entered into this function\00"
define void @cfg_discover_paths() {
%1 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @log_prefix to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.cfg_discover_paths, i64 0, i64 0), i32 225)
%2 = call i32 (i8*, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, ...)*)(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (...) @find_home_dir()
%4 = call i32 (...) @find_config_dir()
%5 = call i32 (...) @find_data_dir()
%6 = call i32 (...) @find_config_file()
%7 = call i32 (...) @store_config_paths()
%8 = call i32 (...) @setup_dirs()
ret void
}

LLVM IR (-O2):
@.str = [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/cosminadrianpopescu/vifm/refs/heads/master/src/cfg/config.c\00"
@__FUNCTION__.cfg_discover_paths = [19 x i8] c"cfg_discover_paths\00"
@.str.1 = [27 x i8] c"Entered into this function\00"
define void @cfg_discover_paths() {
%1 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @log_prefix to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.cfg_discover_paths, i64 0, i64 0), i32 225)
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @log_msg to i32 (i8*, ...)*)(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (...) @find_home_dir()
%4 = tail call i32 (...) @find_config_dir()
%5 = tail call i32 (...) @find_data_dir()
%6 = tail call i32 (...) @find_config_file()
%7 = tail call i32 (...) @store_config_paths()
%8 = tail call i32 (...) @setup_dirs()
ret void
}