#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*/ exit(int);
int /*<<< orphan*/ printf(char *);
void help() {
  printf("Usage:\n");
  printf("  etcjs_cli [ -k key -o owner ] -a action [ -c configuration ]");
  printf(" [ -h ]\n");
  printf("\t[ -n hostname -p port ] [ -d data ] \n");
  printf("Options:\n");
  printf("  -o owner\t\tthe owner of the configurations\n");
  printf("  -k key\t\tthe owner key\n");
  printf("  -a action\t\tcreate set get list, ");
  printf("(only 1st letter matters) \n\t\t\tavailable actions: \n");
  printf("\t\t\t  c: create owner\n");
  printf("\t\t\t  g: get configuration\n");
  printf("\t\t\t  S: get configuration stat\n");
  printf("\t\t\t  s: set configuration\n");
  printf("\t\t\t  l: list configurations\n");
  printf("  -c configuration\tthe name of the configuration\n");
  printf("  -h help\t\tdisplay this help\n");
  printf("  -n hostname\t\tthe server name (default is localhost)\n");
  printf("  -p port\t\tthe server port (default is 443)\n");
  printf("  -d data\t\tthe data to post (with set action)\n");
  printf("  \t\t\tif not specified will create a blank one\n");
  printf("Examples:\n");
  printf("  etcjs_cli -o john -k sesame -a c -n etc.gpisc.in\n");
  printf("\twill create the user john with password sesame on etc.gpisc.in\n");
  printf("  etcjs_cli -o john -k sesame -a s -c myconf -d blah -p 1337\n");
  printf("\twill set the configuration named myconf for user john\n");
  printf("\ton server running on localhost on port 1337\n");
  exit(1);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf48(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf86(%rip),%rdi
call   1030 <printf@plt>
lea    0xf90(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9f(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb3(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd3(%rip),%rdi
call   1030 <printf@plt>
lea    0xff9(%rip),%rdi
call   1030 <printf@plt>
lea    0x100b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1036(%rip),%rdi
call   1030 <printf@plt>
lea    0x1057(%rip),%rdi
call   1030 <printf@plt>
lea    0x107a(%rip),%rdi
call   1030 <printf@plt>
lea    0x109d(%rip),%rdi
call   1030 <printf@plt>
lea    0x109c(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c4(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f9(%rip),%rdi
call   1030 <printf@plt>
lea    0x112b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1157(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xf2a(%rip),%rdi
call   1030 <puts@plt>
lea    0xebc(%rip),%rdi
call   1040 <printf@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xf15(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4c(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb3(%rip),%rdi
call   1040 <printf@plt>
lea    0xf4c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf72(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf89(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9c(%rip),%rdi
call   1030 <puts@plt>
lea    0xfaa(%rip),%rdi
call   1030 <puts@plt>
lea    0xfba(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdf(%rip),%rdi
call   1030 <puts@plt>
lea    0xff0(%rip),%rdi
call   1030 <puts@plt>
lea    0x101a(%rip),%rdi
call   1030 <puts@plt>
lea    0x103a(%rip),%rdi
call   1030 <puts@plt>
lea    0x105c(%rip),%rdi
call   1030 <puts@plt>
lea    0x107e(%rip),%rdi
call   1030 <puts@plt>
lea    0x107c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a3(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d7(%rip),%rdi
call   1030 <puts@plt>
lea    0x1108(%rip),%rdi
call   1030 <puts@plt>
lea    0x1133(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [63 x i8] c" etcjs_cli [ -k key -o owner ] -a action [ -c configuration ]\00"
@.str.2 = [9 x i8] c" [ -h ]\0A\00"
@.str.3 = [39 x i8] c"\09[ -n hostname -p port ] [ -d data ] \0A\00"
@.str.4 = [10 x i8] c"Options:\0A\00"
@.str.5 = [45 x i8] c" -o owner\09\09the owner of the configurations\0A\00"
@.str.6 = [25 x i8] c" -k key\09\09the owner key\0A\00"
@.str.7 = [35 x i8] c" -a action\09\09create set get list, \00"
@.str.8 = [51 x i8] c"(only 1st letter matters) \0A\09\09\09available actions: \0A\00"
@.str.9 = [22 x i8] c"\09\09\09 c: create owner\0A\00"
@.str.10 = [27 x i8] c"\09\09\09 g: get configuration\0A\00"
@.str.11 = [32 x i8] c"\09\09\09 S: get configuration stat\0A\00"
@.str.12 = [27 x i8] c"\09\09\09 s: set configuration\0A\00"
@.str.13 = [29 x i8] c"\09\09\09 l: list configurations\0A\00"
@.str.14 = [50 x i8] c" -c configuration\09the name of the configuration\0A\00"
@.str.15 = [30 x i8] c" -h help\09\09display this help\0A\00"
@.str.16 = [55 x i8] c" -n hostname\09\09the server name (default is localhost)\0A\00"
@.str.17 = [45 x i8] c" -p port\09\09the server port (default is 443)\0A\00"
@.str.18 = [47 x i8] c" -d data\09\09the data to post (with set action)\0A\00"
@.str.19 = [47 x i8] c" \09\09\09if not specified will create a blank one\0A\00"
@.str.20 = [11 x i8] c"Examples:\0A\00"
@.str.21 = [52 x i8] c" etcjs_cli -o john -k sesame -a c -n etc.gpisc.in\0A\00"
@.str.22 = [65 x i8] c"\09will create the user john with password sesame on etc.gpisc.in\0A\00"
@.str.23 = [62 x i8] c" etcjs_cli -o john -k sesame -a s -c myconf -d blah -p 1337\0A\00"
@.str.24 = [56 x i8] c"\09will set the configuration named myconf for user john\0A\00"
@.str.25 = [46 x i8] c"\09on server running on localhost on port 1337\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str.1 = [63 x i8] c" etcjs_cli [ -k key -o owner ] -a action [ -c configuration ]\00"
@.str.7 = [35 x i8] c" -a action\09\09create set get list, \00"
@str = [7 x i8] c"Usage:\00"
@str.26 = [8 x i8] c" [ -h ]\00"
@str.27 = [38 x i8] c"\09[ -n hostname -p port ] [ -d data ] \00"
@str.28 = [9 x i8] c"Options:\00"
@str.29 = [44 x i8] c" -o owner\09\09the owner of the configurations\00"
@str.30 = [24 x i8] c" -k key\09\09the owner key\00"
@str.31 = [50 x i8] c"(only 1st letter matters) \0A\09\09\09available actions: \00"
@str.32 = [21 x i8] c"\09\09\09 c: create owner\00"
@str.33 = [26 x i8] c"\09\09\09 g: get configuration\00"
@str.34 = [31 x i8] c"\09\09\09 S: get configuration stat\00"
@str.35 = [26 x i8] c"\09\09\09 s: set configuration\00"
@str.36 = [28 x i8] c"\09\09\09 l: list configurations\00"
@str.37 = [49 x i8] c" -c configuration\09the name of the configuration\00"
@str.38 = [29 x i8] c" -h help\09\09display this help\00"
@str.39 = [54 x i8] c" -n hostname\09\09the server name (default is localhost)\00"
@str.40 = [44 x i8] c" -p port\09\09the server port (default is 443)\00"
@str.41 = [46 x i8] c" -d data\09\09the data to post (with set action)\00"
@str.42 = [46 x i8] c" \09\09\09if not specified will create a blank one\00"
@str.43 = [10 x i8] c"Examples:\00"
@str.44 = [51 x i8] c" etcjs_cli -o john -k sesame -a c -n etc.gpisc.in\00"
@str.45 = [64 x i8] c"\09will create the user john with password sesame on etc.gpisc.in\00"
@str.46 = [61 x i8] c" etcjs_cli -o john -k sesame -a s -c myconf -d blah -p 1337\00"
@str.47 = [55 x i8] c"\09will set the configuration named myconf for user john\00"
@str.48 = [45 x i8] c"\09on server running on localhost on port 1337\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.26, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.27, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.28, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.29, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.30, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.31, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.32, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.33, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.34, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.35, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.36, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.37, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.38, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.39, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.40, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.41, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.42, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.43, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.44, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.45, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.46, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.47, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.48, i64 0, i64 0))
%27 = tail call i32 @exit(i32 1)
unreachable
}