#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*/ directory_buster(char *, char **);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ usage();
int main(int ac, char **al, char **el) {
  if (ac != 3) {
    usage();
    return 1;
  }
  printf("");
  printf("        __         .__          \n");
  printf("_____  |  | ____ __|  | _____   \n");
  printf("\\__  \\ |  |/ /  |  \\  | \\__  \\  \n");
  printf(" / __ \\|    <|  |  /  |__/ __ \\_\n");
  printf("(____  /__|_ \\____/|____(____  /\n");
  printf("     \\/     \\/               \\/ \n");
  printf("  MIT/X licensed HTTP Fuzzer\n");
  printf("  copyright 2015 Stefan Edwards/lojikil\n");
  directory_buster(al[1], &al[2]);
  return 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)
mov    %rdx,-0x18(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     1167 <main+0x37>
mov    $0x0,%al
call   1050 <usage@plt>
movl   $0x1,-0x4(%rbp)
jmp    11ef <main+0xbf>
lea    0xeb3(%rip),%rdi
call   1040 <printf@plt>
lea    0xe86(%rip),%rdi
call   1040 <printf@plt>
lea    0xe9c(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb2(%rip),%rdi
call   1040 <printf@plt>
lea    0xec8(%rip),%rdi
call   1040 <printf@plt>
lea    0xede(%rip),%rdi
call   1040 <printf@plt>
lea    0xef4(%rip),%rdi
call   1040 <printf@plt>
lea    0xf0a(%rip),%rdi
call   1040 <printf@plt>
lea    0xf1c(%rip),%rdi
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
call   1030 <directory_buster@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
cmp    $0x3,%edi
jne    11ad <main+0x7d>
mov    %rsi,%rbx
lea    0xec0(%rip),%rdi
call   1030 <puts@plt>
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
lea    0xeea(%rip),%rdi
call   1030 <puts@plt>
lea    0xeff(%rip),%rdi
call   1030 <puts@plt>
lea    0xf14(%rip),%rdi
call   1030 <puts@plt>
lea    0xf29(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4f(%rip),%rdi
call   1030 <puts@plt>
mov    0x8(%rbx),%rdi
add    $0x10,%rbx
mov    %rbx,%rsi
call   1040 <directory_buster@plt>
xor    %eax,%eax
pop    %rbx
ret
xor    %eax,%eax
call   1050 <usage@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [34 x i8] c" __ .__ \0A\00"
@.str.2 = [34 x i8] c"_____ | | ____ __| | _____ \0A\00"
@.str.3 = [34 x i8] c"\\__ \\ | |/ / | \\ | \\__ \\ \0A\00"
@.str.4 = [34 x i8] c" / __ \\| <| | / |__/ __ \\_\0A\00"
@.str.5 = [34 x i8] c"(____ /__|_ \\____/|____(____ /\0A\00"
@.str.6 = [34 x i8] c" \\/ \\/ \\/ \0A\00"
@.str.7 = [30 x i8] c" MIT/X licensed HTTP Fuzzer\0A\00"
@.str.8 = [41 x i8] c" copyright 2015 Stefan Edwards/lojikil\0A\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%8 = load i32, i32* %5
%9 = icmp ne i32 %8, 3
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = call i32 (...) @usage()
store i32 1, i32* %4
br label %28
12: ; preds = %3
%13 = call i32 @printf(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0))
%22 = load i8**, i8*** %6
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = load i8**, i8*** %6
%26 = getelementptr inbounds i8*, i8** %25, i64 2
%27 = call i32 @directory_buster(i8* %24, i8** %26)
store i32 0, i32* %4
br label %28
28: ; preds = %12, %10
%29 = load i32, i32* %4
ret i32 %29
}

LLVM IR (-O2):
@str = [33 x i8] c" __ .__ \00"
@str.9 = [33 x i8] c"_____ | | ____ __| | _____ \00"
@str.10 = [33 x i8] c"\\__ \\ | |/ / | \\ | \\__ \\ \00"
@str.11 = [33 x i8] c" / __ \\| <| | / |__/ __ \\_\00"
@str.12 = [33 x i8] c"(____ /__|_ \\____/|____(____ /\00"
@str.13 = [33 x i8] c" \\/ \\/ \\/ \00"
@str.14 = [29 x i8] c" MIT/X licensed HTTP Fuzzer\00"
@str.15 = [40 x i8] c" copyright 2015 Stefan Edwards/lojikil\00"
define i32 @main(i32 %0, i8** %1, i8** nocapture readnone %2) {
%4 = icmp eq i32 %0, 3
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i32 (...) @usage()
br label %20
7: ; preds = %3
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.9, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.10, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.11, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.12, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.13, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.14, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.15, i64 0, i64 0))
%16 = getelementptr inbounds i8*, i8** %1, i64 1
%17 = load i8*, i8** %16
%18 = getelementptr inbounds i8*, i8** %1, i64 2
%19 = tail call i32 @directory_buster(i8* %17, i8** %18)
br label %20
20: ; preds = %7, %5
%21 = phi i32 [ 1, %5 ], [ 0, %7 ]
ret i32 %21
}