#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*/ printf(char *);
int /*<<< orphan*/ test_vector_append();
int /*<<< orphan*/ test_vector_bfind();
int /*<<< orphan*/ test_vector_copy();
int /*<<< orphan*/ test_vector_data();
int /*<<< orphan*/ test_vector_equals();
int /*<<< orphan*/ test_vector_find();
int /*<<< orphan*/ test_vector_import();
int /*<<< orphan*/ test_vector_insert();
int /*<<< orphan*/ test_vector_large();
int /*<<< orphan*/ test_vector_remove();
int /*<<< orphan*/ test_vector_reserve();
int /*<<< orphan*/ test_vector_resize();
int /*<<< orphan*/ test_vector_reverse();
int /*<<< orphan*/ test_vector_set();
int /*<<< orphan*/ test_vector_sort();
void test_vector(void) {
  test_vector_append();
  test_vector_insert();
  test_vector_set();
  test_vector_remove();
  test_vector_find();
  test_vector_large();
  test_vector_resize();
  test_vector_data();
  test_vector_copy();
  test_vector_reserve();
  test_vector_import();
  test_vector_equals();
  test_vector_reverse();
  test_vector_sort();
  test_vector_bfind();
  printf("All vector tests passed!\n");
}


x86 assembly (clang, -O0):
<test_vector>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   10d0 <test_vector_append@plt>
mov    $0x0,%al
call   1070 <test_vector_insert@plt>
mov    $0x0,%al
call   10a0 <test_vector_set@plt>
mov    $0x0,%al
call   10b0 <test_vector_remove@plt>
mov    $0x0,%al
call   1090 <test_vector_find@plt>
mov    $0x0,%al
call   1060 <test_vector_large@plt>
mov    $0x0,%al
call   10c0 <test_vector_resize@plt>
mov    $0x0,%al
call   1120 <test_vector_data@plt>
mov    $0x0,%al
call   1100 <test_vector_copy@plt>
mov    $0x0,%al
call   1110 <test_vector_reserve@plt>
mov    $0x0,%al
call   1030 <test_vector_import@plt>
mov    $0x0,%al
call   10f0 <test_vector_equals@plt>
mov    $0x0,%al
call   10e0 <test_vector_reverse@plt>
mov    $0x0,%al
call   1040 <test_vector_sort@plt>
mov    $0x0,%al
call   1080 <test_vector_bfind@plt>
lea    0xd8c(%rip),%rdi
call   1050 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_vector>:
push   %rax
xor    %eax,%eax
call   10d0 <test_vector_append@plt>
xor    %eax,%eax
call   1070 <test_vector_insert@plt>
xor    %eax,%eax
call   10a0 <test_vector_set@plt>
xor    %eax,%eax
call   10b0 <test_vector_remove@plt>
xor    %eax,%eax
call   1090 <test_vector_find@plt>
xor    %eax,%eax
call   1060 <test_vector_large@plt>
xor    %eax,%eax
call   10c0 <test_vector_resize@plt>
xor    %eax,%eax
call   1120 <test_vector_data@plt>
xor    %eax,%eax
call   1100 <test_vector_copy@plt>
xor    %eax,%eax
call   1110 <test_vector_reserve@plt>
xor    %eax,%eax
call   1030 <test_vector_import@plt>
xor    %eax,%eax
call   10f0 <test_vector_equals@plt>
xor    %eax,%eax
call   10e0 <test_vector_reverse@plt>
xor    %eax,%eax
call   1050 <test_vector_sort@plt>
xor    %eax,%eax
call   1080 <test_vector_bfind@plt>
lea    0xd8f(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"All vector tests passed!\0A\00"
define void @test_vector() {
%1 = call i32 (...) @test_vector_append()
%2 = call i32 (...) @test_vector_insert()
%3 = call i32 (...) @test_vector_set()
%4 = call i32 (...) @test_vector_remove()
%5 = call i32 (...) @test_vector_find()
%6 = call i32 (...) @test_vector_large()
%7 = call i32 (...) @test_vector_resize()
%8 = call i32 (...) @test_vector_data()
%9 = call i32 (...) @test_vector_copy()
%10 = call i32 (...) @test_vector_reserve()
%11 = call i32 (...) @test_vector_import()
%12 = call i32 (...) @test_vector_equals()
%13 = call i32 (...) @test_vector_reverse()
%14 = call i32 (...) @test_vector_sort()
%15 = call i32 (...) @test_vector_bfind()
%16 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [25 x i8] c"All vector tests passed!\00"
define void @test_vector() {
%1 = tail call i32 (...) @test_vector_append()
%2 = tail call i32 (...) @test_vector_insert()
%3 = tail call i32 (...) @test_vector_set()
%4 = tail call i32 (...) @test_vector_remove()
%5 = tail call i32 (...) @test_vector_find()
%6 = tail call i32 (...) @test_vector_large()
%7 = tail call i32 (...) @test_vector_resize()
%8 = tail call i32 (...) @test_vector_data()
%9 = tail call i32 (...) @test_vector_copy()
%10 = tail call i32 (...) @test_vector_reserve()
%11 = tail call i32 (...) @test_vector_import()
%12 = tail call i32 (...) @test_vector_equals()
%13 = tail call i32 (...) @test_vector_reverse()
%14 = tail call i32 (...) @test_vector_sort()
%15 = tail call i32 (...) @test_vector_bfind()
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
ret void
}