#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(int n) {
  switch (n) {
  case 1:
    fprintf(
        stderr,
        "usage: tree [-adfgilnpqrstuxACDFNS] [-H baseHREF] [-T title ] [-L "
        "level [-R]]\n\t[-P pattern] [-I pattern] [-o filename] [--version] "
        "[--help] [--inodes]\n\t[--device] [--noreport] [--nolinks] "
        "[--dirsfirst] [--charset charset]\n\t[<directory list>]\n");
    break;
  case 2:
    fprintf(
        stderr,
        "usage: tree [-adfgilnpqrstuxACDFNS] [-H baseHREF] [-T title ] [-L "
        "level [-R]]\n\t[-P pattern] [-I pattern] [-o filename] [--version] "
        "[--help] [--inodes]\n\t[--device] [--noreport] [--nolinks] "
        "[--dirsfirst] [--charset charset]\n\t[<directory list>]\n");
    fprintf(stderr, "    -a          All files are listed.\n");
    fprintf(stderr, "    -d          List directories only.\n");
    fprintf(stderr,
            "    -l          Follow symbolic links like directories.\n");
    fprintf(stderr,
            "    -f          Print the full path prefix for each file.\n");
    fprintf(stderr, "    -i          Don't print indentation lines.\n");
    fprintf(stderr, "    -q          Print non-printable characters as '?'.\n");
    fprintf(stderr, "    -N          Print non-printable characters as is.\n");
    fprintf(stderr, "    -p          Print the protections for each file.\n");
    fprintf(stderr, "    -u          Displays file owner or UID number.\n");
    fprintf(stderr,
            "    -g          Displays file group owner or GID number.\n");
    fprintf(stderr, "    -s          Print the size in bytes of each file.\n");
    fprintf(stderr, "    -D          Print the date of last modification.\n");
    fprintf(stderr,
            "    -F          Appends '/', '=', '*', or '|' as per ls -F.\n");
    fprintf(stderr,
            "    -r          Sort files in reverse alphanumeric order.\n");
    fprintf(stderr, "    -t          Sort files by last modification time.\n");
    fprintf(stderr, "    -x          Stay on current filesystem only.\n");
    fprintf(stderr, "    -L level    Descend only level directories deep.\n");
    fprintf(stderr,
            "    -A          Print ANSI lines graphic indentation lines.\n");
    fprintf(stderr,
            "    -S          Print with ASCII graphics indentation lines.\n");
    fprintf(stderr,
            "    -n          Turn colorization off always (-C overrides).\n");
    fprintf(stderr, "    -C          Turn colorization on always.\n");
    fprintf(stderr, "    -P pattern  List only those files that match the "
                    "pattern given.\n");
    fprintf(
        stderr,
        "    -I pattern  Do not list files that match the given pattern.\n");
    fprintf(stderr, "    -H baseHREF Prints out HTML format with baseHREF as "
                    "top directory.\n");
    fprintf(stderr, "    -T string   Replace the default HTML title and H1 "
                    "header with string.\n");
    fprintf(stderr, "    -R          Rerun tree when max dir level reached.\n");
    fprintf(stderr, "    -o file     Output to file instead of stdout.\n");
    fprintf(stderr, "    --inodes    Print inode number of each file.\n");
    fprintf(
        stderr,
        "    --device    Print device ID number to which each file belongs.\n");
    fprintf(stderr, "    --noreport  Turn off file/directory count at end of "
                    "tree listing.\n");
    fprintf(stderr, "    --nolinks   Turn off hyperlinks in HTML output.\n");
    fprintf(stderr, "    --dirsfirst List directories before files.\n");
    fprintf(stderr, "    --charset X Use charset X for HTML and indentation "
                    "line output.\n");
  }
  exit(0);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
sub    $0x1,%eax
je     1150 <usage+0x30>
jmp    113f <usage+0x1f>
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
je     116a <usage+0x4a>
jmp    1434 <usage+0x314>
mov    0x2e89(%rip),%rax
mov    (%rax),%edi
lea    0xea0(%rip),%rsi
call   1030 <fprintf@plt>
jmp    1434 <usage+0x314>
mov    0x2e6f(%rip),%rax
mov    (%rax),%edi
lea    0xe86(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e5a(%rip),%rax
mov    (%rax),%edi
lea    0xf64(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e45(%rip),%rax
mov    (%rax),%edi
lea    0xf76(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e30(%rip),%rax
mov    (%rax),%edi
lea    0xf89(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e1b(%rip),%rax
mov    (%rax),%edi
lea    0xfad(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e06(%rip),%rax
mov    (%rax),%edi
lea    0xfd3(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2df1(%rip),%rax
mov    (%rax),%edi
lea    0xfee(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ddc(%rip),%rax
mov    (%rax),%edi
lea    0x1011(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dc7(%rip),%rax
mov    (%rax),%edi
lea    0x1033(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2db2(%rip),%rax
mov    (%rax),%edi
lea    0x1054(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d9d(%rip),%rax
mov    (%rax),%edi
lea    0x1073(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d88(%rip),%rax
mov    (%rax),%edi
lea    0x1098(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d73(%rip),%rax
mov    (%rax),%edi
lea    0x10ba(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d5e(%rip),%rax
mov    (%rax),%edi
lea    0x10db(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d49(%rip),%rax
mov    (%rax),%edi
lea    0x1103(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d34(%rip),%rax
mov    (%rax),%edi
lea    0x1129(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d1f(%rip),%rax
mov    (%rax),%edi
lea    0x114b(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d0a(%rip),%rax
mov    (%rax),%edi
lea    0x1168(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2cf5(%rip),%rax
mov    (%rax),%edi
lea    0x1189(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ce0(%rip),%rax
mov    (%rax),%edi
lea    0x11b1(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ccb(%rip),%rax
mov    (%rax),%edi
lea    0x11da(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2cb6(%rip),%rax
mov    (%rax),%edi
lea    0x1203(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ca1(%rip),%rax
mov    (%rax),%edi
lea    0x121c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c8c(%rip),%rax
mov    (%rax),%edi
lea    0x124c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c77(%rip),%rax
mov    (%rax),%edi
lea    0x1278(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c62(%rip),%rax
mov    (%rax),%edi
lea    0x12ab(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c4d(%rip),%rax
mov    (%rax),%edi
lea    0x12e1(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c38(%rip),%rax
mov    (%rax),%edi
lea    0x1304(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c23(%rip),%rax
mov    (%rax),%edi
lea    0x1322(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c0e(%rip),%rax
mov    (%rax),%edi
lea    0x133f(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2bf9(%rip),%rax
mov    (%rax),%edi
lea    0x136e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2be4(%rip),%rax
mov    (%rax),%edi
lea    0x13a0(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2bcf(%rip),%rax
mov    (%rax),%edi
lea    0x13c0(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2bba(%rip),%rax
mov    (%rax),%edi
lea    0x13db(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
cmp    $0x1,%edi
je     1311 <usage+0x1f1>
cmp    $0x2,%edi
jne    1326 <usage+0x206>
mov    0x2ea6(%rip),%rbx
mov    (%rbx),%edi
lea    0xebd(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfa2(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfbb(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd5(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1000(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x102d(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x104f(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1079(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10a2(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10ca(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10f0(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x111c(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1145(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x116d(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x119c(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x11c9(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x11f2(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1216(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x123e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x126d(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x129d(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x12cd(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x12ed(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1324(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1357(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1391(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x13ce(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x13f8(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x141d(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1441(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1477(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x14b0(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x14d7(%rip),%rsi
call   1030 <fprintf@plt>
lea    0x14fb(%rip),%rsi
jmp    1318 <usage+0x1f8>
lea    0xce8(%rip),%rsi
mov    0x2cc1(%rip),%rax
mov    (%rax),%edi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [243 x i8] c"usage: tree [-adfgilnpqrstuxACDFNS] [-H baseHREF] [-T title ] [-L level [-R]]\0A\09[-P pattern] [-I pattern] [-o filename] [--version] [--help] [--inodes]\0A\09[--device] [--noreport] [--nolinks] [--dirsfirst] [--charset charset]\0A\09[<directory list>]\0A\00"
@.str.1 = [39 x i8] c" -a All files are listed.\0A\00"
@.str.2 = [40 x i8] c" -d List directories only.\0A\00"
@.str.3 = [57 x i8] c" -l Follow symbolic links like directories.\0A\00"
@.str.4 = [59 x i8] c" -f Print the full path prefix for each file.\0A\00"
@.str.5 = [48 x i8] c" -i Don't print indentation lines.\0A\00"
@.str.6 = [56 x i8] c" -q Print non-printable characters as '?'.\0A\00"
@.str.7 = [55 x i8] c" -N Print non-printable characters as is.\0A\00"
@.str.8 = [54 x i8] c" -p Print the protections for each file.\0A\00"
@.str.9 = [52 x i8] c" -u Displays file owner or UID number.\0A\00"
@.str.10 = [58 x i8] c" -g Displays file group owner or GID number.\0A\00"
@.str.11 = [55 x i8] c" -s Print the size in bytes of each file.\0A\00"
@.str.12 = [54 x i8] c" -D Print the date of last modification.\0A\00"
@.str.13 = [61 x i8] c" -F Appends '/', '=', '*', or '|' as per ls -F.\0A\00"
@.str.14 = [59 x i8] c" -r Sort files in reverse alphanumeric order.\0A\00"
@.str.15 = [55 x i8] c" -t Sort files by last modification time.\0A\00"
@.str.16 = [50 x i8] c" -x Stay on current filesystem only.\0A\00"
@.str.17 = [54 x i8] c" -L level Descend only level directories deep.\0A\00"
@.str.18 = [61 x i8] c" -A Print ANSI lines graphic indentation lines.\0A\00"
@.str.19 = [62 x i8] c" -S Print with ASCII graphics indentation lines.\0A\00"
@.str.20 = [62 x i8] c" -n Turn colorization off always (-C overrides).\0A\00"
@.str.21 = [46 x i8] c" -C Turn colorization on always.\0A\00"
@.str.22 = [69 x i8] c" -P pattern List only those files that match the pattern given.\0A\00"
@.str.23 = [65 x i8] c" -I pattern Do not list files that match the given pattern.\0A\00"
@.str.24 = [72 x i8] c" -H baseHREF Prints out HTML format with baseHREF as top directory.\0A\00"
@.str.25 = [75 x i8] c" -T string Replace the default HTML title and H1 header with string.\0A\00"
@.str.26 = [56 x i8] c" -R Rerun tree when max dir level reached.\0A\00"
@.str.27 = [51 x i8] c" -o file Output to file instead of stdout.\0A\00"
@.str.28 = [50 x i8] c" --inodes Print inode number of each file.\0A\00"
@.str.29 = [68 x i8] c" --device Print device ID number to which each file belongs.\0A\00"
@.str.30 = [71 x i8] c" --noreport Turn off file/directory count at end of tree listing.\0A\00"
@.str.31 = [53 x i8] c" --nolinks Turn off hyperlinks in HTML output.\0A\00"
@.str.32 = [48 x i8] c" --dirsfirst List directories before files.\0A\00"
@.str.33 = [69 x i8] c" --charset X Use charset X for HTML and indentation line output.\0A\00"
define void @usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %76 [
i32 1, label %4
i32 2, label %7
]
4: ; preds = %1
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([243 x i8], [243 x i8]* @.str, i64 0, i64 0))
br label %76
7: ; preds = %1
%8 = load i32, i32* @stderr
%9 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([243 x i8], [243 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.6, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = call i32 @fprintf(i32 %24, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.9, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.11, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = call i32 @fprintf(i32 %32, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = call i32 @fprintf(i32 %34, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.13, i64 0, i64 0))
%36 = load i32, i32* @stderr
%37 = call i32 @fprintf(i32 %36, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.14, i64 0, i64 0))
%38 = load i32, i32* @stderr
%39 = call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.15, i64 0, i64 0))
%40 = load i32, i32* @stderr
%41 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.16, i64 0, i64 0))
%42 = load i32, i32* @stderr
%43 = call i32 @fprintf(i32 %42, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.17, i64 0, i64 0))
%44 = load i32, i32* @stderr
%45 = call i32 @fprintf(i32 %44, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.18, i64 0, i64 0))
%46 = load i32, i32* @stderr
%47 = call i32 @fprintf(i32 %46, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.19, i64 0, i64 0))
%48 = load i32, i32* @stderr
%49 = call i32 @fprintf(i32 %48, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.20, i64 0, i64 0))
%50 = load i32, i32* @stderr
%51 = call i32 @fprintf(i32 %50, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.21, i64 0, i64 0))
%52 = load i32, i32* @stderr
%53 = call i32 @fprintf(i32 %52, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.22, i64 0, i64 0))
%54 = load i32, i32* @stderr
%55 = call i32 @fprintf(i32 %54, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.23, i64 0, i64 0))
%56 = load i32, i32* @stderr
%57 = call i32 @fprintf(i32 %56, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.24, i64 0, i64 0))
%58 = load i32, i32* @stderr
%59 = call i32 @fprintf(i32 %58, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.25, i64 0, i64 0))
%60 = load i32, i32* @stderr
%61 = call i32 @fprintf(i32 %60, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.26, i64 0, i64 0))
%62 = load i32, i32* @stderr
%63 = call i32 @fprintf(i32 %62, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.27, i64 0, i64 0))
%64 = load i32, i32* @stderr
%65 = call i32 @fprintf(i32 %64, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.28, i64 0, i64 0))
%66 = load i32, i32* @stderr
%67 = call i32 @fprintf(i32 %66, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.29, i64 0, i64 0))
%68 = load i32, i32* @stderr
%69 = call i32 @fprintf(i32 %68, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.30, i64 0, i64 0))
%70 = load i32, i32* @stderr
%71 = call i32 @fprintf(i32 %70, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.31, i64 0, i64 0))
%72 = load i32, i32* @stderr
%73 = call i32 @fprintf(i32 %72, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.32, i64 0, i64 0))
%74 = load i32, i32* @stderr
%75 = call i32 @fprintf(i32 %74, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.33, i64 0, i64 0))
br label %76
76: ; preds = %7, %1, %4
%77 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [243 x i8] c"usage: tree [-adfgilnpqrstuxACDFNS] [-H baseHREF] [-T title ] [-L level [-R]]\0A\09[-P pattern] [-I pattern] [-o filename] [--version] [--help] [--inodes]\0A\09[--device] [--noreport] [--nolinks] [--dirsfirst] [--charset charset]\0A\09[<directory list>]\0A\00"
@.str.1 = [39 x i8] c" -a All files are listed.\0A\00"
@.str.2 = [40 x i8] c" -d List directories only.\0A\00"
@.str.3 = [57 x i8] c" -l Follow symbolic links like directories.\0A\00"
@.str.4 = [59 x i8] c" -f Print the full path prefix for each file.\0A\00"
@.str.5 = [48 x i8] c" -i Don't print indentation lines.\0A\00"
@.str.6 = [56 x i8] c" -q Print non-printable characters as '?'.\0A\00"
@.str.7 = [55 x i8] c" -N Print non-printable characters as is.\0A\00"
@.str.8 = [54 x i8] c" -p Print the protections for each file.\0A\00"
@.str.9 = [52 x i8] c" -u Displays file owner or UID number.\0A\00"
@.str.10 = [58 x i8] c" -g Displays file group owner or GID number.\0A\00"
@.str.11 = [55 x i8] c" -s Print the size in bytes of each file.\0A\00"
@.str.12 = [54 x i8] c" -D Print the date of last modification.\0A\00"
@.str.13 = [61 x i8] c" -F Appends '/', '=', '*', or '|' as per ls -F.\0A\00"
@.str.14 = [59 x i8] c" -r Sort files in reverse alphanumeric order.\0A\00"
@.str.15 = [55 x i8] c" -t Sort files by last modification time.\0A\00"
@.str.16 = [50 x i8] c" -x Stay on current filesystem only.\0A\00"
@.str.17 = [54 x i8] c" -L level Descend only level directories deep.\0A\00"
@.str.18 = [61 x i8] c" -A Print ANSI lines graphic indentation lines.\0A\00"
@.str.19 = [62 x i8] c" -S Print with ASCII graphics indentation lines.\0A\00"
@.str.20 = [62 x i8] c" -n Turn colorization off always (-C overrides).\0A\00"
@.str.21 = [46 x i8] c" -C Turn colorization on always.\0A\00"
@.str.22 = [69 x i8] c" -P pattern List only those files that match the pattern given.\0A\00"
@.str.23 = [65 x i8] c" -I pattern Do not list files that match the given pattern.\0A\00"
@.str.24 = [72 x i8] c" -H baseHREF Prints out HTML format with baseHREF as top directory.\0A\00"
@.str.25 = [75 x i8] c" -T string Replace the default HTML title and H1 header with string.\0A\00"
@.str.26 = [56 x i8] c" -R Rerun tree when max dir level reached.\0A\00"
@.str.27 = [51 x i8] c" -o file Output to file instead of stdout.\0A\00"
@.str.28 = [50 x i8] c" --inodes Print inode number of each file.\0A\00"
@.str.29 = [68 x i8] c" --device Print device ID number to which each file belongs.\0A\00"
@.str.30 = [71 x i8] c" --noreport Turn off file/directory count at end of tree listing.\0A\00"
@.str.31 = [53 x i8] c" --nolinks Turn off hyperlinks in HTML output.\0A\00"
@.str.32 = [48 x i8] c" --dirsfirst List directories before files.\0A\00"
@.str.33 = [69 x i8] c" --charset X Use charset X for HTML and indentation line output.\0A\00"
define void @usage(i32 %0) {
switch i32 %0, label %73 [
i32 1, label %69
i32 2, label %2
]
2: ; preds = %1
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([243 x i8], [243 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.6, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.9, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.11, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.13, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.14, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = tail call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.15, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = tail call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.16, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = tail call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.17, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = tail call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.18, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = tail call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.19, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = tail call i32 @fprintf(i32 %43, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.20, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = tail call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.21, i64 0, i64 0))
%47 = load i32, i32* @stderr
%48 = tail call i32 @fprintf(i32 %47, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.22, i64 0, i64 0))
%49 = load i32, i32* @stderr
%50 = tail call i32 @fprintf(i32 %49, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.23, i64 0, i64 0))
%51 = load i32, i32* @stderr
%52 = tail call i32 @fprintf(i32 %51, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.24, i64 0, i64 0))
%53 = load i32, i32* @stderr
%54 = tail call i32 @fprintf(i32 %53, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.25, i64 0, i64 0))
%55 = load i32, i32* @stderr
%56 = tail call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.26, i64 0, i64 0))
%57 = load i32, i32* @stderr
%58 = tail call i32 @fprintf(i32 %57, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.27, i64 0, i64 0))
%59 = load i32, i32* @stderr
%60 = tail call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.28, i64 0, i64 0))
%61 = load i32, i32* @stderr
%62 = tail call i32 @fprintf(i32 %61, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.29, i64 0, i64 0))
%63 = load i32, i32* @stderr
%64 = tail call i32 @fprintf(i32 %63, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.30, i64 0, i64 0))
%65 = load i32, i32* @stderr
%66 = tail call i32 @fprintf(i32 %65, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.31, i64 0, i64 0))
%67 = load i32, i32* @stderr
%68 = tail call i32 @fprintf(i32 %67, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.32, i64 0, i64 0))
br label %69
69: ; preds = %1, %2
%70 = phi i8* [ getelementptr inbounds ([69 x i8], [69 x i8]* @.str.33, i64 0, i64 0), %2 ], [ getelementptr inbounds ([243 x i8], [243 x i8]* @.str, i64 0, i64 0), %1 ]
%71 = load i32, i32* @stderr
%72 = tail call i32 @fprintf(i32 %71, i8* %70)
br label %73
73: ; preds = %69, %1
%74 = tail call i32 @exit(i32 0)
unreachable
}