#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 *, int, int, int);
int /*<<< orphan*/ stderr;
void usage(char *program_name) {
  fprintf(
      stderr,
      "USAGE: %s [-a|-v] [-s] [-f file]* OUT_DATA_FILE OUT_INDEX_FILE [-d "
      "2ND_DATA_FILE -i 2ND_INDEX_FILE] [DIR_TO_INDEX|FILE]*\n"
      "\t-a\t\tappend files/indexes, also needed for sorting an already "
      "existing ffindex\n"
      "\t-d FFDATA_FILE\ta second ffindex data file for inserting/appending\n"
      "\t-i FFINDEX_FILE\ta second ffindex index file for inserting/appending\n"
      "\t-f FILE\t\tfile containing a list of file names, one per line\n"
      "\t\t\t-f can be specified up to %d times\n"
      "\t-s\t\tsort index file, so that the index can queried.\n"
      "\t\t\tAnother append operations can be done without sorting.\n"
      "\t-v\t\tprint version and other info then exit\n"
      "\nEXAMPLES:\n"
      "\tCreate a new ffindex containing all files from the \"bar/\" directory "
      "containing\n"
      "\tsay myfile1.txt, myfile2.txt and sort (-s) it so that e.g. "
      "ffindex_get can use it.\n"
      "\t\t$ ffindex_build -s foo.ffdata foo.ffindex bar/\n"
      "\n\tAdd (-a) more files: myfile3.txt, myfile4.txt.\n"
      "\t\t$ ffindex_build -a foo.ffdata foo.ffindex myfile3.txt myfile4.txt\n"
      "\n\tOops, forgot to sort it (-s) so do it afterwards:\n"
      "\t\t$ ffindex_build -as foo.ffdata foo.ffindex\n"
      "\nNOTE:\n"
      "\tMaximum key/filename length is %d and maximum entries are by default "
      "%d\n"
      "\tThis can be changed in the sources.\n"
      "\nDesigned and implemented by Andreas W. Hauser "
      "<hauser@genzentrum.lmu.de>.\n",
      program_name, 4096, 32, 200000000);
}


x86 assembly (clang, -O0):
<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
mov    $0x1000,%ecx
mov    $0x20,%r8d
mov    $0xbebc200,%r9d
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
mov    $0x1000,%ecx
mov    $0x20,%r8d
mov    $0xbebc200,%r9d
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [1221 x i8] c"USAGE: %s [-a|-v] [-s] [-f file]* OUT_DATA_FILE OUT_INDEX_FILE [-d 2ND_DATA_FILE -i 2ND_INDEX_FILE] [DIR_TO_INDEX|FILE]*\0A\09-a\09\09append files/indexes, also needed for sorting an already existing ffindex\0A\09-d FFDATA_FILE\09a second ffindex data file for inserting/appending\0A\09-i FFINDEX_FILE\09a second ffindex index file for inserting/appending\0A\09-f FILE\09\09file containing a list of file names, one per line\0A\09\09\09-f can be specified up to %d times\0A\09-s\09\09sort index file, so that the index can queried.\0A\09\09\09Another append operations can be done without sorting.\0A\09-v\09\09print version and other info then exit\0A\0AEXAMPLES:\0A\09Create a new ffindex containing all files from the \22bar/\22 directory containing\0A\09say myfile1.txt, myfile2.txt and sort (-s) it so that e.g. ffindex_get can use it.\0A\09\09$ ffindex_build -s foo.ffdata foo.ffindex bar/\0A\0A\09Add (-a) more files: myfile3.txt, myfile4.txt.\0A\09\09$ ffindex_build -a foo.ffdata foo.ffindex myfile3.txt myfile4.txt\0A\0A\09Oops, forgot to sort it (-s) so do it afterwards:\0A\09\09$ ffindex_build -as foo.ffdata foo.ffindex\0A\0ANOTE:\0A\09Maximum key/filename length is %d and maximum entries are by default %d\0A\09This can be changed in the sources.\0A\0ADesigned and implemented by Andreas W. Hauser <hauser@genzentrum.lmu.de>.\0A\00"
define void @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 ([1221 x i8], [1221 x i8]* @.str, i64 0, i64 0), i8* %4, i32 4096, i32 32, i32 200000000)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [1221 x i8] c"USAGE: %s [-a|-v] [-s] [-f file]* OUT_DATA_FILE OUT_INDEX_FILE [-d 2ND_DATA_FILE -i 2ND_INDEX_FILE] [DIR_TO_INDEX|FILE]*\0A\09-a\09\09append files/indexes, also needed for sorting an already existing ffindex\0A\09-d FFDATA_FILE\09a second ffindex data file for inserting/appending\0A\09-i FFINDEX_FILE\09a second ffindex index file for inserting/appending\0A\09-f FILE\09\09file containing a list of file names, one per line\0A\09\09\09-f can be specified up to %d times\0A\09-s\09\09sort index file, so that the index can queried.\0A\09\09\09Another append operations can be done without sorting.\0A\09-v\09\09print version and other info then exit\0A\0AEXAMPLES:\0A\09Create a new ffindex containing all files from the \22bar/\22 directory containing\0A\09say myfile1.txt, myfile2.txt and sort (-s) it so that e.g. ffindex_get can use it.\0A\09\09$ ffindex_build -s foo.ffdata foo.ffindex bar/\0A\0A\09Add (-a) more files: myfile3.txt, myfile4.txt.\0A\09\09$ ffindex_build -a foo.ffdata foo.ffindex myfile3.txt myfile4.txt\0A\0A\09Oops, forgot to sort it (-s) so do it afterwards:\0A\09\09$ ffindex_build -as foo.ffdata foo.ffindex\0A\0ANOTE:\0A\09Maximum key/filename length is %d and maximum entries are by default %d\0A\09This can be changed in the sources.\0A\0ADesigned and implemented by Andreas W. Hauser <hauser@genzentrum.lmu.de>.\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([1221 x i8], [1221 x i8]* @.str, i64 0, i64 0), i8* %0, i32 4096, i32 32, i32 200000000)
ret void
}