#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 EXIT_SUCCESS;
int /*<<< orphan*/ copyFile();
int /*<<< orphan*/ decrypt1(char *, char *);
int /*<<< orphan*/ decrypt2(char *, char *, char *);
int /*<<< orphan*/ encrypt1(char *, char *);
int /*<<< orphan*/ encrypt2(char *, char *, char *);
int /*<<< orphan*/ printFileSize();
int main() {
  copyFile();
  printFileSize();
  encrypt1("./test1.txt", "./test1_en.txt");
  decrypt1("./test1_en.txt", "./test1_de.txt");
  encrypt2("./list.rar", "./list_en.rar", "haha");
  decrypt2("./list_en.rar", "./list_de.rar", "haha");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1070 <copyFile@plt>
mov    $0x0,%al
call   1040 <printFileSize@plt>
lea    0xe7c(%rip),%rdi
lea    0xe81(%rip),%rsi
call   1030 <encrypt1@plt>
lea    0xe75(%rip),%rdi
lea    0xe7d(%rip),%rsi
call   1050 <decrypt1@plt>
lea    0xe80(%rip),%rdi
lea    0xe84(%rip),%rsi
lea    0xe8b(%rip),%rdx
call   1060 <encrypt2@plt>
lea    0xe71(%rip),%rdi
lea    0xe7d(%rip),%rsi
lea    0xe71(%rip),%rdx
call   1080 <decrypt2@plt>
mov    0x2e02(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1070 <copyFile@plt>
xor    %eax,%eax
call   1040 <printFileSize@plt>
lea    0xe87(%rip),%rdi
lea    0xe8c(%rip),%rbx
mov    %rbx,%rsi
call   1030 <encrypt1@plt>
lea    0xe8c(%rip),%rsi
mov    %rbx,%rdi
call   1050 <decrypt1@plt>
lea    0xe8c(%rip),%rdi
lea    0xe90(%rip),%rbx
lea    0xe97(%rip),%r14
mov    %rbx,%rsi
mov    %r14,%rdx
call   1060 <encrypt2@plt>
lea    0xe8a(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1080 <decrypt2@plt>
mov    0x2e10(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [12 x i8] c"./test1.txt\00"
@.str.1 = [15 x i8] c"./test1_en.txt\00"
@.str.2 = [15 x i8] c"./test1_de.txt\00"
@.str.3 = [11 x i8] c"./list.rar\00"
@.str.4 = [14 x i8] c"./list_en.rar\00"
@.str.5 = [5 x i8] c"haha\00"
@.str.6 = [14 x i8] c"./list_de.rar\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @copyFile()
%3 = call i32 (...) @printFileSize()
%4 = call i32 @encrypt1(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @decrypt1(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @encrypt2(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @decrypt2(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%8 = load i32, i32* @EXIT_SUCCESS
ret i32 %8
}

LLVM IR (-O2):
@.str = [12 x i8] c"./test1.txt\00"
@.str.1 = [15 x i8] c"./test1_en.txt\00"
@.str.2 = [15 x i8] c"./test1_de.txt\00"
@.str.3 = [11 x i8] c"./list.rar\00"
@.str.4 = [14 x i8] c"./list_en.rar\00"
@.str.5 = [5 x i8] c"haha\00"
@.str.6 = [14 x i8] c"./list_de.rar\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i32 (...) @copyFile()
%2 = tail call i32 (...) @printFileSize()
%3 = tail call i32 @encrypt1(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @decrypt1(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @encrypt2(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 @decrypt2(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%7 = load i32, i32* @EXIT_SUCCESS
ret i32 %7
}