#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 help(void) {
  printf("\n");
  printf("SET key value               Sets <key> to <value>\n");
  printf("GET key                     Get the value identified by <key>\n");
  printf("DEL key key2 .. keyN        Delete values identified by "
         "<key>..<keyN>\n");
  printf("INC key qty                 Increment by <qty> the value idenfied by "
         "<key>, if\n");
  printf("                            no <qty> is specified increment by 1\n");
  printf("DEC key qty                 Decrement by <qty> the value idenfied by "
         "<key>, if\n");
  printf("                            no <qty> is specified decrement by 1\n");
  printf("INCF                        key qty Increment by float <qty> the "
         "value identified\n");
  printf("                            by <key>, if no <qty> is specified "
         "increment by 1.0\n");
  printf("DECF                        key qty Decrement by <qty> the value "
         "identified by <key>,\n");
  printf("                            if no <qty> is specified decrement by "
         "1.0\n");
  printf("GETP key                    Get all information of a key-value pair "
         "represented by\n");
  printf("                            <key>, like key, value, creation time "
         "and expire time\n");
  printf("APPEND key value            Append <value> to <key>\n");
  printf("PREPEND key value           Prepend <value> to <key>\n");
  printf(
      "FLUSH                       Delete all maps stored inside partitions\n");
  printf("QUIT/EXIT                   Close connection\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0x11bb(%rip),%rdi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
call   1030 <printf@plt>
lea    0xf33(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6e(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb2(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe8(%rip),%rdi
call   1030 <printf@plt>
lea    0x102c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1062(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a9(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ee(%rip),%rdi
call   1030 <printf@plt>
lea    0x1139(%rip),%rdi
call   1030 <printf@plt>
lea    0x1174(%rip),%rdi
call   1030 <printf@plt>
lea    0x11bc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1203(%rip),%rdi
call   1030 <printf@plt>
lea    0x122c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1256(%rip),%rdi
call   1030 <printf@plt>
lea    0x1290(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e3(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xece(%rip),%rdi
call   1040 <puts@plt>
lea    0xef4(%rip),%rdi
call   1040 <puts@plt>
lea    0xf26(%rip),%rdi
call   1040 <puts@plt>
lea    0xf60(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa3(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd8(%rip),%rdi
call   1040 <puts@plt>
lea    0x101b(%rip),%rdi
call   1040 <puts@plt>
lea    0x1050(%rip),%rdi
call   1040 <puts@plt>
lea    0x1096(%rip),%rdi
call   1040 <puts@plt>
lea    0x10da(%rip),%rdi
call   1040 <puts@plt>
lea    0x1124(%rip),%rdi
call   1040 <puts@plt>
lea    0x115e(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a5(%rip),%rdi
call   1040 <puts@plt>
lea    0x11eb(%rip),%rdi
call   1040 <puts@plt>
lea    0x1213(%rip),%rdi
call   1040 <puts@plt>
lea    0x123c(%rip),%rdi
call   1040 <puts@plt>
lea    0x1275(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [51 x i8] c"SET key value Sets <key> to <value>\0A\00"
@.str.2 = [63 x i8] c"GET key Get the value identified by <key>\0A\00"
@.str.3 = [71 x i8] c"DEL key key2 .. keyN Delete values identified by <key>..<keyN>\0A\00"
@.str.4 = [80 x i8] c"INC key qty Increment by <qty> the value idenfied by <key>, if\0A\00"
@.str.5 = [66 x i8] c" no <qty> is specified increment by 1\0A\00"
@.str.6 = [80 x i8] c"DEC key qty Decrement by <qty> the value idenfied by <key>, if\0A\00"
@.str.7 = [66 x i8] c" no <qty> is specified decrement by 1\0A\00"
@.str.8 = [83 x i8] c"INCF key qty Increment by float <qty> the value identified\0A\00"
@.str.9 = [81 x i8] c" by <key>, if no <qty> is specified increment by 1.0\0A\00"
@.str.10 = [87 x i8] c"DECF key qty Decrement by <qty> the value identified by <key>,\0A\00"
@.str.11 = [71 x i8] c" if no <qty> is specified decrement by 1.0\0A\00"
@.str.12 = [84 x i8] c"GETP key Get all information of a key-value pair represented by\0A\00"
@.str.13 = [83 x i8] c" <key>, like key, value, creation time and expire time\0A\00"
@.str.14 = [53 x i8] c"APPEND key value Append <value> to <key>\0A\00"
@.str.15 = [54 x i8] c"PREPEND key value Prepend <value> to <key>\0A\00"
@.str.16 = [70 x i8] c"FLUSH Delete all maps stored inside partitions\0A\00"
@.str.17 = [46 x i8] c"QUIT/EXIT Close connection\0A\00"
define void @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 ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [50 x i8] c"SET key value Sets <key> to <value>\00"
@str.18 = [62 x i8] c"GET key Get the value identified by <key>\00"
@str.19 = [70 x i8] c"DEL key key2 .. keyN Delete values identified by <key>..<keyN>\00"
@str.20 = [79 x i8] c"INC key qty Increment by <qty> the value idenfied by <key>, if\00"
@str.21 = [65 x i8] c" no <qty> is specified increment by 1\00"
@str.22 = [79 x i8] c"DEC key qty Decrement by <qty> the value idenfied by <key>, if\00"
@str.23 = [65 x i8] c" no <qty> is specified decrement by 1\00"
@str.24 = [82 x i8] c"INCF key qty Increment by float <qty> the value identified\00"
@str.25 = [80 x i8] c" by <key>, if no <qty> is specified increment by 1.0\00"
@str.26 = [86 x i8] c"DECF key qty Decrement by <qty> the value identified by <key>,\00"
@str.27 = [70 x i8] c" if no <qty> is specified decrement by 1.0\00"
@str.28 = [83 x i8] c"GETP key Get all information of a key-value pair represented by\00"
@str.29 = [82 x i8] c" <key>, like key, value, creation time and expire time\00"
@str.30 = [52 x i8] c"APPEND key value Append <value> to <key>\00"
@str.31 = [53 x i8] c"PREPEND key value Prepend <value> to <key>\00"
@str.32 = [69 x i8] c"FLUSH Delete all maps stored inside partitions\00"
@str.33 = [45 x i8] c"QUIT/EXIT Close connection\00"
define void @help() {
%1 = tail call i32 @putchar(i32 10)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.32, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.33, i64 0, i64 0))
%19 = tail call i32 @putchar(i32 10)
ret void
}