#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
void print_usage(FILE *f) {
  fputs("USAGE:  mekdotlu <args>"
        "\n",
        f);
  fputs("        Arguments must be tightly specified. Use `-tvalue'"
        "\n",
        f);
  fputs("        instead of `-t value' or `-t=value'. If an argument is"
        "\n",
        f);
  fputs("        specified more than once, the last value for it will"
        "\n",
        f);
  fputs("        override the others, and no warning will be emitted."
        "\n",
        f);
  fputs(""
        "\n",
        f);
  fputs("OPTIONS:"
        "\n",
        f);
  fputs("        -f      Follow symbolic links for paths specified"
        "\n",
        f);
  fputs("                on the command line."
        "\n",
        f);
  fputs("        -u<str> Set user to switch to after listening on port."
        "\n",
        f);
  fputs("        -p<num> Set listen port. Defaults to 8081."
        "\n",
        f);
  fputs("        -r<str> Set document root. Default is current directory."
        "\n",
        f);
  fputs("        -o<str> Set log file. Can be left blank to not log to a"
        "\n",
        f);
  fputs("                file. Default is ./mekdotlu.log"
        "\n",
        f);
  fputs("        -C      Force colored standard output."
        "\n",
        f);
  fputs(""
        "\n",
        f);
  fputs("  (-h)  --help  Show this help and exit."
        "\n",
        f);
  fputs(""
        "\n",
        f);
  fputs("EXAMPLE:"
        "\n",
        f);
  fputs("        Run the service on port 80, follow path symlinks and"
        "\n",
        f);
  fputs("        set the document root to `./urls'."
        "\n",
        f);
  fputs("        $ mekdotlu -p80 -f -r./urls"
        "\n",
        f);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xee2(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf0e(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf3e(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf6c(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xedc(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf8a(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf84(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xfaf(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xfc5(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xff5(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0x1019(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0x104b(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0x107c(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0x109d(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xe3c(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0x10ad(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xe1c(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0x10b7(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0x10b1(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0x10df(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0x10fb(%rip),%rdi
call   1030 <fputs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xed5(%rip),%rdi
mov    $0x3b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xef8(%rip),%rdi
mov    $0x3f,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf1f(%rip),%rdi
mov    $0x3d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf44(%rip),%rdi
mov    $0x3d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
lea    0xf5c(%rip),%rdi
mov    $0x9,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf4d(%rip),%rdi
mov    $0x3a,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf6f(%rip),%rdi
mov    $0x25,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xf7c(%rip),%rdi
mov    $0x3f,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xfa3(%rip),%rdi
mov    $0x33,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xfbe(%rip),%rdi
mov    $0x41,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0xfe7(%rip),%rdi
mov    $0x40,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x100f(%rip),%rdi
mov    $0x30,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x1027(%rip),%rdi
mov    $0x2f,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
lea    0x1031(%rip),%rdi
mov    $0x29,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1030 <fputc@plt>
lea    0x1035(%rip),%rdi
mov    $0x9,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x1026(%rip),%rdi
mov    $0x3d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x104b(%rip),%rdi
mov    $0x2b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
lea    0x105e(%rip),%rdi
mov    $0x24,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"USAGE: mekdotlu <args>\0A\00"
@.str.1 = [60 x i8] c" Arguments must be tightly specified. Use `-tvalue'\0A\00"
@.str.2 = [64 x i8] c" instead of `-t value' or `-t=value'. If an argument is\0A\00"
@.str.3 = [62 x i8] c" specified more than once, the last value for it will\0A\00"
@.str.4 = [62 x i8] c" override the others, and no warning will be emitted.\0A\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [10 x i8] c"OPTIONS:\0A\00"
@.str.7 = [59 x i8] c" -f Follow symbolic links for paths specified\0A\00"
@.str.8 = [38 x i8] c" on the command line.\0A\00"
@.str.9 = [64 x i8] c" -u<str> Set user to switch to after listening on port.\0A\00"
@.str.10 = [52 x i8] c" -p<num> Set listen port. Defaults to 8081.\0A\00"
@.str.11 = [66 x i8] c" -r<str> Set document root. Default is current directory.\0A\00"
@.str.12 = [65 x i8] c" -o<str> Set log file. Can be left blank to not log to a\0A\00"
@.str.13 = [49 x i8] c" file. Default is ./mekdotlu.log\0A\00"
@.str.14 = [48 x i8] c" -C Force colored standard output.\0A\00"
@.str.15 = [42 x i8] c" (-h) --help Show this help and exit.\0A\00"
@.str.16 = [10 x i8] c"EXAMPLE:\0A\00"
@.str.17 = [62 x i8] c" Run the service on port 80, follow path symlinks and\0A\00"
@.str.18 = [44 x i8] c" set the document root to `./urls'.\0A\00"
@.str.19 = [37 x i8] c" $ mekdotlu -p80 -f -r./urls\0A\00"
define void @print_usage(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @fputs(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32* %3)
%5 = load i32*, i32** %2
%6 = call i32 @fputs(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%7 = load i32*, i32** %2
%8 = call i32 @fputs(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0), i32* %7)
%9 = load i32*, i32** %2
%10 = call i32 @fputs(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0), i32* %9)
%11 = load i32*, i32** %2
%12 = call i32 @fputs(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0), i32* %11)
%13 = load i32*, i32** %2
%14 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32* %13)
%15 = load i32*, i32** %2
%16 = call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32* %15)
%17 = load i32*, i32** %2
%18 = call i32 @fputs(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0), i32* %17)
%19 = load i32*, i32** %2
%20 = call i32 @fputs(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32* %19)
%21 = load i32*, i32** %2
%22 = call i32 @fputs(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0), i32* %21)
%23 = load i32*, i32** %2
%24 = call i32 @fputs(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0), i32* %23)
%25 = load i32*, i32** %2
%26 = call i32 @fputs(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.11, i64 0, i64 0), i32* %25)
%27 = load i32*, i32** %2
%28 = call i32 @fputs(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i64 0, i64 0), i32* %27)
%29 = load i32*, i32** %2
%30 = call i32 @fputs(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0), i32* %29)
%31 = load i32*, i32** %2
%32 = call i32 @fputs(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.14, i64 0, i64 0), i32* %31)
%33 = load i32*, i32** %2
%34 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32* %33)
%35 = load i32*, i32** %2
%36 = call i32 @fputs(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.15, i64 0, i64 0), i32* %35)
%37 = load i32*, i32** %2
%38 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32* %37)
%39 = load i32*, i32** %2
%40 = call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i32* %39)
%41 = load i32*, i32** %2
%42 = call i32 @fputs(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.17, i64 0, i64 0), i32* %41)
%43 = load i32*, i32** %2
%44 = call i32 @fputs(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.18, i64 0, i64 0), i32* %43)
%45 = load i32*, i32** %2
%46 = call i32 @fputs(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.19, i64 0, i64 0), i32* %45)
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"USAGE: mekdotlu <args>\0A\00"
@.str.1 = [60 x i8] c" Arguments must be tightly specified. Use `-tvalue'\0A\00"
@.str.2 = [64 x i8] c" instead of `-t value' or `-t=value'. If an argument is\0A\00"
@.str.3 = [62 x i8] c" specified more than once, the last value for it will\0A\00"
@.str.4 = [62 x i8] c" override the others, and no warning will be emitted.\0A\00"
@.str.6 = [10 x i8] c"OPTIONS:\0A\00"
@.str.7 = [59 x i8] c" -f Follow symbolic links for paths specified\0A\00"
@.str.8 = [38 x i8] c" on the command line.\0A\00"
@.str.9 = [64 x i8] c" -u<str> Set user to switch to after listening on port.\0A\00"
@.str.10 = [52 x i8] c" -p<num> Set listen port. Defaults to 8081.\0A\00"
@.str.11 = [66 x i8] c" -r<str> Set document root. Default is current directory.\0A\00"
@.str.12 = [65 x i8] c" -o<str> Set log file. Can be left blank to not log to a\0A\00"
@.str.13 = [49 x i8] c" file. Default is ./mekdotlu.log\0A\00"
@.str.14 = [48 x i8] c" -C Force colored standard output.\0A\00"
@.str.15 = [42 x i8] c" (-h) --help Show this help and exit.\0A\00"
@.str.16 = [10 x i8] c"EXAMPLE:\0A\00"
@.str.17 = [62 x i8] c" Run the service on port 80, follow path symlinks and\0A\00"
@.str.18 = [44 x i8] c" set the document root to `./urls'.\0A\00"
@.str.19 = [37 x i8] c" $ mekdotlu -p80 -f -r./urls\0A\00"
define void @print_usage(i32* %0) {
%2 = tail call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 24, i64 1, i32* %0)
%3 = tail call i64 @fwrite(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0), i64 59, i64 1, i32* %0)
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0), i64 63, i64 1, i32* %0)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0), i64 61, i64 1, i32* %0)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0), i64 61, i64 1, i32* %0)
%7 = tail call i32 @fputc(i32 10, i32* %0)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i64 9, i64 1, i32* %0)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0), i64 58, i64 1, i32* %0)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i64 37, i64 1, i32* %0)
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0), i64 63, i64 1, i32* %0)
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0), i64 51, i64 1, i32* %0)
%13 = tail call i64 @fwrite(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.11, i64 0, i64 0), i64 65, i64 1, i32* %0)
%14 = tail call i64 @fwrite(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i64 0, i64 0), i64 64, i64 1, i32* %0)
%15 = tail call i64 @fwrite(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0), i64 48, i64 1, i32* %0)
%16 = tail call i64 @fwrite(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.14, i64 0, i64 0), i64 47, i64 1, i32* %0)
%17 = tail call i32 @fputc(i32 10, i32* %0)
%18 = tail call i64 @fwrite(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.15, i64 0, i64 0), i64 41, i64 1, i32* %0)
%19 = tail call i32 @fputc(i32 10, i32* %0)
%20 = tail call i64 @fwrite(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i64 9, i64 1, i32* %0)
%21 = tail call i64 @fwrite(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.17, i64 0, i64 0), i64 61, i64 1, i32* %0)
%22 = tail call i64 @fwrite(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.18, i64 0, i64 0), i64 43, i64 1, i32* %0)
%23 = tail call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.19, i64 0, i64 0), i64 36, i64 1, i32* %0)
ret void
}