#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ init();
int /*<<< orphan*/ play();
scalar_t__ play_again();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ puts(char *);
int main(void) {
  init();
  do {
    play();
  } while (play_again());
  puts("\n\n\n\n\n\n\n\n\tCymon's Games\n\n\thttp://WWW.CYMONSGAMES.COM\n\n\n"
       "   This game and its code is a 2008 Cymon's Games game.\n"
       "   If you have enjoyed this game or think you could do better please "
       "visit\n"
       "   http://WWW.CYMONSGAMES.COM for C/C++ programming resources and "
       "programs\n"
       "   for everyone, beginners and advanced users alike.\n\n");
  printf("\n\tPress ENTER to continue...\n\n\n\n\n\n");
  getchar();
  getchar();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1080 <init@plt>
mov    $0x0,%al
call   1070 <play@plt>
mov    $0x0,%al
call   1050 <play_again@plt>
cmp    $0x0,%rax
jne    1186 <main+0x16>
lea    0xe5b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8a(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
mov    $0x0,%al
call   1060 <getchar@plt>
xor    %edi,%edi
call   1090 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1070 <init@plt>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1060 <play@plt>
xor    %eax,%eax
call   1040 <play_again@plt>
test   %rax,%rax
jne    1170 <main+0x10>
lea    0xe76(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa5(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
xor    %edi,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [315 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\09Cymon's Games\0A\0A\09http://WWW.CYMONSGAMES.COM\0A\0A\0A This game and its code is a 2008 Cymon's Games game.\0A If you have enjoyed this game or think you could do better please visit\0A http://WWW.CYMONSGAMES.COM for C/C++ programming resources and programs\0A for everyone, beginners and advanced users alike.\0A\0A\00"
@.str.1 = [35 x i8] c"\0A\09Press ENTER to continue...\0A\0A\0A\0A\0A\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @init()
br label %3
3: ; preds = %5, %0
%4 = call i32 (...) @play()
br label %5
5: ; preds = %3
%6 = call i64 (...) @play_again()
%7 = icmp ne i64 %6, 0
br i1 %7, label %3, label %8
8: ; preds = %5
%9 = call i32 @puts(i8* getelementptr inbounds ([315 x i8], [315 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (...) @getchar()
%12 = call i32 (...) @getchar()
%13 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [315 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\09Cymon's Games\0A\0A\09http://WWW.CYMONSGAMES.COM\0A\0A\0A This game and its code is a 2008 Cymon's Games game.\0A If you have enjoyed this game or think you could do better please visit\0A http://WWW.CYMONSGAMES.COM for C/C++ programming resources and programs\0A for everyone, beginners and advanced users alike.\0A\0A\00"
@str = [34 x i8] c"\0A\09Press ENTER to continue...\0A\0A\0A\0A\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @init()
br label %2
2: ; preds = %2, %0
%3 = tail call i32 (...) @play()
%4 = tail call i64 (...) @play_again()
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %2
6: ; preds = %2
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([315 x i8], [315 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%9 = tail call i32 (...) @getchar()
%10 = tail call i32 (...) @getchar()
%11 = tail call i32 @exit(i32 0)
unreachable
}