#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 addConfAtLast(char *, char *);
int /*<<< orphan*/ strcat(char *, char *);
int addWhiteList(char *name) {
  char temp[128] = "whitelist_from ";
  strcat(temp, name);
  return addConfAtLast("/etc/mail/spamassassin/local.cf", temp);
}


x86 assembly (clang, -O0):
<addWhiteList>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x90(%rbp),%rdi
lea    0xeb3(%rip),%rsi
mov    $0x80,%edx
call   1040 <memcpy@plt>
lea    -0x90(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1050 <strcat@plt>
lea    -0x90(%rbp),%rsi
lea    0xf0b(%rip),%rdi
call   1030 <addConfAtLast@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<addWhiteList>:
push   %rbx
sub    $0x80,%rsp
mov    %rdi,%rsi
movaps 0xf3e(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xf22(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xf06(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xeea(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xece(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeb2(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe96(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe7a(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1040 <strcat@plt>
lea    0xee4(%rip),%rdi
mov    %rbx,%rsi
call   1030 <addConfAtLast@plt>
add    $0x80,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.addWhiteList.temp = [128 x i8] c"whitelist_from \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [32 x i8] c"/etc/mail/spamassassin/local.cf\00"
define i32 @addWhiteList(i8* %0) {
%2 = alloca i8*
%3 = alloca [128 x i8]
store i8* %0, i8** %2
%4 = bitcast [128 x i8]* %3 to i8*
%5 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%6 = load i8*, i8** %2
%7 = call i32 @strcat(i8* %5, i8* %6)
%8 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%9 = call i32 @addConfAtLast(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %8)
ret i32 %9
}

LLVM IR (-O2):
@__const.addWhiteList.temp = [128 x i8] c"whitelist_from \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [32 x i8] c"/etc/mail/spamassassin/local.cf\00"
define i32 @addWhiteList(i8* %0) {
%2 = alloca [128 x i8]
%3 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%4 = call i32 @strcat(i8* %3, i8* %0)
%5 = call i32 @addConfAtLast(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %3)
ret i32 %5
}