#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 *, ...);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr, "mcb -- simple memcached benck mark\n");
  fprintf(stderr, "usage: mcb -c {set|add|get} [OPTIONS]\n");
  fprintf(stderr, "\t\t-c command_type {set|add|get}\n");
  fprintf(stderr, "\t\t-a server_address[127.0.0.1]\n");
  fprintf(stderr, "\t\t-f unix socket path\n");
  fprintf(stderr, "\t\t-p server_port[%d]\n", 11211);
  fprintf(stderr, "\t\t-T connection Type {TCP|UDP|UNIX_SOCKET}[TCP]\n");
  fprintf(stderr, "\t\t-t number_of_thread[%d] <1-%d>\n", 1, 1024);
  fprintf(stderr, "\t\t-n number_of_command[%d] <1-%d>\n", 1, 65535);
  fprintf(stderr, "\t\t-m max_key[%d] <1-%d>\n", 1000, 65535);
  fprintf(stderr, "\t\t-l average data_length[%d] <1-%d>\n", 1024, 40960);
  fprintf(stderr, "\t\t-v               :verbose\n");
  fprintf(stderr, "\t\t-s               :send and disconnect each command\n");
  fprintf(stderr, "\t\t\t\t\t(Default => send all commands per one session)\n");
  fprintf(stderr, "\t\t-h               :help\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
lea    0xee9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
lea    0xef9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
lea    0xf03(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e69(%rip),%rax
mov    (%rax),%edi
lea    0xf0c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e52(%rip),%rax
mov    (%rax),%edi
lea    0xf0c(%rip),%rsi
mov    $0x2bcb,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e36(%rip),%rax
mov    (%rax),%edi
lea    0xf06(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e1f(%rip),%rax
mov    (%rax),%edi
lea    0xf20(%rip),%rsi
mov    $0x1,%edx
mov    $0x400,%ecx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dfe(%rip),%rax
mov    (%rax),%edi
lea    0xf21(%rip),%rsi
mov    $0x1,%edx
mov    $0xffff,%ecx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ddd(%rip),%rax
mov    (%rax),%edi
lea    0xf23(%rip),%rsi
mov    $0x3e8,%edx
mov    $0xffff,%ecx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dbc(%rip),%rax
mov    (%rax),%edi
lea    0xf1b(%rip),%rsi
mov    $0x400,%edx
mov    $0xa000,%ecx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d9b(%rip),%rax
mov    (%rax),%edi
lea    0xf1f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d84(%rip),%rax
mov    (%rax),%edi
lea    0xf25(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d6d(%rip),%rax
mov    (%rax),%edi
lea    0xf44(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d56(%rip),%rax
mov    (%rax),%edi
lea    0xf62(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xef3(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf0a(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf1b(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf2b(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf32(%rip),%rsi
mov    $0x2bcb,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf33(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf54(%rip),%rsi
mov    $0x1,%edx
mov    $0x400,%ecx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf5c(%rip),%rsi
mov    $0x1,%edx
mov    $0xffff,%ecx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf65(%rip),%rsi
mov    $0x3e8,%edx
mov    $0xffff,%ecx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf64(%rip),%rsi
mov    $0x400,%edx
mov    $0xa000,%ecx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf6f(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf7c(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfa2(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfc7(%rip),%rsi
xor    %eax,%eax
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [36 x i8] c"mcb -- simple memcached benck mark\0A\00"
@.str.1 = [39 x i8] c"usage: mcb -c {set|add|get} [OPTIONS]\0A\00"
@.str.2 = [33 x i8] c"\09\09-c command_type {set|add|get}\0A\00"
@.str.3 = [32 x i8] c"\09\09-a server_address[127.0.0.1]\0A\00"
@.str.4 = [23 x i8] c"\09\09-f unix socket path\0A\00"
@.str.5 = [22 x i8] c"\09\09-p server_port[%d]\0A\00"
@.str.6 = [49 x i8] c"\09\09-T connection Type {TCP|UDP|UNIX_SOCKET}[TCP]\0A\00"
@.str.7 = [34 x i8] c"\09\09-t number_of_thread[%d] <1-%d>\0A\00"
@.str.8 = [35 x i8] c"\09\09-n number_of_command[%d] <1-%d>\0A\00"
@.str.9 = [25 x i8] c"\09\09-m max_key[%d] <1-%d>\0A\00"
@.str.10 = [37 x i8] c"\09\09-l average data_length[%d] <1-%d>\0A\00"
@.str.11 = [29 x i8] c"\09\09-v :verbose\0A\00"
@.str.12 = [54 x i8] c"\09\09-s :send and disconnect each command\0A\00"
@.str.13 = [53 x i8] c"\09\09\09\09\09(Default => send all commands per one session)\0A\00"
@.str.14 = [26 x i8] c"\09\09-h :help\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 11211)
%13 = load i32, i32* @stderr
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), i32 1, i32 1024)
%17 = load i32, i32* @stderr
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i32 1, i32 65535)
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0), i32 1000, i32 65535)
%21 = load i32, i32* @stderr
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0), i32 1024, i32 40960)
%23 = load i32, i32* @stderr
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [36 x i8] c"mcb -- simple memcached benck mark\0A\00"
@.str.1 = [39 x i8] c"usage: mcb -c {set|add|get} [OPTIONS]\0A\00"
@.str.2 = [33 x i8] c"\09\09-c command_type {set|add|get}\0A\00"
@.str.3 = [32 x i8] c"\09\09-a server_address[127.0.0.1]\0A\00"
@.str.4 = [23 x i8] c"\09\09-f unix socket path\0A\00"
@.str.5 = [22 x i8] c"\09\09-p server_port[%d]\0A\00"
@.str.6 = [49 x i8] c"\09\09-T connection Type {TCP|UDP|UNIX_SOCKET}[TCP]\0A\00"
@.str.7 = [34 x i8] c"\09\09-t number_of_thread[%d] <1-%d>\0A\00"
@.str.8 = [35 x i8] c"\09\09-n number_of_command[%d] <1-%d>\0A\00"
@.str.9 = [25 x i8] c"\09\09-m max_key[%d] <1-%d>\0A\00"
@.str.10 = [37 x i8] c"\09\09-l average data_length[%d] <1-%d>\0A\00"
@.str.11 = [29 x i8] c"\09\09-v :verbose\0A\00"
@.str.12 = [54 x i8] c"\09\09-s :send and disconnect each command\0A\00"
@.str.13 = [53 x i8] c"\09\09\09\09\09(Default => send all commands per one session)\0A\00"
@.str.14 = [26 x i8] c"\09\09-h :help\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 11211)
%13 = load i32, i32* @stderr
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), i32 1, i32 1024)
%17 = load i32, i32* @stderr
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i32 1, i32 65535)
%19 = load i32, i32* @stderr
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0), i32 1000, i32 65535)
%21 = load i32, i32* @stderr
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0), i32 1024, i32 40960)
%23 = load i32, i32* @stderr
%24 = tail call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.13, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0))
ret void
}