#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*/ print(char *);
void print_help() {
  print("Use TAB key for completion\n\rCommand:\n\r");
  print("\tversion {microrl | demo} - print version of microrl lib or version "
        "of this demo src\n\r");
  print("\thelp  - this message\n\r");
  print("\tclear - clear screen\n\r");
  print("\tlist  - list all commands in tree\n\r");
  print("\tname [string] - print 'name' value if no 'string', set name value "
        "to 'string' if 'string' present\n\r");
  print("\tlisp - dummy command for demonstation auto-completion, while "
        "inputed 'l+<TAB>'\n\r");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <print@plt>
lea    0xf00(%rip),%rdi
call   1030 <print@plt>
lea    0xf4b(%rip),%rdi
call   1030 <print@plt>
lea    0xf57(%rip),%rdi
call   1030 <print@plt>
lea    0xf63(%rip),%rdi
call   1030 <print@plt>
lea    0xf7c(%rip),%rdi
call   1030 <print@plt>
lea    0xfd5(%rip),%rdi
call   1030 <print@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <print@plt>
lea    0xf03(%rip),%rdi
call   1030 <print@plt>
lea    0xf4e(%rip),%rdi
call   1030 <print@plt>
lea    0xf5a(%rip),%rdi
call   1030 <print@plt>
lea    0xf66(%rip),%rdi
call   1030 <print@plt>
lea    0xf7f(%rip),%rdi
call   1030 <print@plt>
lea    0xfd8(%rip),%rdi
pop    %rax
jmp    1030 <print@plt>

LLVM IR (-O0):
@.str = [39 x i8] c"Use TAB key for completion\0A\0DCommand:\0A\0D\00"
@.str.1 = [87 x i8] c"\09version {microrl | demo} - print version of microrl lib or version of this demo src\0A\0D\00"
@.str.2 = [24 x i8] c"\09help - this message\0A\0D\00"
@.str.3 = [24 x i8] c"\09clear - clear screen\0A\0D\00"
@.str.4 = [37 x i8] c"\09list - list all commands in tree\0A\0D\00"
@.str.5 = [101 x i8] c"\09name [string] - print 'name' value if no 'string', set name value to 'string' if 'string' present\0A\0D\00"
@.str.6 = [82 x i8] c"\09lisp - dummy command for demonstation auto-completion, while inputed 'l+<TAB>'\0A\0D\00"
define void @print_help() {
%1 = call i32 @print(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @print(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @print(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @print(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @print(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @print(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @print(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [39 x i8] c"Use TAB key for completion\0A\0DCommand:\0A\0D\00"
@.str.1 = [87 x i8] c"\09version {microrl | demo} - print version of microrl lib or version of this demo src\0A\0D\00"
@.str.2 = [24 x i8] c"\09help - this message\0A\0D\00"
@.str.3 = [24 x i8] c"\09clear - clear screen\0A\0D\00"
@.str.4 = [37 x i8] c"\09list - list all commands in tree\0A\0D\00"
@.str.5 = [101 x i8] c"\09name [string] - print 'name' value if no 'string', set name value to 'string' if 'string' present\0A\0D\00"
@.str.6 = [82 x i8] c"\09lisp - dummy command for demonstation auto-completion, while inputed 'l+<TAB>'\0A\0D\00"
define void @print_help() {
%1 = tail call i32 @print(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @print(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @print(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @print(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @print(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @print(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @print(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.6, i64 0, i64 0))
ret void
}