#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 *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  char nome[15];
  int campo[5][5];
  int i, j;
  int lin, col;
  int sn = 0;
  int score = 0;
  { printf("Digite o seu nome\n\n"); }
  { scanf("%s", &nome); }
  { printf("\n\nOla  %s!!\n \nVamos começar.\n\n", nome); }
  for (i = 0; i <= 4; i++) {
    for (j = 0; j <= 4; j++) {
      campo[0][0] = 0;
      campo[0][1] = 0;
      campo[0][2] = 1;
      campo[0][3] = 1;
      campo[0][4] = 1;
      campo[1][0] = 0;
      campo[1][1] = 1;
      campo[1][2] = 0;
      campo[1][3] = 0;
      campo[1][4] = 1;
      campo[2][0] = 1;
      campo[2][1] = 0;
      campo[2][2] = 1;
      campo[2][3] = 0;
      campo[2][4] = 0;
      campo[3][0] = 1;
      campo[3][1] = 1;
      campo[3][2] = 0;
      campo[3][3] = 1;
      campo[3][4] = 0;
      campo[4][0] = 1;
      campo[4][1] = 0;
      campo[4][2] = 1;
      campo[4][3] = 0;
      campo[4][4] = 0;
    }
  }
  while ((sn <= 2)) {
    if ((sn > 1) && (sn < 3)) {
      printf("\nVocê saiu do jogo.\n\n");
      printf("Até logo.");
      break;
    }
    { printf("\nEntre com as cordenadas:\n\n\n"); }
    lin = 0;
    col = 0;
    while ((lin > 5) || (lin < 1)) {
      { printf("\nDigite a linha que deseja.\n"); }
      { printf("Entre ( 1 ) e ( 5 ):\n\n"); }
      { scanf("%d", &lin); }
      if ((lin > 5) || (lin < 1)) {
        printf("\nErro, digite novamente\n");
      }
    }
    while ((col > 5) || (col < 1)) {
      printf("\nDigite a coluna que deseja.\n");
      printf("Entre ( 1 ) e ( 5 ):\n\n");
      scanf("%d", &col);
      if ((col > 5) || (col < 1)) {
        printf("\nErro, digite novamente\n");
      }
    }
    { printf("\0%d", campo[lin - 1][col - 1]); }
    if (campo[lin - 1][col - 1] < 1) {
      printf("\n\nBomBaa!!\n\n");
    } else {
      printf("\n\nVOCÊ ACERTOU!!!\n\n");
    }
    if (campo[lin - 1][col - 1] > 0) {
      score++;
      printf("\n\nscore:%d\n\n", score);
    }
    { printf(" \nDeseja continuar?\n\n"); }
    { printf(" Digite( 1 ) para sim e ( 2 ) para não.\n\n"); }
    { scanf("%d", &sn); }
    if ((sn > 1) && (sn < 3)) {
      printf("\nVocê saiu do jogo.\n\n");
      printf("Até logo.");
      break;
    }
    while ((sn > 2) || (sn < 1)) {
      sn = 0;
      printf("\nErro\n\n");
      printf(" \nDeseja continuar?\n\n");
      printf(" digite( 1 ) para sim e ( 2 ) para não.");
      scanf("%d", &sn);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x94(%rbp)
movl   $0x0,-0x98(%rbp)
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb9(%rip),%rdi
lea    -0x13(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    -0x13(%rbp),%rsi
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x84(%rbp)
cmpl   $0x4,-0x84(%rbp)
jg     1282 <main+0x162>
movl   $0x0,-0x88(%rbp)
cmpl   $0x4,-0x88(%rbp)
jg     1269 <main+0x149>
movl   $0x0,-0x80(%rbp)
movl   $0x0,-0x7c(%rbp)
movl   $0x1,-0x78(%rbp)
movl   $0x1,-0x74(%rbp)
movl   $0x1,-0x70(%rbp)
movl   $0x0,-0x6c(%rbp)
movl   $0x1,-0x68(%rbp)
movl   $0x0,-0x64(%rbp)
movl   $0x0,-0x60(%rbp)
movl   $0x1,-0x5c(%rbp)
movl   $0x1,-0x58(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x1,-0x50(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x1,-0x44(%rbp)
movl   $0x1,-0x40(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x1,-0x38(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x1,-0x30(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x1,-0x28(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    1199 <main+0x79>
jmp    126e <main+0x14e>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1182 <main+0x62>
jmp    1287 <main+0x167>
cmpl   $0x2,-0x94(%rbp)
jg     15f0 <main+0x4d0>
cmpl   $0x1,-0x94(%rbp)
jle    12cf <main+0x1af>
cmpl   $0x3,-0x94(%rbp)
jge    12cf <main+0x1af>
lea    0xd82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    15f0 <main+0x4d0>
lea    0xd83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8c(%rbp)
movl   $0x0,-0x90(%rbp)
mov    $0x1,%al
cmpl   $0x5,-0x8c(%rbp)
mov    %al,-0x99(%rbp)
jg     1316 <main+0x1f6>
cmpl   $0x1,-0x8c(%rbp)
setl   %al
mov    %al,-0x99(%rbp)
mov    -0x99(%rbp),%al
test   $0x1,%al
jne    1329 <main+0x209>
jmp    1387 <main+0x267>
lea    0xd46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd5e(%rip),%rdi
lea    -0x8c(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x5,-0x8c(%rbp)
jg     1374 <main+0x254>
cmpl   $0x1,-0x8c(%rbp)
jge    1382 <main+0x262>
lea    0xd32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12f1 <main+0x1d1>
jmp    138c <main+0x26c>
mov    $0x1,%al
cmpl   $0x5,-0x90(%rbp)
mov    %al,-0x9a(%rbp)
jg     13b1 <main+0x291>
cmpl   $0x1,-0x90(%rbp)
setl   %al
mov    %al,-0x9a(%rbp)
mov    -0x9a(%rbp),%al
test   $0x1,%al
jne    13c4 <main+0x2a4>
jmp    1422 <main+0x302>
lea    0xcfb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcc3(%rip),%rdi
lea    -0x90(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x5,-0x90(%rbp)
jg     140f <main+0x2ef>
cmpl   $0x1,-0x90(%rbp)
jge    141d <main+0x2fd>
lea    0xc97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    138c <main+0x26c>
mov    -0x8c(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
mov    -0x90(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8c(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
mov    -0x90(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
cmpl   $0x1,(%rax,%rcx,4)
jge    1496 <main+0x376>
lea    0xc5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14a4 <main+0x384>
lea    0xc54(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8c(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0x80(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
mov    -0x90(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
cmpl   $0x0,(%rax,%rcx,4)
jle    14f4 <main+0x3d4>
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
mov    -0x98(%rbp),%esi
lea    0xc19(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc18(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb93(%rip),%rdi
lea    -0x94(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x1,-0x94(%rbp)
jle    1560 <main+0x440>
cmpl   $0x3,-0x94(%rbp)
jge    1560 <main+0x440>
lea    0xaf1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xafa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    15f0 <main+0x4d0>
jmp    1565 <main+0x445>
mov    $0x1,%al
cmpl   $0x2,-0x94(%rbp)
mov    %al,-0x9b(%rbp)
jg     158a <main+0x46a>
cmpl   $0x1,-0x94(%rbp)
setl   %al
mov    %al,-0x9b(%rbp)
mov    -0x9b(%rbp),%al
test   $0x1,%al
jne    159d <main+0x47d>
jmp    15eb <main+0x4cb>
movl   $0x0,-0x94(%rbp)
lea    0xba6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xad2(%rip),%rdi
lea    -0x94(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1565 <main+0x445>
jmp    1287 <main+0x167>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
movl   $0x0,0x8(%rsp)
lea    0xf57(%rip),%rdi
call   1030 <puts@plt>
lea    0xee4(%rip),%rdi
lea    0x79(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xed1(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
movaps 0xe7d(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe81(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe85(%rip),%xmm1
movaps %xmm1,0x30(%rsp)
movaps 0xe89(%rip),%xmm1
movaps %xmm1,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movl   $0x0,0x70(%rsp)
lea    0xfb0(%rip),%r12
lea    0xea2(%rip),%rbx
lea    0xfb8(%rip),%rbp
lea    0xf41(%rip),%r13
lea    0x8(%rsp),%r15
lea    0xe98(%rip),%r14
movl   $0x0,0xc(%rsp)
jmp    1206 <main+0xd6>
cmp    $0x2,%eax
mov    %r15,%r13
mov    %rbp,%r15
lea    0xf8b(%rip),%rbp
je     13b0 <main+0x280>
lea    0xead(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,0x4(%rsp)
movl   $0x0,(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xf22(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x4(%rsp),%ecx
lea    -0x6(%rcx),%eax
cmp    $0xfffffffa,%eax
ja     1273 <main+0x143>
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%ecx
lea    -0x6(%rcx),%eax
cmp    $0xfffffffb,%eax
jb     1230 <main+0x100>
mov    (%rsp),%eax
lea    -0x6(%rax),%edx
cmp    $0xfffffffa,%edx
ja     12c3 <main+0x193>
xchg   %ax,%ax
lea    0xeb5(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    (%rsp),%eax
lea    -0x6(%rax),%ecx
cmp    $0xfffffffa,%ecx
ja     12bf <main+0x18f>
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    (%rsp),%eax
lea    -0x6(%rax),%ecx
cmp    $0xfffffffb,%ecx
jb     1280 <main+0x150>
mov    0x4(%rsp),%ecx
add    $0xffffffff,%ecx
movslq %ecx,%rcx
add    $0xffffffff,%eax
lea    (%rcx,%rcx,4),%rcx
lea    (%rsp,%rcx,4),%rcx
add    $0x10,%rcx
cmpl   $0x0,(%rcx,%rax,4)
lea    0xdf3(%rip),%rdi
lea    0xe46(%rip),%rax
cmovle %rax,%rdi
call   1030 <puts@plt>
movslq 0x4(%rsp),%rax
lea    (%rax,%rax,4),%rax
movslq (%rsp),%rcx
lea    (%rsp,%rax,4),%rax
add    $0x10,%rax
cmpl   $0x0,-0x18(%rax,%rcx,4)
jle    1328 <main+0x1f8>
mov    0xc(%rsp),%esi
add    $0x1,%esi
lea    0xd54(%rip),%rdi
mov    %esi,0xc(%rsp)
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
lea    0xdb3(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x8(%rsp),%ecx
cmp    $0x2,%ecx
je     13b0 <main+0x280>
add    $0xfffffffd,%ecx
mov    $0x1,%eax
cmp    $0xfffffffd,%ecx
mov    %r15,%rbp
mov    %r13,%r15
lea    0xdaa(%rip),%r13
ja     11f0 <main+0xc0>
movl   $0x0,0x8(%rsp)
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x8(%rsp),%eax
lea    -0x3(%rax),%ecx
cmp    $0xfffffffe,%ecx
jb     1370 <main+0x240>
jmp    11f0 <main+0xc0>
lea    0xdec(%rip),%rdi
call   1030 <puts@plt>
lea    0xca0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Digite o seu nome\0A\0A\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [32 x i8] c"\0A\0AOla %s!!\0A \0AVamos come\C3\A7ar.\0A\0A\00"
@.str.3 = [23 x i8] c"\0AVoc\C3\AA saiu do jogo.\0A\0A\00"
@.str.4 = [11 x i8] c"At\C3\A9 logo.\00"
@.str.5 = [29 x i8] c"\0AEntre com as cordenadas:\0A\0A\0A\00"
@.str.6 = [29 x i8] c"\0ADigite a linha que deseja.\0A\00"
@.str.7 = [23 x i8] c"Entre ( 1 ) e ( 5 ):\0A\0A\00"
@.str.8 = [3 x i8] c"%d\00"
@.str.9 = [25 x i8] c"\0AErro, digite novamente\0A\00"
@.str.10 = [30 x i8] c"\0ADigite a coluna que deseja.\0A\00"
@.str.11 = [4 x i8] c"\00%d\00"
@.str.12 = [13 x i8] c"\0A\0ABomBaa!!\0A\0A\00"
@.str.13 = [21 x i8] c"\0A\0AVOC\C3\8A ACERTOU!!!\0A\0A\00"
@.str.14 = [13 x i8] c"\0A\0Ascore:%d\0A\0A\00"
@.str.15 = [22 x i8] c" \0ADeseja continuar?\0A\0A\00"
@.str.16 = [43 x i8] c" Digite( 1 ) para sim e ( 2 ) para n\C3\A3o.\0A\0A\00"
@.str.17 = [8 x i8] c"\0AErro\0A\0A\00"
@.str.18 = [41 x i8] c" digite( 1 ) para sim e ( 2 ) para n\C3\A3o.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [15 x i8]
%3 = alloca [5 x [5 x i32]]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %8
store i32 0, i32* %9
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), [15 x i8]* %2)
%12 = getelementptr inbounds [15 x i8], [15 x i8]* %2, i64 0, i64 0
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %12)
store i32 0, i32* %4
br label %14
14: ; preds = %76, %0
%15 = load i32, i32* %4
%16 = icmp sle i32 %15, 4
br i1 %16, label %17, label %79
17: ; preds = %14
store i32 0, i32* %5
br label %18
18: ; preds = %72, %17
%19 = load i32, i32* %5
%20 = icmp sle i32 %19, 4
br i1 %20, label %21, label %75
21: ; preds = %18
%22 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 0
%23 = getelementptr inbounds [5 x i32], [5 x i32]* %22, i64 0, i64 0
store i32 0, i32* %23
%24 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 0
%25 = getelementptr inbounds [5 x i32], [5 x i32]* %24, i64 0, i64 1
store i32 0, i32* %25
%26 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 0
%27 = getelementptr inbounds [5 x i32], [5 x i32]* %26, i64 0, i64 2
store i32 1, i32* %27
%28 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 0
%29 = getelementptr inbounds [5 x i32], [5 x i32]* %28, i64 0, i64 3
store i32 1, i32* %29
%30 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 0
%31 = getelementptr inbounds [5 x i32], [5 x i32]* %30, i64 0, i64 4
store i32 1, i32* %31
%32 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 1
%33 = getelementptr inbounds [5 x i32], [5 x i32]* %32, i64 0, i64 0
store i32 0, i32* %33
%34 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 1
%35 = getelementptr inbounds [5 x i32], [5 x i32]* %34, i64 0, i64 1
store i32 1, i32* %35
%36 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 1
%37 = getelementptr inbounds [5 x i32], [5 x i32]* %36, i64 0, i64 2
store i32 0, i32* %37
%38 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 1
%39 = getelementptr inbounds [5 x i32], [5 x i32]* %38, i64 0, i64 3
store i32 0, i32* %39
%40 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 1
%41 = getelementptr inbounds [5 x i32], [5 x i32]* %40, i64 0, i64 4
store i32 1, i32* %41
%42 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 2
%43 = getelementptr inbounds [5 x i32], [5 x i32]* %42, i64 0, i64 0
store i32 1, i32* %43
%44 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 2
%45 = getelementptr inbounds [5 x i32], [5 x i32]* %44, i64 0, i64 1
store i32 0, i32* %45
%46 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 2
%47 = getelementptr inbounds [5 x i32], [5 x i32]* %46, i64 0, i64 2
store i32 1, i32* %47
%48 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 2
%49 = getelementptr inbounds [5 x i32], [5 x i32]* %48, i64 0, i64 3
store i32 0, i32* %49
%50 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 2
%51 = getelementptr inbounds [5 x i32], [5 x i32]* %50, i64 0, i64 4
store i32 0, i32* %51
%52 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 3
%53 = getelementptr inbounds [5 x i32], [5 x i32]* %52, i64 0, i64 0
store i32 1, i32* %53
%54 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 3
%55 = getelementptr inbounds [5 x i32], [5 x i32]* %54, i64 0, i64 1
store i32 1, i32* %55
%56 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 3
%57 = getelementptr inbounds [5 x i32], [5 x i32]* %56, i64 0, i64 2
store i32 0, i32* %57
%58 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 3
%59 = getelementptr inbounds [5 x i32], [5 x i32]* %58, i64 0, i64 3
store i32 1, i32* %59
%60 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 3
%61 = getelementptr inbounds [5 x i32], [5 x i32]* %60, i64 0, i64 4
store i32 0, i32* %61
%62 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 4
%63 = getelementptr inbounds [5 x i32], [5 x i32]* %62, i64 0, i64 0
store i32 1, i32* %63
%64 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 4
%65 = getelementptr inbounds [5 x i32], [5 x i32]* %64, i64 0, i64 1
store i32 0, i32* %65
%66 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 4
%67 = getelementptr inbounds [5 x i32], [5 x i32]* %66, i64 0, i64 2
store i32 1, i32* %67
%68 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 4
%69 = getelementptr inbounds [5 x i32], [5 x i32]* %68, i64 0, i64 3
store i32 0, i32* %69
%70 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 4
%71 = getelementptr inbounds [5 x i32], [5 x i32]* %70, i64 0, i64 4
store i32 0, i32* %71
br label %72
72: ; preds = %21
%73 = load i32, i32* %5
%74 = add nsw i32 %73, 1
store i32 %74, i32* %5
br label %18
75: ; preds = %18
br label %76
76: ; preds = %75
%77 = load i32, i32* %4
%78 = add nsw i32 %77, 1
store i32 %78, i32* %4
br label %14
79: ; preds = %14
br label %80
80: ; preds = %202, %79
%81 = load i32, i32* %8
%82 = icmp sle i32 %81, 2
br i1 %82, label %83, label %203
83: ; preds = %80
%84 = load i32, i32* %8
%85 = icmp sgt i32 %84, 1
br i1 %85, label %86, label %92
86: ; preds = %83
%87 = load i32, i32* %8
%88 = icmp slt i32 %87, 3
br i1 %88, label %89, label %92
89: ; preds = %86
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
br label %203
92: ; preds = %86, %83
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %6
store i32 0, i32* %7
br label %94
94: ; preds = %113, %92
%95 = load i32, i32* %6
%96 = icmp sgt i32 %95, 5
br i1 %96, label %100, label %97
97: ; preds = %94
%98 = load i32, i32* %6
%99 = icmp slt i32 %98, 1
br label %100
100: ; preds = %97, %94
%101 = phi i1 [ true, %94 ], [ %99, %97 ]
br i1 %101, label %102, label %114
102: ; preds = %100
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%105 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %6)
%106 = load i32, i32* %6
%107 = icmp sgt i32 %106, 5
br i1 %107, label %111, label %108
108: ; preds = %102
%109 = load i32, i32* %6
%110 = icmp slt i32 %109, 1
br i1 %110, label %111, label %113
111: ; preds = %108, %102
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0))
br label %113
113: ; preds = %111, %108
br label %94
114: ; preds = %100
br label %115
115: ; preds = %134, %114
%116 = load i32, i32* %7
%117 = icmp sgt i32 %116, 5
br i1 %117, label %121, label %118
118: ; preds = %115
%119 = load i32, i32* %7
%120 = icmp slt i32 %119, 1
br label %121
121: ; preds = %118, %115
%122 = phi i1 [ true, %115 ], [ %120, %118 ]
br i1 %122, label %123, label %135
123: ; preds = %121
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0))
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%126 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %7)
%127 = load i32, i32* %7
%128 = icmp sgt i32 %127, 5
br i1 %128, label %132, label %129
129: ; preds = %123
%130 = load i32, i32* %7
%131 = icmp slt i32 %130, 1
br i1 %131, label %132, label %134
132: ; preds = %129, %123
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0))
br label %134
134: ; preds = %132, %129
br label %115
135: ; preds = %121
%136 = load i32, i32* %6
%137 = sub nsw i32 %136, 1
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 %138
%140 = load i32, i32* %7
%141 = sub nsw i32 %140, 1
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [5 x i32], [5 x i32]* %139, i64 0, i64 %142
%144 = load i32, i32* %143
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i32 %144)
%146 = load i32, i32* %6
%147 = sub nsw i32 %146, 1
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 %148
%150 = load i32, i32* %7
%151 = sub nsw i32 %150, 1
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [5 x i32], [5 x i32]* %149, i64 0, i64 %152
%154 = load i32, i32* %153
%155 = icmp slt i32 %154, 1
br i1 %155, label %156, label %158
156: ; preds = %135
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
br label %160
158: ; preds = %135
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0))
br label %160
160: ; preds = %158, %156
%161 = load i32, i32* %6
%162 = sub nsw i32 %161, 1
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %3, i64 0, i64 %163
%165 = load i32, i32* %7
%166 = sub nsw i32 %165, 1
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds [5 x i32], [5 x i32]* %164, i64 0, i64 %167
%169 = load i32, i32* %168
%170 = icmp sgt i32 %169, 0
br i1 %170, label %171, label %176
171: ; preds = %160
%172 = load i32, i32* %9
%173 = add nsw i32 %172, 1
store i32 %173, i32* %9
%174 = load i32, i32* %9
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32 %174)
br label %176
176: ; preds = %171, %160
%177 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0))
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.16, i64 0, i64 0))
%179 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %8)
%180 = load i32, i32* %8
%181 = icmp sgt i32 %180, 1
br i1 %181, label %182, label %188
182: ; preds = %176
%183 = load i32, i32* %8
%184 = icmp slt i32 %183, 3
br i1 %184, label %185, label %188
185: ; preds = %182
%186 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%187 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
br label %203
188: ; preds = %182, %176
br label %189
189: ; preds = %197, %188
%190 = load i32, i32* %8
%191 = icmp sgt i32 %190, 2
br i1 %191, label %195, label %192
192: ; preds = %189
%193 = load i32, i32* %8
%194 = icmp slt i32 %193, 1
br label %195
195: ; preds = %192, %189
%196 = phi i1 [ true, %189 ], [ %194, %192 ]
br i1 %196, label %197, label %202
197: ; preds = %195
store i32 0, i32* %8
%198 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%199 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0))
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.18, i64 0, i64 0))
%201 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %8)
br label %189
202: ; preds = %195
br label %80
203: ; preds = %185, %89, %80
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [32 x i8] c"\0A\0AOla %s!!\0A \0AVamos come\C3\A7ar.\0A\0A\00"
@.str.4 = [11 x i8] c"At\C3\A9 logo.\00"
@.str.8 = [3 x i8] c"%d\00"
@.str.14 = [13 x i8] c"\0A\0Ascore:%d\0A\0A\00"
@.str.18 = [41 x i8] c" digite( 1 ) para sim e ( 2 ) para n\C3\A3o.\00"
@str = [19 x i8] c"Digite o seu nome\0A\00"
@str.19 = [28 x i8] c"\0AEntre com as cordenadas:\0A\0A\00"
@str.20 = [20 x i8] c"\0A\0AVOC\C3\8A ACERTOU!!!\0A\00"
@str.22 = [42 x i8] c" Digite( 1 ) para sim e ( 2 ) para n\C3\A3o.\0A\00"
@str.23 = [7 x i8] c"\0AErro\0A\00"
@str.24 = [21 x i8] c" \0ADeseja continuar?\0A\00"
@str.26 = [12 x i8] c"\0A\0ABomBaa!!\0A\00"
@str.27 = [29 x i8] c"\0ADigite a coluna que deseja.\00"
@str.30 = [28 x i8] c"\0ADigite a linha que deseja.\00"
@str.31 = [22 x i8] c"Entre ( 1 ) e ( 5 ):\0A\00"
@str.32 = [24 x i8] c"\0AErro, digite novamente\00"
@str.33 = [22 x i8] c"\0AVoc\C3\AA saiu do jogo.\0A\00"
define i32 @main() {
%1 = alloca [15 x i8]
%2 = alloca [5 x [5 x i32]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = getelementptr inbounds [15 x i8], [15 x i8]* %1, i64 0, i64 0
%7 = bitcast [5 x [5 x i32]]* %2 to i8*
%8 = bitcast i32* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), [15 x i8]* %1)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %6)
%14 = bitcast [5 x [5 x i32]]* %2 to <4 x i32>*
store <4 x i32> <i32 0, i32 0, i32 1, i32 1>, <4 x i32>* %14
%15 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 0, i64 4
%16 = bitcast i32* %15 to <4 x i32>*
store <4 x i32> <i32 1, i32 0, i32 1, i32 0>, <4 x i32>* %16
%17 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 1, i64 3
%18 = bitcast i32* %17 to <4 x i32>*
store <4 x i32> <i32 0, i32 1, i32 1, i32 0>, <4 x i32>* %18
%19 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 2, i64 2
%20 = bitcast i32* %19 to <4 x i32>*
store <4 x i32> <i32 1, i32 0, i32 0, i32 1>, <4 x i32>* %20
%21 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 3, i64 1
%22 = bitcast i32* %21 to <4 x i32>*
store <4 x i32> <i32 1, i32 0, i32 1, i32 0>, <4 x i32>* %22
%23 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 4, i64 0
%24 = bitcast i32* %23 to <4 x i32>*
store <4 x i32> <i32 1, i32 0, i32 1, i32 0>, <4 x i32>* %24
%25 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 4, i64 4
store i32 0, i32* %25
br label %29
26: ; preds = %98, %95
%27 = phi i32 [ 1, %95 ], [ %103, %98 ]
%28 = icmp eq i32 %27, 2
br i1 %28, label %106, label %29
29: ; preds = %0, %26
%30 = phi i32 [ 0, %0 ], [ %89, %26 ]
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.19, i64 0, i64 0))
store i32 0, i32* %3
store i32 0, i32* %4
br label %37
32: ; preds = %37, %44
%33 = phi i32 [ %46, %44 ], [ %41, %37 ]
%34 = load i32, i32* %4
%35 = add i32 %34, -6
%36 = icmp ult i32 %35, -5
br i1 %36, label %49, label %64
37: ; preds = %29, %44
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.30, i64 0, i64 0))
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.31, i64 0, i64 0))
%40 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %3)
%41 = load i32, i32* %3
%42 = add i32 %41, -6
%43 = icmp ult i32 %42, -5
br i1 %43, label %44, label %32
44: ; preds = %37
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.32, i64 0, i64 0))
%46 = load i32, i32* %3
%47 = add i32 %46, -6
%48 = icmp ult i32 %47, -5
br i1 %48, label %37, label %32
49: ; preds = %32, %56
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.27, i64 0, i64 0))
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.31, i64 0, i64 0))
%52 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %4)
%53 = load i32, i32* %4
%54 = add i32 %53, -6
%55 = icmp ult i32 %54, -5
br i1 %55, label %56, label %61
56: ; preds = %49
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.32, i64 0, i64 0))
%58 = load i32, i32* %4
%59 = add i32 %58, -6
%60 = icmp ult i32 %59, -5
br i1 %60, label %49, label %61
61: ; preds = %49, %56
%62 = phi i32 [ %58, %56 ], [ %53, %49 ]
%63 = load i32, i32* %3
br label %64
64: ; preds = %61, %32
%65 = phi i32 [ %33, %32 ], [ %63, %61 ]
%66 = phi i32 [ %34, %32 ], [ %62, %61 ]
%67 = add nsw i32 %65, -1
%68 = sext i32 %67 to i64
%69 = add nsw i32 %66, -1
%70 = zext i32 %69 to i64
%71 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %68, i64 %70
%72 = load i32, i32* %71
%73 = icmp slt i32 %72, 1
%74 = select i1 %73, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str.26, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @str.20, i64 0, i64 0)
%75 = call i32 @puts(i8* dereferenceable(1) %74)
%76 = load i32, i32* %3
%77 = add nsw i32 %76, -1
%78 = sext i32 %77 to i64
%79 = load i32, i32* %4
%80 = add nsw i32 %79, -1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %78, i64 %81
%83 = load i32, i32* %82
%84 = icmp sgt i32 %83, 0
br i1 %84, label %85, label %88
85: ; preds = %64
%86 = add nsw i32 %30, 1
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32 %86)
br label %88
88: ; preds = %85, %64
%89 = phi i32 [ %86, %85 ], [ %30, %64 ]
%90 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.24, i64 0, i64 0))
%91 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.22, i64 0, i64 0))
%92 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %5)
%93 = load i32, i32* %5
%94 = icmp eq i32 %93, 2
br i1 %94, label %106, label %95
95: ; preds = %88
%96 = add i32 %93, -3
%97 = icmp ult i32 %96, -2
br i1 %97, label %98, label %26
98: ; preds = %95, %98
store i32 0, i32* %5
%99 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.23, i64 0, i64 0))
%100 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.24, i64 0, i64 0))
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.18, i64 0, i64 0))
%102 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %5)
%103 = load i32, i32* %5
%104 = add i32 %103, -3
%105 = icmp ult i32 %104, -2
br i1 %105, label %98, label %26
106: ; preds = %88, %26
%107 = phi i8* [ getelementptr inbounds ([22 x i8], [22 x i8]* @str.33, i64 0, i64 0), %26 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @str.33, i64 0, i64 0), %88 ]
%108 = call i32 @puts(i8* dereferenceable(1) %107)
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}