#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_list_add_one();
int /*<<< orphan*/ test_list_free_one();
int /*<<< orphan*/ test_list_get_middle();
int /*<<< orphan*/ test_list_get_tail();
int /*<<< orphan*/ test_list_init();
int /*<<< orphan*/ test_list_remove_head();
int /*<<< orphan*/ test_list_remove_middle();
int /*<<< orphan*/ test_list_remove_one_element_list();
int /*<<< orphan*/ test_list_remove_tail();
int main(int argc, char **argv) {
  test_list_init();
  test_list_add_one();
  test_list_free_one();
  test_list_get_tail();
  test_list_get_middle();
  test_list_remove_head();
  test_list_remove_tail();
  test_list_remove_middle();
  test_list_remove_one_element_list();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1090 <test_list_init@plt>
mov    $0x0,%al
call   10b0 <test_list_add_one@plt>
mov    $0x0,%al
call   1080 <test_list_free_one@plt>
mov    $0x0,%al
call   1060 <test_list_get_tail@plt>
mov    $0x0,%al
call   10a0 <test_list_get_middle@plt>
mov    $0x0,%al
call   1030 <test_list_remove_head@plt>
mov    $0x0,%al
call   1070 <test_list_remove_tail@plt>
mov    $0x0,%al
call   1040 <test_list_remove_middle@plt>
mov    $0x0,%al
call   1050 <test_list_remove_one_element_list@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1090 <test_list_init@plt>
xor    %eax,%eax
call   10b0 <test_list_add_one@plt>
xor    %eax,%eax
call   1080 <test_list_free_one@plt>
xor    %eax,%eax
call   1060 <test_list_get_tail@plt>
xor    %eax,%eax
call   10a0 <test_list_get_middle@plt>
xor    %eax,%eax
call   1030 <test_list_remove_head@plt>
xor    %eax,%eax
call   1070 <test_list_remove_tail@plt>
xor    %eax,%eax
call   1040 <test_list_remove_middle@plt>
xor    %eax,%eax
call   1050 <test_list_remove_one_element_list@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 (...) @test_list_init()
%6 = call i32 (...) @test_list_add_one()
%7 = call i32 (...) @test_list_free_one()
%8 = call i32 (...) @test_list_get_tail()
%9 = call i32 (...) @test_list_get_middle()
%10 = call i32 (...) @test_list_remove_head()
%11 = call i32 (...) @test_list_remove_tail()
%12 = call i32 (...) @test_list_remove_middle()
%13 = call i32 (...) @test_list_remove_one_element_list()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_list_init()
%4 = tail call i32 (...) @test_list_add_one()
%5 = tail call i32 (...) @test_list_free_one()
%6 = tail call i32 (...) @test_list_get_tail()
%7 = tail call i32 (...) @test_list_get_middle()
%8 = tail call i32 (...) @test_list_remove_head()
%9 = tail call i32 (...) @test_list_remove_tail()
%10 = tail call i32 (...) @test_list_remove_middle()
%11 = tail call i32 (...) @test_list_remove_one_element_list()
ret i32 0
}