#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*/ Delete(int, char **);
int /*<<< orphan*/ convertIntToByteArray(int, char *);
int /*<<< orphan*/ strcpy(char *, char *);
void deleteAttrCatEntries(char *relName) {
  int deleteArgCount = 5;
  char **deleteArgs;
  strcpy(deleteArgs[0], "_delete");
  strcpy(deleteArgs[1], "attrcat");
  strcpy(deleteArgs[2], "relName");
  convertIntToByteArray(501, deleteArgs[3]);
  strcpy(deleteArgs[4], relName);
  Delete(deleteArgCount, deleteArgs);
}


x86 assembly (clang, -O0):
<deleteAttrCatEntries>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x5,-0xc(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xeaf(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xea3(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe97(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rsi
mov    $0x1f5,%edi
call   1050 <convertIntToByteArray@plt>
mov    -0x18(%rbp),%rax
mov    0x20(%rax),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1040 <Delete@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<deleteAttrCatEntries>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rsi
call   1030 <strcpy@plt>
lea    0xec1(%rip),%rsi
call   1030 <strcpy@plt>
lea    0xebd(%rip),%rsi
call   1030 <strcpy@plt>
mov    $0x1f5,%edi
call   1050 <convertIntToByteArray@plt>
mov    %rbx,%rsi
call   1030 <strcpy@plt>
mov    $0x5,%edi
pop    %rbx
jmp    1040 <Delete@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"_delete\00"
@.str.1 = [8 x i8] c"attrcat\00"
@.str.2 = [8 x i8] c"relName\00"
define void @deleteAttrCatEntries(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8**
store i8* %0, i8** %2
store i32 5, i32* %3
%5 = load i8**, i8*** %4
%6 = getelementptr inbounds i8*, i8** %5, i64 0
%7 = load i8*, i8** %6
%8 = call i32 @strcpy(i8* %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%9 = load i8**, i8*** %4
%10 = getelementptr inbounds i8*, i8** %9, i64 1
%11 = load i8*, i8** %10
%12 = call i32 @strcpy(i8* %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%13 = load i8**, i8*** %4
%14 = getelementptr inbounds i8*, i8** %13, i64 2
%15 = load i8*, i8** %14
%16 = call i32 @strcpy(i8* %15, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%17 = load i8**, i8*** %4
%18 = getelementptr inbounds i8*, i8** %17, i64 3
%19 = load i8*, i8** %18
%20 = call i32 @convertIntToByteArray(i32 501, i8* %19)
%21 = load i8**, i8*** %4
%22 = getelementptr inbounds i8*, i8** %21, i64 4
%23 = load i8*, i8** %22
%24 = load i8*, i8** %2
%25 = call i32 @strcpy(i8* %23, i8* %24)
%26 = load i32, i32* %3
%27 = load i8**, i8*** %4
%28 = call i32 @Delete(i32 %26, i8** %27)
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"_delete\00"
@.str.1 = [8 x i8] c"attrcat\00"
@.str.2 = [8 x i8] c"relName\00"
define void @deleteAttrCatEntries(i8* %0) {
%2 = tail call i32 @strcpy(i8* undef, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @strcpy(i8* undef, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @strcpy(i8* undef, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @convertIntToByteArray(i32 501, i8* undef)
%6 = tail call i32 @strcpy(i8* undef, i8* %0)
%7 = tail call i32 @Delete(i32 5, i8** undef)
ret void
}