#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 - 2021 Tony Wang. All Rights Reserved.\n");
  printf("For more information, see https://github.com/paladin-t/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    0xede(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf0b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf40(%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    0xed1(%rip),%rdi
call   1040 <puts@plt>
lea    0xeff(%rip),%rdi
call   1040 <puts@plt>
lea    0xf35(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [33 x i8] c"MY-BASIC Interpreter Shell - %s\0A\00"
@.str.1 = [59 x i8] c"Copyright (C) 2011 - 2021 Tony Wang. All Rights Reserved.\0A\00"
@.str.2 = [67 x i8] c"For more information, see https://github.com/paladin-t/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 ([33 x i8], [33 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 ([67 x i8], [67 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 = [33 x i8] c"MY-BASIC Interpreter Shell - %s\0A\00"
@str = [58 x i8] c"Copyright (C) 2011 - 2021 Tony Wang. All Rights Reserved.\00"
@str.4 = [66 x i8] c"For more information, see https://github.com/paladin-t/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 ([33 x i8], [33 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 ([66 x i8], [66 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
}