#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*/ get_cmd();
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ *strstr(char *, char *);
void help(char *arg) {
  if (strstr(arg, "status") != NULL) {
    puts("\n\x1b[35m = STATUS HELP = \x1b[0mAll informations about your "
         "character status");
    puts("\n   - status - show global informations about your character");
    puts("\n   - status inventory - show your current inventory");
  } else if (strstr(arg, "situation") != NULL) {
    puts("\n\x1b[35m = SITUATION HELP = \x1b[0mAll informations about the "
         "situation command");
    puts("\n   - situation - reexplain the current situation");
  } else if (strstr(arg, "talk") != NULL) {
    puts("\n\x1b[35m = TALK HELP = \x1b[0mAll informations about the talking");
    puts("\n   - talk 'name' - engage conversation with a character");
    puts("\n   (see 'help say')");
  } else if (strstr(arg, "say") != NULL) {
    puts("\n\x1b[35m = SAY HELP = \x1b[0mAll informations about conversation");
    puts("\n   - say goodbye - start conversation");
    puts("\n   - say *phrase with keyword* - answer (do not put '*') \n     eg "
         ": *I*'m the programmer of Jorg\n          :say I who are you?\n      "
         "    I'm Adrien !");
    puts("\n   (see 'help talk')");
  } else if (strstr(arg, "go") != NULL) {
    puts("\n\x1b[35m = GO HELP = \x1b[0mAll informations about travels");
    puts("\n   - go 'place' - go to the indicate place");
    puts("\n   - go back - get back to the last place");
  } else if (strstr(arg, "save") != NULL) {
    puts("\n\x1b[35m = SAVE HELP = \x1b[0mAll informations about travels");
    puts("\n   Save files are located in *gamedir*/saves");
    puts("\n   - save 'savename' - save the current game");
    puts("\n   (see 'help load')");
  } else if (strstr(arg, "load") != NULL) {
    puts("\n\x1b[35m = LOAD HELP = \x1b[0mAll informations about travels");
    puts("\n   Save files are located in *gamedir*/saves");
    puts("\n   - load 'savename' - loads a saved game");
    puts("\n   (see 'help save')");
  } else if (strstr(arg, "exit") != NULL) {
    puts("\n\x1b[35m = EXIT HELP = \x1b[0mAll informations about quiting the "
         "game");
    puts("\n   - exit - ask you a confirmation and exit the game");
    puts("\n   - exit shop - exit the actual shop");
    puts("\n   (see 'help save' and 'help load')");
  } else {
    puts("\n\x1b[35m = HELP = \x1b[0mList of all commands :");
    puts("\n   - help 'command name' - show all infos about a command, e.g : "
         "'help say'");
    puts("\n   - status (inventory) - show all infos about the current "
         "character, 'status inventory' shows your inventory");
    puts("\n   - equip 'index' - equip the selected item in wepon or armor "
         "slot, 'index' is the item index's in your inventory");
    puts("\n   - situation - reexplain the current situation");
    puts("\n   - talk 'name' - engage conversation with a character");
    puts("\n   - say 'keyword' - the message should contain keyword");
    puts("\n   - buy 'index' 'quantity' - use this to buy items in shops, "
         "'index' is the item's index in the shop table");
    puts("\n   - sell 'index' 'quantity' - use this to sell items in shops, "
         "'index' is the item's index in your inventory");
    puts("\n   - go 'place' - the message should contain place name");
    puts("\n   - save 'savename' - save the current game");
    puts("\n   - load 'savename' - loads a saved game");
    puts("\n   - exit - exit the game");
  }
  get_cmd();
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xefa(%rip),%rsi
call   1050 <strstr@plt>
cmp    $0x0,%rax
je     117f <help+0x4f>
lea    0xea3(%rip),%rdi
call   1030 <puts@plt>
lea    0xedf(%rip),%rdi
call   1030 <puts@plt>
lea    0xf10(%rip),%rdi
call   1030 <puts@plt>
jmp    1437 <help+0x307>
mov    -0x8(%rbp),%rdi
lea    0xfa3(%rip),%rsi
call   1050 <strstr@plt>
cmp    $0x0,%rax
je     11b6 <help+0x86>
lea    0xf1a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf59(%rip),%rdi
call   1030 <puts@plt>
jmp    1432 <help+0x302>
mov    -0x8(%rbp),%rdi
lea    0xf76(%rip),%rsi
call   1050 <strstr@plt>
cmp    $0x0,%rax
je     11f9 <help+0xc9>
lea    0xf65(%rip),%rdi
call   1030 <puts@plt>
lea    0xf95(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc2(%rip),%rdi
call   1030 <puts@plt>
jmp    142d <help+0x2fd>
mov    -0x8(%rbp),%rdi
lea    0xfc2(%rip),%rsi
call   1050 <strstr@plt>
cmp    $0x0,%rax
je     1248 <help+0x118>
lea    0xfb0(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe0(%rip),%rdi
call   1030 <puts@plt>
lea    0xffb(%rip),%rdi
call   1030 <puts@plt>
lea    0x1086(%rip),%rdi
call   1030 <puts@plt>
jmp    1428 <help+0x2f8>
mov    -0x8(%rbp),%rdi
lea    0x1087(%rip),%rsi
call   1050 <strstr@plt>
cmp    $0x0,%rax
je     128b <help+0x15b>
lea    0x1074(%rip),%rdi
call   1030 <puts@plt>
lea    0x109e(%rip),%rdi
call   1030 <puts@plt>
lea    0x10be(%rip),%rdi
call   1030 <puts@plt>
jmp    1423 <help+0x2f3>
mov    -0x8(%rbp),%rdi
lea    0x10d4(%rip),%rsi
call   1050 <strstr@plt>
cmp    $0x0,%rax
je     12da <help+0x1aa>
lea    0x10c3(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ef(%rip),%rdi
call   1030 <puts@plt>
lea    0x1111(%rip),%rdi
call   1030 <puts@plt>
lea    0x1133(%rip),%rdi
call   1030 <puts@plt>
jmp    141e <help+0x2ee>
mov    -0x8(%rbp),%rdi
lea    0x1134(%rip),%rsi
call   1050 <strstr@plt>
cmp    $0x0,%rax
je     1329 <help+0x1f9>
lea    0x1123(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a0(%rip),%rdi
call   1030 <puts@plt>
lea    0x1143(%rip),%rdi
call   1030 <puts@plt>
lea    0x1162(%rip),%rdi
call   1030 <puts@plt>
jmp    1419 <help+0x2e9>
mov    -0x8(%rbp),%rdi
lea    0x1163(%rip),%rsi
call   1050 <strstr@plt>
cmp    $0x0,%rax
je     1378 <help+0x248>
lea    0x1152(%rip),%rdi
call   1030 <puts@plt>
lea    0x1187(%rip),%rdi
call   1030 <puts@plt>
lea    0x11b1(%rip),%rdi
call   1030 <puts@plt>
lea    0x11cc(%rip),%rdi
call   1030 <puts@plt>
jmp    1414 <help+0x2e4>
lea    0x11e1(%rip),%rdi
call   1030 <puts@plt>
lea    0x1200(%rip),%rdi
call   1030 <puts@plt>
lea    0x1241(%rip),%rdi
call   1030 <puts@plt>
lea    0x12a4(%rip),%rdi
call   1030 <puts@plt>
lea    0xd56(%rip),%rdi
call   1030 <puts@plt>
lea    0xdbd(%rip),%rdi
call   1030 <puts@plt>
lea    0x12f4(%rip),%rdi
call   1030 <puts@plt>
lea    0x1321(%rip),%rdi
call   1030 <puts@plt>
lea    0x1382(%rip),%rdi
call   1030 <puts@plt>
lea    0x13e5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfde(%rip),%rdi
call   1030 <puts@plt>
lea    0x1053(%rip),%rdi
call   1030 <puts@plt>
lea    0x13fa(%rip),%rdi
call   1030 <puts@plt>
jmp    1419 <help+0x2e9>
jmp    141e <help+0x2ee>
jmp    1423 <help+0x2f3>
jmp    1428 <help+0x2f8>
jmp    142d <help+0x2fd>
jmp    1432 <help+0x302>
jmp    1437 <help+0x307>
mov    $0x0,%al
call   1040 <get_cmd@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%rbx
lea    0xf02(%rip),%rsi
call   1050 <strstr@plt>
test   %rax,%rax
je     1168 <help+0x38>
lea    0xf35(%rip),%rbx
lea    0xef1(%rip),%r14
lea    0xea2(%rip),%r15
mov    %r15,%rdi
call   1030 <puts@plt>
jmp    118a <help+0x5a>
lea    0xfbe(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strstr@plt>
test   %rax,%rax
je     11a6 <help+0x76>
lea    0xf82(%rip),%rbx
lea    0xf30(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <get_cmd@plt>
lea    0xf8a(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strstr@plt>
test   %rax,%rax
je     11d1 <help+0xa1>
lea    0xff0(%rip),%rbx
lea    0xfb0(%rip),%r14
lea    0xf6d(%rip),%r15
jmp    115e <help+0x2e>
lea    0xfee(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strstr@plt>
test   %rax,%rax
je     120b <help+0xdb>
lea    0x10d8(%rip),%rbx
lea    0x103a(%rip),%r14
lea    0x100c(%rip),%r15
lea    0xfc9(%rip),%rdi
call   1030 <puts@plt>
jmp    115e <help+0x2e>
lea    0x10c8(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strstr@plt>
test   %rax,%rax
je     1239 <help+0x109>
lea    0x1119(%rip),%rbx
lea    0x10e6(%rip),%r14
lea    0x10a9(%rip),%r15
jmp    115e <help+0x2e>
lea    0x112a(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strstr@plt>
lea    0x1158(%rip),%r15
test   %rax,%rax
je     126b <help+0x13b>
lea    0x11a8(%rip),%rbx
lea    0x1173(%rip),%r14
lea    0x1106(%rip),%rdi
jmp    1201 <help+0xd1>
lea    0x11a7(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strstr@plt>
lea    0x11d5(%rip),%r14
test   %rax,%rax
je     1299 <help+0x169>
lea    0x11f4(%rip),%rbx
lea    0x118a(%rip),%rdi
jmp    1201 <help+0xd1>
lea    0x11f7(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strstr@plt>
test   %rax,%rax
je     12ce <help+0x19e>
lea    0x1286(%rip),%rbx
lea    0x1258(%rip),%r14
lea    0x121b(%rip),%r15
lea    0x11d3(%rip),%rdi
jmp    1201 <help+0xd1>
lea    0x128b(%rip),%rdi
call   1030 <puts@plt>
lea    0x12aa(%rip),%rdi
call   1030 <puts@plt>
lea    0x12eb(%rip),%rdi
call   1030 <puts@plt>
lea    0x134e(%rip),%rdi
call   1030 <puts@plt>
lea    0xe00(%rip),%rdi
call   1030 <puts@plt>
lea    0xe67(%rip),%rdi
call   1030 <puts@plt>
lea    0x139e(%rip),%rdi
call   1030 <puts@plt>
lea    0x13cb(%rip),%rdi
call   1030 <puts@plt>
lea    0x142c(%rip),%rdi
call   1030 <puts@plt>
lea    0x14c8(%rip),%rbx
lea    0x108d(%rip),%r15
lea    0x1481(%rip),%rdi
jmp    1201 <help+0xd1>

LLVM IR (-O0):
@.str = [7 x i8] c"status\00"
@.str.1 = [72 x i8] c"\0A\1B[35m = STATUS HELP = \1B[0mAll informations about your character status\00"
@.str.2 = [61 x i8] c"\0A - status - show global informations about your character\00"
@.str.3 = [53 x i8] c"\0A - status inventory - show your current inventory\00"
@.str.4 = [10 x i8] c"situation\00"
@.str.5 = [75 x i8] c"\0A\1B[35m = SITUATION HELP = \1B[0mAll informations about the situation command\00"
@.str.6 = [50 x i8] c"\0A - situation - reexplain the current situation\00"
@.str.7 = [5 x i8] c"talk\00"
@.str.8 = [60 x i8] c"\0A\1B[35m = TALK HELP = \1B[0mAll informations about the talking\00"
@.str.9 = [57 x i8] c"\0A - talk 'name' - engage conversation with a character\00"
@.str.10 = [21 x i8] c"\0A (see 'help say')\00"
@.str.11 = [4 x i8] c"say\00"
@.str.12 = [60 x i8] c"\0A\1B[35m = SAY HELP = \1B[0mAll informations about conversation\00"
@.str.13 = [39 x i8] c"\0A - say goodbye - start conversation\00"
@.str.14 = [151 x i8] c"\0A - say *phrase with keyword* - answer (do not put '*') \0A eg : *I*'m the programmer of Jorg\0A :say I who are you?\0A I'm Adrien !\00"
@.str.15 = [22 x i8] c"\0A (see 'help talk')\00"
@.str.16 = [3 x i8] c"go\00"
@.str.17 = [54 x i8] c"\0A\1B[35m = GO HELP = \1B[0mAll informations about travels\00"
@.str.18 = [44 x i8] c"\0A - go 'place' - go to the indicate place\00"
@.str.19 = [43 x i8] c"\0A - go back - get back to the last place\00"
@.str.20 = [5 x i8] c"save\00"
@.str.21 = [56 x i8] c"\0A\1B[35m = SAVE HELP = \1B[0mAll informations about travels\00"
@.str.22 = [46 x i8] c"\0A Save files are located in *gamedir*/saves\00"
@.str.23 = [46 x i8] c"\0A - save 'savename' - save the current game\00"
@.str.24 = [22 x i8] c"\0A (see 'help load')\00"
@.str.25 = [5 x i8] c"load\00"
@.str.26 = [56 x i8] c"\0A\1B[35m = LOAD HELP = \1B[0mAll informations about travels\00"
@.str.27 = [43 x i8] c"\0A - load 'savename' - loads a saved game\00"
@.str.28 = [22 x i8] c"\0A (see 'help save')\00"
@.str.29 = [5 x i8] c"exit\00"
@.str.30 = [65 x i8] c"\0A\1B[35m = EXIT HELP = \1B[0mAll informations about quiting the game\00"
@.str.31 = [54 x i8] c"\0A - exit - ask you a confirmation and exit the game\00"
@.str.32 = [39 x i8] c"\0A - exit shop - exit the actual shop\00"
@.str.33 = [38 x i8] c"\0A (see 'help save' and 'help load')\00"
@.str.34 = [43 x i8] c"\0A\1B[35m = HELP = \1B[0mList of all commands :\00"
@.str.35 = [77 x i8] c"\0A - help 'command name' - show all infos about a command, e.g : 'help say'\00"
@.str.36 = [111 x i8] c"\0A - status (inventory) - show all infos about the current character, 'status inventory' shows your inventory\00"
@.str.37 = [116 x i8] c"\0A - equip 'index' - equip the selected item in wepon or armor slot, 'index' is the item index's in your inventory\00"
@.str.38 = [57 x i8] c"\0A - say 'keyword' - the message should contain keyword\00"
@.str.39 = [109 x i8] c"\0A - buy 'index' 'quantity' - use this to buy items in shops, 'index' is the item's index in the shop table\00"
@.str.40 = [111 x i8] c"\0A - sell 'index' 'quantity' - use this to sell items in shops, 'index' is the item's index in your inventory\00"
@.str.41 = [57 x i8] c"\0A - go 'place' - the message should contain place name\00"
@.str.42 = [27 x i8] c"\0A - exit - exit the game\00"
define void @help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32* @strstr(i8* %3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%5 = icmp ne i32* %4, null
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = call i32 @puts(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
br label %90
10: ; preds = %1
%11 = load i8*, i8** %2
%12 = call i32* @strstr(i8* %11, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%13 = icmp ne i32* %12, null
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = call i32 @puts(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
br label %89
17: ; preds = %10
%18 = load i8*, i8** %2
%19 = call i32* @strstr(i8* %18, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%20 = icmp ne i32* %19, null
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = call i32 @puts(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%23 = call i32 @puts(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0))
%24 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
br label %88
25: ; preds = %17
%26 = load i8*, i8** %2
%27 = call i32* @strstr(i8* %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%28 = icmp ne i32* %27, null
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = call i32 @puts(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.12, i64 0, i64 0))
%31 = call i32 @puts(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.13, i64 0, i64 0))
%32 = call i32 @puts(i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str.14, i64 0, i64 0))
%33 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0))
br label %87
34: ; preds = %25
%35 = load i8*, i8** %2
%36 = call i32* @strstr(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
%37 = icmp ne i32* %36, null
br i1 %37, label %38, label %42
38: ; preds = %34
%39 = call i32 @puts(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.17, i64 0, i64 0))
%40 = call i32 @puts(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.18, i64 0, i64 0))
%41 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.19, i64 0, i64 0))
br label %86
42: ; preds = %34
%43 = load i8*, i8** %2
%44 = call i32* @strstr(i8* %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%45 = icmp ne i32* %44, null
br i1 %45, label %46, label %51
46: ; preds = %42
%47 = call i32 @puts(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.21, i64 0, i64 0))
%48 = call i32 @puts(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.22, i64 0, i64 0))
%49 = call i32 @puts(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.23, i64 0, i64 0))
%50 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.24, i64 0, i64 0))
br label %85
51: ; preds = %42
%52 = load i8*, i8** %2
%53 = call i32* @strstr(i8* %52, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0))
%54 = icmp ne i32* %53, null
br i1 %54, label %55, label %60
55: ; preds = %51
%56 = call i32 @puts(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.26, i64 0, i64 0))
%57 = call i32 @puts(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.22, i64 0, i64 0))
%58 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.27, i64 0, i64 0))
%59 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.28, i64 0, i64 0))
br label %84
60: ; preds = %51
%61 = load i8*, i8** %2
%62 = call i32* @strstr(i8* %61, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0))
%63 = icmp ne i32* %62, null
br i1 %63, label %64, label %69
64: ; preds = %60
%65 = call i32 @puts(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.30, i64 0, i64 0))
%66 = call i32 @puts(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.31, i64 0, i64 0))
%67 = call i32 @puts(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.32, i64 0, i64 0))
%68 = call i32 @puts(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.33, i64 0, i64 0))
br label %83
69: ; preds = %60
%70 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.34, i64 0, i64 0))
%71 = call i32 @puts(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.35, i64 0, i64 0))
%72 = call i32 @puts(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.36, i64 0, i64 0))
%73 = call i32 @puts(i8* getelementptr inbounds ([116 x i8], [116 x i8]* @.str.37, i64 0, i64 0))
%74 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%75 = call i32 @puts(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0))
%76 = call i32 @puts(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.38, i64 0, i64 0))
%77 = call i32 @puts(i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str.39, i64 0, i64 0))
%78 = call i32 @puts(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.40, i64 0, i64 0))
%79 = call i32 @puts(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.41, i64 0, i64 0))
%80 = call i32 @puts(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.23, i64 0, i64 0))
%81 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.27, i64 0, i64 0))
%82 = call i32 @puts(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.42, i64 0, i64 0))
br label %83
83: ; preds = %69, %64
br label %84
84: ; preds = %83, %55
br label %85
85: ; preds = %84, %46
br label %86
86: ; preds = %85, %38
br label %87
87: ; preds = %86, %29
br label %88
88: ; preds = %87, %21
br label %89
89: ; preds = %88, %14
br label %90
90: ; preds = %89, %6
%91 = call i32 (...) @get_cmd()
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"status\00"
@.str.1 = [72 x i8] c"\0A\1B[35m = STATUS HELP = \1B[0mAll informations about your character status\00"
@.str.2 = [61 x i8] c"\0A - status - show global informations about your character\00"
@.str.3 = [53 x i8] c"\0A - status inventory - show your current inventory\00"
@.str.4 = [10 x i8] c"situation\00"
@.str.5 = [75 x i8] c"\0A\1B[35m = SITUATION HELP = \1B[0mAll informations about the situation command\00"
@.str.6 = [50 x i8] c"\0A - situation - reexplain the current situation\00"
@.str.7 = [5 x i8] c"talk\00"
@.str.8 = [60 x i8] c"\0A\1B[35m = TALK HELP = \1B[0mAll informations about the talking\00"
@.str.9 = [57 x i8] c"\0A - talk 'name' - engage conversation with a character\00"
@.str.10 = [21 x i8] c"\0A (see 'help say')\00"
@.str.11 = [4 x i8] c"say\00"
@.str.12 = [60 x i8] c"\0A\1B[35m = SAY HELP = \1B[0mAll informations about conversation\00"
@.str.13 = [39 x i8] c"\0A - say goodbye - start conversation\00"
@.str.14 = [151 x i8] c"\0A - say *phrase with keyword* - answer (do not put '*') \0A eg : *I*'m the programmer of Jorg\0A :say I who are you?\0A I'm Adrien !\00"
@.str.15 = [22 x i8] c"\0A (see 'help talk')\00"
@.str.16 = [3 x i8] c"go\00"
@.str.17 = [54 x i8] c"\0A\1B[35m = GO HELP = \1B[0mAll informations about travels\00"
@.str.18 = [44 x i8] c"\0A - go 'place' - go to the indicate place\00"
@.str.19 = [43 x i8] c"\0A - go back - get back to the last place\00"
@.str.20 = [5 x i8] c"save\00"
@.str.21 = [56 x i8] c"\0A\1B[35m = SAVE HELP = \1B[0mAll informations about travels\00"
@.str.22 = [46 x i8] c"\0A Save files are located in *gamedir*/saves\00"
@.str.23 = [46 x i8] c"\0A - save 'savename' - save the current game\00"
@.str.24 = [22 x i8] c"\0A (see 'help load')\00"
@.str.25 = [5 x i8] c"load\00"
@.str.26 = [56 x i8] c"\0A\1B[35m = LOAD HELP = \1B[0mAll informations about travels\00"
@.str.27 = [43 x i8] c"\0A - load 'savename' - loads a saved game\00"
@.str.28 = [22 x i8] c"\0A (see 'help save')\00"
@.str.29 = [5 x i8] c"exit\00"
@.str.30 = [65 x i8] c"\0A\1B[35m = EXIT HELP = \1B[0mAll informations about quiting the game\00"
@.str.31 = [54 x i8] c"\0A - exit - ask you a confirmation and exit the game\00"
@.str.32 = [39 x i8] c"\0A - exit shop - exit the actual shop\00"
@.str.33 = [38 x i8] c"\0A (see 'help save' and 'help load')\00"
@.str.34 = [43 x i8] c"\0A\1B[35m = HELP = \1B[0mList of all commands :\00"
@.str.35 = [77 x i8] c"\0A - help 'command name' - show all infos about a command, e.g : 'help say'\00"
@.str.36 = [111 x i8] c"\0A - status (inventory) - show all infos about the current character, 'status inventory' shows your inventory\00"
@.str.37 = [116 x i8] c"\0A - equip 'index' - equip the selected item in wepon or armor slot, 'index' is the item index's in your inventory\00"
@.str.38 = [57 x i8] c"\0A - say 'keyword' - the message should contain keyword\00"
@.str.39 = [109 x i8] c"\0A - buy 'index' 'quantity' - use this to buy items in shops, 'index' is the item's index in the shop table\00"
@.str.40 = [111 x i8] c"\0A - sell 'index' 'quantity' - use this to sell items in shops, 'index' is the item's index in your inventory\00"
@.str.41 = [57 x i8] c"\0A - go 'place' - the message should contain place name\00"
@.str.42 = [27 x i8] c"\0A - exit - exit the game\00"
define void @help(i8* %0) {
%2 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32* %2, null
br i1 %3, label %4, label %41
4: ; preds = %1
%5 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = icmp eq i32* %5, null
br i1 %6, label %7, label %46
7: ; preds = %4
%8 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%9 = icmp eq i32* %8, null
br i1 %9, label %10, label %41
10: ; preds = %7
%11 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%12 = icmp eq i32* %11, null
br i1 %12, label %13, label %35
13: ; preds = %10
%14 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %41
16: ; preds = %13
%17 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%18 = icmp eq i32* %17, null
br i1 %18, label %19, label %35
19: ; preds = %16
%20 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0))
%21 = icmp eq i32* %20, null
br i1 %21, label %22, label %35
22: ; preds = %19
%23 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0))
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %35
25: ; preds = %22
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.34, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.35, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([111 x i8], [111 x i8]* @.str.36, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([116 x i8], [116 x i8]* @.str.37, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0))
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.38, i64 0, i64 0))
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([109 x i8], [109 x i8]* @.str.39, i64 0, i64 0))
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([111 x i8], [111 x i8]* @.str.40, i64 0, i64 0))
br label %35
35: ; preds = %22, %19, %16, %10, %25
%36 = phi i8* [ getelementptr inbounds ([57 x i8], [57 x i8]* @.str.41, i64 0, i64 0), %25 ], [ getelementptr inbounds ([60 x i8], [60 x i8]* @.str.12, i64 0, i64 0), %10 ], [ getelementptr inbounds ([56 x i8], [56 x i8]* @.str.21, i64 0, i64 0), %16 ], [ getelementptr inbounds ([56 x i8], [56 x i8]* @.str.26, i64 0, i64 0), %19 ], [ getelementptr inbounds ([65 x i8], [65 x i8]* @.str.30, i64 0, i64 0), %22 ]
%37 = phi i8* [ getelementptr inbounds ([46 x i8], [46 x i8]* @.str.23, i64 0, i64 0), %25 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.13, i64 0, i64 0), %10 ], [ getelementptr inbounds ([46 x i8], [46 x i8]* @.str.22, i64 0, i64 0), %16 ], [ getelementptr inbounds ([46 x i8], [46 x i8]* @.str.22, i64 0, i64 0), %19 ], [ getelementptr inbounds ([54 x i8], [54 x i8]* @.str.31, i64 0, i64 0), %22 ]
%38 = phi i8* [ getelementptr inbounds ([43 x i8], [43 x i8]* @.str.27, i64 0, i64 0), %25 ], [ getelementptr inbounds ([151 x i8], [151 x i8]* @.str.14, i64 0, i64 0), %10 ], [ getelementptr inbounds ([46 x i8], [46 x i8]* @.str.23, i64 0, i64 0), %16 ], [ getelementptr inbounds ([43 x i8], [43 x i8]* @.str.27, i64 0, i64 0), %19 ], [ getelementptr inbounds ([39 x i8], [39 x i8]* @.str.32, i64 0, i64 0), %22 ]
%39 = phi i8* [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.42, i64 0, i64 0), %25 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), %10 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.24, i64 0, i64 0), %16 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.28, i64 0, i64 0), %19 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.33, i64 0, i64 0), %22 ]
%40 = tail call i32 @puts(i8* dereferenceable(1) %36)
br label %41
41: ; preds = %35, %13, %7, %1
%42 = phi i8* [ getelementptr inbounds ([72 x i8], [72 x i8]* @.str.1, i64 0, i64 0), %1 ], [ getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0), %7 ], [ getelementptr inbounds ([54 x i8], [54 x i8]* @.str.17, i64 0, i64 0), %13 ], [ %37, %35 ]
%43 = phi i8* [ getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0), %1 ], [ getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0), %7 ], [ getelementptr inbounds ([44 x i8], [44 x i8]* @.str.18, i64 0, i64 0), %13 ], [ %38, %35 ]
%44 = phi i8* [ getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), %1 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), %7 ], [ getelementptr inbounds ([43 x i8], [43 x i8]* @.str.19, i64 0, i64 0), %13 ], [ %39, %35 ]
%45 = tail call i32 @puts(i8* dereferenceable(1) %42)
br label %46
46: ; preds = %41, %4
%47 = phi i8* [ getelementptr inbounds ([75 x i8], [75 x i8]* @.str.5, i64 0, i64 0), %4 ], [ %43, %41 ]
%48 = phi i8* [ getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0), %4 ], [ %44, %41 ]
%49 = tail call i32 @puts(i8* dereferenceable(1) %47)
%50 = tail call i32 @puts(i8* dereferenceable(1) %48)
%51 = tail call i32 (...) @get_cmd()
ret void
}