#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("Commands:\n");
  printf("  CLS   - Clear screen\n");
  printf("  NEW   - Clear current program\n");
  printf("  RUN   - Run current program\n");
  printf("  BYE   - Quit interpreter\n");
  printf("  LIST  - List 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 is "
         "line number\n");
  printf("                 EDIT -R n, remove a line, n is line number\n");
  printf("  LOAD  - Load a file as current program\n");
  printf("          Usage: LOAD *.*\n");
  printf("  SAVE  - Save current program to a file\n");
  printf("          Usage: SAVE *.*\n");
  printf("  KILL  - Delete a file\n");
  printf("          Usage: KILL *.*\n");
}


x86 assembly (clang, -O0):
<_show_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf78(%rip),%rdi
call   1030 <printf@plt>
lea    0xfad(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1011(%rip),%rdi
call   1030 <printf@plt>
lea    0x1042(%rip),%rdi
call   1030 <printf@plt>
lea    0x1060(%rip),%rdi
call   1030 <printf@plt>
lea    0x106f(%rip),%rdi
call   1030 <printf@plt>
lea    0x108d(%rip),%rdi
call   1030 <printf@plt>
lea    0x109c(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a9(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<_show_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee6(%rip),%rdi
call   1030 <puts@plt>
lea    0xef1(%rip),%rdi
call   1030 <puts@plt>
lea    0xf05(%rip),%rdi
call   1030 <puts@plt>
lea    0xf17(%rip),%rdi
call   1030 <puts@plt>
lea    0xf26(%rip),%rdi
call   1030 <puts@plt>
lea    0xf39(%rip),%rdi
call   1030 <puts@plt>
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1030 <puts@plt>
lea    0x100a(%rip),%rdi
call   1030 <puts@plt>
lea    0x103a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1057(%rip),%rdi
call   1030 <puts@plt>
lea    0x1065(%rip),%rdi
call   1030 <puts@plt>
lea    0x1082(%rip),%rdi
call   1030 <puts@plt>
lea    0x1090(%rip),%rdi
call   1030 <puts@plt>
lea    0x109c(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"Commands:\0A\00"
@.str.1 = [24 x i8] c" CLS - Clear screen\0A\00"
@.str.2 = [33 x i8] c" NEW - Clear current program\0A\00"
@.str.3 = [31 x i8] c" RUN - Run current program\0A\00"
@.str.4 = [28 x i8] c" BYE - Quit interpreter\0A\00"
@.str.5 = [32 x i8] c" LIST - List current program\0A\00"
@.str.6 = [72 x i8] c" Usage: LIST [l [n]], l is start line number, n is line count\0A\00"
@.str.7 = [65 x i8] c" EDIT - Edit (modify/insert/remove) a line in current program\0A\00"
@.str.8 = [43 x i8] c" Usage: EDIT n, n is line number\0A\00"
@.str.9 = [81 x i8] c" EDIT -I n, insert a line before a given line, n is line number\0A\00"
@.str.10 = [61 x i8] c" EDIT -R n, remove a line, n is line number\0A\00"
@.str.11 = [42 x i8] c" LOAD - Load a file as current program\0A\00"
@.str.12 = [27 x i8] c" Usage: LOAD *.*\0A\00"
@.str.13 = [42 x i8] c" SAVE - Save current program to a file\0A\00"
@.str.14 = [27 x i8] c" Usage: SAVE *.*\0A\00"
@.str.15 = [25 x i8] c" KILL - Delete a file\0A\00"
@.str.16 = [27 x i8] c" Usage: KILL *.*\0A\00"
define void @_show_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 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 ([61 x i8], [61 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 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 ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [10 x i8] c"Commands:\00"
@str.17 = [23 x i8] c" CLS - Clear screen\00"
@str.18 = [32 x i8] c" NEW - Clear current program\00"
@str.19 = [30 x i8] c" RUN - Run current program\00"
@str.20 = [27 x i8] c" BYE - Quit interpreter\00"
@str.21 = [31 x i8] c" LIST - List current program\00"
@str.22 = [71 x i8] c" Usage: LIST [l [n]], l is start line number, n is line count\00"
@str.23 = [64 x i8] c" EDIT - Edit (modify/insert/remove) a line in current program\00"
@str.24 = [42 x i8] c" Usage: EDIT n, n is line number\00"
@str.25 = [80 x i8] c" EDIT -I n, insert a line before a given line, n is line number\00"
@str.26 = [60 x i8] c" EDIT -R n, remove a line, n is line number\00"
@str.27 = [41 x i8] c" LOAD - Load a file as current program\00"
@str.28 = [26 x i8] c" Usage: LOAD *.*\00"
@str.29 = [41 x i8] c" SAVE - Save current program to a file\00"
@str.30 = [26 x i8] c" Usage: SAVE *.*\00"
@str.31 = [24 x i8] c" KILL - Delete a file\00"
@str.32 = [26 x i8] c" Usage: KILL *.*\00"
define void @_show_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.17, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 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 ([60 x i8], [60 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.32, i64 0, i64 0))
ret void
}