#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*/);
char getchar();
int /*<<< orphan*/ isalpha(char);
int /*<<< orphan*/ printf(char *, ...);
int rand();
int /*<<< orphan*/ scanf(char *, int *, int *, int *);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
char tolower(char);
int main(void) {
  int hx, hy, hz, x, y, z, c;
  char yesno;
  printf("Hurkle Hunt in 3D\n\n"
         "A hurkle is a cute little creature, that in this game can fly. The "
         "hurkle\n"
         "is hiding in a region %d x %d x %d. After every guess your special "
         "hurkle\n"
         "locator will tell you which way you need to go. Keep in mind that "
         "1,1,1 is\n"
         "the lowest northwest corner.\n",
         10, 10, 10);
  printf("Input your move by typing the x then y then z coordinate seperated\n"
         "by commas like \"1,2,3\"\n\n");
  srand(time(NULL));
  do {
    hx = rand() % 10 + 1;
    hy = rand() % 10 + 1;
    hz = rand() % 10 + 1;
    printf("The hurkle is ready.");
    for (c = 1; c <= 10 && !(x == hx && y == hy && z == hz); c++) {
      printf("\nWhere do you want to look? (X,Y,Z) : ");
      scanf("%d %*c %d %*c %d", &x, &y, &z);
      printf("The hurkle is ");
      if (y < hy)
        printf("south");
      if (y > hy)
        printf("north");
      if (x < hx)
        printf("east");
      if (x > hx)
        printf("west");
      if ((x != hx || y != hy) && z != hz)
        printf(" and ");
      if (z < hz)
        printf("up");
      if (z > hz)
        printf("down");
    }
    if (c <= 10)
      printf("HERE!\nYou found the hurkle!\n\n");
    else
      printf("\nThats %d trys and you didn't find the hurkle.\n"
             "The hurkle was hiding at %d, %d, %d.\n\n",
             10, hx, hy, hz);
    printf("Would you like to play again? (y/n) ");
    while (!isalpha(yesno = getchar()))
      ;
  } while (tolower(yesno) != 'n');
  printf("Good bye for now!");
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe5a(%rip),%rdi
mov    $0xa,%ecx
mov    %ecx,%esi
mov    %ecx,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1040 <srand@plt>
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x8(%rbp)
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
mov    $0x0,%al
call   10b0 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x10(%rbp)
lea    0xf52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x20(%rbp)
xor    %eax,%eax
cmpl   $0xa,-0x20(%rbp)
mov    %al,-0x22(%rbp)
jg     126d <main+0xdd>
mov    -0x14(%rbp),%ecx
xor    %eax,%eax
cmp    -0x8(%rbp),%ecx
mov    %al,-0x23(%rbp)
jne    1265 <main+0xd5>
mov    -0x18(%rbp),%ecx
xor    %eax,%eax
cmp    -0xc(%rbp),%ecx
mov    %al,-0x23(%rbp)
jne    1265 <main+0xd5>
mov    -0x1c(%rbp),%eax
cmp    -0x10(%rbp),%eax
sete   %al
mov    %al,-0x23(%rbp)
mov    -0x23(%rbp),%al
xor    $0xff,%al
mov    %al,-0x22(%rbp)
mov    -0x22(%rbp),%al
test   $0x1,%al
jne    127d <main+0xed>
jmp    1392 <main+0x202>
lea    0xefd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x1c(%rbp),%rcx
call   1090 <scanf@plt>
lea    0xf0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12cb <main+0x13b>
lea    0xf04(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    12e5 <main+0x155>
lea    0xef0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12ff <main+0x16f>
lea    0xedc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1319 <main+0x189>
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jne    1331 <main+0x1a1>
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     134b <main+0x1bb>
mov    -0x1c(%rbp),%eax
cmp    -0x10(%rbp),%eax
je     134b <main+0x1bb>
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1365 <main+0x1d5>
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    137f <main+0x1ef>
lea    0xe6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1384 <main+0x1f4>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1228 <main+0x98>
cmpl   $0xa,-0x20(%rbp)
jg     13af <main+0x21f>
lea    0xe49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cc <main+0x23c>
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    -0x10(%rbp),%r8d
lea    0xe4a(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
mov    %al,-0x21(%rbp)
movsbl %al,%edi
call   1080 <isalpha@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1401 <main+0x271>
jmp    1406 <main+0x276>
jmp    13da <main+0x24a>
jmp    140b <main+0x27b>
movsbl -0x21(%rbp),%edi
call   1070 <tolower@plt>
movsbl %al,%eax
cmp    $0x6e,%eax
jne    11d4 <main+0x44>
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xe4b(%rip),%rdi
mov    $0xa,%esi
mov    $0xa,%edx
mov    $0xa,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x104b(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1070 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
mov    %eax,%edx
sub    %ecx,%edx
mov    %edx,0x14(%rsp)
neg    %ecx
lea    (%rax,%rcx,1),%r13d
add    $0x1,%r13d
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
mov    %eax,%r15d
sub    %ecx,%r15d
neg    %ecx
lea    (%rax,%rcx,1),%ebx
add    $0x1,%ebx
xor    %eax,%eax
call   10c0 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
mov    %eax,%r12d
sub    %ecx,%r12d
neg    %ecx
lea    (%rax,%rcx,1),%ebp
add    $0x1,%ebp
lea    0xe85(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%r14d
jmp    12aa <main+0x10a>
nopw   0x0(%rax,%rax,1)
add    $0xffffffff,%r14d
je     13d0 <main+0x230>
cmp    %r13d,0x10(%rsp)
jne    12c1 <main+0x121>
cmp    %ebx,0xc(%rsp)
jne    12c1 <main+0x121>
cmp    %ebp,0x8(%rsp)
je     13c0 <main+0x220>
lea    0xe5d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe76(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
call   10a0 <scanf@plt>
lea    0xe6c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%eax
cmp    %r15d,%eax
jg     1313 <main+0x173>
lea    0xe64(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%eax
cmp    %ebx,%eax
jle    1325 <main+0x185>
lea    0xe54(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%eax
cmp    0x14(%rsp),%eax
jg     1341 <main+0x1a1>
lea    0xe42(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%eax
cmp    %r13d,%eax
jle    1358 <main+0x1b8>
lea    0xe30(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%eax
xor    %r13d,%eax
mov    0xc(%rsp),%ecx
xor    %ebx,%ecx
or     %eax,%ecx
mov    0x8(%rsp),%eax
je     137f <main+0x1df>
cmp    %ebp,%eax
je     137f <main+0x1df>
lea    0xe0e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
cmp    %r12d,%eax
jle    1390 <main+0x1f0>
cmp    %ebp,%eax
jle    12a0 <main+0x100>
jmp    13aa <main+0x20a>
xchg   %ax,%ax
lea    0xdf1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%eax
cmp    %ebp,%eax
jle    12a0 <main+0x100>
lea    0xdda(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    12a0 <main+0x100>
nopl   (%rax)
lea    0xeb1(%rip),%rdi
call   1030 <puts@plt>
jmp    13eb <main+0x24b>
xchg   %ax,%ax
lea    0xdb9(%rip),%rdi
mov    $0xa,%esi
mov    %r13d,%edx
mov    %ebx,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdf4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
nopl   0x0(%rax)
xor    %eax,%eax
call   1060 <getchar@plt>
movsbl %al,%ebx
mov    %ebx,%edi
call   1090 <isalpha@plt>
test   %eax,%eax
je     1400 <main+0x260>
mov    %ebx,%edi
call   1080 <tolower@plt>
cmp    $0x6e,%al
jne    11f0 <main+0x50>
lea    0xde0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [272 x i8] c"Hurkle Hunt in 3D\0A\0AA hurkle is a cute little creature, that in this game can fly. The hurkle\0Ais hiding in a region %d x %d x %d. After every guess your special hurkle\0Alocator will tell you which way you need to go. Keep in mind that 1,1,1 is\0Athe lowest northwest corner.\0A\00"
@.str.1 = [92 x i8] c"Input your move by typing the x then y then z coordinate seperated\0Aby commas like \221,2,3\22\0A\0A\00"
@.str.2 = [21 x i8] c"The hurkle is ready.\00"
@.str.3 = [39 x i8] c"\0AWhere do you want to look? (X,Y,Z) : \00"
@.str.4 = [17 x i8] c"%d %*c %d %*c %d\00"
@.str.5 = [15 x i8] c"The hurkle is \00"
@.str.6 = [6 x i8] c"south\00"
@.str.7 = [6 x i8] c"north\00"
@.str.8 = [5 x i8] c"east\00"
@.str.9 = [5 x i8] c"west\00"
@.str.10 = [6 x i8] c" and \00"
@.str.11 = [3 x i8] c"up\00"
@.str.12 = [5 x i8] c"down\00"
@.str.13 = [30 x i8] c"HERE!\0AYou found the hurkle!\0A\0A\00"
@.str.14 = [86 x i8] c"\0AThats %d trys and you didn't find the hurkle.\0AThe hurkle was hiding at %d, %d, %d.\0A\0A\00"
@.str.15 = [37 x i8] c"Would you like to play again? (y/n) \00"
@.str.16 = [18 x i8] c"Good bye for now!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8
store i32 0, i32* %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([272 x i8], [272 x i8]* @.str, i64 0, i64 0), i32 10, i32 10, i32 10)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @time(i32* null)
%13 = call i32 @srand(i32 %12)
br label %14
14: ; preds = %121, %0
%15 = call i32 (...) @rand()
%16 = srem i32 %15, 10
%17 = add nsw i32 %16, 1
store i32 %17, i32* %2
%18 = call i32 (...) @rand()
%19 = srem i32 %18, 10
%20 = add nsw i32 %19, 1
store i32 %20, i32* %3
%21 = call i32 (...) @rand()
%22 = srem i32 %21, 10
%23 = add nsw i32 %22, 1
store i32 %23, i32* %4
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %8
br label %25
25: ; preds = %99, %14
%26 = load i32, i32* %8
%27 = icmp sle i32 %26, 10
br i1 %27, label %28, label %43
28: ; preds = %25
%29 = load i32, i32* %5
%30 = load i32, i32* %2
%31 = icmp eq i32 %29, %30
br i1 %31, label %32, label %40
32: ; preds = %28
%33 = load i32, i32* %6
%34 = load i32, i32* %3
%35 = icmp eq i32 %33, %34
br i1 %35, label %36, label %40
36: ; preds = %32
%37 = load i32, i32* %7
%38 = load i32, i32* %4
%39 = icmp eq i32 %37, %38
br label %40
40: ; preds = %36, %32, %28
%41 = phi i1 [ false, %32 ], [ false, %28 ], [ %39, %36 ]
%42 = xor i1 %41, true
br label %43
43: ; preds = %40, %25
%44 = phi i1 [ false, %25 ], [ %42, %40 ]
br i1 %44, label %45, label %102
45: ; preds = %43
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%47 = call i32 @scanf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32* %5, i32* %6, i32* %7)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%49 = load i32, i32* %6
%50 = load i32, i32* %3
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %54
52: ; preds = %45
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %54
54: ; preds = %52, %45
%55 = load i32, i32* %6
%56 = load i32, i32* %3
%57 = icmp sgt i32 %55, %56
br i1 %57, label %58, label %60
58: ; preds = %54
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %60
60: ; preds = %58, %54
%61 = load i32, i32* %5
%62 = load i32, i32* %2
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
br label %66
66: ; preds = %64, %60
%67 = load i32, i32* %5
%68 = load i32, i32* %2
%69 = icmp sgt i32 %67, %68
br i1 %69, label %70, label %72
70: ; preds = %66
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
br label %72
72: ; preds = %70, %66
%73 = load i32, i32* %5
%74 = load i32, i32* %2
%75 = icmp ne i32 %73, %74
br i1 %75, label %80, label %76
76: ; preds = %72
%77 = load i32, i32* %6
%78 = load i32, i32* %3
%79 = icmp ne i32 %77, %78
br i1 %79, label %80, label %86
80: ; preds = %76, %72
%81 = load i32, i32* %7
%82 = load i32, i32* %4
%83 = icmp ne i32 %81, %82
br i1 %83, label %84, label %86
84: ; preds = %80
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %86
86: ; preds = %84, %80, %76
%87 = load i32, i32* %7
%88 = load i32, i32* %4
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %92
90: ; preds = %86
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
br label %92
92: ; preds = %90, %86
%93 = load i32, i32* %7
%94 = load i32, i32* %4
%95 = icmp sgt i32 %93, %94
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
br label %98
98: ; preds = %96, %92
br label %99
99: ; preds = %98
%100 = load i32, i32* %8
%101 = add nsw i32 %100, 1
store i32 %101, i32* %8
br label %25
102: ; preds = %43
%103 = load i32, i32* %8
%104 = icmp sle i32 %103, 10
br i1 %104, label %105, label %107
105: ; preds = %102
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.13, i64 0, i64 0))
br label %112
107: ; preds = %102
%108 = load i32, i32* %2
%109 = load i32, i32* %3
%110 = load i32, i32* %4
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.14, i64 0, i64 0), i32 10, i32 %108, i32 %109, i32 %110)
br label %112
112: ; preds = %107, %105
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0))
br label %114
114: ; preds = %119, %112
%115 = call signext i8 (...) @getchar()
store i8 %115, i8* %9
%116 = call i32 @isalpha(i8 signext %115)
%117 = icmp ne i32 %116, 0
%118 = xor i1 %117, true
br i1 %118, label %119, label %120
119: ; preds = %114
br label %114
120: ; preds = %114
br label %121
121: ; preds = %120
%122 = load i8, i8* %9
%123 = call signext i8 @tolower(i8 signext %122)
%124 = sext i8 %123 to i32
%125 = icmp ne i32 %124, 110
br i1 %125, label %14, label %126
126: ; preds = %121
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0))
%128 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [272 x i8] c"Hurkle Hunt in 3D\0A\0AA hurkle is a cute little creature, that in this game can fly. The hurkle\0Ais hiding in a region %d x %d x %d. After every guess your special hurkle\0Alocator will tell you which way you need to go. Keep in mind that 1,1,1 is\0Athe lowest northwest corner.\0A\00"
@.str.2 = [21 x i8] c"The hurkle is ready.\00"
@.str.3 = [39 x i8] c"\0AWhere do you want to look? (X,Y,Z) : \00"
@.str.4 = [17 x i8] c"%d %*c %d %*c %d\00"
@.str.5 = [15 x i8] c"The hurkle is \00"
@.str.6 = [6 x i8] c"south\00"
@.str.7 = [6 x i8] c"north\00"
@.str.8 = [5 x i8] c"east\00"
@.str.9 = [5 x i8] c"west\00"
@.str.10 = [6 x i8] c" and \00"
@.str.11 = [3 x i8] c"up\00"
@.str.12 = [5 x i8] c"down\00"
@.str.14 = [86 x i8] c"\0AThats %d trys and you didn't find the hurkle.\0AThe hurkle was hiding at %d, %d, %d.\0A\0A\00"
@.str.15 = [37 x i8] c"Would you like to play again? (y/n) \00"
@.str.16 = [18 x i8] c"Good bye for now!\00"
@str = [91 x i8] c"Input your move by typing the x then y then z coordinate seperated\0Aby commas like \221,2,3\22\0A\00"
@str.17 = [29 x i8] c"HERE!\0AYou found the hurkle!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([272 x i8], [272 x i8]* @.str, i64 0, i64 0), i32 10, i32 10, i32 10)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @str, i64 0, i64 0))
%9 = tail call i32 @time(i32* null)
%10 = tail call i32 @srand(i32 %9)
br label %11
11: ; preds = %94, %0
%12 = call i32 (...) @rand()
%13 = srem i32 %12, 10
%14 = add nsw i32 %13, 1
%15 = call i32 (...) @rand()
%16 = srem i32 %15, 10
%17 = add nsw i32 %16, 1
%18 = call i32 (...) @rand()
%19 = srem i32 %18, 10
%20 = add nsw i32 %19, 1
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %22
22: ; preds = %11, %81
%23 = phi i32 [ 1, %11 ], [ %82, %81 ]
%24 = load i32, i32* %1
%25 = icmp eq i32 %24, %14
%26 = load i32, i32* %2
%27 = icmp eq i32 %26, %17
%28 = select i1 %25, i1 %27, i1 false
%29 = load i32, i32* %3
%30 = icmp eq i32 %29, %20
%31 = select i1 %28, i1 %30, i1 false
br i1 %31, label %84, label %32
32: ; preds = %22
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%34 = call i32 @scanf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%36 = load i32, i32* %2
%37 = icmp sgt i32 %36, %16
br i1 %37, label %41, label %38
38: ; preds = %32
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%40 = load i32, i32* %2
br label %41
41: ; preds = %38, %32
%42 = phi i32 [ %40, %38 ], [ %36, %32 ]
%43 = icmp sgt i32 %42, %17
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %46
46: ; preds = %44, %41
%47 = load i32, i32* %1
%48 = icmp sgt i32 %47, %13
br i1 %48, label %52, label %49
49: ; preds = %46
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%51 = load i32, i32* %1
br label %52
52: ; preds = %49, %46
%53 = phi i32 [ %51, %49 ], [ %47, %46 ]
%54 = icmp sgt i32 %53, %14
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%57 = load i32, i32* %1
br label %58
58: ; preds = %55, %52
%59 = phi i32 [ %57, %55 ], [ %53, %52 ]
%60 = icmp eq i32 %59, %14
%61 = load i32, i32* %2
%62 = icmp eq i32 %61, %17
%63 = select i1 %60, i1 %62, i1 false
%64 = load i32, i32* %3
%65 = icmp eq i32 %64, %20
%66 = select i1 %63, i1 true, i1 %65
br i1 %66, label %70, label %67
67: ; preds = %58
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%69 = load i32, i32* %3
br label %70
70: ; preds = %58, %67
%71 = phi i32 [ %64, %58 ], [ %69, %67 ]
%72 = icmp sgt i32 %71, %19
br i1 %72, label %76, label %73
73: ; preds = %70
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%75 = load i32, i32* %3
br label %76
76: ; preds = %73, %70
%77 = phi i32 [ %75, %73 ], [ %71, %70 ]
%78 = icmp sgt i32 %77, %20
br i1 %78, label %79, label %81
79: ; preds = %76
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
br label %81
81: ; preds = %76, %79
%82 = add nuw nsw i32 %23, 1
%83 = icmp eq i32 %82, 11
br i1 %83, label %86, label %22
84: ; preds = %22
%85 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.17, i64 0, i64 0))
br label %88
86: ; preds = %81
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @.str.14, i64 0, i64 0), i32 10, i32 %14, i32 %17, i32 %20)
br label %88
88: ; preds = %86, %84
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0))
br label %90
90: ; preds = %90, %88
%91 = call signext i8 (...) @getchar()
%92 = call i32 @isalpha(i8 signext %91)
%93 = icmp eq i32 %92, 0
br i1 %93, label %90, label %94
94: ; preds = %90
%95 = call signext i8 @tolower(i8 signext %91)
%96 = icmp eq i8 %95, 110
br i1 %96, label %97, label %11
97: ; preds = %94
%98 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0))
%99 = call i32 @exit(i32 0)
unreachable
}