#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*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void print_usage(const char *program_name) {
  fprintf(
      stderr,
      "Usage:  %s options... [ -- mountoptions... ] mountpoint\n"
      "\n"
      "Options:\n"
      "    --help                 Print a help message then exit.\n\n"
      "    --command <cmd>        The filter command. Mandatory.\n\n"
      "    --cache                Use caching. Implies --seekable.\n\n"
      "    --cache-limit <num>   The maximum total size of the cache.\n\n"
      "    --log-file <filename>  The file to log to. Optional. If not\n"
      "                           provided, no logging is performed.\n\n"
      "    --pidfile <filename>   Store the pid of the process in this "
      "file.\n\n"
      "    --preload <values>     Preload the file before opening it.\n"
      "                           Only works with --cache. Multiple values\n"
      "                           can be separated by commas.\n"
      "                           Possible values: stat, readdir\n\n"
      "    --root-dir <dir>       The directory to be mapped.\n"
      "                           Mandatory.\n\n"
      "    --seekable             Allow seeking in the translated files.\n\n"
      "    --source-suffix <val>  The suffix of the files to be\n"
      "                           transformed. Mandatory.\n\n"
      "    --target-suffix <val>  The suffix of the transformed files.\n"
      "                           Mandatory.\n\n"
      "    --wait-on-stat         When running stat, wait until the read is\n"
      "                           finished. Only works with --cache.\n"
      "                           Implies --preload=stat.\n\n",
      program_name);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [1310 x i8] c"Usage: %s options... [ -- mountoptions... ] mountpoint\0A\0AOptions:\0A --help Print a help message then exit.\0A\0A --command <cmd> The filter command. Mandatory.\0A\0A --cache Use caching. Implies --seekable.\0A\0A --cache-limit <num> The maximum total size of the cache.\0A\0A --log-file <filename> The file to log to. Optional. If not\0A provided, no logging is performed.\0A\0A --pidfile <filename> Store the pid of the process in this file.\0A\0A --preload <values> Preload the file before opening it.\0A Only works with --cache. Multiple values\0A can be separated by commas.\0A Possible values: stat, readdir\0A\0A --root-dir <dir> The directory to be mapped.\0A Mandatory.\0A\0A --seekable Allow seeking in the translated files.\0A\0A --source-suffix <val> The suffix of the files to be\0A transformed. Mandatory.\0A\0A --target-suffix <val> The suffix of the transformed files.\0A Mandatory.\0A\0A --wait-on-stat When running stat, wait until the read is\0A finished. Only works with --cache.\0A Implies --preload=stat.\0A\0A\00"
define void @print_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([1310 x i8], [1310 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [1310 x i8] c"Usage: %s options... [ -- mountoptions... ] mountpoint\0A\0AOptions:\0A --help Print a help message then exit.\0A\0A --command <cmd> The filter command. Mandatory.\0A\0A --cache Use caching. Implies --seekable.\0A\0A --cache-limit <num> The maximum total size of the cache.\0A\0A --log-file <filename> The file to log to. Optional. If not\0A provided, no logging is performed.\0A\0A --pidfile <filename> Store the pid of the process in this file.\0A\0A --preload <values> Preload the file before opening it.\0A Only works with --cache. Multiple values\0A can be separated by commas.\0A Possible values: stat, readdir\0A\0A --root-dir <dir> The directory to be mapped.\0A Mandatory.\0A\0A --seekable Allow seeking in the translated files.\0A\0A --source-suffix <val> The suffix of the files to be\0A transformed. Mandatory.\0A\0A --target-suffix <val> The suffix of the transformed files.\0A Mandatory.\0A\0A --wait-on-stat When running stat, wait until the read is\0A finished. Only works with --cache.\0A Implies --preload=stat.\0A\0A\00"
define void @print_usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([1310 x i8], [1310 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}