#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 */
char *mb_ver_string();
int /*<<< orphan*/ printf(char *, ...);
void _show_tip(void) {
  printf("MY-BASIC Interpreter Shell - %s.\n", mb_ver_string());
  printf("Copyright (c) 2011 - 2014 paladin_t. All Rights Reserved.\n");
  printf("For more information, see http://code.google.com/p/my-basic/.\n");
  printf("Input HELP and hint enter to view help information.\n");
}


x86 assembly (clang, -O0):
<_show_tip>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <mb_ver_string@plt>
mov    %rax,%rsi
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf3d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<_show_tip>:
push   %rax
xor    %eax,%eax
call   1030 <mb_ver_string@plt>
lea    0xec1(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xed2(%rip),%rdi
call   1040 <puts@plt>
lea    0xf00(%rip),%rdi
call   1040 <puts@plt>
lea    0xf32(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"MY-BASIC Interpreter Shell - %s.\0A\00"
@.str.1 = [59 x i8] c"Copyright (c) 2011 - 2014 paladin_t. All Rights Reserved.\0A\00"
@.str.2 = [63 x i8] c"For more information, see http://code.google.com/p/my-basic/.\0A\00"
@.str.3 = [53 x i8] c"Input HELP and hint enter to view help information.\0A\00"
define void @_show_tip() {
%1 = call i8* (...) @mb_ver_string()
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c"MY-BASIC Interpreter Shell - %s.\0A\00"
@str = [58 x i8] c"Copyright (c) 2011 - 2014 paladin_t. All Rights Reserved.\00"
@str.4 = [62 x i8] c"For more information, see http://code.google.com/p/my-basic/.\00"
@str.5 = [52 x i8] c"Input HELP and hint enter to view help information.\00"
define void @_show_tip() {
%1 = tail call i8* (...) @mb_ver_string()
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.4, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.5, i64 0, i64 0))
ret void
}