#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*/ printw(char *);
void help(void) {
  printw("\nCommand line: tinybc [options] [filename]\n");
  printw("Options: -number renumber, -i run interactively\n");
  printw("CLEAR -- Delete program\n");
  printw("LIST line1-line2 -- List program from line1 to line2\n");
  printw("LOAD filename -- Load program from file\n");
  printw("QUIT -- Exit\n");
  printw("RUN -- Run program\n");
  printw("SAVE [filename] -- Save program\n");
  printw("HELP -- This help\n");
  printw("Other statements do not run interactively\n\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printw@plt>
lea    0xf05(%rip),%rdi
call   1030 <printw@plt>
lea    0xf2a(%rip),%rdi
call   1030 <printw@plt>
lea    0xf37(%rip),%rdi
call   1030 <printw@plt>
lea    0xf61(%rip),%rdi
call   1030 <printw@plt>
lea    0xf7e(%rip),%rdi
call   1030 <printw@plt>
lea    0xf80(%rip),%rdi
call   1030 <printw@plt>
lea    0xf88(%rip),%rdi
call   1030 <printw@plt>
lea    0xf9d(%rip),%rdi
call   1030 <printw@plt>
lea    0xfa4(%rip),%rdi
call   1030 <printw@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <printw@plt>
lea    0xf08(%rip),%rdi
call   1030 <printw@plt>
lea    0xf2d(%rip),%rdi
call   1030 <printw@plt>
lea    0xf3a(%rip),%rdi
call   1030 <printw@plt>
lea    0xf64(%rip),%rdi
call   1030 <printw@plt>
lea    0xf81(%rip),%rdi
call   1030 <printw@plt>
lea    0xf83(%rip),%rdi
call   1030 <printw@plt>
lea    0xf8b(%rip),%rdi
call   1030 <printw@plt>
lea    0xfa0(%rip),%rdi
call   1030 <printw@plt>
lea    0xfa7(%rip),%rdi
pop    %rax
jmp    1030 <printw@plt>

LLVM IR (-O0):
@.str = [44 x i8] c"\0ACommand line: tinybc [options] [filename]\0A\00"
@.str.1 = [49 x i8] c"Options: -number renumber, -i run interactively\0A\00"
@.str.2 = [25 x i8] c"CLEAR -- Delete program\0A\00"
@.str.3 = [54 x i8] c"LIST line1-line2 -- List program from line1 to line2\0A\00"
@.str.4 = [41 x i8] c"LOAD filename -- Load program from file\0A\00"
@.str.5 = [14 x i8] c"QUIT -- Exit\0A\00"
@.str.6 = [20 x i8] c"RUN -- Run program\0A\00"
@.str.7 = [33 x i8] c"SAVE [filename] -- Save program\0A\00"
@.str.8 = [19 x i8] c"HELP -- This help\0A\00"
@.str.9 = [44 x i8] c"Other statements do not run interactively\0A\0A\00"
define void @help() {
%1 = call i32 @printw(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printw(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printw(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printw(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printw(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printw(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printw(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printw(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printw(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printw(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [44 x i8] c"\0ACommand line: tinybc [options] [filename]\0A\00"
@.str.1 = [49 x i8] c"Options: -number renumber, -i run interactively\0A\00"
@.str.2 = [25 x i8] c"CLEAR -- Delete program\0A\00"
@.str.3 = [54 x i8] c"LIST line1-line2 -- List program from line1 to line2\0A\00"
@.str.4 = [41 x i8] c"LOAD filename -- Load program from file\0A\00"
@.str.5 = [14 x i8] c"QUIT -- Exit\0A\00"
@.str.6 = [20 x i8] c"RUN -- Run program\0A\00"
@.str.7 = [33 x i8] c"SAVE [filename] -- Save program\0A\00"
@.str.8 = [19 x i8] c"HELP -- This help\0A\00"
@.str.9 = [44 x i8] c"Other statements do not run interactively\0A\0A\00"
define void @help() {
%1 = tail call i32 @printw(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printw(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printw(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printw(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printw(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printw(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @printw(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @printw(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @printw(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @printw(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.9, i64 0, i64 0))
ret void
}