#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 command_help() {
  printf("\n");
  printf("$xicluster_client\n");
  printf("XICLUSTER> [command] [parameter...]\n\n");
  printf("  [command]\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("\n");
  printf("  cd <directory name>       : change current directory\n");
  printf("  pwd                       : display current directory\n");
  printf("  ls                        : file information\n");
  printf("  mkdir <directory name>    : create directory\n");
  printf("  rmdir <directory name>    : delete directory\n");
  printf("  rm <file name>            : delete file\n");
  printf("  chmod <mode> <file name>  : change file permission\n");
  printf("  chown <owner> <file name> : change file owner\n");
  printf("  chgrp <group> <file name> : change file group\n");
  printf("  get <file name>           : file get\n");
  printf("  put <file name>           : file put\n");
  printf("  exit                      : command line exit\n");
  printf("  [Ctrl]+[d]                : command line exit\n");
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<command_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xf1c(%rip),%rdi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
call   1030 <printf@plt>
lea    0xf48(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9c(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe1(%rip),%rdi
call   1030 <printf@plt>
lea    0x100e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1032(%rip),%rdi
call   1030 <printf@plt>
lea    0x1056(%rip),%rdi
call   1030 <printf@plt>
lea    0x107a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1099(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c3(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e8(%rip),%rdi
call   1030 <printf@plt>
lea    0x110d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1129(%rip),%rdi
call   1030 <printf@plt>
lea    0x1145(%rip),%rdi
call   1030 <printf@plt>
lea    0x116a(%rip),%rdi
call   1030 <printf@plt>
lea    0xe08(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<command_help>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xece(%rip),%rdi
call   1040 <puts@plt>
lea    0xed4(%rip),%rdi
call   1040 <puts@plt>
lea    0xeed(%rip),%rdi
call   1040 <puts@plt>
lea    0xeed(%rip),%rdi
call   1040 <puts@plt>
lea    0xf13(%rip),%rdi
call   1040 <puts@plt>
lea    0xf38(%rip),%rdi
call   1040 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8a(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfa4(%rip),%rdi
call   1040 <puts@plt>
lea    0xfcf(%rip),%rdi
call   1040 <puts@plt>
lea    0xffb(%rip),%rdi
call   1040 <puts@plt>
lea    0x101e(%rip),%rdi
call   1040 <puts@plt>
lea    0x1041(%rip),%rdi
call   1040 <puts@plt>
lea    0x1064(%rip),%rdi
call   1040 <puts@plt>
lea    0x1082(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ab(%rip),%rdi
call   1040 <puts@plt>
lea    0x10cf(%rip),%rdi
call   1040 <puts@plt>
lea    0x10f3(%rip),%rdi
call   1040 <puts@plt>
lea    0x110e(%rip),%rdi
call   1040 <puts@plt>
lea    0x1129(%rip),%rdi
call   1040 <puts@plt>
lea    0x114d(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [19 x i8] c"$xicluster_client\0A\00"
@.str.2 = [38 x i8] c"XICLUSTER> [command] [parameter...]\0A\0A\00"
@.str.3 = [13 x i8] c" [command]\0A\00"
@.str.4 = [51 x i8] c" status : cluster information\0A\00"
@.str.5 = [50 x i8] c" perf : server performance\0A\00"
@.str.6 = [51 x i8] c" process : process information\0A\00"
@.str.7 = [57 x i8] c" mem : shared memory information\0A\00"
@.str.8 = [49 x i8] c" cache : cache information\0A\00"
@.str.9 = [56 x i8] c" cd <directory name> : change current directory\0A\00"
@.str.10 = [57 x i8] c" pwd : display current directory\0A\00"
@.str.11 = [48 x i8] c" ls : file information\0A\00"
@.str.12 = [48 x i8] c" mkdir <directory name> : create directory\0A\00"
@.str.13 = [48 x i8] c" rmdir <directory name> : delete directory\0A\00"
@.str.14 = [43 x i8] c" rm <file name> : delete file\0A\00"
@.str.15 = [54 x i8] c" chmod <mode> <file name> : change file permission\0A\00"
@.str.16 = [49 x i8] c" chown <owner> <file name> : change file owner\0A\00"
@.str.17 = [49 x i8] c" chgrp <group> <file name> : change file group\0A\00"
@.str.18 = [40 x i8] c" get <file name> : file get\0A\00"
@.str.19 = [40 x i8] c" put <file name> : file put\0A\00"
@.str.20 = [49 x i8] c" exit : command line exit\0A\00"
@.str.21 = [49 x i8] c" [Ctrl]+[d] : command line exit\0A\00"
define i32 @command_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.13, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.14, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.15, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.16, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.17, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.19, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.20, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.21, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [18 x i8] c"$xicluster_client\00"
@str.22 = [37 x i8] c"XICLUSTER> [command] [parameter...]\0A\00"
@str.23 = [12 x i8] c" [command]\00"
@str.24 = [50 x i8] c" status : cluster information\00"
@str.25 = [49 x i8] c" perf : server performance\00"
@str.26 = [50 x i8] c" process : process information\00"
@str.27 = [56 x i8] c" mem : shared memory information\00"
@str.28 = [48 x i8] c" cache : cache information\00"
@str.29 = [55 x i8] c" cd <directory name> : change current directory\00"
@str.30 = [56 x i8] c" pwd : display current directory\00"
@str.31 = [47 x i8] c" ls : file information\00"
@str.32 = [47 x i8] c" mkdir <directory name> : create directory\00"
@str.33 = [47 x i8] c" rmdir <directory name> : delete directory\00"
@str.34 = [42 x i8] c" rm <file name> : delete file\00"
@str.35 = [53 x i8] c" chmod <mode> <file name> : change file permission\00"
@str.36 = [48 x i8] c" chown <owner> <file name> : change file owner\00"
@str.37 = [48 x i8] c" chgrp <group> <file name> : change file group\00"
@str.38 = [39 x i8] c" get <file name> : file get\00"
@str.39 = [39 x i8] c" put <file name> : file put\00"
@str.40 = [48 x i8] c" exit : command line exit\00"
@str.41 = [48 x i8] c" [Ctrl]+[d] : command line exit\00"
define i32 @command_help() {
%1 = tail call i32 @putchar(i32 10)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.22, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.24, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.26, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.27, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.28, i64 0, i64 0))
%10 = tail call i32 @putchar(i32 10)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.30, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.31, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.32, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.33, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.34, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.35, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.36, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.37, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.38, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.39, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.40, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.41, i64 0, i64 0))
%24 = tail call i32 @putchar(i32 10)
ret i32 0
}