int test_jnxfile() {
  jnx_log(0,
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/AlexsJones/jnxlibc/refs/heads/master/test/"
          "unit/test_jnxfile.c",
          __FUNCTION__, 67, "Running file tests...\n");
  ;
  jnx_log(0,
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/AlexsJones/jnxlibc/refs/heads/master/test/"
          "unit/test_jnxfile.c",
          __FUNCTION__, 68, "- test recursive delete");
  ;
  test_recursive_delete();
  jnx_log(0,
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/AlexsJones/jnxlibc/refs/heads/master/test/"
          "unit/test_jnxfile.c",
          __FUNCTION__, 70, "OK");
  ;
  jnx_log(0,
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/AlexsJones/jnxlibc/refs/heads/master/test/"
          "unit/test_jnxfile.c",
          __FUNCTION__, 71, "- test file read");
  ;
  test_jnx_file();
  jnx_log(0,
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/AlexsJones/jnxlibc/refs/heads/master/test/"
          "unit/test_jnxfile.c",
          __FUNCTION__, 73, "OK");
  ;
  jnx_log(0,
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/AlexsJones/jnxlibc/refs/heads/master/test/"
          "unit/test_jnxfile.c",
          __FUNCTION__, 74, "- test temp directory");
  ;
  test_jnx_dir();
  jnx_log(0,
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/AlexsJones/jnxlibc/refs/heads/master/test/"
          "unit/test_jnxfile.c",
          __FUNCTION__, 76, "OK");
  ;
  return 0;
}


x86 assembly (clang, -O0):
<test_jnxfile>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
lea    0xeb3(%rip),%rsi
lea    0xf44(%rip),%rdx
mov    $0x43,%ecx
lea    0xf45(%rip),%r8
mov    $0x0,%al
call   1050 <jnx_log@plt>
xor    %edi,%edi
lea    0xe90(%rip),%rsi
lea    0xf21(%rip),%rdx
mov    $0x44,%ecx
lea    0xf39(%rip),%r8
mov    $0x0,%al
call   1050 <jnx_log@plt>
mov    $0x0,%al
call   1060 <test_recursive_delete@plt>
xor    %edi,%edi
lea    0xe66(%rip),%rsi
lea    0xef7(%rip),%rdx
mov    $0x46,%ecx
lea    0xf27(%rip),%r8
mov    $0x0,%al
call   1050 <jnx_log@plt>
xor    %edi,%edi
lea    0xe43(%rip),%rsi
lea    0xed4(%rip),%rdx
mov    $0x47,%ecx
lea    0xf07(%rip),%r8
mov    $0x0,%al
call   1050 <jnx_log@plt>
mov    $0x0,%al
call   1040 <test_jnx_file@plt>
xor    %edi,%edi
lea    0xe19(%rip),%rsi
lea    0xeaa(%rip),%rdx
mov    $0x49,%ecx
lea    0xeda(%rip),%r8
mov    $0x0,%al
call   1050 <jnx_log@plt>
xor    %edi,%edi
lea    0xdf6(%rip),%rsi
lea    0xe87(%rip),%rdx
mov    $0x4a,%ecx
lea    0xecb(%rip),%r8
mov    $0x0,%al
call   1050 <jnx_log@plt>
mov    $0x0,%al
call   1030 <test_jnx_dir@plt>
xor    %edi,%edi
lea    0xdcc(%rip),%rsi
lea    0xe5d(%rip),%rdx
mov    $0x4c,%ecx
lea    0xe8d(%rip),%r8
mov    $0x0,%al
call   1050 <jnx_log@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_jnxfile>:
push   %r15
push   %r14
push   %rbx
lea    0xeb4(%rip),%rbx
lea    0xf45(%rip),%r14
lea    0xf4b(%rip),%r8
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x43,%ecx
xor    %eax,%eax
call   1050 <jnx_log@plt>
lea    0xf47(%rip),%r8
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x44,%ecx
xor    %eax,%eax
call   1050 <jnx_log@plt>
xor    %eax,%eax
call   1060 <test_recursive_delete@plt>
lea    0xf3d(%rip),%r15
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x46,%ecx
mov    %r15,%r8
xor    %eax,%eax
call   1050 <jnx_log@plt>
lea    0xf22(%rip),%r8
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x47,%ecx
xor    %eax,%eax
call   1050 <jnx_log@plt>
xor    %eax,%eax
call   1040 <test_jnx_file@plt>
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x49,%ecx
mov    %r15,%r8
xor    %eax,%eax
call   1050 <jnx_log@plt>
lea    0xefa(%rip),%r8
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x4a,%ecx
xor    %eax,%eax
call   1050 <jnx_log@plt>
xor    %eax,%eax
call   1030 <test_jnx_dir@plt>
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x4c,%ecx
mov    %r15,%r8
xor    %eax,%eax
call   1050 <jnx_log@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [152 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AlexsJones/jnxlibc/refs/heads/master/test/unit/test_jnxfile.c\00"
@__FUNCTION__.test_jnxfile = [13 x i8] c"test_jnxfile\00"
@.str.1 = [23 x i8] c"Running file tests...\0A\00"
@.str.2 = [24 x i8] c"- test recursive delete\00"
@.str.3 = [3 x i8] c"OK\00"
@.str.4 = [17 x i8] c"- test file read\00"
@.str.5 = [22 x i8] c"- test temp directory\00"
define i32 @test_jnxfile() {
%1 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 67, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 68, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (...) @test_recursive_delete()
%4 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 71, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (...) @test_jnx_file()
%7 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 73, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 74, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 (...) @test_jnx_dir()
%10 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 76, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [152 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AlexsJones/jnxlibc/refs/heads/master/test/unit/test_jnxfile.c\00"
@__FUNCTION__.test_jnxfile = [13 x i8] c"test_jnxfile\00"
@.str.1 = [23 x i8] c"Running file tests...\0A\00"
@.str.2 = [24 x i8] c"- test recursive delete\00"
@.str.3 = [3 x i8] c"OK\00"
@.str.4 = [17 x i8] c"- test file read\00"
@.str.5 = [22 x i8] c"- test temp directory\00"
define i32 @test_jnxfile() {
%1 = tail call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 67, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 68, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 (...) @test_recursive_delete()
%4 = tail call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 71, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 (...) @test_jnx_file()
%7 = tail call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 73, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 74, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 (...) @test_jnx_dir()
%10 = tail call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([152 x i8], [152 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__FUNCTION__.test_jnxfile, i64 0, i64 0), i32 76, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}