#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*/ GerarBarco(int **);
int /*<<< orphan*/ Tela(int **, int **, int, int);
int /*<<< orphan*/ Tiro(int **, int **, int *);
int /*<<< orphan*/ ZerarMatriz(int **, int **);
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ system(char *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  int P1[6][8], P2[6][8], P1Tela[6][8], P2Tela[6][8];
  int P1Ponto, P2Ponto;
  int i, j;
  char Jogar = 's';
  srand(time(NULL));
  printf(
      " ____        _        _ _             _   _                  _\n| __ )  "
      "__ _| |_ __ _| | |__   __ _  | \\ | | __ ___   ____ _| |\n| \\_ \\ / _` "
      "| __/ _` | | '_ \\ / _` | |  \\| |/ _` \\ \\ / / _` | |\n| |_) | (_| | "
      "|_ (_| | | | | | (_| | | |\\  | (_| |\\ V / (_| | |\n|____/ "
      "\\__,_|\\__\\__,_|_|_| |_|\\__,_| |_| \\_|\\__,_| \\_/ \\__,_|_|\n");
  printf("\t\tAperte enter para jogar...");
  getchar();
  system("clear||cls");
  while ((Jogar == 's') || (Jogar == 'S')) {
    P1Ponto = 0;
    P2Ponto = 0;
    ZerarMatriz(P1, P2);
    ZerarMatriz(P1Tela, P2Tela);
    GerarBarco(P1);
    GerarBarco(P2);
    while ((P1Ponto != 10) && (P2Ponto != 10)) {
      system("clear||cls");
      for (i = 0; i < 6; i++) {
        for (j = 0; j < 8; j++) {
          printf("%d ", P1[i][j]);
        }
        printf("\n");
      }
      printf("\n");
      for (i = 0; i < 6; i++) {
        for (j = 0; j < 8; j++) {
          printf("%d ", P2[i][j]);
        }
        printf("\n");
      }
      Tela(P1Tela, P2Tela, P1Ponto, P2Ponto);
      printf("\t\t Jogador 1");
      Tiro(P2, P2Tela, &P1Ponto);
      system("clear||cls");
      if (P1Ponto != 10) {
        for (i = 0; i < 6; i++) {
          for (j = 0; j < 8; j++) {
            printf("%d ", P1[i][j]);
          }
          printf("\n");
        }
        printf("\n");
        for (i = 0; i < 6; i++) {
          for (j = 0; j < 8; j++) {
            printf("%d ", P2[i][j]);
          }
          printf("\n");
        }
        Tela(P1Tela, P2Tela, P1Ponto, P2Ponto);
        printf("\t\t Jogador 2\n");
        Tiro(P1, P1Tela, &P2Ponto);
      }
    }
    system("clear || cls");
    if (P1Ponto == 10) {
      printf("\n\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!PLAYER 1 GANHOU "
             "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n");
    } else {
      printf("\n\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!PLAYER 2 GANHOU "
             "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n");
    }
    printf("\n\tQuer jogar de novo?(S/N)\n");
    scanf("%c", &Jogar);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x330,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x73,-0x321(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1060 <srand@plt>
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf62(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <getchar@plt>
lea    0xf6a(%rip),%rdi
call   1040 <system@plt>
movsbl -0x321(%rbp),%ecx
mov    $0x1,%al
cmp    $0x73,%ecx
mov    %al,-0x322(%rbp)
je     1223 <main+0x83>
movsbl -0x321(%rbp),%eax
cmp    $0x53,%eax
sete   %al
mov    %al,-0x322(%rbp)
mov    -0x322(%rbp),%al
test   $0x1,%al
jne    1236 <main+0x96>
jmp    1638 <main+0x498>
movl   $0x0,-0x314(%rbp)
movl   $0x0,-0x318(%rbp)
lea    -0xd0(%rbp),%rdi
lea    -0x190(%rbp),%rsi
call   1080 <ZerarMatriz@plt>
lea    -0x250(%rbp),%rdi
lea    -0x310(%rbp),%rsi
call   1080 <ZerarMatriz@plt>
lea    -0xd0(%rbp),%rdi
call   10c0 <GerarBarco@plt>
lea    -0x190(%rbp),%rdi
call   10c0 <GerarBarco@plt>
xor    %eax,%eax
cmpl   $0xa,-0x314(%rbp)
mov    %al,-0x323(%rbp)
je     12ad <main+0x10d>
cmpl   $0xa,-0x318(%rbp)
setne  %al
mov    %al,-0x323(%rbp)
mov    -0x323(%rbp),%al
test   $0x1,%al
jne    12c0 <main+0x120>
jmp    15d8 <main+0x438>
lea    0xe96(%rip),%rdi
call   1040 <system@plt>
movl   $0x0,-0x31c(%rbp)
cmpl   $0x6,-0x31c(%rbp)
jge    135d <main+0x1bd>
movl   $0x0,-0x320(%rbp)
cmpl   $0x8,-0x320(%rbp)
jge    133b <main+0x19b>
movslq -0x31c(%rbp),%rcx
lea    -0xd0(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
movslq -0x320(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x320(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x320(%rbp)
jmp    12ed <main+0x14d>
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x31c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x31c(%rbp)
jmp    12d6 <main+0x136>
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x31c(%rbp)
cmpl   $0x6,-0x31c(%rbp)
jge    13fc <main+0x25c>
movl   $0x0,-0x320(%rbp)
cmpl   $0x8,-0x320(%rbp)
jge    13da <main+0x23a>
movslq -0x31c(%rbp),%rcx
lea    -0x190(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
movslq -0x320(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x320(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x320(%rbp)
jmp    138c <main+0x1ec>
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x31c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x31c(%rbp)
jmp    1375 <main+0x1d5>
lea    -0x250(%rbp),%rdi
lea    -0x310(%rbp),%rsi
mov    -0x314(%rbp),%edx
mov    -0x318(%rbp),%ecx
call   10a0 <Tela@plt>
lea    0xd4a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x190(%rbp),%rdi
lea    -0x310(%rbp),%rsi
lea    -0x314(%rbp),%rdx
call   1030 <Tiro@plt>
lea    0xd13(%rip),%rdi
call   1040 <system@plt>
cmpl   $0xa,-0x314(%rbp)
je     15d3 <main+0x433>
movl   $0x0,-0x31c(%rbp)
cmpl   $0x6,-0x31c(%rbp)
jge    14ed <main+0x34d>
movl   $0x0,-0x320(%rbp)
cmpl   $0x8,-0x320(%rbp)
jge    14cb <main+0x32b>
movslq -0x31c(%rbp),%rcx
lea    -0xd0(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
movslq -0x320(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xcb8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x320(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x320(%rbp)
jmp    147d <main+0x2dd>
lea    0xd21(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x31c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x31c(%rbp)
jmp    1466 <main+0x2c6>
lea    0xcff(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x31c(%rbp)
cmpl   $0x6,-0x31c(%rbp)
jge    158c <main+0x3ec>
movl   $0x0,-0x320(%rbp)
cmpl   $0x8,-0x320(%rbp)
jge    156a <main+0x3ca>
movslq -0x31c(%rbp),%rcx
lea    -0x190(%rbp),%rax
shl    $0x5,%rcx
add    %rcx,%rax
movslq -0x320(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc19(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x320(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x320(%rbp)
jmp    151c <main+0x37c>
lea    0xc82(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x31c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x31c(%rbp)
jmp    1505 <main+0x365>
lea    -0x250(%rbp),%rdi
lea    -0x310(%rbp),%rsi
mov    -0x314(%rbp),%edx
mov    -0x318(%rbp),%ecx
call   10a0 <Tela@plt>
lea    0xbc7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xd0(%rbp),%rdi
lea    -0x250(%rbp),%rsi
lea    -0x318(%rbp),%rdx
call   1030 <Tiro@plt>
jmp    1288 <main+0xe8>
lea    0xba8(%rip),%rdi
call   1040 <system@plt>
cmpl   $0xa,-0x314(%rbp)
jne    1604 <main+0x464>
lea    0xb9c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1612 <main+0x472>
lea    0xbea(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xc3d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xc4b(%rip),%rdi
lea    -0x321(%rbp),%rsi
call   10b0 <scanf@plt>
jmp    11f8 <main+0x58>
xor    %eax,%eax
add    $0x330,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x318,%rsp
movb   $0x73,0x7(%rsp)
xor    %edi,%edi
call   10b0 <time@plt>
mov    %eax,%edi
call   1080 <srand@plt>
lea    0xe5e(%rip),%rdi
call   1050 <puts@plt>
lea    0xe09(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   1090 <getchar@plt>
lea    0xe11(%rip),%r12
mov    %r12,%rdi
call   1060 <system@plt>
lea    0x250(%rsp),%r13
lea    0x190(%rsp),%r15
lea    0xdfd(%rip),%rbp
jmp    1283 <main+0xc3>
nopl   (%rax)
lea    0xe02(%rip),%rdi
call   1060 <system@plt>
cmpl   $0xa,0x8(%rsp)
lea    0xf40(%rip),%rdi
lea    0xfb4(%rip),%rax
cmove  %rax,%rdi
call   1050 <puts@plt>
lea    0xf89(%rip),%rdi
call   1050 <puts@plt>
lea    0xddb(%rip),%rdi
lea    0x7(%rsp),%rsi
call   10d0 <scanf@plt>
mov    0x7(%rsp),%al
and    $0xdf,%al
cmp    $0x53,%al
jne    162e <main+0x46e>
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
lea    0xd0(%rsp),%rbx
mov    %rbx,%rdi
lea    0x10(%rsp),%r14
mov    %r14,%rsi
call   10a0 <ZerarMatriz@plt>
mov    %r13,%rdi
mov    %r15,%rsi
call   10a0 <ZerarMatriz@plt>
mov    %rbx,%rdi
call   10e0 <GerarBarco@plt>
mov    %r14,%rdi
call   10e0 <GerarBarco@plt>
cmpl   $0xa,0x8(%rsp)
je     1230 <main+0x70>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmpl   $0xa,0xc(%rsp)
je     1230 <main+0x70>
mov    %r12,%rdi
call   1060 <system@plt>
mov    $0x1c,%r14d
nopl   0x0(%rax)
mov    0xb4(%rsp,%r14,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xb8(%rsp,%r14,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xbc(%rsp,%r14,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xc0(%rsp,%r14,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xc4(%rsp,%r14,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xc8(%rsp,%r14,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xcc(%rsp,%r14,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xd0(%rsp,%r14,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
add    $0x20,%r14
cmp    $0xdc,%r14
jne    1300 <main+0x140>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x1c,%ebx
nopw   0x0(%rax,%rax,1)
mov    -0xc(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    -0x8(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    -0x4(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    (%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x4(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x8(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xc(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x10(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
add    $0x20,%rbx
cmp    $0xdc,%rbx
jne    13c0 <main+0x200>
mov    0x8(%rsp),%edx
mov    0xc(%rsp),%ecx
mov    %r13,%rdi
mov    %r15,%rsi
call   10c0 <Tela@plt>
lea    0xbc8(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x10(%rsp),%rdi
mov    %r15,%rsi
lea    0x8(%rsp),%rdx
call   1030 <Tiro@plt>
mov    %r12,%rdi
call   1060 <system@plt>
cmpl   $0xa,0x8(%rsp)
je     1230 <main+0x70>
mov    $0x1c,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0xb4(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xb8(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xbc(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xc0(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xc4(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xc8(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xcc(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xd0(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
add    $0x20,%rbx
cmp    $0xdc,%rbx
jne    14a0 <main+0x2e0>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x1c,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    -0xc(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    -0x8(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    -0x4(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    (%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x4(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x8(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0xc(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x10(%rsp,%rbx,1),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
add    $0x20,%rbx
cmp    $0xdc,%rbx
jne    1560 <main+0x3a0>
mov    0x8(%rsp),%edx
mov    0xc(%rsp),%ecx
mov    %r13,%rdi
mov    %r15,%rsi
call   10c0 <Tela@plt>
lea    0xc5f(%rip),%rdi
call   1050 <puts@plt>
lea    0xd0(%rsp),%rdi
mov    %r13,%rsi
lea    0xc(%rsp),%rdx
call   1030 <Tiro@plt>
cmpl   $0xa,0x8(%rsp)
jne    12e0 <main+0x120>
jmp    1230 <main+0x70>
xor    %eax,%eax
add    $0x318,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [320 x i8] c" ____ _ _ _ _ _ _\0A| __ ) __ _| |_ __ _| | |__ __ _ | \\ | | __ ___ ____ _| |\0A| \\_ \\ / _` | __/ _` | | '_ \\ / _` | | \\| |/ _` \\ \\ / / _` | |\0A| |_) | (_| | |_ (_| | | | | | (_| | | |\\ | (_| |\\ V / (_| | |\0A|____/ \\__,_|\\__\\__,_|_|_| |_|\\__,_| |_| \\_|\\__,_| \\_/ \\__,_|_|\0A\00"
@.str.1 = [29 x i8] c"\09\09Aperte enter para jogar...\00"
@.str.2 = [11 x i8] c"clear||cls\00"
@.str.3 = [4 x i8] c"%d \00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [13 x i8] c"\09\09 Jogador 1\00"
@.str.6 = [14 x i8] c"\09\09 Jogador 2\0A\00"
@.str.7 = [13 x i8] c"clear || cls\00"
@.str.8 = [97 x i8] c"\0A\0A!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!PLAYER 1 GANHOU !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\0A\0A\00"
@.str.9 = [97 x i8] c"\0A\0A!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!PLAYER 2 GANHOU !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\0A\0A\00"
@.str.10 = [28 x i8] c"\0A\09Quer jogar de novo?(S/N)\0A\00"
@.str.11 = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [6 x [8 x i32]]
%3 = alloca [6 x [8 x i32]]
%4 = alloca [6 x [8 x i32]]
%5 = alloca [6 x [8 x i32]]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8
store i32 0, i32* %1
store i8 115, i8* %10
%11 = call i32 @time(i32* null)
%12 = call i32 @srand(i32 %11)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([320 x i8], [320 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 (...) @getchar()
%16 = call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
br label %17
17: ; preds = %195, %0
%18 = load i8, i8* %10
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 115
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = load i8, i8* %10
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 83
br label %25
25: ; preds = %21, %17
%26 = phi i1 [ true, %17 ], [ %24, %21 ]
br i1 %26, label %27, label %198
27: ; preds = %25
store i32 0, i32* %6
store i32 0, i32* %7
%28 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 0
%29 = bitcast [8 x i32]* %28 to i32**
%30 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %3, i64 0, i64 0
%31 = bitcast [8 x i32]* %30 to i32**
%32 = call i32 @ZerarMatriz(i32** %29, i32** %31)
%33 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %4, i64 0, i64 0
%34 = bitcast [8 x i32]* %33 to i32**
%35 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %5, i64 0, i64 0
%36 = bitcast [8 x i32]* %35 to i32**
%37 = call i32 @ZerarMatriz(i32** %34, i32** %36)
%38 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 0
%39 = bitcast [8 x i32]* %38 to i32**
%40 = call i32 @GerarBarco(i32** %39)
%41 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %3, i64 0, i64 0
%42 = bitcast [8 x i32]* %41 to i32**
%43 = call i32 @GerarBarco(i32** %42)
br label %44
44: ; preds = %186, %27
%45 = load i32, i32* %6
%46 = icmp ne i32 %45, 10
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, i32* %7
%49 = icmp ne i32 %48, 10
br label %50
50: ; preds = %47, %44
%51 = phi i1 [ false, %44 ], [ %49, %47 ]
br i1 %51, label %52, label %187
52: ; preds = %50
%53 = call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %8
br label %54
54: ; preds = %75, %52
%55 = load i32, i32* %8
%56 = icmp slt i32 %55, 6
br i1 %56, label %57, label %78
57: ; preds = %54
store i32 0, i32* %9
br label %58
58: ; preds = %70, %57
%59 = load i32, i32* %9
%60 = icmp slt i32 %59, 8
br i1 %60, label %61, label %73
61: ; preds = %58
%62 = load i32, i32* %8
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %63
%65 = load i32, i32* %9
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [8 x i32], [8 x i32]* %64, i64 0, i64 %66
%68 = load i32, i32* %67
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %68)
br label %70
70: ; preds = %61
%71 = load i32, i32* %9
%72 = add nsw i32 %71, 1
store i32 %72, i32* %9
br label %58
73: ; preds = %58
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %75
75: ; preds = %73
%76 = load i32, i32* %8
%77 = add nsw i32 %76, 1
store i32 %77, i32* %8
br label %54
78: ; preds = %54
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %8
br label %80
80: ; preds = %101, %78
%81 = load i32, i32* %8
%82 = icmp slt i32 %81, 6
br i1 %82, label %83, label %104
83: ; preds = %80
store i32 0, i32* %9
br label %84
84: ; preds = %96, %83
%85 = load i32, i32* %9
%86 = icmp slt i32 %85, 8
br i1 %86, label %87, label %99
87: ; preds = %84
%88 = load i32, i32* %8
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %3, i64 0, i64 %89
%91 = load i32, i32* %9
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [8 x i32], [8 x i32]* %90, i64 0, i64 %92
%94 = load i32, i32* %93
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %94)
br label %96
96: ; preds = %87
%97 = load i32, i32* %9
%98 = add nsw i32 %97, 1
store i32 %98, i32* %9
br label %84
99: ; preds = %84
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %101
101: ; preds = %99
%102 = load i32, i32* %8
%103 = add nsw i32 %102, 1
store i32 %103, i32* %8
br label %80
104: ; preds = %80
%105 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %4, i64 0, i64 0
%106 = bitcast [8 x i32]* %105 to i32**
%107 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %5, i64 0, i64 0
%108 = bitcast [8 x i32]* %107 to i32**
%109 = load i32, i32* %6
%110 = load i32, i32* %7
%111 = call i32 @Tela(i32** %106, i32** %108, i32 %109, i32 %110)
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%113 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %3, i64 0, i64 0
%114 = bitcast [8 x i32]* %113 to i32**
%115 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %5, i64 0, i64 0
%116 = bitcast [8 x i32]* %115 to i32**
%117 = call i32 @Tiro(i32** %114, i32** %116, i32* %6)
%118 = call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%119 = load i32, i32* %6
%120 = icmp ne i32 %119, 10
br i1 %120, label %121, label %186
121: ; preds = %104
store i32 0, i32* %8
br label %122
122: ; preds = %143, %121
%123 = load i32, i32* %8
%124 = icmp slt i32 %123, 6
br i1 %124, label %125, label %146
125: ; preds = %122
store i32 0, i32* %9
br label %126
126: ; preds = %138, %125
%127 = load i32, i32* %9
%128 = icmp slt i32 %127, 8
br i1 %128, label %129, label %141
129: ; preds = %126
%130 = load i32, i32* %8
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %131
%133 = load i32, i32* %9
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds [8 x i32], [8 x i32]* %132, i64 0, i64 %134
%136 = load i32, i32* %135
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %136)
br label %138
138: ; preds = %129
%139 = load i32, i32* %9
%140 = add nsw i32 %139, 1
store i32 %140, i32* %9
br label %126
141: ; preds = %126
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %143
143: ; preds = %141
%144 = load i32, i32* %8
%145 = add nsw i32 %144, 1
store i32 %145, i32* %8
br label %122
146: ; preds = %122
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %8
br label %148
148: ; preds = %169, %146
%149 = load i32, i32* %8
%150 = icmp slt i32 %149, 6
br i1 %150, label %151, label %172
151: ; preds = %148
store i32 0, i32* %9
br label %152
152: ; preds = %164, %151
%153 = load i32, i32* %9
%154 = icmp slt i32 %153, 8
br i1 %154, label %155, label %167
155: ; preds = %152
%156 = load i32, i32* %8
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %3, i64 0, i64 %157
%159 = load i32, i32* %9
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds [8 x i32], [8 x i32]* %158, i64 0, i64 %160
%162 = load i32, i32* %161
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %162)
br label %164
164: ; preds = %155
%165 = load i32, i32* %9
%166 = add nsw i32 %165, 1
store i32 %166, i32* %9
br label %152
167: ; preds = %152
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %169
169: ; preds = %167
%170 = load i32, i32* %8
%171 = add nsw i32 %170, 1
store i32 %171, i32* %8
br label %148
172: ; preds = %148
%173 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %4, i64 0, i64 0
%174 = bitcast [8 x i32]* %173 to i32**
%175 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %5, i64 0, i64 0
%176 = bitcast [8 x i32]* %175 to i32**
%177 = load i32, i32* %6
%178 = load i32, i32* %7
%179 = call i32 @Tela(i32** %174, i32** %176, i32 %177, i32 %178)
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%181 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 0
%182 = bitcast [8 x i32]* %181 to i32**
%183 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %4, i64 0, i64 0
%184 = bitcast [8 x i32]* %183 to i32**
%185 = call i32 @Tiro(i32** %182, i32** %184, i32* %7)
br label %186
186: ; preds = %172, %104
br label %44
187: ; preds = %50
%188 = call i32 @system(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%189 = load i32, i32* %6
%190 = icmp eq i32 %189, 10
br i1 %190, label %191, label %193
191: ; preds = %187
%192 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.8, i64 0, i64 0))
br label %195
193: ; preds = %187
%194 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.9, i64 0, i64 0))
br label %195
195: ; preds = %193, %191
%196 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0))
%197 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* %10)
br label %17
198: ; preds = %25
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [29 x i8] c"\09\09Aperte enter para jogar...\00"
@.str.2 = [11 x i8] c"clear||cls\00"
@.str.3 = [4 x i8] c"%d \00"
@.str.5 = [13 x i8] c"\09\09 Jogador 1\00"
@.str.7 = [13 x i8] c"clear || cls\00"
@.str.11 = [3 x i8] c"%c\00"
@str = [319 x i8] c" ____ _ _ _ _ _ _\0A| __ ) __ _| |_ __ _| | |__ __ _ | \\ | | __ ___ ____ _| |\0A| \\_ \\ / _` | __/ _` | | '_ \\ / _` | | \\| |/ _` \\ \\ / / _` | |\0A| |_) | (_| | |_ (_| | | | | | (_| | | |\\ | (_| |\\ V / (_| | |\0A|____/ \\__,_|\\__\\__,_|_|_| |_|\\__,_| |_| \\_|\\__,_| \\_/ \\__,_|_|\00"
@str.12 = [96 x i8] c"\0A\0A!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!PLAYER 2 GANHOU !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\0A\00"
@str.13 = [27 x i8] c"\0A\09Quer jogar de novo?(S/N)\00"
@str.14 = [96 x i8] c"\0A\0A!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!PLAYER 1 GANHOU !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\0A\00"
@str.15 = [13 x i8] c"\09\09 Jogador 2\00"
define i32 @main() {
%1 = alloca [6 x [8 x i32]]
%2 = alloca [6 x [8 x i32]]
%3 = alloca [6 x [8 x i32]]
%4 = alloca [6 x [8 x i32]]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8
%8 = bitcast [6 x [8 x i32]]* %1 to i8*
%9 = bitcast [6 x [8 x i32]]* %2 to i8*
%10 = bitcast [6 x [8 x i32]]* %3 to i8*
%11 = bitcast [6 x [8 x i32]]* %4 to i8*
%12 = bitcast i32* %5 to i8*
%13 = bitcast i32* %6 to i8*
store i8 115, i8* %7
%14 = tail call i32 @time(i32* null)
%15 = tail call i32 @srand(i32 %14)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([319 x i8], [319 x i8]* @str, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%18 = tail call i32 (...) @getchar()
%19 = tail call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%20 = bitcast [6 x [8 x i32]]* %1 to i32**
%21 = bitcast [6 x [8 x i32]]* %2 to i32**
%22 = bitcast [6 x [8 x i32]]* %3 to i32**
%23 = bitcast [6 x [8 x i32]]* %4 to i32**
br label %24
24: ; preds = %0, %176
store i32 0, i32* %5
store i32 0, i32* %6
%25 = call i32 @ZerarMatriz(i32** %20, i32** %21)
%26 = call i32 @ZerarMatriz(i32** %22, i32** %23)
%27 = call i32 @GerarBarco(i32** %20)
%28 = call i32 @GerarBarco(i32** %21)
%29 = load i32, i32* %5
%30 = icmp ne i32 %29, 10
%31 = load i32, i32* %6
%32 = icmp ne i32 %31, 10
%33 = select i1 %30, i1 %32, i1 false
br i1 %33, label %34, label %176
34: ; preds = %24, %165
%35 = call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
br label %36
36: ; preds = %34, %36
%37 = phi i64 [ 0, %34 ], [ %63, %36 ]
%38 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %37, i64 0
%39 = load i32, i32* %38
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %39)
%41 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %37, i64 1
%42 = load i32, i32* %41
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %42)
%44 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %37, i64 2
%45 = load i32, i32* %44
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %45)
%47 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %37, i64 3
%48 = load i32, i32* %47
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %48)
%50 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %37, i64 4
%51 = load i32, i32* %50
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %51)
%53 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %37, i64 5
%54 = load i32, i32* %53
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %54)
%56 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %37, i64 6
%57 = load i32, i32* %56
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %57)
%59 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %37, i64 7
%60 = load i32, i32* %59
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %60)
%62 = call i32 @putchar(i32 10)
%63 = add nuw nsw i64 %37, 1
%64 = icmp eq i64 %63, 6
br i1 %64, label %65, label %36
65: ; preds = %36
%66 = call i32 @putchar(i32 10)
br label %67
67: ; preds = %65, %67
%68 = phi i64 [ 0, %65 ], [ %94, %67 ]
%69 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %68, i64 0
%70 = load i32, i32* %69
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %70)
%72 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %68, i64 1
%73 = load i32, i32* %72
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %73)
%75 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %68, i64 2
%76 = load i32, i32* %75
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %76)
%78 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %68, i64 3
%79 = load i32, i32* %78
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %79)
%81 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %68, i64 4
%82 = load i32, i32* %81
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %82)
%84 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %68, i64 5
%85 = load i32, i32* %84
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %85)
%87 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %68, i64 6
%88 = load i32, i32* %87
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %88)
%90 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %68, i64 7
%91 = load i32, i32* %90
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %91)
%93 = call i32 @putchar(i32 10)
%94 = add nuw nsw i64 %68, 1
%95 = icmp eq i64 %94, 6
br i1 %95, label %96, label %67
96: ; preds = %67
%97 = load i32, i32* %5
%98 = load i32, i32* %6
%99 = call i32 @Tela(i32** %22, i32** %23, i32 %97, i32 %98)
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%101 = call i32 @Tiro(i32** %21, i32** %23, i32* %5)
%102 = call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%103 = load i32, i32* %5
%104 = icmp eq i32 %103, 10
br i1 %104, label %176, label %105
105: ; preds = %96, %105
%106 = phi i64 [ %132, %105 ], [ 0, %96 ]
%107 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %106, i64 0
%108 = load i32, i32* %107
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %108)
%110 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %106, i64 1
%111 = load i32, i32* %110
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %111)
%113 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %106, i64 2
%114 = load i32, i32* %113
%115 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %114)
%116 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %106, i64 3
%117 = load i32, i32* %116
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %117)
%119 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %106, i64 4
%120 = load i32, i32* %119
%121 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %120)
%122 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %106, i64 5
%123 = load i32, i32* %122
%124 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %123)
%125 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %106, i64 6
%126 = load i32, i32* %125
%127 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %126)
%128 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %1, i64 0, i64 %106, i64 7
%129 = load i32, i32* %128
%130 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %129)
%131 = call i32 @putchar(i32 10)
%132 = add nuw nsw i64 %106, 1
%133 = icmp eq i64 %132, 6
br i1 %133, label %134, label %105
134: ; preds = %105
%135 = call i32 @putchar(i32 10)
br label %136
136: ; preds = %134, %136
%137 = phi i64 [ 0, %134 ], [ %163, %136 ]
%138 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %137, i64 0
%139 = load i32, i32* %138
%140 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %139)
%141 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %137, i64 1
%142 = load i32, i32* %141
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %142)
%144 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %137, i64 2
%145 = load i32, i32* %144
%146 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %145)
%147 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %137, i64 3
%148 = load i32, i32* %147
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %148)
%150 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %137, i64 4
%151 = load i32, i32* %150
%152 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %151)
%153 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %137, i64 5
%154 = load i32, i32* %153
%155 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %154)
%156 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %137, i64 6
%157 = load i32, i32* %156
%158 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %157)
%159 = getelementptr inbounds [6 x [8 x i32]], [6 x [8 x i32]]* %2, i64 0, i64 %137, i64 7
%160 = load i32, i32* %159
%161 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %160)
%162 = call i32 @putchar(i32 10)
%163 = add nuw nsw i64 %137, 1
%164 = icmp eq i64 %163, 6
br i1 %164, label %165, label %136
165: ; preds = %136
%166 = load i32, i32* %5
%167 = load i32, i32* %6
%168 = call i32 @Tela(i32** %22, i32** %23, i32 %166, i32 %167)
%169 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.15, i64 0, i64 0))
%170 = call i32 @Tiro(i32** %20, i32** %22, i32* %6)
%171 = load i32, i32* %5
%172 = icmp ne i32 %171, 10
%173 = load i32, i32* %6
%174 = icmp ne i32 %173, 10
%175 = select i1 %172, i1 %174, i1 false
br i1 %175, label %34, label %176
176: ; preds = %96, %165, %24
%177 = call i32 @system(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%178 = load i32, i32* %5
%179 = icmp eq i32 %178, 10
%180 = select i1 %179, i8* getelementptr inbounds ([96 x i8], [96 x i8]* @str.14, i64 0, i64 0), i8* getelementptr inbounds ([96 x i8], [96 x i8]* @str.12, i64 0, i64 0)
%181 = call i32 @puts(i8* dereferenceable(1) %180)
%182 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.13, i64 0, i64 0))
%183 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* %7)
%184 = load i8, i8* %7
%185 = and i8 %184, -33
%186 = icmp eq i8 %185, 83
br i1 %186, label %24, label %187
187: ; preds = %176
ret i32 0
}