#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 EXIT_SUCCESS;
int /*<<< orphan*/ _IONBF;
int /*<<< orphan*/ findSomeWords();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ selectABook();
int /*<<< orphan*/ setvbuf(int /*<<< orphan*/, int /*<<< orphan*/ *,
                           int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int main(int argc, char *argv[]) {
  setvbuf(stdout, NULL, _IONBF, 0);
  printf("\n\n\n");
  printf("**********************************************\n"
         "{|}  Welcome to QUEND's Beta-Book-Browser  {|}\n"
         "**********************************************\n"
         "\n"
         "\t==> reading is for everyone <==\n"
         "\t[+] Enter Your Favorite Author's Last Name: ");
  selectABook();
  printf("\n...please turn to page 394...\n");
  findSomeWords();
  printf("\n\t[===] Whew you made it !\n\n");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e7b(%rip),%rax
mov    (%rax),%edi
mov    0x2e82(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
xor    %ecx,%ecx
call   1060 <setvbuf@plt>
lea    0xe86(%rip),%rdi
call   1030 <printf@plt>
lea    0xe7e(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <selectABook@plt>
lea    0xf48(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <findSomeWords@plt>
lea    0xf55(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e18(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
mov    0x2e87(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
xor    %ecx,%ecx
call   1070 <setvbuf@plt>
lea    0xf6a(%rip),%rdi
call   1030 <puts@plt>
lea    0xe81(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <selectABook@plt>
lea    0xf4e(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <findSomeWords@plt>
lea    0xf5a(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e1f(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@stdout = global i32 0
@_IONBF = global i32 0
@.str = [4 x i8] c"\0A\0A\0A\00"
@.str.1 = [221 x i8] c"**********************************************\0A{|} Welcome to QUEND's Beta-Book-Browser {|}\0A**********************************************\0A\0A\09==> reading is for everyone <==\0A\09[+] Enter Your Favorite Author's Last Name: \00"
@.str.2 = [32 x i8] c"\0A...please turn to page 394...\0A\00"
@.str.3 = [29 x i8] c"\0A\09[===] Whew you made it !\0A\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* @stdout
%7 = load i32, i32* @_IONBF
%8 = call i32 @setvbuf(i32 %6, i32* null, i32 %7, i32 0)
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([221 x i8], [221 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (...) @selectABook()
%12 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (...) @findSomeWords()
%14 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%15 = load i32, i32* @EXIT_SUCCESS
ret i32 %15
}

LLVM IR (-O2):
@stdout = global i32 0
@_IONBF = global i32 0
@.str.1 = [221 x i8] c"**********************************************\0A{|} Welcome to QUEND's Beta-Book-Browser {|}\0A**********************************************\0A\0A\09==> reading is for everyone <==\0A\09[+] Enter Your Favorite Author's Last Name: \00"
@EXIT_SUCCESS = global i32 0
@str = [3 x i8] c"\0A\0A\00"
@str.4 = [31 x i8] c"\0A...please turn to page 394...\00"
@str.5 = [28 x i8] c"\0A\09[===] Whew you made it !\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @stdout
%4 = load i32, i32* @_IONBF
%5 = tail call i32 @setvbuf(i32 %3, i32* null, i32 %4, i32 0)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([221 x i8], [221 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 (...) @selectABook()
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.4, i64 0, i64 0))
%10 = tail call i32 (...) @findSomeWords()
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.5, i64 0, i64 0))
%12 = load i32, i32* @EXIT_SUCCESS
ret i32 %12
}