#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*/ printf(char *, char *, char *, int, char *, char *, char *,
                          char *, int, int /*<<< orphan*/, int /*<<< orphan*/,
                          int /*<<< orphan*/);
void usage(void) {
  printf("EagleMQ %s\n"
         "Usage: eaglemq [path to config file] [key:value,...]\n"
         "--addr - the server address (default: %s)\n"
         "--port - the server port (default: %d)\n"
         "--unix-socket - the path to unix socket\n"
         "--admin-name - the administrator name (default: %s)\n"
         "--admin-password - the administrator password (default: %s)\n"
         "--daemonize - run the server as daemon [on|off]\n"
         "--pid-file - path to the PID file\n"
         "--log-file - path to the log file (default: %s)\n"
         "--storage-file - path to the storage file (default: %s)\n"
         "--max-clients - maximum connections on the server (default: %d)\n"
         "--max-memory - max memory usage limit (default: %d)\n"
         "--save-timeout - timeout for save data to the storage (default: %d "
         "sec)\n"
         "--client-timeout - timeout to kill not active clients (default: %d "
         "sec)\n",
         "1.3.0", "127.0.0.1", 7851, "eagle", "eagle", "eaglemq.log",
         "eaglemq.dat", 16384, 0, 0, 0);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    0xee1(%rip),%rdi
lea    0x11c2(%rip),%rsi
lea    0x11c1(%rip),%rdx
mov    $0x1eab,%ecx
lea    0x11bf(%rip),%r9
lea    0x11be(%rip),%r10
lea    0x11c3(%rip),%rax
xor    %r8d,%r8d
mov    %r9,%r8
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
movl   $0x4000,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x28(%rsp)
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0x11f2(%rip),%rax
lea    0x11df(%rip),%r10
lea    0xeda(%rip),%rdi
lea    0x11bb(%rip),%rsi
lea    0x11ba(%rip),%rdx
lea    0x11bd(%rip),%r8
mov    $0x1eab,%ecx
mov    %r8,%r9
push   $0x0
push   $0x0
push   $0x0
push   $0x4000
push   %rax
push   %r10
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rax
ret

LLVM IR (-O0):
@.str = [744 x i8] c"EagleMQ %s\0AUsage: eaglemq [path to config file] [key:value,...]\0A--addr - the server address (default: %s)\0A--port - the server port (default: %d)\0A--unix-socket - the path to unix socket\0A--admin-name - the administrator name (default: %s)\0A--admin-password - the administrator password (default: %s)\0A--daemonize - run the server as daemon [on|off]\0A--pid-file - path to the PID file\0A--log-file - path to the log file (default: %s)\0A--storage-file - path to the storage file (default: %s)\0A--max-clients - maximum connections on the server (default: %d)\0A--max-memory - max memory usage limit (default: %d)\0A--save-timeout - timeout for save data to the storage (default: %d sec)\0A--client-timeout - timeout to kill not active clients (default: %d sec)\0A\00"
@.str.1 = [6 x i8] c"1.3.0\00"
@.str.2 = [10 x i8] c"127.0.0.1\00"
@.str.3 = [6 x i8] c"eagle\00"
@.str.4 = [12 x i8] c"eaglemq.log\00"
@.str.5 = [12 x i8] c"eaglemq.dat\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([744 x i8], [744 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 7851, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 16384, i32 0, i32 0, i32 0)
ret void
}

LLVM IR (-O2):
@.str = [744 x i8] c"EagleMQ %s\0AUsage: eaglemq [path to config file] [key:value,...]\0A--addr - the server address (default: %s)\0A--port - the server port (default: %d)\0A--unix-socket - the path to unix socket\0A--admin-name - the administrator name (default: %s)\0A--admin-password - the administrator password (default: %s)\0A--daemonize - run the server as daemon [on|off]\0A--pid-file - path to the PID file\0A--log-file - path to the log file (default: %s)\0A--storage-file - path to the storage file (default: %s)\0A--max-clients - maximum connections on the server (default: %d)\0A--max-memory - max memory usage limit (default: %d)\0A--save-timeout - timeout for save data to the storage (default: %d sec)\0A--client-timeout - timeout to kill not active clients (default: %d sec)\0A\00"
@.str.1 = [6 x i8] c"1.3.0\00"
@.str.2 = [10 x i8] c"127.0.0.1\00"
@.str.3 = [6 x i8] c"eagle\00"
@.str.4 = [12 x i8] c"eaglemq.log\00"
@.str.5 = [12 x i8] c"eaglemq.dat\00"
define void @usage() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([744 x i8], [744 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 7851, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 16384, i32 0, i32 0, i32 0)
ret void
}