#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*/ border(int /*<<< orphan*/, int /*<<< orphan*/,
                          int /*<<< orphan*/, int /*<<< orphan*/,
                          int /*<<< orphan*/, int /*<<< orphan*/,
                          int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ clear();
int /*<<< orphan*/ printCenter(int, char *);
int /*<<< orphan*/ printHLine(int);
void displayMenu() {
  clear();
  border(0, 0, 0, 0, 0, 0, 0, 0);
  printCenter(2, "Welcome to ASCII Volumetric Yahtzee!!!");
  printCenter(4, "ver 1.02");
  printCenter(6, "created by spags.");
  printHLine(8);
  printHLine(16);
}


x86 assembly (clang, -O0):
<displayMenu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1060 <clear@plt>
xor    %r9d,%r9d
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
call   1030 <border@plt>
mov    $0x2,%edi
lea    0xe7f(%rip),%rsi
call   1040 <printCenter@plt>
mov    $0x4,%edi
lea    0xe95(%rip),%rsi
call   1040 <printCenter@plt>
mov    $0x6,%edi
lea    0xe8d(%rip),%rsi
call   1040 <printCenter@plt>
mov    $0x8,%edi
call   1050 <printHLine@plt>
mov    $0x10,%edi
call   1050 <printHLine@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<displayMenu>:
push   %rax
xor    %eax,%eax
call   1060 <clear@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x0
call   1030 <border@plt>
add    $0x10,%rsp
lea    0xe96(%rip),%rsi
mov    $0x2,%edi
call   1040 <printCenter@plt>
lea    0xeac(%rip),%rsi
mov    $0x4,%edi
call   1040 <printCenter@plt>
lea    0xea4(%rip),%rsi
mov    $0x6,%edi
call   1040 <printCenter@plt>
mov    $0x8,%edi
call   1050 <printHLine@plt>
mov    $0x10,%edi
pop    %rax
jmp    1050 <printHLine@plt>

LLVM IR (-O0):
@.str = [39 x i8] c"Welcome to ASCII Volumetric Yahtzee!!!\00"
@.str.1 = [9 x i8] c"ver 1.02\00"
@.str.2 = [18 x i8] c"created by spags.\00"
define void @displayMenu() {
%1 = call i32 (...) @clear()
%2 = call i32 @border(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%3 = call i32 @printCenter(i32 2, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printCenter(i32 4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printCenter(i32 6, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printHLine(i32 8)
%7 = call i32 @printHLine(i32 16)
ret void
}

LLVM IR (-O2):
@.str = [39 x i8] c"Welcome to ASCII Volumetric Yahtzee!!!\00"
@.str.1 = [9 x i8] c"ver 1.02\00"
@.str.2 = [18 x i8] c"created by spags.\00"
define void @displayMenu() {
%1 = tail call i32 (...) @clear()
%2 = tail call i32 @border(i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
%3 = tail call i32 @printCenter(i32 2, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @printCenter(i32 4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @printCenter(i32 6, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @printHLine(i32 8)
%7 = tail call i32 @printHLine(i32 16)
ret void
}