#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char const *);
void help(FILE *out, const char *progname) {
  fprintf(
      out,
      "usage: %s [-n count] [-i ...] program-to-run\n"
      "   runs program count times and prints min, average and maximum times\n"
      "Options:\n"
      "   -i file --- use file for stdin instead of /dev/null /input/\n"
      "   -p prog --- use command output instead of /dev/null\n"
      "   -n N    --- run program N times /num/\n"
      "   -e      --- easy mode\n"
      "   -b      --- output in sh format /bash/\n"
      "   -c      --- output calibration time\n"
      "   -l      --- print rusage information /long/\n"
      "   -f      --- do not filter result /filter/\n"
      "   -C dir  --- change directory before execute the program\n"
      "   -s N    --- bench by series\n"
      "   -o file --- output to file\n"
      "   -a      --- append, instead of rewrite\n"
      "\n",
      progname);
}


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

x86 assembly (clang, -O2):
<help>:
mov    %rsi,%rdx
lea    0xee6(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [645 x i8] c"usage: %s [-n count] [-i ...] program-to-run\0A runs program count times and prints min, average and maximum times\0AOptions:\0A -i file --- use file for stdin instead of /dev/null /input/\0A -p prog --- use command output instead of /dev/null\0A -n N --- run program N times /num/\0A -e --- easy mode\0A -b --- output in sh format /bash/\0A -c --- output calibration time\0A -l --- print rusage information /long/\0A -f --- do not filter result /filter/\0A -C dir --- change directory before execute the program\0A -s N --- bench by series\0A -o file --- output to file\0A -a --- append, instead of rewrite\0A\0A\00"
define void @help(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i32*, i32** %3
%6 = load i8*, i8** %4
%7 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([645 x i8], [645 x i8]* @.str, i64 0, i64 0), i8* %6)
ret void
}

LLVM IR (-O2):
@.str = [645 x i8] c"usage: %s [-n count] [-i ...] program-to-run\0A runs program count times and prints min, average and maximum times\0AOptions:\0A -i file --- use file for stdin instead of /dev/null /input/\0A -p prog --- use command output instead of /dev/null\0A -n N --- run program N times /num/\0A -e --- easy mode\0A -b --- output in sh format /bash/\0A -c --- output calibration time\0A -l --- print rusage information /long/\0A -f --- do not filter result /filter/\0A -C dir --- change directory before execute the program\0A -s N --- bench by series\0A -o file --- output to file\0A -a --- append, instead of rewrite\0A\0A\00"
define void @help(i32* nocapture %0, i8* %1) {
%3 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([645 x i8], [645 x i8]* @.str, i64 0, i64 0), i8* %1)
ret void
}