#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 const *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void help(void) {
  static const char *str =
      "Usage: "
      "ftag"
      " [OPTIONS] MODE ARG...\n"
      "  "
      "ftag"
      " [OPTIONS] file FILE TAG...\n"
      "  "
      "ftag"
      " [OPTIONS] filter [TAG...]\n"
      "  "
      "ftag"
      " [OPTIONS] list [FILE]\n"
      "\n"
      "Options:\n"
      "  -a, --show-hidden    show all files/tags, even those beginning with a "
      ".\n"
      "  -d, --database-name  specify database name\n"
      "  -p, --database-dir   force database directory\n"
      "  -v                   increase output verbosity (can be used multiple "
      "times)\n"
      "  -t, --test           run unit tests and exit\n"
      "  --help               show this help\n"
      "\n"
      "Report bugs to jacob.wahlgren@gmail.com.\n"
      "This software is licensed under the GNU General public license.\n"
      "Copyright 2014, 2015 Jacob Wahlgren.\n";
  fputs(str, stderr);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
mov    0x2f0d(%rip),%rdi
mov    0x2ebe(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%esi
lea    0xee0(%rip),%rdi
jmp    1030 <fputs@plt>

LLVM IR (-O0):
@help.str = internal global i8* getelementptr inbounds ([614 x i8], [614 x i8]* @.str, i32 0, i32 0)
@.str = [614 x i8] c"Usage: ftag [OPTIONS] MODE ARG...\0A ftag [OPTIONS] file FILE TAG...\0A ftag [OPTIONS] filter [TAG...]\0A ftag [OPTIONS] list [FILE]\0A\0AOptions:\0A -a, --show-hidden show all files/tags, even those beginning with a .\0A -d, --database-name specify database name\0A -p, --database-dir force database directory\0A -v increase output verbosity (can be used multiple times)\0A -t, --test run unit tests and exit\0A --help show this help\0A\0AReport bugs to jacob.wahlgren@gmail.com.\0AThis software is licensed under the GNU General public license.\0ACopyright 2014, 2015 Jacob Wahlgren.\0A\00"
@stderr = global i32 0
define void @help() {
%1 = load i8*, i8** @help.str
%2 = load i32, i32* @stderr
%3 = call i32 @fputs(i8* %1, i32 %2)
ret void
}

LLVM IR (-O2):
@.str = [614 x i8] c"Usage: ftag [OPTIONS] MODE ARG...\0A ftag [OPTIONS] file FILE TAG...\0A ftag [OPTIONS] filter [TAG...]\0A ftag [OPTIONS] list [FILE]\0A\0AOptions:\0A -a, --show-hidden show all files/tags, even those beginning with a .\0A -d, --database-name specify database name\0A -p, --database-dir force database directory\0A -v increase output verbosity (can be used multiple times)\0A -t, --test run unit tests and exit\0A --help show this help\0A\0AReport bugs to jacob.wahlgren@gmail.com.\0AThis software is licensed under the GNU General public license.\0ACopyright 2014, 2015 Jacob Wahlgren.\0A\00"
@stderr = global i32 0
define void @help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([614 x i8], [614 x i8]* @.str, i64 0, i64 0), i32 %1)
ret void
}