#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 *);
int print_help() {
  printf("xicluster_client [option] [parameter]\n\n");
  printf("  [parameter]\n");
  printf("  status          : cluster information\n");
  printf("  perf            : server performance\n");
  printf("  process         : process information\n");
  printf("  mem             : shared memory information\n");
  printf("  cache           : cache information\n");
  printf("  volume          : volume information\n");
  printf("  ls              : file information\n");
  printf("  get             : file get\n");
  printf("  put             : file put\n");
  printf("\n");
  printf("  [option]\n");
  printf("  -h <ip address> : connect host\n");
  printf("  -p <portno>     : connect port no\n");
  printf("  -d              : debug mode\n");
  printf("  -n              : no display\n");
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
call   1030 <printf@plt>
lea    0xf21(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf98(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb4(%rip),%rdi
call   1030 <printf@plt>
lea    0xfce(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe0(%rip),%rdi
call   1030 <printf@plt>
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe6(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe6(%rip),%rdi
call   1030 <printf@plt>
lea    0xffc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1015(%rip),%rdi
call   1030 <printf@plt>
lea    0x1029(%rip),%rdi
call   1030 <printf@plt>
lea    0xe3f(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xef3(%rip),%rdi
call   1040 <puts@plt>
lea    0xef5(%rip),%rdi
call   1040 <puts@plt>
lea    0xf11(%rip),%rdi
call   1040 <puts@plt>
lea    0xf2c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf48(%rip),%rdi
call   1040 <puts@plt>
lea    0xf6a(%rip),%rdi
call   1040 <puts@plt>
lea    0xf84(%rip),%rdi
call   1040 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb8(%rip),%rdi
call   1040 <puts@plt>
lea    0xfc9(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfd0(%rip),%rdi
call   1040 <puts@plt>
lea    0xfcf(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe4(%rip),%rdi
call   1040 <puts@plt>
lea    0xffc(%rip),%rdi
call   1040 <puts@plt>
lea    0x100f(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [40 x i8] c"xicluster_client [option] [parameter]\0A\0A\00"
@.str.1 = [15 x i8] c" [parameter]\0A\00"
@.str.2 = [41 x i8] c" status : cluster information\0A\00"
@.str.3 = [40 x i8] c" perf : server performance\0A\00"
@.str.4 = [41 x i8] c" process : process information\0A\00"
@.str.5 = [47 x i8] c" mem : shared memory information\0A\00"
@.str.6 = [39 x i8] c" cache : cache information\0A\00"
@.str.7 = [40 x i8] c" volume : volume information\0A\00"
@.str.8 = [38 x i8] c" ls : file information\0A\00"
@.str.9 = [30 x i8] c" get : file get\0A\00"
@.str.10 = [30 x i8] c" put : file put\0A\00"
@.str.11 = [2 x i8] c"\0A\00"
@.str.12 = [12 x i8] c" [option]\0A\00"
@.str.13 = [34 x i8] c" -h <ip address> : connect host\0A\00"
@.str.14 = [37 x i8] c" -p <portno> : connect port no\0A\00"
@.str.15 = [32 x i8] c" -d : debug mode\0A\00"
@.str.16 = [32 x i8] c" -n : no display\0A\00"
define i32 @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [39 x i8] c"xicluster_client [option] [parameter]\0A\00"
@str.17 = [14 x i8] c" [parameter]\00"
@str.18 = [40 x i8] c" status : cluster information\00"
@str.19 = [39 x i8] c" perf : server performance\00"
@str.20 = [40 x i8] c" process : process information\00"
@str.21 = [46 x i8] c" mem : shared memory information\00"
@str.22 = [38 x i8] c" cache : cache information\00"
@str.23 = [39 x i8] c" volume : volume information\00"
@str.24 = [37 x i8] c" ls : file information\00"
@str.25 = [29 x i8] c" get : file get\00"
@str.26 = [29 x i8] c" put : file put\00"
@str.27 = [11 x i8] c" [option]\00"
@str.28 = [33 x i8] c" -h <ip address> : connect host\00"
@str.29 = [36 x i8] c" -p <portno> : connect port no\00"
@str.30 = [31 x i8] c" -d : debug mode\00"
@str.31 = [31 x i8] c" -n : no display\00"
define i32 @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.17, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.27, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.28, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.29, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.30, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.31, i64 0, i64 0))
%18 = tail call i32 @putchar(i32 10)
ret i32 0
}