#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 _show_help(void) {
  printf("Modes:\n");
  printf("  %s           - Launch interactive mode\n", "my_basic_bin");
  printf("  %s *.*       - Load and run a file\n", "my_basic_bin");
  printf("  %s -e \"expr\" - Evaluate an expression\n", "my_basic_bin");
  printf("\n");
  printf("Options:\n");
  printf("  -h         - Show help information\n");
  printf("  -p n       - Set memory pool threashold, n is size in bytes\n");
  printf("  -f \"dirs\"  - Set importing directories, separated by \";\" with "
         "more than one\n");
  printf("\n");
  printf("Interactive commands:\n");
  printf("  HELP  - View help information\n");
  printf("  CLS   - Clear the screen\n");
  printf("  NEW   - Clear the current program\n");
  printf("  RUN   - Run the current program\n");
  printf("  BYE   - Quit the interpreter\n");
  printf("  LIST  - List the current program\n");
  printf("          Usage: LIST [l [n]], l is start line number, n is line "
         "count\n");
  printf("  EDIT  - Edit (modify/insert/remove) a line in current program\n");
  printf("          Usage: EDIT n, n is line number\n");
  printf("                 EDIT -i n, insert a line before a given line\n");
  printf("                 EDIT -r n, remove a line\n");
  printf("  LOAD  - Load a file to the current program\n");
  printf("          Usage: LOAD *.*\n");
  printf("  SAVE  - Save the current program to a file\n");
  printf("          Usage: SAVE *.*\n");
  printf("  KILL  - Delete a file\n");
  printf("          Usage: KILL *.*\n");
  printf("  DIR   - List all files in a directory\n");
  printf("          Usage: DIR [p], p is a directory path\n");
}


x86 assembly (clang, -O0):
<_show_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
lea    0xf02(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
lea    0xeed(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf12(%rip),%rdi
lea    0xed8(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1229(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11e3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfe6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x100e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1048(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x107b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1098(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10c9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10e6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1106(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1113(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1133(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1140(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x114b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1158(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1173(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<_show_help>:
push   %rbx
lea    0xf4e(%rip),%rdi
call   1040 <puts@plt>
lea    0xebc(%rip),%rdi
lea    0xedf(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xedb(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xef0(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf05(%rip),%rdi
call   1040 <puts@plt>
lea    0xf02(%rip),%rdi
call   1040 <puts@plt>
lea    0xf1b(%rip),%rdi
call   1040 <puts@plt>
lea    0xf4d(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf85(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8f(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa3(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb2(%rip),%rdi
call   1040 <puts@plt>
lea    0xfca(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe0(%rip),%rdi
call   1040 <puts@plt>
lea    0xff3(%rip),%rdi
call   1040 <puts@plt>
lea    0x100a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1045(%rip),%rdi
call   1040 <puts@plt>
lea    0x1079(%rip),%rdi
call   1040 <puts@plt>
lea    0x1097(%rip),%rdi
call   1040 <puts@plt>
lea    0x10c9(%rip),%rdi
call   1040 <puts@plt>
lea    0x10e7(%rip),%rdi
call   1040 <puts@plt>
lea    0x1108(%rip),%rdi
call   1040 <puts@plt>
lea    0x1116(%rip),%rdi
call   1040 <puts@plt>
lea    0x1137(%rip),%rdi
call   1040 <puts@plt>
lea    0x1145(%rip),%rdi
call   1040 <puts@plt>
lea    0x1151(%rip),%rdi
call   1040 <puts@plt>
lea    0x115f(%rip),%rdi
call   1040 <puts@plt>
lea    0x117b(%rip),%rdi
pop    %rbx
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Modes:\0A\00"
@.str.1 = [42 x i8] c" %s - Launch interactive mode\0A\00"
@.str.2 = [13 x i8] c"my_basic_bin\00"
@.str.3 = [38 x i8] c" %s *.* - Load and run a file\0A\00"
@.str.4 = [41 x i8] c" %s -e \22expr\22 - Evaluate an expression\0A\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [10 x i8] c"Options:\0A\00"
@.str.7 = [38 x i8] c" -h - Show help information\0A\00"
@.str.8 = [63 x i8] c" -p n - Set memory pool threashold, n is size in bytes\0A\00"
@.str.9 = [79 x i8] c" -f \22dirs\22 - Set importing directories, separated by \22;\22 with more than one\0A\00"
@.str.10 = [23 x i8] c"Interactive commands:\0A\00"
@.str.11 = [33 x i8] c" HELP - View help information\0A\00"
@.str.12 = [28 x i8] c" CLS - Clear the screen\0A\00"
@.str.13 = [37 x i8] c" NEW - Clear the current program\0A\00"
@.str.14 = [35 x i8] c" RUN - Run the current program\0A\00"
@.str.15 = [32 x i8] c" BYE - Quit the interpreter\0A\00"
@.str.16 = [36 x i8] c" LIST - List the current program\0A\00"
@.str.17 = [72 x i8] c" Usage: LIST [l [n]], l is start line number, n is line count\0A\00"
@.str.18 = [65 x i8] c" EDIT - Edit (modify/insert/remove) a line in current program\0A\00"
@.str.19 = [43 x i8] c" Usage: EDIT n, n is line number\0A\00"
@.str.20 = [63 x i8] c" EDIT -i n, insert a line before a given line\0A\00"
@.str.21 = [43 x i8] c" EDIT -r n, remove a line\0A\00"
@.str.22 = [46 x i8] c" LOAD - Load a file to the current program\0A\00"
@.str.23 = [27 x i8] c" Usage: LOAD *.*\0A\00"
@.str.24 = [46 x i8] c" SAVE - Save the current program to a file\0A\00"
@.str.25 = [27 x i8] c" Usage: SAVE *.*\0A\00"
@.str.26 = [25 x i8] c" KILL - Delete a file\0A\00"
@.str.27 = [27 x i8] c" Usage: KILL *.*\0A\00"
@.str.28 = [41 x i8] c" DIR - List all files in a directory\0A\00"
@.str.29 = [49 x i8] c" Usage: DIR [p], p is a directory path\0A\00"
define void @_show_help() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.8, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.9, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.26, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.27, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.28, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.29, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [42 x i8] c" %s - Launch interactive mode\0A\00"
@.str.2 = [13 x i8] c"my_basic_bin\00"
@.str.3 = [38 x i8] c" %s *.* - Load and run a file\0A\00"
@.str.4 = [41 x i8] c" %s -e \22expr\22 - Evaluate an expression\0A\00"
@str = [7 x i8] c"Modes:\00"
@str.30 = [9 x i8] c"Options:\00"
@str.31 = [37 x i8] c" -h - Show help information\00"
@str.32 = [62 x i8] c" -p n - Set memory pool threashold, n is size in bytes\00"
@str.33 = [78 x i8] c" -f \22dirs\22 - Set importing directories, separated by \22;\22 with more than one\00"
@str.34 = [22 x i8] c"Interactive commands:\00"
@str.35 = [32 x i8] c" HELP - View help information\00"
@str.36 = [27 x i8] c" CLS - Clear the screen\00"
@str.37 = [36 x i8] c" NEW - Clear the current program\00"
@str.38 = [34 x i8] c" RUN - Run the current program\00"
@str.39 = [31 x i8] c" BYE - Quit the interpreter\00"
@str.40 = [35 x i8] c" LIST - List the current program\00"
@str.41 = [71 x i8] c" Usage: LIST [l [n]], l is start line number, n is line count\00"
@str.42 = [64 x i8] c" EDIT - Edit (modify/insert/remove) a line in current program\00"
@str.43 = [42 x i8] c" Usage: EDIT n, n is line number\00"
@str.44 = [62 x i8] c" EDIT -i n, insert a line before a given line\00"
@str.45 = [42 x i8] c" EDIT -r n, remove a line\00"
@str.46 = [45 x i8] c" LOAD - Load a file to the current program\00"
@str.47 = [26 x i8] c" Usage: LOAD *.*\00"
@str.48 = [45 x i8] c" SAVE - Save the current program to a file\00"
@str.49 = [26 x i8] c" Usage: SAVE *.*\00"
@str.50 = [24 x i8] c" KILL - Delete a file\00"
@str.51 = [26 x i8] c" Usage: KILL *.*\00"
@str.52 = [40 x i8] c" DIR - List all files in a directory\00"
@str.53 = [48 x i8] c" Usage: DIR [p], p is a directory path\00"
define void @_show_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 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.30, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.31, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.32, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.33, i64 0, i64 0))
%10 = tail call i32 @putchar(i32 10)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.34, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.35, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.36, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.37, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.38, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.39, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.40, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.41, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.42, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.43, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.44, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.45, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.46, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.47, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.48, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.49, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.50, i64 0, i64 0))
%28 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.51, i64 0, i64 0))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.52, i64 0, i64 0))
%30 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.53, i64 0, i64 0))
ret void
}