#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*/ printf(char *, char const *, char const *, char const *);
void show_help(const char *cmdname) {
  printf(
      "Usage:\n"
      "%s [OPTIONS]... start FILE [ARGS]...\n"
      "       Executes FILE in the background, automatically restarting it if "
      "it\n"
      "       dies, optionally saving its standard output and standard error.\n"
      "\n"
      "%s [OPTIONS]... stop\n"
      "       Stop a program, by signalling the watching process.\n"
      "\n"
      "%s [OPTIONS]... restart\n"
      "       Cause the program to be reloaded by signalling the watching "
      "process\n"
      "\n"
      "  -d, --chdir=DIR      Change to the specified directory before "
      "starting.\n"
      "  -l, --logfile=FILE   Log program's standard output and standard "
      "error\n"
      "                       to FILE (only useful when starting). If not "
      "specified,\n"
      "                       output will go to /dev/null.\n"
      "  -q, --quietlog       Don't log the program's standard output and "
      "error,\n"
      "                       only spawn and exit messages.\n"
      "                       to FILE (only useful when starting). If not "
      "specified,\n"
      "                       output will go to /dev/null.\n"
      "  -o, --truncate-log   Truncate the logfile. Otherwise, append to it.\n"
      "  -p, --pidfile=FILE   Save the PID of the watcher process to FILE. If "
      "not\n"
      "                       specified, the PID file is not saved and stop "
      "or\n"
      "                       restart will not work.\n"
      "  -t, --delay=VAL      Delay for VAL seconds before respawning program "
      "when\n"
      "                       it has terminated (default: 10).\n"
      "\n"
      "Report bugs to <thomas@horsten.com>.\n",
      cmdname, cmdname, cmdname);
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_help>:
mov    %rdi,%rcx
lea    0xee6(%rip),%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [1338 x i8] c"Usage:\0A%s [OPTIONS]... start FILE [ARGS]...\0A Executes FILE in the background, automatically restarting it if it\0A dies, optionally saving its standard output and standard error.\0A\0A%s [OPTIONS]... stop\0A Stop a program, by signalling the watching process.\0A\0A%s [OPTIONS]... restart\0A Cause the program to be reloaded by signalling the watching process\0A\0A -d, --chdir=DIR Change to the specified directory before starting.\0A -l, --logfile=FILE Log program's standard output and standard error\0A to FILE (only useful when starting). If not specified,\0A output will go to /dev/null.\0A -q, --quietlog Don't log the program's standard output and error,\0A only spawn and exit messages.\0A to FILE (only useful when starting). If not specified,\0A output will go to /dev/null.\0A -o, --truncate-log Truncate the logfile. Otherwise, append to it.\0A -p, --pidfile=FILE Save the PID of the watcher process to FILE. If not\0A specified, the PID file is not saved and stop or\0A restart will not work.\0A -t, --delay=VAL Delay for VAL seconds before respawning program when\0A it has terminated (default: 10).\0A\0AReport bugs to <thomas@horsten.com>.\0A\00"
define void @show_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @printf(i8* getelementptr inbounds ([1338 x i8], [1338 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %4, i8* %5)
ret void
}

LLVM IR (-O2):
@.str = [1338 x i8] c"Usage:\0A%s [OPTIONS]... start FILE [ARGS]...\0A Executes FILE in the background, automatically restarting it if it\0A dies, optionally saving its standard output and standard error.\0A\0A%s [OPTIONS]... stop\0A Stop a program, by signalling the watching process.\0A\0A%s [OPTIONS]... restart\0A Cause the program to be reloaded by signalling the watching process\0A\0A -d, --chdir=DIR Change to the specified directory before starting.\0A -l, --logfile=FILE Log program's standard output and standard error\0A to FILE (only useful when starting). If not specified,\0A output will go to /dev/null.\0A -q, --quietlog Don't log the program's standard output and error,\0A only spawn and exit messages.\0A to FILE (only useful when starting). If not specified,\0A output will go to /dev/null.\0A -o, --truncate-log Truncate the logfile. Otherwise, append to it.\0A -p, --pidfile=FILE Save the PID of the watcher process to FILE. If not\0A specified, the PID file is not saved and stop or\0A restart will not work.\0A -t, --delay=VAL Delay for VAL seconds before respawning program when\0A it has terminated (default: 10).\0A\0AReport bugs to <thomas@horsten.com>.\0A\00"
define void @show_help(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([1338 x i8], [1338 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0, i8* %0)
ret void
}