#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*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strcmp(char *, char *);
int main(int argc, char **argv) {
  if (argc > 1) {
    if (!strcmp(argv[1], "-a"))
      puts("TreeMaker"
           " "
           "5");
    else if (!strcmp(argv[1], "-nl"))
      puts("TreeMaker"
           " "
           "5"
           "."
           "0"
           "."
           "1");
    else if (!strcmp(argv[1], "-nvb"))
      puts("TreeMaker"
           " "
           "5"
           "."
           "0"
           "."
           "1"
           "."
           "20060413");
    else if (!strcmp(argv[1], "-nab"))
      puts("TreeMaker"
           " "
           "5"
           "."
           "0"
           "."
           "1");
    else if (!strcmp(argv[1], "-b")) {
      fputs("TreeMaker"
            " "
            "5"
            "."
            "0"
            "."
            "1"
            "."
            "20060413",
            stdout);
      putchar('\n');
    } else if (!strcmp(argv[1], "-p")) {
      puts("/usr/local");
    }
  } else
    puts("TreeMaker"
         " "
         "5");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    12a0 <main+0x160>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe91(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    118e <main+0x4e>
lea    0xe7f(%rip),%rdi
call   1040 <puts@plt>
jmp    129b <main+0x15b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe72(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    11bc <main+0x7c>
lea    0xe61(%rip),%rdi
call   1040 <puts@plt>
jmp    1296 <main+0x156>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe58(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    11ea <main+0xaa>
lea    0xe48(%rip),%rdi
call   1040 <puts@plt>
jmp    1291 <main+0x151>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe48(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1218 <main+0xd8>
lea    0xe05(%rip),%rdi
call   1040 <puts@plt>
jmp    128c <main+0x14c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe1f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1259 <main+0x119>
mov    0x2da4(%rip),%rax
mov    (%rax),%esi
lea    0xde3(%rip),%rdi
call   1050 <fputs@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1287 <main+0x147>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xde1(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%eax
jne    1282 <main+0x142>
lea    0xdcf(%rip),%rdi
call   1040 <puts@plt>
jmp    1287 <main+0x147>
jmp    128c <main+0x14c>
jmp    1291 <main+0x151>
jmp    1296 <main+0x156>
jmp    129b <main+0x15b>
jmp    12ac <main+0x16c>
lea    0xd5c(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
cmp    $0x2,%edi
jl     11c5 <main+0x85>
mov    0x8(%rsi),%rbx
lea    0xeaf(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
je     11c5 <main+0x85>
lea    0xeab(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
je     11d5 <main+0x95>
lea    0xeac(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
je     11de <main+0x9e>
lea    0xeb7(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
je     11d5 <main+0x95>
lea    0xea9(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
je     11e7 <main+0xa7>
lea    0xe99(%rip),%rsi
mov    %rbx,%rdi
call   1060 <strcmp@plt>
test   %eax,%eax
jne    11d1 <main+0x91>
lea    0xe89(%rip),%rdi
jmp    11cc <main+0x8c>
lea    0xe37(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
pop    %rbx
ret
lea    0xe37(%rip),%rdi
jmp    11cc <main+0x8c>
lea    0xe43(%rip),%rdi
jmp    11cc <main+0x8c>
mov    0x2df2(%rip),%rax
mov    (%rax),%esi
lea    0xe31(%rip),%rdi
call   1050 <fputs@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    11d1 <main+0x91>

LLVM IR (-O0):
@.str = [3 x i8] c"-a\00"
@.str.1 = [12 x i8] c"TreeMaker 5\00"
@.str.2 = [4 x i8] c"-nl\00"
@.str.3 = [16 x i8] c"TreeMaker 5.0.1\00"
@.str.4 = [5 x i8] c"-nvb\00"
@.str.5 = [25 x i8] c"TreeMaker 5.0.1.20060413\00"
@.str.6 = [5 x i8] c"-nab\00"
@.str.7 = [3 x i8] c"-b\00"
@stdout = global i32 0
@.str.8 = [3 x i8] c"-p\00"
@.str.9 = [11 x i8] c"/usr/local\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp sgt i32 %6, 1
br i1 %7, label %8, label %64
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 1
%11 = load i8*, i8** %10
%12 = call i32 @strcmp(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%13 = icmp ne i32 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %8
%15 = call i32 @puts(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %63
16: ; preds = %8
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i32 @strcmp(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%21 = icmp ne i32 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %16
%23 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
br label %62
24: ; preds = %16
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 1
%27 = load i8*, i8** %26
%28 = call i32 @strcmp(i8* %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%29 = icmp ne i32 %28, 0
br i1 %29, label %32, label %30
30: ; preds = %24
%31 = call i32 @puts(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
br label %61
32: ; preds = %24
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 1
%35 = load i8*, i8** %34
%36 = call i32 @strcmp(i8* %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%37 = icmp ne i32 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %32
%39 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
br label %60
40: ; preds = %32
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 1
%43 = load i8*, i8** %42
%44 = call i32 @strcmp(i8* %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%45 = icmp ne i32 %44, 0
br i1 %45, label %50, label %46
46: ; preds = %40
%47 = load i32, i32* @stdout
%48 = call i32 @fputs(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 %47)
%49 = call i32 @putchar(i8 signext 10)
br label %59
50: ; preds = %40
%51 = load i8**, i8*** %5
%52 = getelementptr inbounds i8*, i8** %51, i64 1
%53 = load i8*, i8** %52
%54 = call i32 @strcmp(i8* %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%55 = icmp ne i32 %54, 0
br i1 %55, label %58, label %56
56: ; preds = %50
%57 = call i32 @puts(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
br label %58
58: ; preds = %56, %50
br label %59
59: ; preds = %58, %46
br label %60
60: ; preds = %59, %38
br label %61
61: ; preds = %60, %30
br label %62
62: ; preds = %61, %22
br label %63
63: ; preds = %62, %14
br label %66
64: ; preds = %2
%65 = call i32 @puts(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %66
66: ; preds = %64, %63
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"-a\00"
@.str.1 = [12 x i8] c"TreeMaker 5\00"
@.str.2 = [4 x i8] c"-nl\00"
@.str.3 = [16 x i8] c"TreeMaker 5.0.1\00"
@.str.4 = [5 x i8] c"-nvb\00"
@.str.5 = [25 x i8] c"TreeMaker 5.0.1.20060413\00"
@.str.6 = [5 x i8] c"-nab\00"
@.str.7 = [3 x i8] c"-b\00"
@stdout = global i32 0
@.str.8 = [3 x i8] c"-p\00"
@.str.9 = [11 x i8] c"/usr/local\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %38
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @strcmp(i8* dereferenceable(1) %6, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %4
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %40
11: ; preds = %4
%12 = tail call i32 @strcmp(i8* dereferenceable(1) %6, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
br label %40
16: ; preds = %11
%17 = tail call i32 @strcmp(i8* dereferenceable(1) %6, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
br label %40
21: ; preds = %16
%22 = tail call i32 @strcmp(i8* dereferenceable(1) %6, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
br label %40
26: ; preds = %21
%27 = tail call i32 @strcmp(i8* dereferenceable(1) %6, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %33
29: ; preds = %26
%30 = load i32, i32* @stdout
%31 = tail call i32 @fputs(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 %30)
%32 = tail call i32 @putchar(i8 signext 10)
br label %40
33: ; preds = %26
%34 = tail call i32 @strcmp(i8* dereferenceable(1) %6, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
br label %40
38: ; preds = %2
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %40
40: ; preds = %9, %19, %29, %36, %33, %24, %14, %38
ret i32 0
}