#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*/ test_array_append();
int /*<<< orphan*/ test_array_clear();
int /*<<< orphan*/ test_array_contains();
int /*<<< orphan*/ test_array_length();
int /*<<< orphan*/ test_get_set_index();
int /*<<< orphan*/ test_new();
int /*<<< orphan*/ test_new_oom();
int /*<<< orphan*/ test_new_zero();
int /*<<< orphan*/ test_remove_fast();
int /*<<< orphan*/ test_remove_fast_nonexistant();
int /*<<< orphan*/ test_remove_index_fast();
int /*<<< orphan*/ test_remove_index_ordered();
int /*<<< orphan*/ test_remove_ordered();
int /*<<< orphan*/ test_remove_ordered_nonexistant();
int main(int argc, char **argv) {
  test_new();
  test_new_oom();
  test_new_zero();
  test_remove_ordered();
  test_remove_ordered_nonexistant();
  test_remove_index_ordered();
  test_remove_fast();
  test_remove_fast_nonexistant();
  test_remove_index_fast();
  test_get_set_index();
  test_array_contains();
  test_array_length();
  test_array_append();
  test_array_clear();
  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   1100 <test_new@plt>
mov    $0x0,%al
call   10b0 <test_new_oom@plt>
mov    $0x0,%al
call   10c0 <test_new_zero@plt>
mov    $0x0,%al
call   10d0 <test_remove_ordered@plt>
mov    $0x0,%al
call   1080 <test_remove_ordered_nonexistant@plt>
mov    $0x0,%al
call   10f0 <test_remove_index_ordered@plt>
mov    $0x0,%al
call   1070 <test_remove_fast@plt>
mov    $0x0,%al
call   1090 <test_remove_fast_nonexistant@plt>
mov    $0x0,%al
call   1040 <test_remove_index_fast@plt>
mov    $0x0,%al
call   10e0 <test_get_set_index@plt>
mov    $0x0,%al
call   1030 <test_array_contains@plt>
mov    $0x0,%al
call   1060 <test_array_length@plt>
mov    $0x0,%al
call   1050 <test_array_append@plt>
mov    $0x0,%al
call   10a0 <test_array_clear@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1100 <test_new@plt>
xor    %eax,%eax
call   10b0 <test_new_oom@plt>
xor    %eax,%eax
call   10c0 <test_new_zero@plt>
xor    %eax,%eax
call   10d0 <test_remove_ordered@plt>
xor    %eax,%eax
call   1080 <test_remove_ordered_nonexistant@plt>
xor    %eax,%eax
call   10f0 <test_remove_index_ordered@plt>
xor    %eax,%eax
call   1070 <test_remove_fast@plt>
xor    %eax,%eax
call   1090 <test_remove_fast_nonexistant@plt>
xor    %eax,%eax
call   1040 <test_remove_index_fast@plt>
xor    %eax,%eax
call   10e0 <test_get_set_index@plt>
xor    %eax,%eax
call   1030 <test_array_contains@plt>
xor    %eax,%eax
call   1060 <test_array_length@plt>
xor    %eax,%eax
call   1050 <test_array_append@plt>
xor    %eax,%eax
call   10a0 <test_array_clear@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
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 (...) @test_new()
%7 = call i32 (...) @test_new_oom()
%8 = call i32 (...) @test_new_zero()
%9 = call i32 (...) @test_remove_ordered()
%10 = call i32 (...) @test_remove_ordered_nonexistant()
%11 = call i32 (...) @test_remove_index_ordered()
%12 = call i32 (...) @test_remove_fast()
%13 = call i32 (...) @test_remove_fast_nonexistant()
%14 = call i32 (...) @test_remove_index_fast()
%15 = call i32 (...) @test_get_set_index()
%16 = call i32 (...) @test_array_contains()
%17 = call i32 (...) @test_array_length()
%18 = call i32 (...) @test_array_append()
%19 = call i32 (...) @test_array_clear()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_new()
%4 = tail call i32 (...) @test_new_oom()
%5 = tail call i32 (...) @test_new_zero()
%6 = tail call i32 (...) @test_remove_ordered()
%7 = tail call i32 (...) @test_remove_ordered_nonexistant()
%8 = tail call i32 (...) @test_remove_index_ordered()
%9 = tail call i32 (...) @test_remove_fast()
%10 = tail call i32 (...) @test_remove_fast_nonexistant()
%11 = tail call i32 (...) @test_remove_index_fast()
%12 = tail call i32 (...) @test_get_set_index()
%13 = tail call i32 (...) @test_array_contains()
%14 = tail call i32 (...) @test_array_length()
%15 = tail call i32 (...) @test_array_append()
%16 = tail call i32 (...) @test_array_clear()
ret i32 0
}