#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() {
  int mapa[5][5] = {{0, 0, 0, 0, 0},
                    {0, 0, 1, 1, 0},
                    {0, 1, 0, 1, 0},
                    {0, 1, 0, 0, 1},
                    {0, 0, 1, 0, 0}};
  int i, j;
  char jogo[5][5];
  char nome[90];
  int continuar = 1;
  int pontos = 0;
  printf("Qual o seu nome?\n");
  scanf("%s", nome);
  for (i = 1; i < 6; i++) {
    for (j = 1; j < 6; j++) {
      jogo[i][j] = '.';
    }
  }
  printf("Entre com as coordenadas:\n\n");
  printf("Numero da linha:\n");
  scanf("%d", &i);
  printf("Numero da Coluna:\n");
  scanf("%d", &j);
  if (mapa[i][j] == 1) {
    jogo[i][j] = 'X';
    pontos++;
    printf("Bomba! Você ganhou %d ponto(s)\n", pontos);
    printf("Deseja Continuar? 1 = Sim / 0= Não:");
    scanf("%d", &continuar);
  } else {
    jogo[i][j] = 'O';
    printf("Agua!!, que pena\n");
    printf("Deseja Continuar? 1 = Sim / 0= Não:");
    scanf("%d", &continuar);
  }
  for (i = 1; i < 6; i++) {
    for (j = 1; j < 6; j++) {
      printf("%c  ", jogo[i][j]);
    }
    printf("\n");
  }
  while (continuar == 1) {
    printf("Numero da linha:\n");
    scanf("%d", &i);
    printf("Numero da Coluna:\n");
    scanf("%d", &j);
    if (mapa[i][j] == 1) {
      jogo[i][j] = 'X';
      pontos++;
      printf("Bomba! Você ganhou %d ponto(s)\n", pontos);
      printf("Deseja Continuar? 1 = Sim / 0= Não:");
      scanf("%d", &continuar);
    } else {
      jogo[i][j] = 'O';
      printf("Agua!!, que pena.\n");
      printf("Deseja Continuar? 1 = Sim / 0= Não:");
      scanf("%d", &continuar);
    }
    for (i = 1; i < 6; i++) {
      for (j = 1; j < 6; j++) {
        printf("%c  ", jogo[i][j]);
      }
      printf("\n");
    }
  }
  printf("Olá %s", nome);
  printf(" você fez %d pontos.\n", pontos);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xeb3(%rip),%rsi
mov    $0x64,%edx
call   1040 <memcpy@plt>
movl   $0x1,-0x104(%rbp)
movl   $0x0,-0x108(%rbp)
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x100(%rbp),%rsi
lea    0xfa8(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
movl   $0x1,-0x74(%rbp)
cmpl   $0x6,-0x74(%rbp)
jge    11eb <main+0xbb>
movl   $0x1,-0x78(%rbp)
cmpl   $0x6,-0x78(%rbp)
jge    11d8 <main+0xa8>
movslq -0x74(%rbp),%rcx
lea    -0xa0(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x78(%rbp),%rcx
movb   $0x2e,(%rax,%rcx,1)
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    11a6 <main+0x76>
jmp    11dd <main+0xad>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    1195 <main+0x65>
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe96(%rip),%rdi
lea    -0x74(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe76(%rip),%rdi
lea    -0x78(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movslq -0x74(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x78(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    12bb <main+0x18b>
movslq -0x74(%rbp),%rcx
lea    -0xa0(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x78(%rbp),%rcx
movb   $0x58,(%rax,%rcx,1)
mov    -0x108(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x108(%rbp)
mov    -0x108(%rbp),%esi
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdfc(%rip),%rdi
lea    -0x104(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
jmp    1306 <main+0x1d6>
movslq -0x74(%rbp),%rcx
lea    -0xa0(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x78(%rbp),%rcx
movb   $0x4f,(%rax,%rcx,1)
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdac(%rip),%rdi
lea    -0x104(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movl   $0x1,-0x74(%rbp)
cmpl   $0x6,-0x74(%rbp)
jge    137a <main+0x24a>
movl   $0x1,-0x78(%rbp)
cmpl   $0x6,-0x78(%rbp)
jge    135e <main+0x22e>
movslq -0x74(%rbp),%rcx
lea    -0xa0(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x78(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    131e <main+0x1ee>
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    130d <main+0x1dd>
jmp    137f <main+0x24f>
cmpl   $0x1,-0x104(%rbp)
jne    1512 <main+0x3e2>
lea    0xcff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd03(%rip),%rdi
lea    -0x74(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xcf4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xce3(%rip),%rdi
lea    -0x78(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movslq -0x74(%rbp),%rcx
lea    -0x70(%rbp),%rax
imul   $0x14,%rcx,%rcx
add    %rcx,%rax
movslq -0x78(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    144e <main+0x31e>
movslq -0x74(%rbp),%rcx
lea    -0xa0(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x78(%rbp),%rcx
movb   $0x58,(%rax,%rcx,1)
mov    -0x108(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x108(%rbp)
mov    -0x108(%rbp),%esi
lea    0xc9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc69(%rip),%rdi
lea    -0x104(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
jmp    1499 <main+0x369>
movslq -0x74(%rbp),%rcx
lea    -0xa0(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x78(%rbp),%rcx
movb   $0x4f,(%rax,%rcx,1)
lea    0xca8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc19(%rip),%rdi
lea    -0x104(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movl   $0x1,-0x74(%rbp)
cmpl   $0x6,-0x74(%rbp)
jge    150d <main+0x3dd>
movl   $0x1,-0x78(%rbp)
cmpl   $0x6,-0x78(%rbp)
jge    14f1 <main+0x3c1>
movslq -0x74(%rbp),%rcx
lea    -0xa0(%rbp),%rax
imul   $0x5,%rcx,%rcx
add    %rcx,%rax
movslq -0x78(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xc36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    14b1 <main+0x381>
lea    0xb98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    14a0 <main+0x370>
jmp    137f <main+0x24f>
lea    -0x100(%rbp),%rsi
lea    0xc0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x108(%rbp),%esi
lea    0xbfe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
movl   $0x1,0xc(%rsp)
lea    0xf81(%rip),%rdi
call   1040 <puts@plt>
lea    0xf5b(%rip),%rdi
xor    %ebp,%ebp
lea    0x30(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movaps 0xe7f(%rip),%xmm0
movups %xmm0,0x16(%rsp)
movups %xmm0,0x1f(%rsp)
movl   $0x6,0x8(%rsp)
movl   $0x6,0x4(%rsp)
lea    0xf50(%rip),%rdi
call   1040 <puts@plt>
lea    0xf70(%rip),%rdi
call   1040 <puts@plt>
lea    0xeba(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xf5f(%rip),%rdi
call   1040 <puts@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
movslq 0x8(%rsp),%rax
movslq 0x4(%rsp),%r14
lea    (%rax,%rax,4),%rbx
lea    0xe17(%rip),%rax
lea    (%rax,%rbx,4),%rax
cmpl   $0x1,(%rax,%r14,4)
jne    1221 <main+0xe1>
lea    0xe6c(%rip),%rdi
mov    $0x1,%ebp
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x58,%r15b
jmp    1230 <main+0xf0>
lea    0xee5(%rip),%rdi
call   1040 <puts@plt>
mov    $0x4f,%r15b
lea    0xe61(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe2f(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    (%rsp,%rbx,1),%rax
add    $0x10,%rax
mov    %r15b,(%r14,%rax,1)
movl   $0x1,0x8(%rsp)
mov    $0x1,%eax
lea    0xe4c(%rip),%rbx
jmp    129a <main+0x15a>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x8(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x8(%rsp)
cmp    $0x5,%ecx
jge    1305 <main+0x1c5>
movl   $0x1,0x4(%rsp)
cltq
lea    (%rax,%rax,4),%rax
movsbl 0x11(%rsp,%rax,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x4(%rsp)
cmp    $0x4,%ecx
jg     1280 <main+0x140>
nopw   0x0(%rax,%rax,1)
movslq 0x8(%rsp),%rcx
cltq
lea    (%rcx,%rcx,4),%rcx
add    %rsp,%rcx
add    $0x10,%rcx
movsbl (%rax,%rcx,1),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x4(%rsp)
cmp    $0x5,%ecx
jl     12d0 <main+0x190>
jmp    1280 <main+0x140>
cmpl   $0x1,0xc(%rsp)
jne    1475 <main+0x335>
lea    0xd5d(%rip),%rbx
lea    0xd9f(%rip),%r12
jmp    132b <main+0x1eb>
cmpl   $0x1,0xc(%rsp)
jne    1475 <main+0x335>
lea    0xdec(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xde2(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movslq 0x8(%rsp),%rax
movslq 0x4(%rsp),%r13
lea    (%rax,%rax,4),%r14
lea    0xc9a(%rip),%rax
lea    (%rax,%r14,4),%rax
cmpl   $0x1,(%rax,%r13,4)
jne    13a0 <main+0x260>
add    $0x1,%ebp
lea    0xcec(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x58,%r15b
jmp    13af <main+0x26f>
nopl   0x0(%rax)
lea    0xd9a(%rip),%rdi
call   1040 <puts@plt>
mov    $0x4f,%r15b
lea    0xce2(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    (%rsp,%r14,1),%rax
add    $0x10,%rax
mov    %r15b,0x0(%r13,%rax,1)
movl   $0x1,0x8(%rsp)
mov    $0x1,%eax
jmp    140e <main+0x2ce>
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x8(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x8(%rsp)
cmp    $0x5,%ecx
jge    1320 <main+0x1e0>
movl   $0x1,0x4(%rsp)
cltq
lea    (%rax,%rax,4),%rax
movsbl 0x11(%rsp,%rax,1),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x4(%rsp)
cmp    $0x4,%ecx
jg     13f0 <main+0x2b0>
nopl   0x0(%rax,%rax,1)
movslq 0x8(%rsp),%rcx
cltq
lea    (%rcx,%rcx,4),%rcx
add    %rsp,%rcx
add    $0x10,%rcx
movsbl (%rax,%rcx,1),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x4(%rsp)
cmp    $0x5,%ecx
jl     1440 <main+0x300>
jmp    13f0 <main+0x2b0>
lea    0xc46(%rip),%rdi
lea    0x30(%rsp),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc3b(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.mapa = [5 x [5 x i32]] [[5 x i32] zeroinitializer, [5 x i32] [i32 0, i32 0, i32 1, i32 1, i32 0], [5 x i32] [i32 0, i32 1, i32 0, i32 1, i32 0], [5 x i32] [i32 0, i32 1, i32 0, i32 0, i32 1], [5 x i32] [i32 0, i32 0, i32 1, i32 0, i32 0]]
@.str = [18 x i8] c"Qual o seu nome?\0A\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [28 x i8] c"Entre com as coordenadas:\0A\0A\00"
@.str.3 = [18 x i8] c"Numero da linha:\0A\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [19 x i8] c"Numero da Coluna:\0A\00"
@.str.6 = [33 x i8] c"Bomba! Voc\C3\AA ganhou %d ponto(s)\0A\00"
@.str.7 = [37 x i8] c"Deseja Continuar? 1 = Sim / 0= N\C3\A3o:\00"
@.str.8 = [18 x i8] c"Agua!!, que pena\0A\00"
@.str.9 = [5 x i8] c"%c \00"
@.str.10 = [2 x i8] c"\0A\00"
@.str.11 = [19 x i8] c"Agua!!, que pena.\0A\00"
@.str.12 = [8 x i8] c"Ol\C3\A1 %s\00"
@.str.13 = [23 x i8] c" voc\C3\AA fez %d pontos.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x [5 x i32]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca [5 x [5 x i8]]
%6 = alloca [90 x i8]
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
%9 = bitcast [5 x [5 x i32]]* %2 to i8*
store i32 1, i32* %7
store i32 0, i32* %8
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%11 = getelementptr inbounds [90 x i8], [90 x i8]* %6, i64 0, i64 0
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %11)
store i32 1, i32* %3
br label %13
13: ; preds = %31, %0
%14 = load i32, i32* %3
%15 = icmp slt i32 %14, 6
br i1 %15, label %16, label %34
16: ; preds = %13
store i32 1, i32* %4
br label %17
17: ; preds = %27, %16
%18 = load i32, i32* %4
%19 = icmp slt i32 %18, 6
br i1 %19, label %20, label %30
20: ; preds = %17
%21 = load i32, i32* %3
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %5, i64 0, i64 %22
%24 = load i32, i32* %4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [5 x i8], [5 x i8]* %23, i64 0, i64 %25
store i8 46, i8* %26
br label %27
27: ; preds = %20
%28 = load i32, i32* %4
%29 = add nsw i32 %28, 1
store i32 %29, i32* %4
br label %17
30: ; preds = %17
br label %31
31: ; preds = %30
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 1
store i32 %33, i32* %3
br label %13
34: ; preds = %13
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%39 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%40 = load i32, i32* %3
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %41
%43 = load i32, i32* %4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [5 x i32], [5 x i32]* %42, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = icmp eq i32 %46, 1
br i1 %47, label %48, label %61
48: ; preds = %34
%49 = load i32, i32* %3
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %5, i64 0, i64 %50
%52 = load i32, i32* %4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [5 x i8], [5 x i8]* %51, i64 0, i64 %53
store i8 88, i8* %54
%55 = load i32, i32* %8
%56 = add nsw i32 %55, 1
store i32 %56, i32* %8
%57 = load i32, i32* %8
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i32 %57)
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%60 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
br label %71
61: ; preds = %34
%62 = load i32, i32* %3
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %5, i64 0, i64 %63
%65 = load i32, i32* %4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [5 x i8], [5 x i8]* %64, i64 0, i64 %66
store i8 79, i8* %67
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%70 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
br label %71
71: ; preds = %61, %48
store i32 1, i32* %3
br label %72
72: ; preds = %94, %71
%73 = load i32, i32* %3
%74 = icmp slt i32 %73, 6
br i1 %74, label %75, label %97
75: ; preds = %72
store i32 1, i32* %4
br label %76
76: ; preds = %89, %75
%77 = load i32, i32* %4
%78 = icmp slt i32 %77, 6
br i1 %78, label %79, label %92
79: ; preds = %76
%80 = load i32, i32* %3
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %5, i64 0, i64 %81
%83 = load i32, i32* %4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [5 x i8], [5 x i8]* %82, i64 0, i64 %84
%86 = load i8, i8* %85
%87 = sext i8 %86 to i32
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %87)
br label %89
89: ; preds = %79
%90 = load i32, i32* %4
%91 = add nsw i32 %90, 1
store i32 %91, i32* %4
br label %76
92: ; preds = %76
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %94
94: ; preds = %92
%95 = load i32, i32* %3
%96 = add nsw i32 %95, 1
store i32 %96, i32* %3
br label %72
97: ; preds = %72
br label %98
98: ; preds = %163, %97
%99 = load i32, i32* %7
%100 = icmp eq i32 %99, 1
br i1 %100, label %101, label %164
101: ; preds = %98
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%103 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%105 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%106 = load i32, i32* %3
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %2, i64 0, i64 %107
%109 = load i32, i32* %4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [5 x i32], [5 x i32]* %108, i64 0, i64 %110
%112 = load i32, i32* %111
%113 = icmp eq i32 %112, 1
br i1 %113, label %114, label %127
114: ; preds = %101
%115 = load i32, i32* %3
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %5, i64 0, i64 %116
%118 = load i32, i32* %4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [5 x i8], [5 x i8]* %117, i64 0, i64 %119
store i8 88, i8* %120
%121 = load i32, i32* %8
%122 = add nsw i32 %121, 1
store i32 %122, i32* %8
%123 = load i32, i32* %8
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i32 %123)
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%126 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
br label %137
127: ; preds = %101
%128 = load i32, i32* %3
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %5, i64 0, i64 %129
%131 = load i32, i32* %4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [5 x i8], [5 x i8]* %130, i64 0, i64 %132
store i8 79, i8* %133
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0))
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%136 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
br label %137
137: ; preds = %127, %114
store i32 1, i32* %3
br label %138
138: ; preds = %160, %137
%139 = load i32, i32* %3
%140 = icmp slt i32 %139, 6
br i1 %140, label %141, label %163
141: ; preds = %138
store i32 1, i32* %4
br label %142
142: ; preds = %155, %141
%143 = load i32, i32* %4
%144 = icmp slt i32 %143, 6
br i1 %144, label %145, label %158
145: ; preds = %142
%146 = load i32, i32* %3
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %5, i64 0, i64 %147
%149 = load i32, i32* %4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [5 x i8], [5 x i8]* %148, i64 0, i64 %150
%152 = load i8, i8* %151
%153 = sext i8 %152 to i32
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %153)
br label %155
155: ; preds = %145
%156 = load i32, i32* %4
%157 = add nsw i32 %156, 1
store i32 %157, i32* %4
br label %142
158: ; preds = %142
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %160
160: ; preds = %158
%161 = load i32, i32* %3
%162 = add nsw i32 %161, 1
store i32 %162, i32* %3
br label %138
163: ; preds = %138
br label %98
164: ; preds = %98
%165 = getelementptr inbounds [90 x i8], [90 x i8]* %6, i64 0, i64 0
%166 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %165)
%167 = load i32, i32* %8
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0), i32 %167)
ret i32 0
}

LLVM IR (-O2):
@__const.main.mapa = [5 x [5 x i32]] [[5 x i32] zeroinitializer, [5 x i32] [i32 0, i32 0, i32 1, i32 1, i32 0], [5 x i32] [i32 0, i32 1, i32 0, i32 1, i32 0], [5 x i32] [i32 0, i32 1, i32 0, i32 0, i32 1], [5 x i32] [i32 0, i32 0, i32 1, i32 0, i32 0]]
@.str.1 = [3 x i8] c"%s\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.6 = [33 x i8] c"Bomba! Voc\C3\AA ganhou %d ponto(s)\0A\00"
@.str.7 = [37 x i8] c"Deseja Continuar? 1 = Sim / 0= N\C3\A3o:\00"
@.str.9 = [5 x i8] c"%c \00"
@.str.12 = [8 x i8] c"Ol\C3\A1 %s\00"
@.str.13 = [23 x i8] c" voc\C3\AA fez %d pontos.\0A\00"
@str = [17 x i8] c"Qual o seu nome?\00"
@str.14 = [27 x i8] c"Entre com as coordenadas:\0A\00"
@str.17 = [17 x i8] c"Agua!!, que pena\00"
@str.18 = [17 x i8] c"Numero da linha:\00"
@str.19 = [18 x i8] c"Numero da Coluna:\00"
@str.20 = [18 x i8] c"Agua!!, que pena.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [5 x [5 x i8]]
%4 = alloca [90 x i8]
%5 = alloca i32
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 0, i64 0
%9 = getelementptr inbounds [90 x i8], [90 x i8]* %4, i64 0, i64 0
%10 = bitcast i32* %5 to i8*
store i32 1, i32* %5
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 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), i8* %9)
%13 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 1, i64 1
store i32 6, i32* %1
store i32 6, i32* %2
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.14, i64 0, i64 0))
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.18, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.19, i64 0, i64 0))
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%19 = load i32, i32* %1
%20 = sext i32 %19 to i64
%21 = load i32, i32* %2
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* @__const.main.mapa, i64 0, i64 %20, i64 %22
%24 = load i32, i32* %23
%25 = icmp eq i32 %24, 1
br i1 %25, label %26, label %28
26: ; preds = %0
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i32 1)
br label %30
28: ; preds = %0
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.17, i64 0, i64 0))
br label %30
30: ; preds = %28, %26
%31 = phi i8 [ 88, %26 ], [ 79, %28 ]
%32 = phi i32 [ 1, %26 ], [ 0, %28 ]
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%34 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %5)
%35 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %20, i64 %22
store i8 %31, i8* %35
store i32 1, i32* %1
br label %36
36: ; preds = %30, %61
%37 = phi i32 [ 1, %30 ], [ %64, %61 ]
store i32 1, i32* %2
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %38, i64 1
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %41)
%43 = load i32, i32* %2
%44 = add nsw i32 %43, 1
store i32 %44, i32* %2
%45 = icmp slt i32 %43, 5
br i1 %45, label %49, label %61
46: ; preds = %61
%47 = load i32, i32* %5
%48 = icmp eq i32 %47, 1
br i1 %48, label %69, label %120
49: ; preds = %36, %49
%50 = phi i32 [ %59, %49 ], [ %44, %36 ]
%51 = load i32, i32* %1
%52 = sext i32 %51 to i64
%53 = sext i32 %50 to i64
%54 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %52, i64 %53
%55 = load i8, i8* %54
%56 = sext i8 %55 to i32
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %56)
%58 = load i32, i32* %2
%59 = add nsw i32 %58, 1
store i32 %59, i32* %2
%60 = icmp slt i32 %58, 5
br i1 %60, label %49, label %61
61: ; preds = %49, %36
%62 = call i32 @putchar(i32 10)
%63 = load i32, i32* %1
%64 = add nsw i32 %63, 1
store i32 %64, i32* %1
%65 = icmp slt i32 %63, 5
br i1 %65, label %36, label %46
66: ; preds = %115
%67 = load i32, i32* %5
%68 = icmp eq i32 %67, 1
br i1 %68, label %69, label %120
69: ; preds = %46, %66
%70 = phi i32 [ %89, %66 ], [ %32, %46 ]
%71 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.18, i64 0, i64 0))
%72 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.19, i64 0, i64 0))
%74 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %2)
%75 = load i32, i32* %1
%76 = sext i32 %75 to i64
%77 = load i32, i32* %2
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* @__const.main.mapa, i64 0, i64 %76, i64 %78
%80 = load i32, i32* %79
%81 = icmp eq i32 %80, 1
br i1 %81, label %82, label %85
82: ; preds = %69
%83 = add nsw i32 %70, 1
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i32 %83)
br label %87
85: ; preds = %69
%86 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.20, i64 0, i64 0))
br label %87
87: ; preds = %85, %82
%88 = phi i8 [ 88, %82 ], [ 79, %85 ]
%89 = phi i32 [ %83, %82 ], [ %70, %85 ]
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%91 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %5)
%92 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %76, i64 %78
store i8 %88, i8* %92
store i32 1, i32* %1
br label %93
93: ; preds = %87, %115
%94 = phi i32 [ 1, %87 ], [ %118, %115 ]
store i32 1, i32* %2
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %95, i64 1
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %98)
%100 = load i32, i32* %2
%101 = add nsw i32 %100, 1
store i32 %101, i32* %2
%102 = icmp slt i32 %100, 5
br i1 %102, label %103, label %115
103: ; preds = %93, %103
%104 = phi i32 [ %113, %103 ], [ %101, %93 ]
%105 = load i32, i32* %1
%106 = sext i32 %105 to i64
%107 = sext i32 %104 to i64
%108 = getelementptr inbounds [5 x [5 x i8]], [5 x [5 x i8]]* %3, i64 0, i64 %106, i64 %107
%109 = load i8, i8* %108
%110 = sext i8 %109 to i32
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %110)
%112 = load i32, i32* %2
%113 = add nsw i32 %112, 1
store i32 %113, i32* %2
%114 = icmp slt i32 %112, 5
br i1 %114, label %103, label %115
115: ; preds = %103, %93
%116 = call i32 @putchar(i32 10)
%117 = load i32, i32* %1
%118 = add nsw i32 %117, 1
store i32 %118, i32* %1
%119 = icmp slt i32 %117, 5
br i1 %119, label %93, label %66
120: ; preds = %66, %46
%121 = phi i32 [ %32, %46 ], [ %89, %66 ]
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %9)
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0), i32 %121)
ret i32 0
}