#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 getchar();
int /*<<< orphan*/ print_banner();
int /*<<< orphan*/ print_deathstar();
int /*<<< orphan*/ printf(char *);
void welcome_message() {
  char a;
  printf("Welcome to__\n\n");
  print_banner();
  printf("\n\nGuess what.. Empire striked back, AGAIN. What could they "
         "possibly came up with this time...\n\n");
  a = getchar();
  print_deathstar();
  printf("What else could have been.. PLEASE DESTROY IT, I CANT'T STAND IT "
         "ANYMORE..\n\n");
}


x86 assembly (clang, -O0):
<welcome_message>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <print_banner@plt>
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
mov    %al,-0x1(%rbp)
mov    $0x0,%al
call   1040 <print_deathstar@plt>
lea    0xef0(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<welcome_message>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <print_banner@plt>
lea    0xeb3(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
xor    %eax,%eax
call   1040 <print_deathstar@plt>
lea    0xef8(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"Welcome to__\0A\0A\00"
@.str.1 = [96 x i8] c"\0A\0AGuess what.. Empire striked back, AGAIN. What could they possibly came up with this time...\0A\0A\00"
@.str.2 = [77 x i8] c"What else could have been.. PLEASE DESTROY IT, I CANT'T STAND IT ANYMORE..\0A\0A\00"
define void @welcome_message() {
%1 = alloca i8
%2 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @print_banner()
%4 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.1, i64 0, i64 0))
%5 = call signext i8 (...) @getchar()
store i8 %5, i8* %1
%6 = call i32 (...) @print_deathstar()
%7 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [14 x i8] c"Welcome to__\0A\00"
@str.3 = [95 x i8] c"\0A\0AGuess what.. Empire striked back, AGAIN. What could they possibly came up with this time...\0A\00"
@str.4 = [76 x i8] c"What else could have been.. PLEASE DESTROY IT, I CANT'T STAND IT ANYMORE..\0A\00"
define void @welcome_message() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @print_banner()
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.3, i64 0, i64 0))
%4 = tail call signext i8 (...) @getchar()
%5 = tail call i32 (...) @print_deathstar()
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.4, i64 0, i64 0))
ret void
}