#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 *);
void print_usage() {
  printf("Arcus - memcached monitoring process version 1.0\n"
         "USAGE : memc_mon [Options] <pid file directory>\n"
         "      : memc_mon -z 127.0.0.1:2181 -p memcached -t 1000 -X -L "
         "LOG_NOTI memc_pid_list\n"
         "\n"
         "<pid_file_directory>         directory path to read pid file\n"
         "\n"
         "Options:\n"
         "  -z ip:port list   Zookeeper ensemble cluster servers (default : "
         "127.0.0.1:2181)\n"
         "  -p <prefix>       pretfix to read pid file in pid directory path "
         "(default : memcached)\n"
         "  -t <msec>         memc_mon monitroing period time. msec (default : "
         "1000 msec)\n"
         "  -X                print log to syslog (default : stderr)\n"
         "  -L <log level>    log level option. in order of decreasing "
         "importance. (default : LOG_ERR)\n"
         "                    LOG_ERR  : error\n"
         "                    LOG_NOTI : normal, but significant\n"
         "                    LOG_INFO : information\n"
         "  -h                help usage\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0x120f(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [824 x i8] c"Arcus - memcached monitoring process version 1.0\0AUSAGE : memc_mon [Options] <pid file directory>\0A : memc_mon -z 127.0.0.1:2181 -p memcached -t 1000 -X -L LOG_NOTI memc_pid_list\0A\0A<pid_file_directory> directory path to read pid file\0A\0AOptions:\0A -z ip:port list Zookeeper ensemble cluster servers (default : 127.0.0.1:2181)\0A -p <prefix> pretfix to read pid file in pid directory path (default : memcached)\0A -t <msec> memc_mon monitroing period time. msec (default : 1000 msec)\0A -X print log to syslog (default : stderr)\0A -L <log level> log level option. in order of decreasing importance. (default : LOG_ERR)\0A LOG_ERR : error\0A LOG_NOTI : normal, but significant\0A LOG_INFO : information\0A -h help usage\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([824 x i8], [824 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [823 x i8] c"Arcus - memcached monitoring process version 1.0\0AUSAGE : memc_mon [Options] <pid file directory>\0A : memc_mon -z 127.0.0.1:2181 -p memcached -t 1000 -X -L LOG_NOTI memc_pid_list\0A\0A<pid_file_directory> directory path to read pid file\0A\0AOptions:\0A -z ip:port list Zookeeper ensemble cluster servers (default : 127.0.0.1:2181)\0A -p <prefix> pretfix to read pid file in pid directory path (default : memcached)\0A -t <msec> memc_mon monitroing period time. msec (default : 1000 msec)\0A -X print log to syslog (default : stderr)\0A -L <log level> log level option. in order of decreasing importance. (default : LOG_ERR)\0A LOG_ERR : error\0A LOG_NOTI : normal, but significant\0A LOG_INFO : information\0A -h help usage\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([823 x i8], [823 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @putchar(i32 10)
ret void
}