#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*/ tinysh_puts(char *);
void help_fnt(int argc, char **argv) {
  tinysh_puts("?            display help on given or available commands\n");
  tinysh_puts("<TAB>        auto-completion\n");
  tinysh_puts("<cr>         execute command line\n");
  tinysh_puts("CTRL-P       recall previous input line\n");
  tinysh_puts("CTRL-N       recall next input line\n");
  tinysh_puts("<any>        treat as input character\n");
}


x86 assembly (clang, -O0):
<help_fnt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <tinysh_puts@plt>
lea    0xf08(%rip),%rdi
call   1030 <tinysh_puts@plt>
lea    0xf1a(%rip),%rdi
call   1030 <tinysh_puts@plt>
lea    0xf31(%rip),%rdi
call   1030 <tinysh_puts@plt>
lea    0xf4e(%rip),%rdi
call   1030 <tinysh_puts@plt>
lea    0xf67(%rip),%rdi
call   1030 <tinysh_puts@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help_fnt>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <tinysh_puts@plt>
lea    0xf16(%rip),%rdi
call   1030 <tinysh_puts@plt>
lea    0xf28(%rip),%rdi
call   1030 <tinysh_puts@plt>
lea    0xf3f(%rip),%rdi
call   1030 <tinysh_puts@plt>
lea    0xf5c(%rip),%rdi
call   1030 <tinysh_puts@plt>
lea    0xf75(%rip),%rdi
pop    %rax
jmp    1030 <tinysh_puts@plt>

LLVM IR (-O0):
@.str = [58 x i8] c"? display help on given or available commands\0A\00"
@.str.1 = [30 x i8] c"<TAB> auto-completion\0A\00"
@.str.2 = [35 x i8] c"<cr> execute command line\0A\00"
@.str.3 = [41 x i8] c"CTRL-P recall previous input line\0A\00"
@.str.4 = [37 x i8] c"CTRL-N recall next input line\0A\00"
@.str.5 = [39 x i8] c"<any> treat as input character\0A\00"
define void @help_fnt(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @tinysh_puts(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @tinysh_puts(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @tinysh_puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @tinysh_puts(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @tinysh_puts(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @tinysh_puts(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [58 x i8] c"? display help on given or available commands\0A\00"
@.str.1 = [30 x i8] c"<TAB> auto-completion\0A\00"
@.str.2 = [35 x i8] c"<cr> execute command line\0A\00"
@.str.3 = [41 x i8] c"CTRL-P recall previous input line\0A\00"
@.str.4 = [37 x i8] c"CTRL-N recall next input line\0A\00"
@.str.5 = [39 x i8] c"<any> treat as input character\0A\00"
define void @help_fnt(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @tinysh_puts(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @tinysh_puts(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @tinysh_puts(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @tinysh_puts(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @tinysh_puts(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @tinysh_puts(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
ret void
}