#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 usage(const char *name) {
  fprintf(
      stderr,
      "Usage: %s [OPTIONS] <host>:<port>\n\n"
      " -d --debugging : Increase debug level (-d -d for spam)\n"
      " -l --loop-mode : Run the same queries multple times\n"
      " -e --errors <file> : Log all failed queries to <file> "
      "[cxbench.errors]\n"
      " -o --output <file> : Write querylog to <file> [cxbench.out]\n"
      " -r --random-mode: Run the queries in random order\n"
      " -p --parallell <n>: Run <n> queries in parallell\n"
      " -s --qps <rate> : Submit queries with <rate> qps. 0 means infinite\n"
      " -n --num-queries <n>: Stop after <n> queries\n"
      " -q --query-prefix <prefix> : Prepend <prefix> to all queries\n"
      " -w --wait-mode <mode> : Wait mode poisson or regular [poisson]\n\n"
      "A list of queries must be given on STDIN.\n\n",
      name);
}


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
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
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [663 x i8] c"Usage: %s [OPTIONS] <host>:<port>\0A\0A -d --debugging : Increase debug level (-d -d for spam)\0A -l --loop-mode : Run the same queries multple times\0A -e --errors <file> : Log all failed queries to <file> [cxbench.errors]\0A -o --output <file> : Write querylog to <file> [cxbench.out]\0A -r --random-mode: Run the queries in random order\0A -p --parallell <n>: Run <n> queries in parallell\0A -s --qps <rate> : Submit queries with <rate> qps. 0 means infinite\0A -n --num-queries <n>: Stop after <n> queries\0A -q --query-prefix <prefix> : Prepend <prefix> to all queries\0A -w --wait-mode <mode> : Wait mode poisson or regular [poisson]\0A\0AA list of queries must be given on STDIN.\0A\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 ([663 x i8], [663 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [663 x i8] c"Usage: %s [OPTIONS] <host>:<port>\0A\0A -d --debugging : Increase debug level (-d -d for spam)\0A -l --loop-mode : Run the same queries multple times\0A -e --errors <file> : Log all failed queries to <file> [cxbench.errors]\0A -o --output <file> : Write querylog to <file> [cxbench.out]\0A -r --random-mode: Run the queries in random order\0A -p --parallell <n>: Run <n> queries in parallell\0A -s --qps <rate> : Submit queries with <rate> qps. 0 means infinite\0A -n --num-queries <n>: Stop after <n> queries\0A -q --query-prefix <prefix> : Prepend <prefix> to all queries\0A -w --wait-mode <mode> : Wait mode poisson or regular [poisson]\0A\0AA list of queries must be given on STDIN.\0A\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([663 x i8], [663 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}