#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 */
struct word_list {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ word_list_append(struct word_list *, char *);
void initialize_palindrome(struct word_list *palindrome) {
  word_list_append(palindrome, "man");
  word_list_append(palindrome, "plan");
  word_list_append(palindrome, "canal");
  word_list_append(palindrome, "Panama");
}


x86 assembly (clang, -O0):
<initialize_palindrome>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <word_list_append@plt>
mov    -0x8(%rbp),%rdi
lea    0xecd(%rip),%rsi
call   1030 <word_list_append@plt>
mov    -0x8(%rbp),%rdi
lea    0xec2(%rip),%rsi
call   1030 <word_list_append@plt>
mov    -0x8(%rbp),%rdi
lea    0xeb8(%rip),%rsi
call   1030 <word_list_append@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialize_palindrome>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
call   1030 <word_list_append@plt>
lea    0xedd(%rip),%rsi
mov    %rbx,%rdi
call   1030 <word_list_append@plt>
lea    0xed3(%rip),%rsi
mov    %rbx,%rdi
call   1030 <word_list_append@plt>
lea    0xeca(%rip),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <word_list_append@plt>

LLVM IR (-O0):
%struct.word_list = type { i32 }
@.str = [4 x i8] c"man\00"
@.str.1 = [5 x i8] c"plan\00"
@.str.2 = [6 x i8] c"canal\00"
@.str.3 = [7 x i8] c"Panama\00"
define void @initialize_palindrome(%struct.word_list* %0) {
%2 = alloca %struct.word_list*
store %struct.word_list* %0, %struct.word_list** %2
%3 = load %struct.word_list*, %struct.word_list** %2
%4 = call i32 @word_list_append(%struct.word_list* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%5 = load %struct.word_list*, %struct.word_list** %2
%6 = call i32 @word_list_append(%struct.word_list* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%7 = load %struct.word_list*, %struct.word_list** %2
%8 = call i32 @word_list_append(%struct.word_list* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%9 = load %struct.word_list*, %struct.word_list** %2
%10 = call i32 @word_list_append(%struct.word_list* %9, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
%struct.word_list = type { i32 }
@.str = [4 x i8] c"man\00"
@.str.1 = [5 x i8] c"plan\00"
@.str.2 = [6 x i8] c"canal\00"
@.str.3 = [7 x i8] c"Panama\00"
define void @initialize_palindrome(%struct.word_list* %0) {
%2 = tail call i32 @word_list_append(%struct.word_list* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @word_list_append(%struct.word_list* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @word_list_append(%struct.word_list* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @word_list_append(%struct.word_list* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
ret void
}