#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_find_element_song();
int /*<<< orphan*/ test_find_song();
int /*<<< orphan*/ test_first_element_artist();
int /*<<< orphan*/ test_free_node();
int /*<<< orphan*/ test_insert_front();
int /*<<< orphan*/ test_insert_order();
int /*<<< orphan*/ test_random_element();
void test_ll_functions() {
  printf(
      "====================================================================\n");
  printf("TESTING LL FUNCTIONS...\n");
  test_insert_front();
  test_insert_order();
  test_find_element_song();
  test_first_element_artist();
  test_random_element();
  test_find_song();
  test_free_node();
}


x86 assembly (clang, -O0):
<test_ll_functions>:
push   %rbp
mov    %rsp,%rbp
lea    0xe75(%rip),%rdi
call   1030 <printf@plt>
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <test_insert_front@plt>
mov    $0x0,%al
call   1050 <test_insert_order@plt>
mov    $0x0,%al
call   1090 <test_find_element_song@plt>
mov    $0x0,%al
call   1040 <test_first_element_artist@plt>
mov    $0x0,%al
call   1080 <test_random_element@plt>
mov    $0x0,%al
call   10a0 <test_find_song@plt>
mov    $0x0,%al
call   1070 <test_free_node@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_ll_functions>:
push   %rax
lea    0xe78(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb1(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <test_insert_front@plt>
xor    %eax,%eax
call   1050 <test_insert_order@plt>
xor    %eax,%eax
call   1090 <test_find_element_song@plt>
xor    %eax,%eax
call   1040 <test_first_element_artist@plt>
xor    %eax,%eax
call   1080 <test_random_element@plt>
xor    %eax,%eax
call   10a0 <test_find_song@plt>
xor    %eax,%eax
pop    %rcx
jmp    1070 <test_free_node@plt>

LLVM IR (-O0):
@.str = [70 x i8] c"====================================================================\0A\00"
@.str.1 = [25 x i8] c"TESTING LL FUNCTIONS...\0A\00"
define void @test_ll_functions() {
%1 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (...) @test_insert_front()
%4 = call i32 (...) @test_insert_order()
%5 = call i32 (...) @test_find_element_song()
%6 = call i32 (...) @test_first_element_artist()
%7 = call i32 (...) @test_random_element()
%8 = call i32 (...) @test_find_song()
%9 = call i32 (...) @test_free_node()
ret void
}

LLVM IR (-O2):
@str = [69 x i8] c"====================================================================\00"
@str.2 = [24 x i8] c"TESTING LL FUNCTIONS...\00"
define void @test_ll_functions() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.2, i64 0, i64 0))
%3 = tail call i32 (...) @test_insert_front()
%4 = tail call i32 (...) @test_insert_order()
%5 = tail call i32 (...) @test_find_element_song()
%6 = tail call i32 (...) @test_first_element_artist()
%7 = tail call i32 (...) @test_random_element()
%8 = tail call i32 (...) @test_find_song()
%9 = tail call i32 (...) @test_free_node()
ret void
}