#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*/ usage;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ snprintf(char *, int, char *, int, char *, int, int);
void chronosUsage() {
  char usage[1024];
  char template[] =
      "Usage: startup_client OPTIONS\n"
      "Starts up a number of chronos clients\n"
      "\n"
      "OPTIONS:\n"
      "-c [num]              number of threads (default: %d)\n"
      "-a [address]          server ip address (default: %s)\n"
      "-p [num]              server port (default: %d)\n"
      "-v [num]              percentage of user transactions (default: %d%)\n"
      "-d [num]              debug level\n"
      "-h                    help";
  snprintf(usage, sizeof(usage), template, 900, "127.0.0.1", 5000, (60));
  printf("%s\n", usage);
}


x86 assembly (clang, -O0):
<chronosUsage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x580,%rsp
lea    -0x570(%rbp),%rdi
lea    0xeb7(%rip),%rsi
mov    $0x16c,%edx
call   1050 <memcpy@plt>
lea    -0x400(%rbp),%rdi
lea    -0x570(%rbp),%rdx
mov    $0x400,%esi
mov    $0x384,%ecx
lea    0xffa(%rip),%r8
mov    $0x1388,%r9d
movl   $0x3c,(%rsp)
call   1040 <snprintf@plt>
lea    -0x400(%rbp),%rsi
lea    0xfe4(%rip),%rdi
call   1030 <printf@plt>
add    $0x580,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chronosUsage>:
push   %r14
push   %rbx
sub    $0x588,%rsp
lea    0xebf(%rip),%rsi
lea    0x10(%rsp),%r14
mov    $0x16c,%edx
mov    %r14,%rdi
call   1050 <memcpy@plt>
movl   $0x3c,(%rsp)
lea    0x100b(%rip),%r8
lea    0x180(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x400,%esi
mov    %r14,%rdx
mov    $0x384,%ecx
mov    $0x1388,%r9d
call   1040 <snprintf@plt>
lea    0xfeb(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
add    $0x588,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.chronosUsage.template = [364 x i8] c"Usage: startup_client OPTIONS\0AStarts up a number of chronos clients\0A\0AOPTIONS:\0A-c [num] number of threads (default: %d)\0A-a [address] server ip address (default: %s)\0A-p [num] server port (default: %d)\0A-v [num] percentage of user transactions (default: %d%)\0A-d [num] debug level\0A-h help\00"
@.str = [10 x i8] c"127.0.0.1\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define void @chronosUsage() {
%1 = alloca [1024 x i8]
%2 = alloca [364 x i8]
%3 = bitcast [364 x i8]* %2 to i8*
%4 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [364 x i8], [364 x i8]* %2, i64 0, i64 0
%6 = call i32 @snprintf(i8* %4, i32 1024, i8* %5, i32 900, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 5000, i32 60)
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%8 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %7)
ret void
}

LLVM IR (-O2):
@__const.chronosUsage.template = [364 x i8] c"Usage: startup_client OPTIONS\0AStarts up a number of chronos clients\0A\0AOPTIONS:\0A-c [num] number of threads (default: %d)\0A-a [address] server ip address (default: %s)\0A-p [num] server port (default: %d)\0A-v [num] percentage of user transactions (default: %d%)\0A-d [num] debug level\0A-h help\00"
@.str = [10 x i8] c"127.0.0.1\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define void @chronosUsage() {
%1 = alloca [1024 x i8]
%2 = alloca [364 x i8]
%3 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [364 x i8], [364 x i8]* %2, i64 0, i64 0
%5 = call i32 @snprintf(i8* %3, i32 1024, i8* %4, i32 900, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 5000, i32 60)
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %3)
ret void
}