#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*/ alias_put(char *);
char *strdup(char *);
void alias_loadefault() {
  char *aux;
  aux = strdup("ll=ls -l");
  alias_put(aux);
  aux = strdup("la=ll -a");
  alias_put(aux);
  aux = strdup("v=ls -l");
  alias_put(aux);
  aux = strdup("w=who");
  alias_put(aux);
}


x86 assembly (clang, -O0):
<alias_loadefault>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
call   1040 <strdup@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <alias_put@plt>
lea    0xec1(%rip),%rdi
call   1040 <strdup@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <alias_put@plt>
lea    0xeb1(%rip),%rdi
call   1040 <strdup@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <alias_put@plt>
lea    0xea0(%rip),%rdi
call   1040 <strdup@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <alias_put@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<alias_loadefault>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <strdup@plt>
mov    %rax,%rdi
call   1030 <alias_put@plt>
lea    0xecd(%rip),%rdi
call   1040 <strdup@plt>
mov    %rax,%rdi
call   1030 <alias_put@plt>
lea    0xec2(%rip),%rdi
call   1040 <strdup@plt>
mov    %rax,%rdi
call   1030 <alias_put@plt>
lea    0xeb6(%rip),%rdi
call   1040 <strdup@plt>
mov    %rax,%rdi
pop    %rax
jmp    1030 <alias_put@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"ll=ls -l\00"
@.str.1 = [9 x i8] c"la=ll -a\00"
@.str.2 = [8 x i8] c"v=ls -l\00"
@.str.3 = [6 x i8] c"w=who\00"
define void @alias_loadefault() {
%1 = alloca i8*
%2 = call i8* @strdup(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store i8* %2, i8** %1
%3 = load i8*, i8** %1
%4 = call i32 @alias_put(i8* %3)
%5 = call i8* @strdup(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i8* %5, i8** %1
%6 = load i8*, i8** %1
%7 = call i32 @alias_put(i8* %6)
%8 = call i8* @strdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
store i8* %8, i8** %1
%9 = load i8*, i8** %1
%10 = call i32 @alias_put(i8* %9)
%11 = call i8* @strdup(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
store i8* %11, i8** %1
%12 = load i8*, i8** %1
%13 = call i32 @alias_put(i8* %12)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"ll=ls -l\00"
@.str.1 = [9 x i8] c"la=ll -a\00"
@.str.2 = [8 x i8] c"v=ls -l\00"
@.str.3 = [6 x i8] c"w=who\00"
define void @alias_loadefault() {
%1 = tail call dereferenceable_or_null(9) i8* @strdup(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @alias_put(i8* %1)
%3 = tail call dereferenceable_or_null(9) i8* @strdup(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @alias_put(i8* %3)
%5 = tail call dereferenceable_or_null(8) i8* @strdup(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @alias_put(i8* %5)
%7 = tail call dereferenceable_or_null(6) i8* @strdup(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i32 @alias_put(i8* %7)
ret void
}