#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_commands(void) {
  printf("\nCommands:\n");
  printf("Commands must be entered in the form '<command> <parameters>'.\n");
  printf("  i|nit               start a new game from standard initial "
         "position.\n");
  printf(
      "  n|ew                start a new game from a personalized position.\n");
  printf("  setboard <board>    set a personalized position to start from.\n");
  printf("  o|open|load [file]  load a played game.\n");
  printf("  s|save [file]       save a played game.\n");
  printf("  q|quit|exit         quit from edax.\n");
  printf("  u|undo              undo the last played move.\n");
  printf("  r|redo              redo the last played move.\n");
  printf("  play <moves>        play a sequence of moves.\n");
  printf("  force <moves>       force to play an opening.\n");
  printf("  go                  ask edax to play.\n");
  printf("  stop                stop edax search.\n");
  printf("  hint [n]            ask edax to search the first bestmoves.\n");
  printf(
      "  m|mode [n]          ask edax to automatically play (default = 3).\n");
  printf("  a|analyze [n]       retro-analyze the game.\n");
  printf("  ?|help              show this message.\n");
  printf("  v|version           display the version number.\n");
}


x86 assembly (clang, -O0):
<help_commands>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
lea    0xf55(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8f(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe4(%rip),%rdi
call   1030 <printf@plt>
lea    0x1003(%rip),%rdi
call   1030 <printf@plt>
lea    0x101e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1044(%rip),%rdi
call   1030 <printf@plt>
lea    0x106a(%rip),%rdi
call   1030 <printf@plt>
lea    0x108f(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b4(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d1(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ee(%rip),%rdi
call   1030 <printf@plt>
lea    0x1121(%rip),%rdi
call   1030 <printf@plt>
lea    0x115a(%rip),%rdi
call   1030 <printf@plt>
lea    0x117d(%rip),%rdi
call   1030 <printf@plt>
lea    0x119b(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help_commands>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf55(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8e(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc3(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe1(%rip),%rdi
call   1030 <puts@plt>
lea    0xfff(%rip),%rdi
call   1030 <puts@plt>
lea    0x1019(%rip),%rdi
call   1030 <puts@plt>
lea    0x103e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1063(%rip),%rdi
call   1030 <puts@plt>
lea    0x1087(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ab(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c7(%rip),%rdi
call   1030 <puts@plt>
lea    0x10e3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1115(%rip),%rdi
call   1030 <puts@plt>
lea    0x114d(%rip),%rdi
call   1030 <puts@plt>
lea    0x116f(%rip),%rdi
call   1030 <puts@plt>
lea    0x118c(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"\0ACommands:\0A\00"
@.str.1 = [64 x i8] c"Commands must be entered in the form '<command> <parameters>'.\0A\00"
@.str.2 = [72 x i8] c" i|nit start a new game from standard initial position.\0A\00"
@.str.3 = [70 x i8] c" n|ew start a new game from a personalized position.\0A\00"
@.str.4 = [66 x i8] c" setboard <board> set a personalized position to start from.\0A\00"
@.str.5 = [43 x i8] c" o|open|load [file] load a played game.\0A\00"
@.str.6 = [43 x i8] c" s|save [file] save a played game.\0A\00"
@.str.7 = [39 x i8] c" q|quit|exit quit from edax.\0A\00"
@.str.8 = [50 x i8] c" u|undo undo the last played move.\0A\00"
@.str.9 = [50 x i8] c" r|redo redo the last played move.\0A\00"
@.str.10 = [49 x i8] c" play <moves> play a sequence of moves.\0A\00"
@.str.11 = [49 x i8] c" force <moves> force to play an opening.\0A\00"
@.str.12 = [41 x i8] c" go ask edax to play.\0A\00"
@.str.13 = [41 x i8] c" stop stop edax search.\0A\00"
@.str.14 = [63 x i8] c" hint [n] ask edax to search the first bestmoves.\0A\00"
@.str.15 = [69 x i8] c" m|mode [n] ask edax to automatically play (default = 3).\0A\00"
@.str.16 = [47 x i8] c" a|analyze [n] retro-analyze the game.\0A\00"
@.str.17 = [42 x i8] c" ?|help show this message.\0A\00"
@.str.18 = [51 x i8] c" v|version display the version number.\0A\00"
define void @help_commands() {
%1 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.18, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [11 x i8] c"\0ACommands:\00"
@str.19 = [63 x i8] c"Commands must be entered in the form '<command> <parameters>'.\00"
@str.20 = [71 x i8] c" i|nit start a new game from standard initial position.\00"
@str.21 = [69 x i8] c" n|ew start a new game from a personalized position.\00"
@str.22 = [65 x i8] c" setboard <board> set a personalized position to start from.\00"
@str.23 = [42 x i8] c" o|open|load [file] load a played game.\00"
@str.24 = [42 x i8] c" s|save [file] save a played game.\00"
@str.25 = [38 x i8] c" q|quit|exit quit from edax.\00"
@str.26 = [49 x i8] c" u|undo undo the last played move.\00"
@str.27 = [49 x i8] c" r|redo redo the last played move.\00"
@str.28 = [48 x i8] c" play <moves> play a sequence of moves.\00"
@str.29 = [48 x i8] c" force <moves> force to play an opening.\00"
@str.30 = [40 x i8] c" go ask edax to play.\00"
@str.31 = [40 x i8] c" stop stop edax search.\00"
@str.32 = [62 x i8] c" hint [n] ask edax to search the first bestmoves.\00"
@str.33 = [68 x i8] c" m|mode [n] ask edax to automatically play (default = 3).\00"
@str.34 = [46 x i8] c" a|analyze [n] retro-analyze the game.\00"
@str.35 = [41 x i8] c" ?|help show this message.\00"
@str.36 = [50 x i8] c" v|version display the version number.\00"
define void @help_commands() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.19, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.20, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.21, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.22, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.23, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.24, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.25, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.26, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.27, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.28, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.29, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.30, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.31, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.32, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.33, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.34, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.35, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.36, i64 0, i64 0))
ret void
}