#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_clear_program();
int /*<<< orphan*/ test_delete_song();
int /*<<< orphan*/ test_find_artist();
int /*<<< orphan*/ test_find_song();
int /*<<< orphan*/ test_insert_song();
int /*<<< orphan*/ test_random_song();
void test_song_functions() {
  printf(
      "====================================================================\n");
  printf("TESTING SONG FUNCTIONS...\n");
  test_insert_song();
  test_find_song();
  test_find_artist();
  test_random_song();
  test_delete_song();
  test_clear_program();
}


x86 assembly (clang, -O0):
<test_song_functions>:
push   %rbp
mov    %rsp,%rbp
lea    0xe85(%rip),%rdi
call   1040 <printf@plt>
lea    0xebf(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1090 <test_insert_song@plt>
mov    $0x0,%al
call   1080 <test_find_song@plt>
mov    $0x0,%al
call   1060 <test_find_artist@plt>
mov    $0x0,%al
call   1070 <test_random_song@plt>
mov    $0x0,%al
call   1030 <test_delete_song@plt>
mov    $0x0,%al
call   1050 <test_clear_program@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_song_functions>:
push   %rax
lea    0xe88(%rip),%rdi
call   1040 <puts@plt>
lea    0xec1(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1090 <test_insert_song@plt>
xor    %eax,%eax
call   1080 <test_find_song@plt>
xor    %eax,%eax
call   1060 <test_find_artist@plt>
xor    %eax,%eax
call   1070 <test_random_song@plt>
xor    %eax,%eax
call   1030 <test_delete_song@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <test_clear_program@plt>

LLVM IR (-O0):
@.str = [70 x i8] c"====================================================================\0A\00"
@.str.1 = [27 x i8] c"TESTING SONG FUNCTIONS...\0A\00"
define void @test_song_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 ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (...) @test_insert_song()
%4 = call i32 (...) @test_find_song()
%5 = call i32 (...) @test_find_artist()
%6 = call i32 (...) @test_random_song()
%7 = call i32 (...) @test_delete_song()
%8 = call i32 (...) @test_clear_program()
ret void
}

LLVM IR (-O2):
@str = [69 x i8] c"====================================================================\00"
@str.2 = [26 x i8] c"TESTING SONG FUNCTIONS...\00"
define void @test_song_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 ([26 x i8], [26 x i8]* @str.2, i64 0, i64 0))
%3 = tail call i32 (...) @test_insert_song()
%4 = tail call i32 (...) @test_find_song()
%5 = tail call i32 (...) @test_find_artist()
%6 = tail call i32 (...) @test_random_song()
%7 = tail call i32 (...) @test_delete_song()
%8 = tail call i32 (...) @test_clear_program()
ret void
}