#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*/ clrscr();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ waitForAnyKey();
void welcomeArt(void) {
  clrscr();
  printf("\n");
  printf("\t\t    _________         _________ 			\n");
  printf("\t\t   /         \\       /         \\ 			\n");
  printf("\t\t  /  /~~~~~\\  \\     /  /~~~~~\\  \\ 			\n");
  printf("\t\t  |  |     |  |     |  |     |  | 			\n");
  printf("\t\t  |  |     |  |     |  |     |  | 			\n");
  printf("\t\t  |  |     |  |     |  |     |  |         /	\n");
  printf("\t\t  |  |     |  |     |  |     |  |       //	\n");
  printf("\t\t (o  o)    \\  \\_____/  /     \\  \\_____/ / 	\n");
  printf("\t\t  \\__/      \\         /       \\        / 	\n");
  printf("\t\t    |        ~~~~~~~~~         ~~~~~~~~ 		\n");
  printf("\t\t    ^							"
         "				\n");
  printf("\t		Welcome To The Snake Game!			\n");
  printf("\t			    Press Any Key To Continue...	\n");
  printf("\n");
  waitForAnyKey();
  return;
}


x86 assembly (clang, -O0):
<welcomeArt>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <clrscr@plt>
lea    0x105b(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb2(%rip),%rdi
call   1040 <printf@plt>
lea    0xecd(%rip),%rdi
call   1040 <printf@plt>
lea    0xee9(%rip),%rdi
call   1040 <printf@plt>
lea    0xf06(%rip),%rdi
call   1040 <printf@plt>
lea    0xefa(%rip),%rdi
call   1040 <printf@plt>
lea    0xf17(%rip),%rdi
call   1040 <printf@plt>
lea    0xf3b(%rip),%rdi
call   1040 <printf@plt>
lea    0xf5e(%rip),%rdi
call   1040 <printf@plt>
lea    0xf81(%rip),%rdi
call   1040 <printf@plt>
lea    0xfa3(%rip),%rdi
call   1040 <printf@plt>
lea    0xfc5(%rip),%rdi
call   1040 <printf@plt>
lea    0xfcd(%rip),%rdi
call   1040 <printf@plt>
lea    0xfe3(%rip),%rdi
call   1040 <printf@plt>
lea    0xfb3(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <waitForAnyKey@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<welcomeArt>:
push   %rbx
xor    %eax,%eax
call   1040 <clrscr@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xea7(%rip),%rdi
call   1050 <puts@plt>
lea    0xec1(%rip),%rdi
call   1050 <puts@plt>
lea    0xedc(%rip),%rdi
call   1050 <puts@plt>
lea    0xef8(%rip),%rbx
mov    %rbx,%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
call   1050 <puts@plt>
lea    0xf09(%rip),%rdi
call   1050 <puts@plt>
lea    0xf2c(%rip),%rdi
call   1050 <puts@plt>
lea    0xf4e(%rip),%rdi
call   1050 <puts@plt>
lea    0xf70(%rip),%rdi
call   1050 <puts@plt>
lea    0xf91(%rip),%rdi
call   1050 <puts@plt>
lea    0xfb2(%rip),%rdi
call   1050 <puts@plt>
lea    0xfb9(%rip),%rdi
call   1050 <puts@plt>
lea    0xfce(%rip),%rdi
call   1050 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rbx
jmp    1060 <waitForAnyKey@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [39 x i8] c"\09\09 _________ _________ \09\09\09\0A\00"
@.str.2 = [40 x i8] c"\09\09 / \\ / \\ \09\09\09\0A\00"
@.str.3 = [41 x i8] c"\09\09 / /~~~~~\\ \\ / /~~~~~\\ \\ \09\09\09\0A\00"
@.str.4 = [41 x i8] c"\09\09 | | | | | | | | \09\09\09\0A\00"
@.str.5 = [48 x i8] c"\09\09 | | | | | | | | /\09\0A\00"
@.str.6 = [47 x i8] c"\09\09 | | | | | | | | //\09\0A\00"
@.str.7 = [47 x i8] c"\09\09 (o o) \\ \\_____/ / \\ \\_____/ / \09\0A\00"
@.str.8 = [46 x i8] c"\09\09 \\__/ \\ / \\ / \09\0A\00"
@.str.9 = [46 x i8] c"\09\09 | ~~~~~~~~~ ~~~~~~~~ \09\09\0A\00"
@.str.10 = [20 x i8] c"\09\09 ^\09\09\09\09\09\09\09\09\09\09\09\0A\00"
@.str.11 = [34 x i8] c"\09\09\09Welcome To The Snake Game!\09\09\09\0A\00"
@.str.12 = [39 x i8] c"\09\09\09\09 Press Any Key To Continue...\09\0A\00"
define void @welcomeArt() {
%1 = call i32 (...) @clrscr()
%2 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%17 = call i32 (...) @waitForAnyKey()
ret void
}

LLVM IR (-O2):
@str = [38 x i8] c"\09\09 _________ _________ \09\09\09\00"
@str.13 = [39 x i8] c"\09\09 / \\ / \\ \09\09\09\00"
@str.14 = [40 x i8] c"\09\09 / /~~~~~\\ \\ / /~~~~~\\ \\ \09\09\09\00"
@str.16 = [40 x i8] c"\09\09 | | | | | | | | \09\09\09\00"
@str.17 = [47 x i8] c"\09\09 | | | | | | | | /\09\00"
@str.18 = [46 x i8] c"\09\09 | | | | | | | | //\09\00"
@str.19 = [46 x i8] c"\09\09 (o o) \\ \\_____/ / \\ \\_____/ / \09\00"
@str.20 = [45 x i8] c"\09\09 \\__/ \\ / \\ / \09\00"
@str.21 = [45 x i8] c"\09\09 | ~~~~~~~~~ ~~~~~~~~ \09\09\00"
@str.22 = [19 x i8] c"\09\09 ^\09\09\09\09\09\09\09\09\09\09\09\00"
@str.23 = [33 x i8] c"\09\09\09Welcome To The Snake Game!\09\09\09\00"
@str.24 = [38 x i8] c"\09\09\09\09 Press Any Key To Continue...\09\00"
define void @welcomeArt() {
%1 = tail call i32 (...) @clrscr()
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.21, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.22, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.23, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.24, i64 0, i64 0))
%16 = tail call i32 @putchar(i32 10)
%17 = tail call i32 (...) @waitForAnyKey()
ret void
}