#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 EncodeFiles(char *);
int /*<<< orphan*/ PrintHelp();
int TestFiles(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  int retval = 0;
  if (argc != 3) {
    PrintHelp();
  } else {
    if (!strcmp(argv[1], "-e")) {
      retval = EncodeFiles(argv[2]);
    } else if (!strcmp(argv[1], "-t")) {
      retval = TestFiles(argv[2]);
    } else {
      PrintHelp();
    }
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     1183 <main+0x33>
mov    $0x0,%al
call   1070 <PrintHelp@plt>
jmp    11f8 <main+0xa8>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe6e(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11b5 <main+0x65>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1050 <EncodeFiles@plt>
mov    %eax,-0x14(%rbp)
jmp    11f3 <main+0xa3>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe3f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11e7 <main+0x97>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1030 <TestFiles@plt>
mov    %eax,-0x14(%rbp)
jmp    11ee <main+0x9e>
mov    $0x0,%al
call   1070 <PrintHelp@plt>
jmp    11f3 <main+0xa3>
jmp    11f8 <main+0xa8>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
cmp    $0x3,%edi
jne    11a6 <main+0x56>
mov    %rsi,%rbx
mov    0x8(%rsi),%r14
lea    0xe99(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
jne    1183 <main+0x33>
mov    0x10(%rbx),%rdi
call   1050 <EncodeFiles@plt>
xor    %edi,%edi
call   1060 <exit@plt>
lea    0xe79(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
jne    11a6 <main+0x56>
mov    0x10(%rbx),%rdi
call   1030 <TestFiles@plt>
xor    %edi,%edi
call   1060 <exit@plt>
xor    %eax,%eax
call   1070 <PrintHelp@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"-e\00"
@.str.1 = [3 x i8] c"-t\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%7 = load i32, i32* %4
%8 = icmp ne i32 %7, 3
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (...) @PrintHelp()
br label %37
11: ; preds = %2
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 1
%14 = load i8*, i8** %13
%15 = call i32 @strcmp(i8* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%16 = icmp ne i32 %15, 0
br i1 %16, label %22, label %17
17: ; preds = %11
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 2
%20 = load i8*, i8** %19
%21 = call i32 @EncodeFiles(i8* %20)
store i32 %21, i32* %6
br label %36
22: ; preds = %11
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
%26 = call i32 @strcmp(i8* %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%27 = icmp ne i32 %26, 0
br i1 %27, label %33, label %28
28: ; preds = %22
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 2
%31 = load i8*, i8** %30
%32 = call i32 @TestFiles(i8* %31)
store i32 %32, i32* %6
br label %35
33: ; preds = %22
%34 = call i32 (...) @PrintHelp()
br label %35
35: ; preds = %33, %28
br label %36
36: ; preds = %35, %17
br label %37
37: ; preds = %36, %9
%38 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [3 x i8] c"-e\00"
@.str.1 = [3 x i8] c"-t\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 3
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 (...) @PrintHelp()
br label %24
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i32 @strcmp(i8* dereferenceable(1) %8, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %6
%12 = getelementptr inbounds i8*, i8** %1, i64 2
%13 = load i8*, i8** %12
%14 = tail call i32 @EncodeFiles(i8* %13)
br label %24
15: ; preds = %6
%16 = tail call i32 @strcmp(i8* dereferenceable(1) %8, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %15
%19 = getelementptr inbounds i8*, i8** %1, i64 2
%20 = load i8*, i8** %19
%21 = tail call i32 @TestFiles(i8* %20)
br label %24
22: ; preds = %15
%23 = tail call i32 (...) @PrintHelp()
br label %24
24: ; preds = %11, %22, %18, %4
%25 = tail call i32 @exit(i32 0)
unreachable
}