#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 */
char *create_clone_filename_get_clone_folder_compressed_filename(char *,
                                                                 char **,
                                                                 char *, char *,
                                                                 char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
char *strdup(char *);
char *create_clone_filename_get_clone_folder_tee_process_string(
    char **directory_name, char *application_name,
    char *appaserver_data_directory, char *folder_name) {
  char buffer[1024];
  char folder_filename[128];
  sprintf(buffer, "tee_process.e \"gzip - > %s\"",
          create_clone_filename_get_clone_folder_compressed_filename(
              folder_filename, directory_name, application_name,
              appaserver_data_directory, folder_name));
  return strdup(buffer);
}


x86 assembly (clang, -O0):
<create_clone_filename_get_clone_folder_tee_process_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4b0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
lea    -0x420(%rbp),%rax
mov    %rax,-0x4a8(%rbp)
lea    -0x4a0(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
call   1030 <create_clone_filename_get_clone_folder_compressed_filename@plt>
mov    -0x4a8(%rbp),%rdi
mov    %rax,%rdx
lea    0xe7a(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x420(%rbp),%rdi
call   1050 <strdup@plt>
add    $0x4b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create_clone_filename_get_clone_folder_tee_process_string>:
push   %rbx
sub    $0x480,%rsp
mov    %rcx,%r8
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    %rsp,%rdi
call   1030 <create_clone_filename_get_clone_folder_compressed_filename@plt>
lea    0xead(%rip),%rsi
lea    0x80(%rsp),%rbx
mov    %rbx,%rdi
mov    %rax,%rdx
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1050 <strdup@plt>
add    $0x480,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [28 x i8] c"tee_process.e \22gzip - > %s\22\00"
define i8* @create_clone_filename_get_clone_folder_tee_process_string(i8** %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca [1024 x i8]
%10 = alloca [128 x i8]
store i8** %0, i8*** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%11 = getelementptr inbounds [1024 x i8], [1024 x i8]* %9, i64 0, i64 0
%12 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%13 = load i8**, i8*** %5
%14 = load i8*, i8** %6
%15 = load i8*, i8** %7
%16 = load i8*, i8** %8
%17 = call i8* @create_clone_filename_get_clone_folder_compressed_filename(i8* %12, i8** %13, i8* %14, i8* %15, i8* %16)
%18 = call i32 @sprintf(i8* %11, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = getelementptr inbounds [1024 x i8], [1024 x i8]* %9, i64 0, i64 0
%20 = call i8* @strdup(i8* %19)
ret i8* %20
}

LLVM IR (-O2):
@.str = [28 x i8] c"tee_process.e \22gzip - > %s\22\00"
define noalias i8* @create_clone_filename_get_clone_folder_tee_process_string(i8** %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca [1024 x i8]
%6 = alloca [128 x i8]
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%8 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%9 = call i8* @create_clone_filename_get_clone_folder_compressed_filename(i8* %8, i8** %0, i8* %1, i8* %2, i8* %3)
%10 = call i32 @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = call i8* @strdup(i8* %7)
ret i8* %11
}