#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*/ insert_song(char *, char *);
void populate() {
  insert_song("make a man out of you", "donny osmond");
  insert_song("chandelier", "sia");
  insert_song("how far ill go", "lin manuel miranda");
  insert_song("legends never die", "against the current");
  insert_song("look what you made me do", "taylor swift");
  insert_song("ours", "taylor swift");
  insert_song("theirs", "taylor swift");
  insert_song("you belong with me", "taylor swift");
  insert_song("test", "t");
  insert_song("", "t");
}


x86 assembly (clang, -O0):
<populate>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xef4(%rip),%rsi
call   1030 <insert_song@plt>
lea    0xef5(%rip),%rdi
lea    0xef9(%rip),%rsi
call   1030 <insert_song@plt>
lea    0xef1(%rip),%rdi
lea    0xef9(%rip),%rsi
call   1030 <insert_song@plt>
lea    0xf00(%rip),%rdi
lea    0xf0b(%rip),%rsi
call   1030 <insert_song@plt>
lea    0xf13(%rip),%rdi
lea    0xf25(%rip),%rsi
call   1030 <insert_song@plt>
lea    0xf26(%rip),%rdi
lea    0xf12(%rip),%rsi
call   1030 <insert_song@plt>
lea    0xf18(%rip),%rdi
lea    0xeff(%rip),%rsi
call   1030 <insert_song@plt>
lea    0xf0c(%rip),%rdi
lea    0xeec(%rip),%rsi
call   1030 <insert_song@plt>
lea    0xf0c(%rip),%rdi
lea    0xee4(%rip),%rsi
call   1030 <insert_song@plt>
lea    0xe8d(%rip),%rdi
lea    0xed1(%rip),%rsi
call   1030 <insert_song@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<populate>:
push   %rbx
lea    0xee8(%rip),%rdi
lea    0xef7(%rip),%rsi
call   1030 <insert_song@plt>
lea    0xef8(%rip),%rdi
lea    0xefc(%rip),%rsi
call   1030 <insert_song@plt>
lea    0xef4(%rip),%rdi
lea    0xefc(%rip),%rsi
call   1030 <insert_song@plt>
lea    0xf03(%rip),%rdi
lea    0xf0e(%rip),%rsi
call   1030 <insert_song@plt>
lea    0xf16(%rip),%rdi
lea    0xf28(%rip),%rbx
mov    %rbx,%rsi
call   1030 <insert_song@plt>
lea    0xf26(%rip),%rdi
mov    %rbx,%rsi
call   1030 <insert_song@plt>
lea    0xf1c(%rip),%rdi
mov    %rbx,%rsi
call   1030 <insert_song@plt>
lea    0xf14(%rip),%rdi
mov    %rbx,%rsi
call   1030 <insert_song@plt>
lea    0xf18(%rip),%rdi
lea    0xef0(%rip),%rbx
mov    %rbx,%rsi
call   1030 <insert_song@plt>
lea    0xe96(%rip),%rdi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <insert_song@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"make a man out of you\00"
@.str.1 = [13 x i8] c"donny osmond\00"
@.str.2 = [11 x i8] c"chandelier\00"
@.str.3 = [4 x i8] c"sia\00"
@.str.4 = [15 x i8] c"how far ill go\00"
@.str.5 = [19 x i8] c"lin manuel miranda\00"
@.str.6 = [18 x i8] c"legends never die\00"
@.str.7 = [20 x i8] c"against the current\00"
@.str.8 = [25 x i8] c"look what you made me do\00"
@.str.9 = [13 x i8] c"taylor swift\00"
@.str.10 = [5 x i8] c"ours\00"
@.str.11 = [7 x i8] c"theirs\00"
@.str.12 = [19 x i8] c"you belong with me\00"
@.str.13 = [5 x i8] c"test\00"
@.str.14 = [2 x i8] c"t\00"
@.str.15 = [1 x i8] zeroinitializer
define void @populate() {
%1 = call i32 @insert_song(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @insert_song(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @insert_song(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%4 = call i32 @insert_song(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%5 = call i32 @insert_song(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%6 = call i32 @insert_song(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%7 = call i32 @insert_song(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%8 = call i32 @insert_song(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%9 = call i32 @insert_song(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%10 = call i32 @insert_song(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"make a man out of you\00"
@.str.1 = [13 x i8] c"donny osmond\00"
@.str.2 = [11 x i8] c"chandelier\00"
@.str.3 = [4 x i8] c"sia\00"
@.str.4 = [15 x i8] c"how far ill go\00"
@.str.5 = [19 x i8] c"lin manuel miranda\00"
@.str.6 = [18 x i8] c"legends never die\00"
@.str.7 = [20 x i8] c"against the current\00"
@.str.8 = [25 x i8] c"look what you made me do\00"
@.str.9 = [13 x i8] c"taylor swift\00"
@.str.10 = [5 x i8] c"ours\00"
@.str.11 = [7 x i8] c"theirs\00"
@.str.12 = [19 x i8] c"you belong with me\00"
@.str.13 = [5 x i8] c"test\00"
@.str.14 = [2 x i8] c"t\00"
@.str.15 = [1 x i8] zeroinitializer
define void @populate() {
%1 = tail call i32 @insert_song(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @insert_song(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @insert_song(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 @insert_song(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%5 = tail call i32 @insert_song(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%6 = tail call i32 @insert_song(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%7 = tail call i32 @insert_song(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%8 = tail call i32 @insert_song(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%9 = tail call i32 @insert_song(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%10 = tail call i32 @insert_song(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
ret void
}