int brief2(int ***player1, int ***player2, int *lastx, int *lasty,
           int *pontlife, int linhas, int colunas, int lifepl) {
  int i, j;
  int bool = 0;
  while (bool != 1) {
    printf("Mesmo? (Sim: 1| Nao: 0)\n");
    scanf("%i", &bool);
    teste(bool, 0, 1, 1);
  }
  printf("  ");
  for (j = 1; j <= colunas; j++)
    printf("|%2i", j);
  printf("|\n");
  for (j = 0; j < linhas; j++) {
    printf("%2i", j + 1);
    for (int k = 0; k < colunas; k++) {
      if (player2[j][k][0] != '~' && player2[j][k][1] == 1)
        printf("| *");
      else
        printf("|%2c", player2[j][k][0]);
    }
    if (j == 1)
      printf("|\t Ultima jogada (L): %2i\n", *lasty + 1);
    else if (j == 2)
      printf("|\t Ultima jogada (C): %2i\n", *lastx + 1);
    else if (j == 3)
      printf("|\t Seu life: %2i\n", *pontlife);
    else if (j == 4)
      printf("|\t Life do adversario: %2i\n", lifepl);
    else
      printf("|\n");
  }
  printf("\nSeu tabuleiro eh o de cima\n\n");
  printf("  ");
  for (j = 1; j <= colunas; j++)
    printf("|%2i", j);
  printf("|\n");
  for (j = 0; j < linhas; j++) {
    printf("%2i", j + 1);
    for (int k = 0; k < colunas; k++) {
      if (player1[j][k][1] == 0)
        printf("| ?");
      else
        printf("|%2c", player1[j][k][0]);
    }
    printf("|\n");
  }
  printf("\n Proxima jogada: (linha)\t");
  scanf("%i", lasty);
  printf("\n Proxima jogada: (coluna)\t");
  scanf("%i", lastx);
  teste(*lasty, 1, linhas, 2);
  teste(*lastx, 1, colunas, 2);
  *lasty = *lasty - 1;
  *lastx = *lastx - 1;
  while (player1[*lasty][*lastx][1] == 1) {
    printf("Voce ja atirou nesse quadrante. Escolha outro:\n");
    printf("\n Proxima jogada: (linha)\t");
    scanf("%i", lasty);
    printf("\n Proxima jogada: (coluna)\t");
    scanf("%i", lastx);
    teste(*lasty, 1, linhas, 2);
    teste(*lastx, 1, colunas, 2);
    *lasty = *lasty - 1;
    *lastx = *lastx - 1;
  }
  player1[*lasty][*lastx][1] = 1;
  for (j = 1; j < 20; j++)
    printf("\n");
  printf("  ");
  for (j = 1; j <= colunas; j++)
    printf("|%2i", j);
  printf("|\n");
  for (j = 0; j < linhas; j++) {
    printf("%2i", j + 1);
    for (int k = 0; k < colunas; k++) {
      if (player1[j][k][1] == 0)
        printf("| ?");
      else
        printf("|%2c", player1[j][k][0]);
    }
    printf("|\n");
  }
  if (player1[*lasty][*lastx][0] == '~')
    printf("Voce acertou a agua, marujo! Mire melhor a proxima!\n");
  else {
    printf("Ahoy! Voce acertou alguma coisa ali!\n");
    lifepl--;
  }
  return (lifepl);
}


x86 assembly (clang, -O0):
<brief2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0x1,-0x38(%rbp)
je     119f <brief2+0x6f>
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9d(%rip),%rdi
lea    -0x38(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x38(%rbp),%edi
xor    %esi,%esi
mov    $0x1,%ecx
mov    %ecx,%edx
mov    $0x0,%al
call   1040 <teste@plt>
jmp    115d <brief2+0x2d>
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    0x10(%rbp),%eax
jg     11df <brief2+0xaf>
mov    -0x34(%rbp),%esi
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11b4 <brief2+0x84>
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    136b <brief2+0x23b>
mov    -0x34(%rbp),%esi
add    $0x1,%esi
lea    0xe13(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    12ac <brief2+0x17c>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
cmpl   $0x7e,(%rax)
je     1275 <brief2+0x145>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
cmpl   $0x1,0x4(%rax)
jne    1275 <brief2+0x145>
lea    0xdbe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1299 <brief2+0x169>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%esi
lea    0xd99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    129e <brief2+0x16e>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    121b <brief2+0xeb>
cmpl   $0x1,-0x34(%rbp)
jne    12d2 <brief2+0x1a2>
mov    -0x20(%rbp),%rax
mov    (%rax),%esi
add    $0x1,%esi
lea    0xd6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1358 <brief2+0x228>
cmpl   $0x2,-0x34(%rbp)
jne    12f8 <brief2+0x1c8>
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
add    $0x1,%esi
lea    0xd5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1353 <brief2+0x223>
cmpl   $0x3,-0x34(%rbp)
jne    131b <brief2+0x1eb>
mov    -0x28(%rbp),%rax
mov    (%rax),%esi
lea    0xd57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    134e <brief2+0x21e>
cmpl   $0x4,-0x34(%rbp)
jne    133b <brief2+0x20b>
mov    0x18(%rbp),%esi
lea    0xd49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1349 <brief2+0x219>
lea    0xce2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    134e <brief2+0x21e>
jmp    1353 <brief2+0x223>
jmp    1358 <brief2+0x228>
jmp    135d <brief2+0x22d>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11f4 <brief2+0xc4>
lea    0xd22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    0x10(%rbp),%eax
jg     13b9 <brief2+0x289>
mov    -0x34(%rbp),%esi
lea    0xc7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    138e <brief2+0x25e>
lea    0xc64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1485 <brief2+0x355>
mov    -0x34(%rbp),%esi
add    $0x1,%esi
lea    0xc39(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    1469 <brief2+0x339>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
cmpl   $0x0,0x4(%rax)
jne    1432 <brief2+0x302>
lea    0xc8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1456 <brief2+0x326>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%esi
lea    0xbdc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    145b <brief2+0x32b>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    13f5 <brief2+0x2c5>
lea    0xbb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    13ce <brief2+0x29e>
lea    0xc2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xb7b(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xc25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xb5b(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
mov    -0x2c(%rbp),%edx
mov    $0x1,%esi
mov    $0x2,%ecx
mov    $0x0,%al
call   1040 <teste@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    0x10(%rbp),%edx
mov    $0x1,%esi
mov    $0x2,%ecx
mov    $0x0,%al
call   1040 <teste@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%ecx
sub    $0x1,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
sub    $0x1,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rax
cmpl   $0x1,0x4(%rax)
jne    15e0 <brief2+0x4b0>
lea    0xbab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xab7(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xb61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xa97(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
mov    -0x2c(%rbp),%edx
mov    $0x1,%esi
mov    $0x2,%ecx
mov    $0x0,%al
call   1040 <teste@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    0x10(%rbp),%edx
mov    $0x1,%esi
mov    $0x2,%ecx
mov    $0x0,%al
call   1040 <teste@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%ecx
sub    $0x1,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
sub    $0x1,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
jmp    1517 <brief2+0x3e7>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rax
movl   $0x1,0x4(%rax)
movl   $0x1,-0x34(%rbp)
cmpl   $0x14,-0x34(%rbp)
jge    162e <brief2+0x4fe>
lea    0xa97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1608 <brief2+0x4d8>
lea    0x9e7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    0x10(%rbp),%eax
jg     166e <brief2+0x53e>
mov    -0x34(%rbp),%esi
lea    0x9c6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1643 <brief2+0x513>
lea    0x9af(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    173a <brief2+0x60a>
mov    -0x34(%rbp),%esi
add    $0x1,%esi
lea    0x984(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    171e <brief2+0x5ee>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
cmpl   $0x0,0x4(%rax)
jne    16e7 <brief2+0x5b7>
lea    0x9d7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    170b <brief2+0x5db>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%esi
lea    0x927(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1710 <brief2+0x5e0>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    16aa <brief2+0x57a>
lea    0x8ff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1683 <brief2+0x553>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x18(%rbp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rax
cmpl   $0x7e,(%rax)
jne    1770 <brief2+0x640>
lea    0x9b9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1787 <brief2+0x657>
lea    0x9db(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,0x18(%rbp)
mov    0x18(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<brief2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9d,0x8(%rsp)
mov    %r8,0x28(%rsp)
mov    %rcx,0x10(%rsp)
mov    %rdx,%r13
mov    %rsi,%r14
mov    %rdi,%rbx
movl   $0x0,0xc(%rsp)
lea    0xfe5(%rip),%r15
lea    0xe84(%rip),%r12
lea    0xc(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1040 <puts@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0xc(%rsp),%edi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1060 <teste@plt>
cmpl   $0x1,0xc(%rsp)
jne    11a0 <brief2+0x50>
lea    0xe39(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x70(%rsp)
jle    121f <brief2+0xcf>
mov    0x70(%rsp),%eax
mov    %eax,%r12d
neg    %r12d
mov    $0x1,%ebp
lea    0xe18(%rip),%r15
xchg   %ax,%ax
mov    %r15,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    (%r12,%rbp,1),%eax
add    $0x1,%eax
mov    %ebp,%ecx
add    $0x1,%ecx
mov    %ecx,%ebp
cmp    $0x1,%eax
jne    1200 <brief2+0xb0>
lea    0xf42(%rip),%rdi
call   1040 <puts@plt>
mov    0x8(%rsp),%ecx
mov    %ecx,%eax
mov    %rax,0x20(%rsp)
mov    0x70(%rsp),%eax
mov    %eax,%r15d
test   %ecx,%ecx
mov    %r13,0x18(%rsp)
mov    %eax,%r13d
jle    1381 <brief2+0x231>
lea    0xdcb(%rip),%r12
xor    %ebp,%ebp
jmp    1287 <brief2+0x137>
nopl   0x0(%rax,%rax,1)
lea    0xe05(%rip),%rdi
mov    0x78(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x70(%rsp),%r13d
mov    0x30(%rsp),%rbp
cmp    0x20(%rsp),%rbp
je     1381 <brief2+0x231>
lea    0x1(%rbp),%rsi
lea    0xd85(%rip),%rdi
mov    %rsi,0x30(%rsp)
xor    %eax,%eax
call   1050 <printf@plt>
test   %r13d,%r13d
jle    12f0 <brief2+0x1a0>
xor    %r13d,%r13d
jmp    12c3 <brief2+0x173>
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%r13
cmp    %r13,%r15
je     12f0 <brief2+0x1a0>
mov    (%r14,%rbp,8),%rax
mov    (%rax,%r13,8),%rax
mov    (%rax),%esi
cmp    $0x7e,%esi
je     12b0 <brief2+0x160>
cmpl   $0x1,0x4(%rax)
jne    12b0 <brief2+0x160>
lea    0xd3c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    12ba <brief2+0x16a>
nopl   0x0(%rax,%rax,1)
add    $0xffffffff,%ebp
cmp    $0x3,%ebp
ja     1370 <brief2+0x220>
lea    0xd01(%rip),%rcx
movslq (%rcx,%rbp,4),%rax
add    %rcx,%rax
mov    0x18(%rsp),%rcx
jmp    *%rax
mov    0x10(%rsp),%rax
mov    (%rax),%esi
add    $0x1,%esi
lea    0xd06(%rip),%rdi
jmp    126b <brief2+0x11b>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%rcx),%esi
add    $0x1,%esi
lea    0xd03(%rip),%rdi
jmp    126b <brief2+0x11b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x28(%rsp),%rax
mov    (%rax),%esi
lea    0xcfc(%rip),%rdi
jmp    126b <brief2+0x11b>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0xdf1(%rip),%rdi
call   1040 <puts@plt>
jmp    1272 <brief2+0x122>
lea    0xd3b(%rip),%rdi
call   1040 <puts@plt>
lea    0xc7f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   %r13d,%r13d
jle    13df <brief2+0x28f>
mov    %r13d,%r12d
neg    %r12d
mov    $0x1,%ebp
lea    0xc64(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    (%r12,%rbp,1),%eax
add    $0x1,%eax
mov    %ebp,%ecx
add    $0x1,%ecx
mov    %ecx,%ebp
cmp    $0x1,%eax
jne    13c0 <brief2+0x270>
lea    0xd82(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0x8(%rsp)
jle    1483 <brief2+0x333>
lea    0xc22(%rip),%rbp
xor    %r13d,%r13d
jmp    1426 <brief2+0x2d6>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xd51(%rip),%rdi
call   1040 <puts@plt>
mov    %r12,%r13
cmp    0x20(%rsp),%r12
je     1483 <brief2+0x333>
lea    0x1(%r13),%r12
lea    0xbe6(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x70(%rsp)
jle    1410 <brief2+0x2c0>
xor    %r14d,%r14d
jmp    1465 <brief2+0x315>
nopw   0x0(%rax,%rax,1)
mov    (%rax),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%r14
cmp    %r14,%r15
je     1410 <brief2+0x2c0>
mov    (%rbx,%r13,8),%rax
mov    (%rax,%r14,8),%rax
cmpl   $0x0,0x4(%rax)
jne    1450 <brief2+0x300>
lea    0xc0e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    145c <brief2+0x30c>
lea    0xc02(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xb78(%rip),%rbp
mov    %rbp,%rdi
mov    0x10(%rsp),%r13
mov    %r13,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xbf6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    0x18(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x0(%r13),%edi
mov    $0x1,%esi
mov    0x8(%rsp),%r12d
mov    %r12d,%edx
mov    $0x2,%ecx
xor    %eax,%eax
call   1060 <teste@plt>
mov    (%r14),%edi
mov    $0x1,%esi
mov    0x70(%rsp),%edx
mov    $0x2,%ecx
xor    %eax,%eax
call   1060 <teste@plt>
addl   $0xffffffff,0x0(%r13)
movslq (%r14),%rax
lea    -0x1(%rax),%rcx
mov    %ecx,(%r14)
movslq 0x0(%r13),%rcx
mov    (%rbx,%rcx,8),%rcx
mov    -0x8(%rcx,%rax,8),%rax
cmpl   $0x1,0x4(%rax)
jne    15c8 <brief2+0x478>
lea    0xae4(%rip),%rbp
nopl   0x0(%rax)
lea    0xc02(%rip),%rdi
call   1040 <puts@plt>
lea    0xb49(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xb49(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0x0(%r13),%edi
mov    $0x1,%esi
mov    %r12d,%edx
mov    $0x2,%ecx
xor    %eax,%eax
call   1060 <teste@plt>
mov    (%r14),%edi
mov    $0x1,%esi
mov    0x70(%rsp),%edx
mov    $0x2,%ecx
xor    %eax,%eax
call   1060 <teste@plt>
addl   $0xffffffff,0x0(%r13)
movslq (%r14),%rax
lea    -0x1(%rax),%rcx
mov    %ecx,(%r14)
movslq 0x0(%r13),%rcx
mov    (%rbx,%rcx,8),%rcx
mov    -0x8(%rcx,%rax,8),%rax
cmpl   $0x1,0x4(%rax)
je     1530 <brief2+0x3e0>
movl   $0x1,0x4(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x97f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x70(%rsp),%eax
test   %eax,%eax
jle    16df <brief2+0x58f>
mov    %eax,%r12d
neg    %r12d
mov    $0x1,%ebp
lea    0x961(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    (%r12,%rbp,1),%eax
add    $0x1,%eax
mov    %ebp,%ecx
add    $0x1,%ecx
mov    %ecx,%ebp
cmp    $0x1,%eax
jne    16c0 <brief2+0x570>
lea    0xa82(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0x8(%rsp)
jle    1783 <brief2+0x633>
lea    0x922(%rip),%rbp
xor    %r13d,%r13d
jmp    1726 <brief2+0x5d6>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xa51(%rip),%rdi
call   1040 <puts@plt>
mov    %r12,%r13
cmp    0x20(%rsp),%r12
je     1783 <brief2+0x633>
lea    0x1(%r13),%r12
lea    0x8e6(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x70(%rsp)
jle    1710 <brief2+0x5c0>
xor    %r14d,%r14d
jmp    1765 <brief2+0x615>
nopw   0x0(%rax,%rax,1)
mov    (%rax),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%r14
cmp    %r14,%r15
je     1710 <brief2+0x5c0>
mov    (%rbx,%r13,8),%rax
mov    (%rax,%r14,8),%rax
cmpl   $0x0,0x4(%rax)
jne    1750 <brief2+0x600>
lea    0x90e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    175c <brief2+0x60c>
mov    0x10(%rsp),%rax
movslq (%rax),%rax
mov    (%rbx,%rax,8),%rax
mov    0x18(%rsp),%rcx
movslq (%rcx),%rcx
mov    (%rax,%rcx,8),%rax
cmpl   $0x7e,(%rax)
jne    17b2 <brief2+0x662>
lea    0x95e(%rip),%rdi
call   1040 <puts@plt>
mov    0x78(%rsp),%eax
jmp    17c5 <brief2+0x675>
lea    0x927(%rip),%rdi
call   1040 <puts@plt>
mov    0x78(%rsp),%eax
add    $0xffffffff,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [25 x i8] c"Mesmo? (Sim: 1| Nao: 0)\0A\00"
@.str.1 = [3 x i8] c"%i\00"
@.str.2 = [3 x i8] c" \00"
@.str.3 = [5 x i8] c"|%2i\00"
@.str.4 = [3 x i8] c"|\0A\00"
@.str.5 = [4 x i8] c"%2i\00"
@.str.6 = [4 x i8] c"| *\00"
@.str.7 = [5 x i8] c"|%2c\00"
@.str.8 = [27 x i8] c"|\09 Ultima jogada (L): %2i\0A\00"
@.str.9 = [27 x i8] c"|\09 Ultima jogada (C): %2i\0A\00"
@.str.10 = [18 x i8] c"|\09 Seu life: %2i\0A\00"
@.str.11 = [28 x i8] c"|\09 Life do adversario: %2i\0A\00"
@.str.12 = [30 x i8] c"\0ASeu tabuleiro eh o de cima\0A\0A\00"
@.str.13 = [4 x i8] c"| ?\00"
@.str.14 = [27 x i8] c"\0A Proxima jogada: (linha)\09\00"
@.str.15 = [28 x i8] c"\0A Proxima jogada: (coluna)\09\00"
@.str.16 = [48 x i8] c"Voce ja atirou nesse quadrante. Escolha outro:\0A\00"
@.str.17 = [2 x i8] c"\0A\00"
@.str.18 = [53 x i8] c"Voce acertou a agua, marujo! Mire melhor a proxima!\0A\00"
@.str.19 = [38 x i8] c"Ahoy! Voce acertou alguma coisa ali!\0A\00"
define i32 @brief2(i32*** %0, i32*** %1, i32* %2, i32* %3, i32* %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca i32***
%10 = alloca i32***
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
store i32*** %0, i32**** %9
store i32*** %1, i32**** %10
store i32* %2, i32** %11
store i32* %3, i32** %12
store i32* %4, i32** %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32 %7, i32* %16
store i32 0, i32* %19
br label %23
23: ; preds = %26, %8
%24 = load i32, i32* %19
%25 = icmp ne i32 %24, 1
br i1 %25, label %26, label %31
26: ; preds = %23
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %19)
%29 = load i32, i32* %19
%30 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @teste to i32 (i32, i32, i32, i32, ...)*)(i32 %29, i32 0, i32 1, i32 1)
br label %23
31: ; preds = %23
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %18
br label %33
33: ; preds = %40, %31
%34 = load i32, i32* %18
%35 = load i32, i32* %15
%36 = icmp sle i32 %34, %35
br i1 %36, label %37, label %43
37: ; preds = %33
%38 = load i32, i32* %18
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %38)
br label %40
40: ; preds = %37
%41 = load i32, i32* %18
%42 = add nsw i32 %41, 1
store i32 %42, i32* %18
br label %33
43: ; preds = %33
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %18
br label %45
45: ; preds = %137, %43
%46 = load i32, i32* %18
%47 = load i32, i32* %14
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %140
49: ; preds = %45
%50 = load i32, i32* %18
%51 = add nsw i32 %50, 1
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %51)
store i32 0, i32* %20
br label %53
53: ; preds = %99, %49
%54 = load i32, i32* %20
%55 = load i32, i32* %15
%56 = icmp slt i32 %54, %55
br i1 %56, label %57, label %102
57: ; preds = %53
%58 = load i32***, i32**** %10
%59 = load i32, i32* %18
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32**, i32*** %58, i64 %60
%62 = load i32**, i32*** %61
%63 = load i32, i32* %20
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32*, i32** %62, i64 %64
%66 = load i32*, i32** %65
%67 = getelementptr inbounds i32, i32* %66, i64 0
%68 = load i32, i32* %67
%69 = icmp ne i32 %68, 126
br i1 %69, label %70, label %85
70: ; preds = %57
%71 = load i32***, i32**** %10
%72 = load i32, i32* %18
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32**, i32*** %71, i64 %73
%75 = load i32**, i32*** %74
%76 = load i32, i32* %20
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32*, i32** %75, i64 %77
%79 = load i32*, i32** %78
%80 = getelementptr inbounds i32, i32* %79, i64 1
%81 = load i32, i32* %80
%82 = icmp eq i32 %81, 1
br i1 %82, label %83, label %85
83: ; preds = %70
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %98
85: ; preds = %70, %57
%86 = load i32***, i32**** %10
%87 = load i32, i32* %18
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32**, i32*** %86, i64 %88
%90 = load i32**, i32*** %89
%91 = load i32, i32* %20
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32*, i32** %90, i64 %92
%94 = load i32*, i32** %93
%95 = getelementptr inbounds i32, i32* %94, i64 0
%96 = load i32, i32* %95
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %96)
br label %98
98: ; preds = %85, %83
br label %99
99: ; preds = %98
%100 = load i32, i32* %20
%101 = add nsw i32 %100, 1
store i32 %101, i32* %20
br label %53
102: ; preds = %53
%103 = load i32, i32* %18
%104 = icmp eq i32 %103, 1
br i1 %104, label %105, label %110
105: ; preds = %102
%106 = load i32*, i32** %12
%107 = load i32, i32* %106
%108 = add nsw i32 %107, 1
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i32 %108)
br label %136
110: ; preds = %102
%111 = load i32, i32* %18
%112 = icmp eq i32 %111, 2
br i1 %112, label %113, label %118
113: ; preds = %110
%114 = load i32*, i32** %11
%115 = load i32, i32* %114
%116 = add nsw i32 %115, 1
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i32 %116)
br label %135
118: ; preds = %110
%119 = load i32, i32* %18
%120 = icmp eq i32 %119, 3
br i1 %120, label %121, label %125
121: ; preds = %118
%122 = load i32*, i32** %13
%123 = load i32, i32* %122
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i32 %123)
br label %134
125: ; preds = %118
%126 = load i32, i32* %18
%127 = icmp eq i32 %126, 4
br i1 %127, label %128, label %131
128: ; preds = %125
%129 = load i32, i32* %16
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0), i32 %129)
br label %133
131: ; preds = %125
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %133
133: ; preds = %131, %128
br label %134
134: ; preds = %133, %121
br label %135
135: ; preds = %134, %113
br label %136
136: ; preds = %135, %105
br label %137
137: ; preds = %136
%138 = load i32, i32* %18
%139 = add nsw i32 %138, 1
store i32 %139, i32* %18
br label %45
140: ; preds = %45
%141 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0))
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %18
br label %143
143: ; preds = %150, %140
%144 = load i32, i32* %18
%145 = load i32, i32* %15
%146 = icmp sle i32 %144, %145
br i1 %146, label %147, label %153
147: ; preds = %143
%148 = load i32, i32* %18
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %148)
br label %150
150: ; preds = %147
%151 = load i32, i32* %18
%152 = add nsw i32 %151, 1
store i32 %152, i32* %18
br label %143
153: ; preds = %143
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %18
br label %155
155: ; preds = %201, %153
%156 = load i32, i32* %18
%157 = load i32, i32* %14
%158 = icmp slt i32 %156, %157
br i1 %158, label %159, label %204
159: ; preds = %155
%160 = load i32, i32* %18
%161 = add nsw i32 %160, 1
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %161)
store i32 0, i32* %21
br label %163
163: ; preds = %196, %159
%164 = load i32, i32* %21
%165 = load i32, i32* %15
%166 = icmp slt i32 %164, %165
br i1 %166, label %167, label %199
167: ; preds = %163
%168 = load i32***, i32**** %9
%169 = load i32, i32* %18
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds i32**, i32*** %168, i64 %170
%172 = load i32**, i32*** %171
%173 = load i32, i32* %21
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i32*, i32** %172, i64 %174
%176 = load i32*, i32** %175
%177 = getelementptr inbounds i32, i32* %176, i64 1
%178 = load i32, i32* %177
%179 = icmp eq i32 %178, 0
br i1 %179, label %180, label %182
180: ; preds = %167
%181 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
br label %195
182: ; preds = %167
%183 = load i32***, i32**** %9
%184 = load i32, i32* %18
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i32**, i32*** %183, i64 %185
%187 = load i32**, i32*** %186
%188 = load i32, i32* %21
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds i32*, i32** %187, i64 %189
%191 = load i32*, i32** %190
%192 = getelementptr inbounds i32, i32* %191, i64 0
%193 = load i32, i32* %192
%194 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %193)
br label %195
195: ; preds = %182, %180
br label %196
196: ; preds = %195
%197 = load i32, i32* %21
%198 = add nsw i32 %197, 1
store i32 %198, i32* %21
br label %163
199: ; preds = %163
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %201
201: ; preds = %199
%202 = load i32, i32* %18
%203 = add nsw i32 %202, 1
store i32 %203, i32* %18
br label %155
204: ; preds = %155
%205 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0))
%206 = load i32*, i32** %12
%207 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %206)
%208 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0))
%209 = load i32*, i32** %11
%210 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %209)
%211 = load i32*, i32** %12
%212 = load i32, i32* %211
%213 = load i32, i32* %14
%214 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @teste to i32 (i32, i32, i32, i32, ...)*)(i32 %212, i32 1, i32 %213, i32 2)
%215 = load i32*, i32** %11
%216 = load i32, i32* %215
%217 = load i32, i32* %15
%218 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @teste to i32 (i32, i32, i32, i32, ...)*)(i32 %216, i32 1, i32 %217, i32 2)
%219 = load i32*, i32** %12
%220 = load i32, i32* %219
%221 = sub nsw i32 %220, 1
%222 = load i32*, i32** %12
store i32 %221, i32* %222
%223 = load i32*, i32** %11
%224 = load i32, i32* %223
%225 = sub nsw i32 %224, 1
%226 = load i32*, i32** %11
store i32 %225, i32* %226
br label %227
227: ; preds = %242, %204
%228 = load i32***, i32**** %9
%229 = load i32*, i32** %12
%230 = load i32, i32* %229
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds i32**, i32*** %228, i64 %231
%233 = load i32**, i32*** %232
%234 = load i32*, i32** %11
%235 = load i32, i32* %234
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds i32*, i32** %233, i64 %236
%238 = load i32*, i32** %237
%239 = getelementptr inbounds i32, i32* %238, i64 1
%240 = load i32, i32* %239
%241 = icmp eq i32 %240, 1
br i1 %241, label %242, label %266
242: ; preds = %227
%243 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.16, i64 0, i64 0))
%244 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0))
%245 = load i32*, i32** %12
%246 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %245)
%247 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0))
%248 = load i32*, i32** %11
%249 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %248)
%250 = load i32*, i32** %12
%251 = load i32, i32* %250
%252 = load i32, i32* %14
%253 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @teste to i32 (i32, i32, i32, i32, ...)*)(i32 %251, i32 1, i32 %252, i32 2)
%254 = load i32*, i32** %11
%255 = load i32, i32* %254
%256 = load i32, i32* %15
%257 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @teste to i32 (i32, i32, i32, i32, ...)*)(i32 %255, i32 1, i32 %256, i32 2)
%258 = load i32*, i32** %12
%259 = load i32, i32* %258
%260 = sub nsw i32 %259, 1
%261 = load i32*, i32** %12
store i32 %260, i32* %261
%262 = load i32*, i32** %11
%263 = load i32, i32* %262
%264 = sub nsw i32 %263, 1
%265 = load i32*, i32** %11
store i32 %264, i32* %265
br label %227
266: ; preds = %227
%267 = load i32***, i32**** %9
%268 = load i32*, i32** %12
%269 = load i32, i32* %268
%270 = sext i32 %269 to i64
%271 = getelementptr inbounds i32**, i32*** %267, i64 %270
%272 = load i32**, i32*** %271
%273 = load i32*, i32** %11
%274 = load i32, i32* %273
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds i32*, i32** %272, i64 %275
%277 = load i32*, i32** %276
%278 = getelementptr inbounds i32, i32* %277, i64 1
store i32 1, i32* %278
store i32 1, i32* %18
br label %279
279: ; preds = %284, %266
%280 = load i32, i32* %18
%281 = icmp slt i32 %280, 20
br i1 %281, label %282, label %287
282: ; preds = %279
%283 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
br label %284
284: ; preds = %282
%285 = load i32, i32* %18
%286 = add nsw i32 %285, 1
store i32 %286, i32* %18
br label %279
287: ; preds = %279
%288 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %18
br label %289
289: ; preds = %296, %287
%290 = load i32, i32* %18
%291 = load i32, i32* %15
%292 = icmp sle i32 %290, %291
br i1 %292, label %293, label %299
293: ; preds = %289
%294 = load i32, i32* %18
%295 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %294)
br label %296
296: ; preds = %293
%297 = load i32, i32* %18
%298 = add nsw i32 %297, 1
store i32 %298, i32* %18
br label %289
299: ; preds = %289
%300 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %18
br label %301
301: ; preds = %347, %299
%302 = load i32, i32* %18
%303 = load i32, i32* %14
%304 = icmp slt i32 %302, %303
br i1 %304, label %305, label %350
305: ; preds = %301
%306 = load i32, i32* %18
%307 = add nsw i32 %306, 1
%308 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %307)
store i32 0, i32* %22
br label %309
309: ; preds = %342, %305
%310 = load i32, i32* %22
%311 = load i32, i32* %15
%312 = icmp slt i32 %310, %311
br i1 %312, label %313, label %345
313: ; preds = %309
%314 = load i32***, i32**** %9
%315 = load i32, i32* %18
%316 = sext i32 %315 to i64
%317 = getelementptr inbounds i32**, i32*** %314, i64 %316
%318 = load i32**, i32*** %317
%319 = load i32, i32* %22
%320 = sext i32 %319 to i64
%321 = getelementptr inbounds i32*, i32** %318, i64 %320
%322 = load i32*, i32** %321
%323 = getelementptr inbounds i32, i32* %322, i64 1
%324 = load i32, i32* %323
%325 = icmp eq i32 %324, 0
br i1 %325, label %326, label %328
326: ; preds = %313
%327 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
br label %341
328: ; preds = %313
%329 = load i32***, i32**** %9
%330 = load i32, i32* %18
%331 = sext i32 %330 to i64
%332 = getelementptr inbounds i32**, i32*** %329, i64 %331
%333 = load i32**, i32*** %332
%334 = load i32, i32* %22
%335 = sext i32 %334 to i64
%336 = getelementptr inbounds i32*, i32** %333, i64 %335
%337 = load i32*, i32** %336
%338 = getelementptr inbounds i32, i32* %337, i64 0
%339 = load i32, i32* %338
%340 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %339)
br label %341
341: ; preds = %328, %326
br label %342
342: ; preds = %341
%343 = load i32, i32* %22
%344 = add nsw i32 %343, 1
store i32 %344, i32* %22
br label %309
345: ; preds = %309
%346 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %347
347: ; preds = %345
%348 = load i32, i32* %18
%349 = add nsw i32 %348, 1
store i32 %349, i32* %18
br label %301
350: ; preds = %301
%351 = load i32***, i32**** %9
%352 = load i32*, i32** %12
%353 = load i32, i32* %352
%354 = sext i32 %353 to i64
%355 = getelementptr inbounds i32**, i32*** %351, i64 %354
%356 = load i32**, i32*** %355
%357 = load i32*, i32** %11
%358 = load i32, i32* %357
%359 = sext i32 %358 to i64
%360 = getelementptr inbounds i32*, i32** %356, i64 %359
%361 = load i32*, i32** %360
%362 = getelementptr inbounds i32, i32* %361, i64 0
%363 = load i32, i32* %362
%364 = icmp eq i32 %363, 126
br i1 %364, label %365, label %367
365: ; preds = %350
%366 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.18, i64 0, i64 0))
br label %371
367: ; preds = %350
%368 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.19, i64 0, i64 0))
%369 = load i32, i32* %16
%370 = add nsw i32 %369, -1
store i32 %370, i32* %16
br label %371
371: ; preds = %367, %365
%372 = load i32, i32* %16
ret i32 %372
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%i\00"
@.str.2 = [3 x i8] c" \00"
@.str.3 = [5 x i8] c"|%2i\00"
@.str.5 = [4 x i8] c"%2i\00"
@.str.6 = [4 x i8] c"| *\00"
@.str.7 = [5 x i8] c"|%2c\00"
@.str.8 = [27 x i8] c"|\09 Ultima jogada (L): %2i\0A\00"
@.str.9 = [27 x i8] c"|\09 Ultima jogada (C): %2i\0A\00"
@.str.10 = [18 x i8] c"|\09 Seu life: %2i\0A\00"
@.str.11 = [28 x i8] c"|\09 Life do adversario: %2i\0A\00"
@.str.13 = [4 x i8] c"| ?\00"
@.str.14 = [27 x i8] c"\0A Proxima jogada: (linha)\09\00"
@.str.15 = [28 x i8] c"\0A Proxima jogada: (coluna)\09\00"
@str.20 = [29 x i8] c"\0ASeu tabuleiro eh o de cima\0A\00"
@str.23 = [37 x i8] c"Ahoy! Voce acertou alguma coisa ali!\00"
@str.24 = [52 x i8] c"Voce acertou a agua, marujo! Mire melhor a proxima!\00"
@str.26 = [47 x i8] c"Voce ja atirou nesse quadrante. Escolha outro:\00"
@str.28 = [2 x i8] c"|\00"
@str.29 = [24 x i8] c"Mesmo? (Sim: 1| Nao: 0)\00"
define i32 @brief2(i32*** nocapture %0, i32*** nocapture %1, i32* %2, i32* %3, i32* nocapture %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca i32
%10 = bitcast i32* %9 to i8*
store i32 0, i32* %9
br label %11
11: ; preds = %8, %11
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.29, i64 0, i64 0))
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %9)
%14 = load i32, i32* %9
%15 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @teste to i32 (i32, i32, i32, i32, ...)*)(i32 %14, i32 0, i32 1, i32 1)
%16 = load i32, i32* %9
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %11
18: ; preds = %11
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%20 = icmp slt i32 %6, 1
br i1 %20, label %26, label %21
21: ; preds = %18, %21
%22 = phi i32 [ %24, %21 ], [ 1, %18 ]
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %22)
%24 = add nuw i32 %22, 1
%25 = icmp eq i32 %22, %6
br i1 %25, label %26, label %21
26: ; preds = %21, %18
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.28, i64 0, i64 0))
%28 = icmp sgt i32 %5, 0
br i1 %28, label %29, label %77
29: ; preds = %26
%30 = icmp sgt i32 %6, 0
%31 = zext i32 %5 to i64
%32 = zext i32 %6 to i64
br label %33
33: ; preds = %29, %75
%34 = phi i64 [ 0, %29 ], [ %35, %75 ]
%35 = add nuw nsw i64 %34, 1
%36 = trunc i64 %35 to i32
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %36)
br i1 %30, label %38, label %40
38: ; preds = %33
%39 = getelementptr inbounds i32**, i32*** %1, i64 %34
br label %42
40: ; preds = %57, %33
%41 = trunc i64 %34 to i32
switch i32 %41, label %73 [
i32 1, label %60
i32 2, label %64
i32 3, label %68
i32 4, label %71
]
42: ; preds = %38, %57
%43 = phi i64 [ 0, %38 ], [ %58, %57 ]
%44 = load i32**, i32*** %39
%45 = getelementptr inbounds i32*, i32** %44, i64 %43
%46 = load i32*, i32** %45
%47 = load i32, i32* %46
%48 = icmp eq i32 %47, 126
br i1 %48, label %55, label %49
49: ; preds = %42
%50 = getelementptr inbounds i32, i32* %46, i64 1
%51 = load i32, i32* %50
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %55
53: ; preds = %49
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %57
55: ; preds = %49, %42
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %47)
br label %57
57: ; preds = %53, %55
%58 = add nuw nsw i64 %43, 1
%59 = icmp eq i64 %58, %32
br i1 %59, label %40, label %42
60: ; preds = %40
%61 = load i32, i32* %3
%62 = add nsw i32 %61, 1
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i32 %62)
br label %75
64: ; preds = %40
%65 = load i32, i32* %2
%66 = add nsw i32 %65, 1
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i32 %66)
br label %75
68: ; preds = %40
%69 = load i32, i32* %4
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i32 %69)
br label %75
71: ; preds = %40
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0), i32 %7)
br label %75
73: ; preds = %40
%74 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.28, i64 0, i64 0))
br label %75
75: ; preds = %60, %68, %73, %71, %64
%76 = icmp eq i64 %35, %31
br i1 %76, label %77, label %33
77: ; preds = %75, %26
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.20, i64 0, i64 0))
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br i1 %20, label %85, label %80
80: ; preds = %77, %80
%81 = phi i32 [ %83, %80 ], [ 1, %77 ]
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %81)
%83 = add nuw i32 %81, 1
%84 = icmp eq i32 %81, %6
br i1 %84, label %85, label %80
85: ; preds = %80, %77
%86 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.28, i64 0, i64 0))
br i1 %28, label %87, label %117
87: ; preds = %85
%88 = icmp sgt i32 %6, 0
%89 = zext i32 %5 to i64
%90 = zext i32 %6 to i64
br label %91
91: ; preds = %87, %98
%92 = phi i64 [ 0, %87 ], [ %93, %98 ]
%93 = add nuw nsw i64 %92, 1
%94 = trunc i64 %93 to i32
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %94)
br i1 %88, label %96, label %98
96: ; preds = %91
%97 = getelementptr inbounds i32**, i32*** %0, i64 %92
br label %101
98: ; preds = %114, %91
%99 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.28, i64 0, i64 0))
%100 = icmp eq i64 %93, %89
br i1 %100, label %117, label %91
101: ; preds = %96, %114
%102 = phi i64 [ 0, %96 ], [ %115, %114 ]
%103 = load i32**, i32*** %97
%104 = getelementptr inbounds i32*, i32** %103, i64 %102
%105 = load i32*, i32** %104
%106 = getelementptr inbounds i32, i32* %105, i64 1
%107 = load i32, i32* %106
%108 = icmp eq i32 %107, 0
br i1 %108, label %109, label %111
109: ; preds = %101
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
br label %114
111: ; preds = %101
%112 = load i32, i32* %105
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %112)
br label %114
114: ; preds = %109, %111
%115 = add nuw nsw i64 %102, 1
%116 = icmp eq i64 %115, %90
br i1 %116, label %98, label %101
117: ; preds = %98, %85
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0))
%119 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0))
%121 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%122 = load i32, i32* %3
%123 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @teste to i32 (i32, i32, i32, i32, ...)*)(i32 %122, i32 1, i32 %5, i32 2)
%124 = load i32, i32* %2
%125 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @teste to i32 (i32, i32, i32, i32, ...)*)(i32 %124, i32 1, i32 %6, i32 2)
%126 = load i32, i32* %3
%127 = add nsw i32 %126, -1
store i32 %127, i32* %3
%128 = load i32, i32* %2
%129 = add nsw i32 %128, -1
store i32 %129, i32* %2
%130 = load i32, i32* %3
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i32**, i32*** %0, i64 %131
%133 = load i32**, i32*** %132
%134 = sext i32 %129 to i64
%135 = getelementptr inbounds i32*, i32** %133, i64 %134
%136 = load i32*, i32** %135
%137 = getelementptr inbounds i32, i32* %136, i64 1
%138 = load i32, i32* %137
%139 = icmp eq i32 %138, 1
br i1 %139, label %140, label %164
140: ; preds = %117, %140
%141 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.26, i64 0, i64 0))
%142 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0))
%143 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%144 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0))
%145 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%146 = load i32, i32* %3
%147 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @teste to i32 (i32, i32, i32, i32, ...)*)(i32 %146, i32 1, i32 %5, i32 2)
%148 = load i32, i32* %2
%149 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @teste to i32 (i32, i32, i32, i32, ...)*)(i32 %148, i32 1, i32 %6, i32 2)
%150 = load i32, i32* %3
%151 = add nsw i32 %150, -1
store i32 %151, i32* %3
%152 = load i32, i32* %2
%153 = add nsw i32 %152, -1
store i32 %153, i32* %2
%154 = load i32, i32* %3
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds i32**, i32*** %0, i64 %155
%157 = load i32**, i32*** %156
%158 = sext i32 %153 to i64
%159 = getelementptr inbounds i32*, i32** %157, i64 %158
%160 = load i32*, i32** %159
%161 = getelementptr inbounds i32, i32* %160, i64 1
%162 = load i32, i32* %161
%163 = icmp eq i32 %162, 1
br i1 %163, label %140, label %164
164: ; preds = %140, %117
%165 = phi i32* [ %136, %117 ], [ %160, %140 ]
%166 = getelementptr inbounds i32, i32* %165, i64 1
store i32 1, i32* %166
%167 = call i32 @putchar(i32 10)
%168 = call i32 @putchar(i32 10)
%169 = call i32 @putchar(i32 10)
%170 = call i32 @putchar(i32 10)
%171 = call i32 @putchar(i32 10)
%172 = call i32 @putchar(i32 10)
%173 = call i32 @putchar(i32 10)
%174 = call i32 @putchar(i32 10)
%175 = call i32 @putchar(i32 10)
%176 = call i32 @putchar(i32 10)
%177 = call i32 @putchar(i32 10)
%178 = call i32 @putchar(i32 10)
%179 = call i32 @putchar(i32 10)
%180 = call i32 @putchar(i32 10)
%181 = call i32 @putchar(i32 10)
%182 = call i32 @putchar(i32 10)
%183 = call i32 @putchar(i32 10)
%184 = call i32 @putchar(i32 10)
%185 = call i32 @putchar(i32 10)
%186 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br i1 %20, label %192, label %187
187: ; preds = %164, %187
%188 = phi i32 [ %190, %187 ], [ 1, %164 ]
%189 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 %188)
%190 = add nuw i32 %188, 1
%191 = icmp eq i32 %188, %6
br i1 %191, label %192, label %187
192: ; preds = %187, %164
%193 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.28, i64 0, i64 0))
br i1 %28, label %194, label %224
194: ; preds = %192
%195 = icmp sgt i32 %6, 0
%196 = zext i32 %5 to i64
%197 = zext i32 %6 to i64
br label %198
198: ; preds = %194, %205
%199 = phi i64 [ 0, %194 ], [ %200, %205 ]
%200 = add nuw nsw i64 %199, 1
%201 = trunc i64 %200 to i32
%202 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %201)
br i1 %195, label %203, label %205
203: ; preds = %198
%204 = getelementptr inbounds i32**, i32*** %0, i64 %199
br label %208
205: ; preds = %221, %198
%206 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.28, i64 0, i64 0))
%207 = icmp eq i64 %200, %196
br i1 %207, label %224, label %198
208: ; preds = %203, %221
%209 = phi i64 [ 0, %203 ], [ %222, %221 ]
%210 = load i32**, i32*** %204
%211 = getelementptr inbounds i32*, i32** %210, i64 %209
%212 = load i32*, i32** %211
%213 = getelementptr inbounds i32, i32* %212, i64 1
%214 = load i32, i32* %213
%215 = icmp eq i32 %214, 0
br i1 %215, label %216, label %218
216: ; preds = %208
%217 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
br label %221
218: ; preds = %208
%219 = load i32, i32* %212
%220 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %219)
br label %221
221: ; preds = %216, %218
%222 = add nuw nsw i64 %209, 1
%223 = icmp eq i64 %222, %197
br i1 %223, label %205, label %208
224: ; preds = %205, %192
%225 = load i32, i32* %3
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds i32**, i32*** %0, i64 %226
%228 = load i32**, i32*** %227
%229 = load i32, i32* %2
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds i32*, i32** %228, i64 %230
%232 = load i32*, i32** %231
%233 = load i32, i32* %232
%234 = icmp eq i32 %233, 126
br i1 %234, label %235, label %237
235: ; preds = %224
%236 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.24, i64 0, i64 0))
br label %240
237: ; preds = %224
%238 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.23, i64 0, i64 0))
%239 = add nsw i32 %7, -1
br label %240
240: ; preds = %237, %235
%241 = phi i32 [ %7, %235 ], [ %239, %237 ]
ret i32 %241
}