#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*/ linked_list_add_array_test();
int /*<<< orphan*/ linked_list_add_sorted_test();
int /*<<< orphan*/ linked_list_add_test();
int /*<<< orphan*/ linked_list_append_array_test();
int /*<<< orphan*/ linked_list_append_test();
int /*<<< orphan*/ linked_list_copy_test();
int /*<<< orphan*/ linked_list_create_test();
int /*<<< orphan*/ linked_list_delete_test();
int /*<<< orphan*/ linked_list_insert_after_test();
int /*<<< orphan*/ linked_list_stop_iteration_test();
int /*<<< orphan*/ linked_list_sum_test();
int /*<<< orphan*/ printf(char *);
int main(void) {
  linked_list_create_test();
  linked_list_copy_test();
  linked_list_add_test();
  linked_list_add_sorted_test();
  linked_list_append_test();
  linked_list_insert_after_test();
  linked_list_add_array_test();
  linked_list_append_array_test();
  linked_list_stop_iteration_test();
  linked_list_delete_test();
  linked_list_sum_test();
  printf("All linked list tests passed\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1080 <linked_list_create_test@plt>
mov    $0x0,%al
call   1050 <linked_list_copy_test@plt>
mov    $0x0,%al
call   1040 <linked_list_add_test@plt>
mov    $0x0,%al
call   1030 <linked_list_add_sorted_test@plt>
mov    $0x0,%al
call   10e0 <linked_list_append_test@plt>
mov    $0x0,%al
call   1090 <linked_list_insert_after_test@plt>
mov    $0x0,%al
call   10d0 <linked_list_add_array_test@plt>
mov    $0x0,%al
call   1070 <linked_list_append_array_test@plt>
mov    $0x0,%al
call   10c0 <linked_list_stop_iteration_test@plt>
mov    $0x0,%al
call   10b0 <linked_list_delete_test@plt>
mov    $0x0,%al
call   10a0 <linked_list_sum_test@plt>
lea    0xddd(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1080 <linked_list_create_test@plt>
xor    %eax,%eax
call   1060 <linked_list_copy_test@plt>
xor    %eax,%eax
call   1050 <linked_list_add_test@plt>
xor    %eax,%eax
call   1040 <linked_list_add_sorted_test@plt>
xor    %eax,%eax
call   10e0 <linked_list_append_test@plt>
xor    %eax,%eax
call   1090 <linked_list_insert_after_test@plt>
xor    %eax,%eax
call   10d0 <linked_list_add_array_test@plt>
xor    %eax,%eax
call   1070 <linked_list_append_array_test@plt>
xor    %eax,%eax
call   10c0 <linked_list_stop_iteration_test@plt>
xor    %eax,%eax
call   10b0 <linked_list_delete_test@plt>
xor    %eax,%eax
call   10a0 <linked_list_sum_test@plt>
lea    0xdeb(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [30 x i8] c"All linked list tests passed\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @linked_list_create_test()
%3 = call i32 (...) @linked_list_copy_test()
%4 = call i32 (...) @linked_list_add_test()
%5 = call i32 (...) @linked_list_add_sorted_test()
%6 = call i32 (...) @linked_list_append_test()
%7 = call i32 (...) @linked_list_insert_after_test()
%8 = call i32 (...) @linked_list_add_array_test()
%9 = call i32 (...) @linked_list_append_array_test()
%10 = call i32 (...) @linked_list_stop_iteration_test()
%11 = call i32 (...) @linked_list_delete_test()
%12 = call i32 (...) @linked_list_sum_test()
%13 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [29 x i8] c"All linked list tests passed\00"
define i32 @main() {
%1 = tail call i32 (...) @linked_list_create_test()
%2 = tail call i32 (...) @linked_list_copy_test()
%3 = tail call i32 (...) @linked_list_add_test()
%4 = tail call i32 (...) @linked_list_add_sorted_test()
%5 = tail call i32 (...) @linked_list_append_test()
%6 = tail call i32 (...) @linked_list_insert_after_test()
%7 = tail call i32 (...) @linked_list_add_array_test()
%8 = tail call i32 (...) @linked_list_append_array_test()
%9 = tail call i32 (...) @linked_list_stop_iteration_test()
%10 = tail call i32 (...) @linked_list_delete_test()
%11 = tail call i32 (...) @linked_list_sum_test()
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
ret i32 0
}