#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);
int /*<<< orphan*/ stderr;
void help(void) {
  fprintf(
      stderr,
      "Usage:\n"
      "   %s [options]\n"
      "\nOptions:\n"
      "   -nfiles=NUM    Number of data files to be created [%d]\n"
      "   -npages=NUM    Number of pages in a data file (1 page = 4KB) [%d]\n"
      "   -nops=NUM      Number of read and write operations "
      "[nfiles*npages:%d]\n"
      "   -seed=VAL      Seed to the random number generator [auto]\n"
      "   -rwratio=NUM   Read vs write approximate ratio [%d]\n"
      "   -keep          Keep and reuse data files [no]\n"
      "   -v             Show what is being done\n"
      "   -vv            Dump every single R/W transaction to stderr\n"
      "   -help          Print this help page\n",
      "addbspec", 10, 2560, (2560 * 10), 10);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ec1(%rip),%rax
mov    (%rax),%edi
lea    0xed8(%rip),%rsi
lea    0x10ef(%rip),%rdx
mov    $0xa,%ecx
mov    $0xa00,%r8d
mov    $0x6400,%r9d
movl   $0xa,(%rsp)
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%edi
movl   $0xa,(%rsp)
lea    0xed8(%rip),%rsi
lea    0x10ef(%rip),%rdx
mov    $0xa,%ecx
mov    $0xa00,%r8d
mov    $0x6400,%r9d
call   1030 <fprintf@plt>
pop    %rax
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [542 x i8] c"Usage:\0A %s [options]\0A\0AOptions:\0A -nfiles=NUM Number of data files to be created [%d]\0A -npages=NUM Number of pages in a data file (1 page = 4KB) [%d]\0A -nops=NUM Number of read and write operations [nfiles*npages:%d]\0A -seed=VAL Seed to the random number generator [auto]\0A -rwratio=NUM Read vs write approximate ratio [%d]\0A -keep Keep and reuse data files [no]\0A -v Show what is being done\0A -vv Dump every single R/W transaction to stderr\0A -help Print this help page\0A\00"
@.str.1 = [9 x i8] c"addbspec\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([542 x i8], [542 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 10, i32 2560, i32 25600, i32 10)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [542 x i8] c"Usage:\0A %s [options]\0A\0AOptions:\0A -nfiles=NUM Number of data files to be created [%d]\0A -npages=NUM Number of pages in a data file (1 page = 4KB) [%d]\0A -nops=NUM Number of read and write operations [nfiles*npages:%d]\0A -seed=VAL Seed to the random number generator [auto]\0A -rwratio=NUM Read vs write approximate ratio [%d]\0A -keep Keep and reuse data files [no]\0A -v Show what is being done\0A -vv Dump every single R/W transaction to stderr\0A -help Print this help page\0A\00"
@.str.1 = [9 x i8] c"addbspec\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([542 x i8], [542 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 10, i32 2560, i32 25600, i32 10)
ret void
}