int test_jnxlist() {
  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_jnxlist.c",
          __FUNCTION__, 204, "Running list tests...\n");
  ;
  test_list_creation();
  test_data_removal();
  test_list_index();
  test_list_tail();
  test_removal_front();
  test_removal_from();
  test_removal_returns_correct_data();
  test_contains();
  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_jnxlist.c",
          __FUNCTION__, 213, "List tests completed.\n");
  ;
  return 0;
}


x86 assembly (clang, -O0):
<test_jnxlist>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
lea    0xe63(%rip),%rsi
lea    0xef4(%rip),%rdx
mov    $0xcc,%ecx
lea    0xef5(%rip),%r8
mov    $0x0,%al
call   1070 <jnx_log@plt>
mov    $0x0,%al
call   1030 <test_list_creation@plt>
mov    $0x0,%al
call   1040 <test_data_removal@plt>
mov    $0x0,%al
call   1060 <test_list_index@plt>
mov    $0x0,%al
call   1090 <test_list_tail@plt>
mov    $0x0,%al
call   10b0 <test_removal_front@plt>
mov    $0x0,%al
call   1050 <test_removal_from@plt>
mov    $0x0,%al
call   1080 <test_removal_returns_correct_data@plt>
mov    $0x0,%al
call   10a0 <test_contains@plt>
xor    %edi,%edi
lea    0xe08(%rip),%rsi
lea    0xe99(%rip),%rdx
mov    $0xd5,%ecx
lea    0xeb1(%rip),%r8
mov    $0x0,%al
call   1070 <jnx_log@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_jnxlist>:
push   %r14
push   %rbx
push   %rax
lea    0xe65(%rip),%rbx
lea    0xef6(%rip),%r14
lea    0xefc(%rip),%r8
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0xcc,%ecx
xor    %eax,%eax
call   1070 <jnx_log@plt>
xor    %eax,%eax
call   1030 <test_list_creation@plt>
xor    %eax,%eax
call   1040 <test_data_removal@plt>
xor    %eax,%eax
call   1060 <test_list_index@plt>
xor    %eax,%eax
call   1090 <test_list_tail@plt>
xor    %eax,%eax
call   10b0 <test_removal_front@plt>
xor    %eax,%eax
call   1050 <test_removal_from@plt>
xor    %eax,%eax
call   1080 <test_removal_returns_correct_data@plt>
xor    %eax,%eax
call   10a0 <test_contains@plt>
lea    0xec0(%rip),%r8
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0xd5,%ecx
xor    %eax,%eax
call   1070 <jnx_log@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
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_jnxlist.c\00"
@__FUNCTION__.test_jnxlist = [13 x i8] c"test_jnxlist\00"
@.str.1 = [23 x i8] c"Running list tests...\0A\00"
@.str.2 = [23 x i8] c"List tests completed.\0A\00"
define i32 @test_jnxlist() {
%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_jnxlist, i64 0, i64 0), i32 204, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (...) @test_list_creation()
%3 = call i32 (...) @test_data_removal()
%4 = call i32 (...) @test_list_index()
%5 = call i32 (...) @test_list_tail()
%6 = call i32 (...) @test_removal_front()
%7 = call i32 (...) @test_removal_from()
%8 = call i32 (...) @test_removal_returns_correct_data()
%9 = call i32 (...) @test_contains()
%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_jnxlist, i64 0, i64 0), i32 213, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, 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_jnxlist.c\00"
@__FUNCTION__.test_jnxlist = [13 x i8] c"test_jnxlist\00"
@.str.1 = [23 x i8] c"Running list tests...\0A\00"
@.str.2 = [23 x i8] c"List tests completed.\0A\00"
define i32 @test_jnxlist() {
%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_jnxlist, i64 0, i64 0), i32 204, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (...) @test_list_creation()
%3 = tail call i32 (...) @test_data_removal()
%4 = tail call i32 (...) @test_list_index()
%5 = tail call i32 (...) @test_list_tail()
%6 = tail call i32 (...) @test_removal_front()
%7 = tail call i32 (...) @test_removal_from()
%8 = tail call i32 (...) @test_removal_returns_correct_data()
%9 = tail call i32 (...) @test_contains()
%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_jnxlist, i64 0, i64 0), i32 213, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}