#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*/ printf(char *);
void alphaRunningLaterGame(char gameState) {
  printf("<WARNING! You are running an alpha interpreter, but the game is "
         "generated by a ");
  if (gameState == 'b')
    printf("beta");
  else
    printf("release");
  printf(" state compiler which was released later. This might cause the game "
         "to not work fully as intended. Look for an upgraded game file.>\n");
}


x86 assembly (clang, -O0):
<alphaRunningLaterGame>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x1(%rbp),%eax
cmp    $0x62,%eax
jne    1148 <alphaRunningLaterGame+0x38>
lea    0xf12(%rip),%rdi
call   1030 <printf@plt>
jmp    1154 <alphaRunningLaterGame+0x44>
lea    0xf06(%rip),%rdi
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<alphaRunningLaterGame>:
push   %rbx
mov    %edi,%ebx
lea    0xed6(%rip),%rdi
call   1040 <printf@plt>
cmp    $0x62,%bl
lea    0xf17(%rip),%rax
lea    0xf15(%rip),%rdi
cmove  %rax,%rdi
call   1040 <printf@plt>
lea    0xf0d(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [80 x i8] c"<WARNING! You are running an alpha interpreter, but the game is generated by a \00"
@.str.1 = [5 x i8] c"beta\00"
@.str.2 = [8 x i8] c"release\00"
@.str.3 = [133 x i8] c" state compiler which was released later. This might cause the game to not work fully as intended. Look for an upgraded game file.>\0A\00"
define void @alphaRunningLaterGame(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str, i64 0, i64 0))
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
%6 = icmp eq i32 %5, 98
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %11
9: ; preds = %1
%10 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %11
11: ; preds = %9, %7
%12 = call i32 @printf(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [80 x i8] c"<WARNING! You are running an alpha interpreter, but the game is generated by a \00"
@.str.1 = [5 x i8] c"beta\00"
@.str.2 = [8 x i8] c"release\00"
@str = [132 x i8] c" state compiler which was released later. This might cause the game to not work fully as intended. Look for an upgraded game file.>\00"
define void @alphaRunningLaterGame(i8 signext %0) {
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i8 %0, 98
%4 = select i1 %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0)
%5 = tail call i32 @printf(i8* dereferenceable(1) %4)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([132 x i8], [132 x i8]* @str, i64 0, i64 0))
ret void
}