int test_jnxvector() {
  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_jnxvector.c",
          __FUNCTION__, 114, "Running vector tests...\n");
  ;
  test_insert_position();
  test_remove_position();
  test_sequential_insertion();
  test_complex_insertion();
  test_contains();
  test_get();
  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_jnxvector.c",
          __FUNCTION__, 121, "Vector tests completed.\n");
  ;
  return 0;
}


x86 assembly (clang, -O0):
<test_jnxvector>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
lea    0xe83(%rip),%rsi
lea    0xf16(%rip),%rdx
mov    $0x72,%ecx
lea    0xf19(%rip),%r8
mov    $0x0,%al
call   1040 <jnx_log@plt>
mov    $0x0,%al
call   1060 <test_insert_position@plt>
mov    $0x0,%al
call   1080 <test_remove_position@plt>
mov    $0x0,%al
call   1070 <test_sequential_insertion@plt>
mov    $0x0,%al
call   1050 <test_complex_insertion@plt>
mov    $0x0,%al
call   1090 <test_contains@plt>
mov    $0x0,%al
call   1030 <test_get@plt>
xor    %edi,%edi
lea    0xe36(%rip),%rsi
lea    0xec9(%rip),%rdx
mov    $0x79,%ecx
lea    0xee5(%rip),%r8
mov    $0x0,%al
call   1040 <jnx_log@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_jnxvector>:
push   %r14
push   %rbx
push   %rax
lea    0xe85(%rip),%rbx
lea    0xf18(%rip),%r14
lea    0xf20(%rip),%r8
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x72,%ecx
xor    %eax,%eax
call   1040 <jnx_log@plt>
xor    %eax,%eax
call   1060 <test_insert_position@plt>
xor    %eax,%eax
call   1080 <test_remove_position@plt>
xor    %eax,%eax
call   1070 <test_sequential_insertion@plt>
xor    %eax,%eax
call   1050 <test_complex_insertion@plt>
xor    %eax,%eax
call   1090 <test_contains@plt>
xor    %eax,%eax
call   1030 <test_get@plt>
lea    0xef4(%rip),%r8
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    $0x79,%ecx
xor    %eax,%eax
call   1040 <jnx_log@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
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/AlexsJones/jnxlibc/refs/heads/master/test/unit/test_jnxvector.c\00"
@__FUNCTION__.test_jnxvector = [15 x i8] c"test_jnxvector\00"
@.str.1 = [25 x i8] c"Running vector tests...\0A\00"
@.str.2 = [25 x i8] c"Vector tests completed.\0A\00"
define i32 @test_jnxvector() {
%1 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__FUNCTION__.test_jnxvector, i64 0, i64 0), i32 114, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (...) @test_insert_position()
%3 = call i32 (...) @test_remove_position()
%4 = call i32 (...) @test_sequential_insertion()
%5 = call i32 (...) @test_complex_insertion()
%6 = call i32 (...) @test_contains()
%7 = call i32 (...) @test_get()
%8 = call i32 (i32, i8*, i8*, i32, i8*, ...) bitcast (i32 (...)* @jnx_log to i32 (i32, i8*, i8*, i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([154 x i8], [154 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__FUNCTION__.test_jnxvector, i64 0, i64 0), i32 121, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
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/AlexsJones/jnxlibc/refs/heads/master/test/unit/test_jnxvector.c\00"
@__FUNCTION__.test_jnxvector = [15 x i8] c"test_jnxvector\00"
@.str.1 = [25 x i8] c"Running vector tests...\0A\00"
@.str.2 = [25 x i8] c"Vector tests completed.\0A\00"
define i32 @test_jnxvector() {
%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 ([154 x i8], [154 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__FUNCTION__.test_jnxvector, i64 0, i64 0), i32 114, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (...) @test_insert_position()
%3 = tail call i32 (...) @test_remove_position()
%4 = tail call i32 (...) @test_sequential_insertion()
%5 = tail call i32 (...) @test_complex_insertion()
%6 = tail call i32 (...) @test_contains()
%7 = tail call i32 (...) @test_get()
%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 ([154 x i8], [154 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__FUNCTION__.test_jnxvector, i64 0, i64 0), i32 121, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}