int main() {
  int gamesQtt;
  char table_names[3][10] = {"Barcelona", "Milan", "Vascao"};
  int table_names_sizes[3] = {9, 5, 6};
  float table_data[3][6];
  int i, j, k;
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 3; j++) {
      table_data[i][j] = 0;
    }
  }
  printf("Times cadastrados:\n");
  for (i = 0; i < 3; i++) {
    printf("%d -> %s\n", i, table_names[i]);
  }
  printf("\nQuantidade de jogos: ");
  scanf("%d", &gamesQtt);
  char teamName1[10], teamName2[10];
  int teamScore1, teamScore2;
  int teamIndex1, teamIndex2;
  float pointsAux[3] = {0, 0, 0};
  printf("\nResultados das %d partidas (ex: \"Vascao 1 x 3 Barcelona\"):\n",
         gamesQtt);
  for (i = 0; i < gamesQtt; i++) {
    scanf(" %s %d x %d %s", teamName1, &teamScore1, &teamScore2, teamName2);
    teamIndex1 = -1;
    teamIndex2 = -1;
    for (j = 0; j < 3; j++) {
      if (strAreEquals(teamName1, table_names[j], table_names_sizes[j]))
        teamIndex1 = j;
      if (strAreEquals(teamName2, table_names[j], table_names_sizes[j]))
        teamIndex2 = j;
      if ((teamIndex1 != -1) && (teamIndex2 != -1))
        break;
    }
    printf("(Procurando times... ");
    if ((teamIndex1 == -1) && (teamIndex2 == -1))
      return 666;
    printf("Ok. Processando escrita... ");
    table_data[teamIndex1][0] += (float)teamScore1;
    table_data[teamIndex1][1] += (float)teamScore2;
    table_data[teamIndex1][2] += (teamScore1 > teamScore2) ? 1.0 : 0.0;
    table_data[teamIndex1][3] += points(teamScore1, teamScore2);
    table_data[teamIndex1][4] += (float)(teamScore1 - teamScore2);
    table_data[teamIndex1][5] =
        average(table_data[teamIndex1][0], table_data[teamIndex1][1]);
    table_data[teamIndex2][0] += (float)teamScore2;
    table_data[teamIndex2][1] += (float)teamScore1;
    table_data[teamIndex2][2] += (teamScore2 > teamScore1) ? 1.0 : 0.0;
    table_data[teamIndex2][3] += points(teamScore2, teamScore1);
    table_data[teamIndex2][4] += (float)(teamScore2 - teamScore1);
    table_data[teamIndex2][5] =
        average(table_data[teamIndex2][0], table_data[teamIndex2][1]);
    pointsAux[teamIndex1] = table_data[teamIndex1][3];
    pointsAux[teamIndex2] = table_data[teamIndex2][3];
    printf("Ok. Pronto.)\n");
  }
  int classification[3] = {0, 1, 2};
  float aux;
  int leftIndex, rightIndex, swapped;
  printf("\n(Classificando... ");
  do {
    swapped = 0;
    for (i = 1; i < 3; i++) {
      leftIndex = i - 1;
      rightIndex = i;
      if (pointsAux[leftIndex] < pointsAux[rightIndex]) {
        aux = pointsAux[leftIndex];
        pointsAux[leftIndex] = pointsAux[rightIndex];
        pointsAux[rightIndex] = aux;
        swapped = 1;
      }
    }
  } while (swapped);
  printf("Ok. Imprimindo...)\n");
  for (i = 0; i < 3; i++) {
    printf("%d: %s\n", i, table_names[i]);
  }
  for (i = 0; i < 3; i++) {
    printf("%do lugar tem %f pontos.\n", i, pointsAux[i]);
  }
  printf("(Pronto.)\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xe97(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe94(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe91(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe8f(%rip),%eax
mov    %eax,-0x18(%rbp)
mov    0xe89(%rip),%ax
mov    %ax,-0x14(%rbp)
mov    0xe82(%rip),%rax
mov    %rax,-0x3c(%rbp)
mov    0xe80(%rip),%eax
mov    %eax,-0x34(%rbp)
movl   $0x0,-0x94(%rbp)
cmpl   $0x3,-0x94(%rbp)
jge    123a <main+0xda>
movl   $0x0,-0x98(%rbp)
cmpl   $0x3,-0x98(%rbp)
jge    1221 <main+0xc1>
movslq -0x94(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movslq -0x98(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
jmp    11dc <main+0x7c>
jmp    1226 <main+0xc6>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    11c5 <main+0x65>
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x94(%rbp)
cmpl   $0x3,-0x94(%rbp)
jge    1299 <main+0x139>
mov    -0x94(%rbp),%esi
movslq -0x94(%rbp),%rax
lea    -0x30(%rbp),%rdx
imul   $0xa,%rax,%rax
add    %rax,%rdx
lea    0xdde(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1252 <main+0xf2>
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdcf(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
lea    -0xcc(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1050 <memset@plt>
mov    -0x8(%rbp),%esi
lea    0xdaa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    17c1 <main+0x661>
lea    -0xa6(%rbp),%rsi
lea    -0xb0(%rbp),%r8
lea    0xdb2(%rip),%rdi
lea    -0xb4(%rbp),%rdx
lea    -0xb8(%rbp),%rcx
mov    $0x0,%al
call   1070 <scanf@plt>
movl   $0xffffffff,-0xbc(%rbp)
ff ff ff
movl   $0xffffffff,-0xc0(%rbp)
ff ff ff
movl   $0x0,-0x98(%rbp)
cmpl   $0x3,-0x98(%rbp)
jge    1403 <main+0x2a3>
lea    -0xa6(%rbp),%rdi
movslq -0x98(%rbp),%rax
lea    -0x30(%rbp),%rsi
imul   $0xa,%rax,%rax
add    %rax,%rsi
movslq -0x98(%rbp),%rax
mov    -0x3c(%rbp,%rax,4),%edx
mov    $0x0,%al
call   1080 <strAreEquals@plt>
cmp    $0x0,%eax
je     138b <main+0x22b>
mov    -0x98(%rbp),%eax
mov    %eax,-0xbc(%rbp)
lea    -0xb0(%rbp),%rdi
movslq -0x98(%rbp),%rax
lea    -0x30(%rbp),%rsi
imul   $0xa,%rax,%rax
add    %rax,%rsi
movslq -0x98(%rbp),%rax
mov    -0x3c(%rbp,%rax,4),%edx
mov    $0x0,%al
call   1080 <strAreEquals@plt>
cmp    $0x0,%eax
je     13cb <main+0x26b>
mov    -0x98(%rbp),%eax
mov    %eax,-0xc0(%rbp)
cmpl   $0xffffffff,-0xbc(%rbp)
je     13ea <main+0x28a>
cmpl   $0xffffffff,-0xc0(%rbp)
je     13ea <main+0x28a>
jmp    1403 <main+0x2a3>
jmp    13ef <main+0x28f>
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
jmp    133e <main+0x1de>
lea    0xcc2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0xffffffff,-0xbc(%rbp)
jne    1437 <main+0x2d7>
cmpl   $0xffffffff,-0xc0(%rbp)
jne    1437 <main+0x2d7>
movl   $0x29a,-0x4(%rbp)
jmp    199a <main+0x83a>
lea    0xca4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cvtsi2ssl -0xb4(%rbp),%xmm0
ff
movslq -0xbc(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
addss  (%rax),%xmm0
movss  %xmm0,(%rax)
cvtsi2ssl -0xb8(%rbp),%xmm0
ff
movslq -0xbc(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
addss  0x4(%rax),%xmm0
movss  %xmm0,0x4(%rax)
mov    -0xb4(%rbp),%eax
mov    -0xb8(%rbp),%ecx
movsd  0xb5b(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  %xmm1,-0xf8(%rbp)
ff
cmp    %ecx,%eax
movsd  %xmm0,-0xf0(%rbp)
ff
jg     14d0 <main+0x370>
movsd  -0xf8(%rbp),%xmm0
ff
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xf0(%rbp),%xmm1
ff
movslq -0xbc(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x8(%rax)
mov    -0xb4(%rbp),%edi
mov    -0xb8(%rbp),%esi
mov    $0x0,%al
call   1030 <points@plt>
cvtsi2ss %eax,%xmm0
movslq -0xbc(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
addss  0xc(%rax),%xmm0
movss  %xmm0,0xc(%rax)
mov    -0xb4(%rbp),%eax
sub    -0xb8(%rbp),%eax
cvtsi2ss %eax,%xmm0
movslq -0xbc(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
addss  0x10(%rax),%xmm0
movss  %xmm0,0x10(%rax)
movslq -0xbc(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movslq -0xbc(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movss  0x4(%rax),%xmm1
cvtss2sd %xmm1,%xmm1
mov    $0x2,%al
call   1060 <average@plt>
cvtsi2ss %eax,%xmm0
movslq -0xbc(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movss  %xmm0,0x14(%rax)
cvtsi2ssl -0xb8(%rbp),%xmm0
ff
movslq -0xc0(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
addss  (%rax),%xmm0
movss  %xmm0,(%rax)
cvtsi2ssl -0xb4(%rbp),%xmm0
ff
movslq -0xc0(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
addss  0x4(%rax),%xmm0
movss  %xmm0,0x4(%rax)
mov    -0xb8(%rbp),%eax
mov    -0xb4(%rbp),%ecx
movsd  0x9d8(%rip),%xmm0
xorps  %xmm1,%xmm1
movsd  %xmm1,-0x108(%rbp)
ff
cmp    %ecx,%eax
movsd  %xmm0,-0x100(%rbp)
ff
jg     1653 <main+0x4f3>
movsd  -0x108(%rbp),%xmm0
ff
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x100(%rbp),%xmm1
ff
movslq -0xc0(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x8(%rax)
mov    -0xb8(%rbp),%edi
mov    -0xb4(%rbp),%esi
mov    $0x0,%al
call   1030 <points@plt>
cvtsi2ss %eax,%xmm0
movslq -0xc0(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
addss  0xc(%rax),%xmm0
movss  %xmm0,0xc(%rax)
mov    -0xb8(%rbp),%eax
sub    -0xb4(%rbp),%eax
cvtsi2ss %eax,%xmm0
movslq -0xc0(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
addss  0x10(%rax),%xmm0
movss  %xmm0,0x10(%rax)
movslq -0xc0(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movss  (%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movslq -0xc0(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movss  0x4(%rax),%xmm1
cvtss2sd %xmm1,%xmm1
mov    $0x2,%al
call   1060 <average@plt>
cvtsi2ss %eax,%xmm0
movslq -0xc0(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movss  %xmm0,0x14(%rax)
movslq -0xbc(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movss  0xc(%rax),%xmm0
movslq -0xbc(%rbp),%rax
movss  %xmm0,-0xcc(%rbp,%rax,4)
ff ff
movslq -0xc0(%rbp),%rcx
lea    -0x90(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movss  0xc(%rax),%xmm0
movslq -0xc0(%rbp),%rax
movss  %xmm0,-0xcc(%rbp,%rax,4)
ff ff
lea    0x958(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    12e7 <main+0x187>
mov    0x874(%rip),%rax
mov    %rax,-0xd8(%rbp)
mov    0x86f(%rip),%eax
mov    %eax,-0xd0(%rbp)
lea    0x92a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xe8(%rbp)
movl   $0x1,-0x94(%rbp)
cmpl   $0x3,-0x94(%rbp)
jge    18c1 <main+0x761>
mov    -0x94(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xe0(%rbp)
mov    -0x94(%rbp),%eax
mov    %eax,-0xe4(%rbp)
movslq -0xe0(%rbp),%rax
movss  -0xcc(%rbp,%rax,4),%xmm1
ff ff
movslq -0xe4(%rbp),%rax
movss  -0xcc(%rbp,%rax,4),%xmm0
ff ff
ucomiss %xmm1,%xmm0
jbe    18a8 <main+0x748>
movslq -0xe0(%rbp),%rax
movss  -0xcc(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0xdc(%rbp)
ff
movslq -0xe4(%rbp),%rax
movss  -0xcc(%rbp,%rax,4),%xmm0
ff ff
movslq -0xe0(%rbp),%rax
movss  %xmm0,-0xcc(%rbp,%rax,4)
ff ff
movss  -0xdc(%rbp),%xmm0
ff
movslq -0xe4(%rbp),%rax
movss  %xmm0,-0xcc(%rbp,%rax,4)
ff ff
movl   $0x1,-0xe8(%rbp)
jmp    18ad <main+0x74d>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    17fd <main+0x69d>
jmp    18c6 <main+0x766>
cmpl   $0x0,-0xe8(%rbp)
jne    17e9 <main+0x689>
lea    0x846(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x94(%rbp)
cmpl   $0x3,-0x94(%rbp)
jge    1932 <main+0x7d2>
mov    -0x94(%rbp),%esi
movslq -0x94(%rbp),%rax
lea    -0x30(%rbp),%rdx
imul   $0xa,%rax,%rax
add    %rax,%rdx
lea    0x81d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    18eb <main+0x78b>
movl   $0x0,-0x94(%rbp)
cmpl   $0x3,-0x94(%rbp)
jge    1985 <main+0x825>
mov    -0x94(%rbp),%esi
movslq -0x94(%rbp),%rax
movss  -0xcc(%rbp,%rax,4),%xmm0
ff ff
cvtss2sd %xmm0,%xmm0
lea    0x7d2(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    193c <main+0x7dc>
lea    0x7ca(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%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    $0xb8,%rsp
movups 0xea6(%rip),%xmm0
movups %xmm0,0x8e(%rsp)
movaps 0xe89(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movl   $0x0,0x38(%rsp)
movq   $0x0,0x30(%rsp)
movq   $0x0,0x48(%rsp)
movl   $0x0,0x50(%rsp)
movq   $0x0,0x60(%rsp)
movl   $0x0,0x68(%rsp)
lea    0xf4b(%rip),%rdi
call   1030 <puts@plt>
lea    0xe67(%rip),%rbx
lea    0x80(%rsp),%rdx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8a(%rsp),%r14
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x94(%rsp),%r15
mov    %rbx,%rdi
mov    $0x2,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe22(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe2b(%rip),%rdi
lea    0x28(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
movl   $0x0,0x20(%rsp)
movq   $0x0,0x18(%rsp)
mov    0x28(%rsp),%esi
lea    0xe06(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x28(%rsp)
jle    1533 <main+0x3d3>
xor    %eax,%eax
jmp    1335 <main+0x1d5>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movss  0x38(%rsp,%rbx,8),%xmm1
cvtss2sd %xmm1,%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x38(%rsp,%rbx,8)
xor    %eax,%eax
call   1040 <points@plt>
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
addss  0x3c(%rsp,%rbx,8),%xmm1
movss  %xmm1,0x2c(%rsp)
mov    0x10(%rsp),%eax
sub    0x14(%rsp),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm1,0x3c(%rsp,%rbx,8)
addss  0x40(%rsp,%rbx,8),%xmm0
movss  %xmm0,0x40(%rsp,%rbx,8)
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0xc(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    $0x2,%al
call   1060 <average@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x44(%rsp,%rbx,8)
movss  0x3c(%rsp,%rbp,8),%xmm0
movss  %xmm0,0x18(%rsp,%r13,4)
movss  0x2c(%rsp),%xmm0
movss  %xmm0,0x18(%rsp,%r14,4)
lea    0xe25(%rip),%rdi
call   1030 <puts@plt>
mov    0x8(%rsp),%eax
add    $0x1,%eax
cmp    0x28(%rsp),%eax
jge    1547 <main+0x3e7>
mov    %eax,0x8(%rsp)
lea    0xd5d(%rip),%rdi
lea    0xae(%rsp),%rsi
lea    0x14(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0xa4(%rsp),%r8
xor    %eax,%eax
call   1070 <scanf@plt>
mov    $0xffffffff,%r12d
lea    0x80(%rsp),%rbp
lea    0xcba(%rip),%rbx
xor    %r15d,%r15d
mov    $0xffffffff,%r14d
nop
mov    (%rbx),%r13d
lea    0xae(%rsp),%rdi
mov    %rbp,%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1080 <strAreEquals@plt>
test   %eax,%eax
cmovne %r15d,%r14d
lea    0xa4(%rsp),%rdi
mov    %rbp,%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1080 <strAreEquals@plt>
test   %eax,%eax
cmovne %r15d,%r12d
cmp    $0xffffffff,%r14d
sete   %al
cmp    $0xffffffff,%r12d
sete   %cl
or     %al,%cl
cmp    $0x1,%cl
jne    13e3 <main+0x283>
lea    0x1(%r15),%rax
add    $0x4,%rbx
add    $0xa,%rbp
cmp    $0x2,%r15
mov    %rax,%r15
jb     1380 <main+0x220>
lea    0xcc2(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0xffffffff,%r14d
jne    1401 <main+0x2a1>
cmp    $0xffffffff,%r12d
je     16b2 <main+0x552>
lea    0xcba(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%edi
xorps  %xmm0,%xmm0
cvtsi2ss %edi,%xmm0
movslq %r14d,%r13
lea    0x0(%r13,%r13,2),%rbp
addss  0x30(%rsp,%rbp,8),%xmm0
movss  %xmm0,0x4(%rsp)
movss  %xmm0,0x30(%rsp,%rbp,8)
mov    0x10(%rsp),%esi
xorps  %xmm0,%xmm0
cvtsi2ss %esi,%xmm0
addss  0x34(%rsp,%rbp,8),%xmm0
movss  %xmm0,0xc(%rsp)
movss  %xmm0,0x34(%rsp,%rbp,8)
movsd  0xba7(%rip),%xmm0
cmp    %esi,%edi
jg     1461 <main+0x301>
xorpd  %xmm0,%xmm0
movss  0x38(%rsp,%rbp,8),%xmm1
cvtss2sd %xmm1,%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x38(%rsp,%rbp,8)
xor    %eax,%eax
call   1040 <points@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
addss  0x3c(%rsp,%rbp,8),%xmm0
mov    0x14(%rsp),%eax
sub    0x10(%rsp),%eax
xorps  %xmm1,%xmm1
cvtsi2ss %eax,%xmm1
movss  %xmm0,0x3c(%rsp,%rbp,8)
addss  0x40(%rsp,%rbp,8),%xmm1
movss  %xmm1,0x40(%rsp,%rbp,8)
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0xc(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    $0x2,%al
call   1060 <average@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,0x44(%rsp,%rbp,8)
mov    0x10(%rsp),%edi
xorps  %xmm0,%xmm0
cvtsi2ss %edi,%xmm0
movslq %r12d,%r14
lea    (%r14,%r14,2),%rbx
addss  0x30(%rsp,%rbx,8),%xmm0
movss  %xmm0,0x4(%rsp)
movss  %xmm0,0x30(%rsp,%rbx,8)
mov    0x14(%rsp),%esi
xorps  %xmm0,%xmm0
cvtsi2ss %esi,%xmm0
addss  0x34(%rsp,%rbx,8),%xmm0
movss  %xmm0,0xc(%rsp)
movss  %xmm0,0x34(%rsp,%rbx,8)
movsd  0xade(%rip),%xmm0
cmp    %esi,%edi
jg     1280 <main+0x120>
xorpd  %xmm0,%xmm0
jmp    1280 <main+0x120>
xorps  %xmm0,%xmm0
movss  %xmm0,0x4(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x8(%rsp)
jmp    156f <main+0x40f>
movss  0x18(%rsp),%xmm0
movss  %xmm0,0x8(%rsp)
movss  0x1c(%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
lea    0x8a(%rsp),%r14
lea    0x94(%rsp),%r15
lea    0xb68(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movss  0x18(%rsp),%xmm1
movss  0x1c(%rsp),%xmm0
movss  0x20(%rsp),%xmm2
movss  0x8(%rsp),%xmm4
movss  0x4(%rsp),%xmm5
jmp    15b5 <main+0x455>
nopl   (%rax)
mov    $0x1,%eax
movaps %xmm2,%xmm0
movaps %xmm3,%xmm6
movaps %xmm2,%xmm5
movaps %xmm3,%xmm2
test   %eax,%eax
je     15e4 <main+0x484>
ucomiss %xmm4,%xmm5
jbe    15d0 <main+0x470>
mov    $0x1,%eax
movaps %xmm5,%xmm1
movaps %xmm4,%xmm3
movaps %xmm5,%xmm4
ucomiss %xmm3,%xmm2
ja     15a0 <main+0x440>
jmp    15da <main+0x47a>
nop
movaps %xmm5,%xmm3
xor    %eax,%eax
ucomiss %xmm3,%xmm2
ja     15a0 <main+0x440>
movaps %xmm2,%xmm6
movaps %xmm3,%xmm5
test   %eax,%eax
jne    15b5 <main+0x455>
movss  %xmm1,0x18(%rsp)
movss  %xmm6,0x20(%rsp)
movss  %xmm0,0x1c(%rsp)
lea    0xb2a(%rip),%rdi
movss  %xmm4,0x8(%rsp)
movss  %xmm5,0x4(%rsp)
movss  %xmm6,0xc(%rsp)
call   1030 <puts@plt>
lea    0xad7(%rip),%rbp
xor    %ebx,%ebx
lea    0x80(%rsp),%rdx
mov    %rbp,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x2,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xa94(%rip),%rbp
mov    %rbp,%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbp,%rdi
mov    $0x2,%esi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xa8f(%rip),%rdi
call   1030 <puts@plt>
jmp    16b7 <main+0x557>
mov    $0x29a,%ebx
mov    %ebx,%eax
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.table_names = [3 x [10 x i8]] [[10 x i8] c"Barcelona\00", [10 x i8] c"Milan\00\00\00\00\00", [10 x i8] c"Vascao\00\00\00\00"]
@__const.main.table_names_sizes = [3 x i32] [i32 9, i32 5, i32 6]
@.str = [20 x i8] c"Times cadastrados:\0A\00"
@.str.1 = [10 x i8] c"%d -> %s\0A\00"
@.str.2 = [23 x i8] c"\0AQuantidade de jogos: \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [61 x i8] c"\0AResultados das %d partidas (ex: \22Vascao 1 x 3 Barcelona\22):\0A\00"
@.str.5 = [15 x i8] c" %s %d x %d %s\00"
@.str.6 = [22 x i8] c"(Procurando times... \00"
@.str.7 = [28 x i8] c"Ok. Processando escrita... \00"
@.str.8 = [14 x i8] c"Ok. Pronto.)\0A\00"
@__const.main.classification = [3 x i32] [i32 0, i32 1, i32 2]
@.str.9 = [20 x i8] c"\0A(Classificando... \00"
@.str.10 = [20 x i8] c"Ok. Imprimindo...)\0A\00"
@.str.11 = [8 x i8] c"%d: %s\0A\00"
@.str.12 = [26 x i8] c"%do lugar tem %f pontos.\0A\00"
@.str.13 = [11 x i8] c"(Pronto.)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [3 x [10 x i8]]
%4 = alloca [3 x i32]
%5 = alloca [3 x [6 x float]]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [10 x i8]
%10 = alloca [10 x i8]
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [3 x float]
%16 = alloca [3 x i32]
%17 = alloca float
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
store i32 0, i32* %1
%21 = bitcast [3 x [10 x i8]]* %3 to i8*
%22 = bitcast [3 x i32]* %4 to i8*
store i32 0, i32* %6
br label %23
23: ; preds = %41, %0
%24 = load i32, i32* %6
%25 = icmp slt i32 %24, 3
br i1 %25, label %26, label %44
26: ; preds = %23
store i32 0, i32* %7
br label %27
27: ; preds = %37, %26
%28 = load i32, i32* %7
%29 = icmp slt i32 %28, 3
br i1 %29, label %30, label %40
30: ; preds = %27
%31 = load i32, i32* %6
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %32
%34 = load i32, i32* %7
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [6 x float], [6 x float]* %33, i64 0, i64 %35
store float 0.000000e+00, float* %36
br label %37
37: ; preds = %30
%38 = load i32, i32* %7
%39 = add nsw i32 %38, 1
store i32 %39, i32* %7
br label %27
40: ; preds = %27
br label %41
41: ; preds = %40
%42 = load i32, i32* %6
%43 = add nsw i32 %42, 1
store i32 %43, i32* %6
br label %23
44: ; preds = %23
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %6
br label %46
46: ; preds = %56, %44
%47 = load i32, i32* %6
%48 = icmp slt i32 %47, 3
br i1 %48, label %49, label %59
49: ; preds = %46
%50 = load i32, i32* %6
%51 = load i32, i32* %6
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [3 x [10 x i8]], [3 x [10 x i8]]* %3, i64 0, i64 %52
%54 = getelementptr inbounds [10 x i8], [10 x i8]* %53, i64 0, i64 0
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %50, i8* %54)
br label %56
56: ; preds = %49
%57 = load i32, i32* %6
%58 = add nsw i32 %57, 1
store i32 %58, i32* %6
br label %46
59: ; preds = %46
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%61 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%62 = bitcast [3 x float]* %15 to i8*
%63 = load i32, i32* %2
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.4, i64 0, i64 0), i32 %63)
store i32 0, i32* %6
br label %65
65: ; preds = %276, %59
%66 = load i32, i32* %6
%67 = load i32, i32* %2
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %279
69: ; preds = %65
%70 = getelementptr inbounds [10 x i8], [10 x i8]* %9, i64 0, i64 0
%71 = getelementptr inbounds [10 x i8], [10 x i8]* %10, i64 0, i64 0
%72 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %70, i32* %11, i32* %12, i8* %71)
store i32 -1, i32* %13
store i32 -1, i32* %14
store i32 0, i32* %7
br label %73
73: ; preds = %112, %69
%74 = load i32, i32* %7
%75 = icmp slt i32 %74, 3
br i1 %75, label %76, label %115
76: ; preds = %73
%77 = getelementptr inbounds [10 x i8], [10 x i8]* %9, i64 0, i64 0
%78 = load i32, i32* %7
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [3 x [10 x i8]], [3 x [10 x i8]]* %3, i64 0, i64 %79
%81 = getelementptr inbounds [10 x i8], [10 x i8]* %80, i64 0, i64 0
%82 = load i32, i32* %7
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 %83
%85 = load i32, i32* %84
%86 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @strAreEquals to i32 (i8*, i8*, i32, ...)*)(i8* %77, i8* %81, i32 %85)
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %76
%89 = load i32, i32* %7
store i32 %89, i32* %13
br label %90
90: ; preds = %88, %76
%91 = getelementptr inbounds [10 x i8], [10 x i8]* %10, i64 0, i64 0
%92 = load i32, i32* %7
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [3 x [10 x i8]], [3 x [10 x i8]]* %3, i64 0, i64 %93
%95 = getelementptr inbounds [10 x i8], [10 x i8]* %94, i64 0, i64 0
%96 = load i32, i32* %7
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 %97
%99 = load i32, i32* %98
%100 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @strAreEquals to i32 (i8*, i8*, i32, ...)*)(i8* %91, i8* %95, i32 %99)
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %104
102: ; preds = %90
%103 = load i32, i32* %7
store i32 %103, i32* %14
br label %104
104: ; preds = %102, %90
%105 = load i32, i32* %13
%106 = icmp ne i32 %105, -1
br i1 %106, label %107, label %111
107: ; preds = %104
%108 = load i32, i32* %14
%109 = icmp ne i32 %108, -1
br i1 %109, label %110, label %111
110: ; preds = %107
br label %115
111: ; preds = %107, %104
br label %112
112: ; preds = %111
%113 = load i32, i32* %7
%114 = add nsw i32 %113, 1
store i32 %114, i32* %7
br label %73
115: ; preds = %110, %73
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%117 = load i32, i32* %13
%118 = icmp eq i32 %117, -1
br i1 %118, label %119, label %123
119: ; preds = %115
%120 = load i32, i32* %14
%121 = icmp eq i32 %120, -1
br i1 %121, label %122, label %123
122: ; preds = %119
store i32 666, i32* %1
br label %355
123: ; preds = %119, %115
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0))
%125 = load i32, i32* %11
%126 = sitofp i32 %125 to float
%127 = load i32, i32* %13
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %128
%130 = getelementptr inbounds [6 x float], [6 x float]* %129, i64 0, i64 0
%131 = load float, float* %130
%132 = fadd float %131, %126
store float %132, float* %130
%133 = load i32, i32* %12
%134 = sitofp i32 %133 to float
%135 = load i32, i32* %13
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %136
%138 = getelementptr inbounds [6 x float], [6 x float]* %137, i64 0, i64 1
%139 = load float, float* %138
%140 = fadd float %139, %134
store float %140, float* %138
%141 = load i32, i32* %11
%142 = load i32, i32* %12
%143 = icmp sgt i32 %141, %142
%144 = zext i1 %143 to i64
%145 = select i1 %143, double 1.000000e+00, double 0.000000e+00
%146 = load i32, i32* %13
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %147
%149 = getelementptr inbounds [6 x float], [6 x float]* %148, i64 0, i64 2
%150 = load float, float* %149
%151 = fpext float %150 to double
%152 = fadd double %151, %145
%153 = fptrunc double %152 to float
store float %153, float* %149
%154 = load i32, i32* %11
%155 = load i32, i32* %12
%156 = call i32 (i32, i32, ...) bitcast (i32 (...)* @points to i32 (i32, i32, ...)*)(i32 %154, i32 %155)
%157 = sitofp i32 %156 to float
%158 = load i32, i32* %13
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %159
%161 = getelementptr inbounds [6 x float], [6 x float]* %160, i64 0, i64 3
%162 = load float, float* %161
%163 = fadd float %162, %157
store float %163, float* %161
%164 = load i32, i32* %11
%165 = load i32, i32* %12
%166 = sub nsw i32 %164, %165
%167 = sitofp i32 %166 to float
%168 = load i32, i32* %13
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %169
%171 = getelementptr inbounds [6 x float], [6 x float]* %170, i64 0, i64 4
%172 = load float, float* %171
%173 = fadd float %172, %167
store float %173, float* %171
%174 = load i32, i32* %13
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %175
%177 = getelementptr inbounds [6 x float], [6 x float]* %176, i64 0, i64 0
%178 = load float, float* %177
%179 = fpext float %178 to double
%180 = load i32, i32* %13
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %181
%183 = getelementptr inbounds [6 x float], [6 x float]* %182, i64 0, i64 1
%184 = load float, float* %183
%185 = fpext float %184 to double
%186 = call i32 (double, double, ...) bitcast (i32 (...)* @average to i32 (double, double, ...)*)(double %179, double %185)
%187 = sitofp i32 %186 to float
%188 = load i32, i32* %13
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %189
%191 = getelementptr inbounds [6 x float], [6 x float]* %190, i64 0, i64 5
store float %187, float* %191
%192 = load i32, i32* %12
%193 = sitofp i32 %192 to float
%194 = load i32, i32* %14
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %195
%197 = getelementptr inbounds [6 x float], [6 x float]* %196, i64 0, i64 0
%198 = load float, float* %197
%199 = fadd float %198, %193
store float %199, float* %197
%200 = load i32, i32* %11
%201 = sitofp i32 %200 to float
%202 = load i32, i32* %14
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %203
%205 = getelementptr inbounds [6 x float], [6 x float]* %204, i64 0, i64 1
%206 = load float, float* %205
%207 = fadd float %206, %201
store float %207, float* %205
%208 = load i32, i32* %12
%209 = load i32, i32* %11
%210 = icmp sgt i32 %208, %209
%211 = zext i1 %210 to i64
%212 = select i1 %210, double 1.000000e+00, double 0.000000e+00
%213 = load i32, i32* %14
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %214
%216 = getelementptr inbounds [6 x float], [6 x float]* %215, i64 0, i64 2
%217 = load float, float* %216
%218 = fpext float %217 to double
%219 = fadd double %218, %212
%220 = fptrunc double %219 to float
store float %220, float* %216
%221 = load i32, i32* %12
%222 = load i32, i32* %11
%223 = call i32 (i32, i32, ...) bitcast (i32 (...)* @points to i32 (i32, i32, ...)*)(i32 %221, i32 %222)
%224 = sitofp i32 %223 to float
%225 = load i32, i32* %14
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %226
%228 = getelementptr inbounds [6 x float], [6 x float]* %227, i64 0, i64 3
%229 = load float, float* %228
%230 = fadd float %229, %224
store float %230, float* %228
%231 = load i32, i32* %12
%232 = load i32, i32* %11
%233 = sub nsw i32 %231, %232
%234 = sitofp i32 %233 to float
%235 = load i32, i32* %14
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %236
%238 = getelementptr inbounds [6 x float], [6 x float]* %237, i64 0, i64 4
%239 = load float, float* %238
%240 = fadd float %239, %234
store float %240, float* %238
%241 = load i32, i32* %14
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %242
%244 = getelementptr inbounds [6 x float], [6 x float]* %243, i64 0, i64 0
%245 = load float, float* %244
%246 = fpext float %245 to double
%247 = load i32, i32* %14
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %248
%250 = getelementptr inbounds [6 x float], [6 x float]* %249, i64 0, i64 1
%251 = load float, float* %250
%252 = fpext float %251 to double
%253 = call i32 (double, double, ...) bitcast (i32 (...)* @average to i32 (double, double, ...)*)(double %246, double %252)
%254 = sitofp i32 %253 to float
%255 = load i32, i32* %14
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %256
%258 = getelementptr inbounds [6 x float], [6 x float]* %257, i64 0, i64 5
store float %254, float* %258
%259 = load i32, i32* %13
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %260
%262 = getelementptr inbounds [6 x float], [6 x float]* %261, i64 0, i64 3
%263 = load float, float* %262
%264 = load i32, i32* %13
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 %265
store float %263, float* %266
%267 = load i32, i32* %14
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %5, i64 0, i64 %268
%270 = getelementptr inbounds [6 x float], [6 x float]* %269, i64 0, i64 3
%271 = load float, float* %270
%272 = load i32, i32* %14
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 %273
store float %271, float* %274
%275 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
br label %276
276: ; preds = %123
%277 = load i32, i32* %6
%278 = add nsw i32 %277, 1
store i32 %278, i32* %6
br label %65
279: ; preds = %65
%280 = bitcast [3 x i32]* %16 to i8*
%281 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
br label %282
282: ; preds = %320, %279
store i32 0, i32* %20
store i32 1, i32* %6
br label %283
283: ; preds = %316, %282
%284 = load i32, i32* %6
%285 = icmp slt i32 %284, 3
br i1 %285, label %286, label %319
286: ; preds = %283
%287 = load i32, i32* %6
%288 = sub nsw i32 %287, 1
store i32 %288, i32* %18
%289 = load i32, i32* %6
store i32 %289, i32* %19
%290 = load i32, i32* %18
%291 = sext i32 %290 to i64
%292 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 %291
%293 = load float, float* %292
%294 = load i32, i32* %19
%295 = sext i32 %294 to i64
%296 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 %295
%297 = load float, float* %296
%298 = fcmp olt float %293, %297
br i1 %298, label %299, label %315
299: ; preds = %286
%300 = load i32, i32* %18
%301 = sext i32 %300 to i64
%302 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 %301
%303 = load float, float* %302
store float %303, float* %17
%304 = load i32, i32* %19
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 %305
%307 = load float, float* %306
%308 = load i32, i32* %18
%309 = sext i32 %308 to i64
%310 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 %309
store float %307, float* %310
%311 = load float, float* %17
%312 = load i32, i32* %19
%313 = sext i32 %312 to i64
%314 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 %313
store float %311, float* %314
store i32 1, i32* %20
br label %315
315: ; preds = %299, %286
br label %316
316: ; preds = %315
%317 = load i32, i32* %6
%318 = add nsw i32 %317, 1
store i32 %318, i32* %6
br label %283
319: ; preds = %283
br label %320
320: ; preds = %319
%321 = load i32, i32* %20
%322 = icmp ne i32 %321, 0
br i1 %322, label %282, label %323
323: ; preds = %320
%324 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %6
br label %325
325: ; preds = %335, %323
%326 = load i32, i32* %6
%327 = icmp slt i32 %326, 3
br i1 %327, label %328, label %338
328: ; preds = %325
%329 = load i32, i32* %6
%330 = load i32, i32* %6
%331 = sext i32 %330 to i64
%332 = getelementptr inbounds [3 x [10 x i8]], [3 x [10 x i8]]* %3, i64 0, i64 %331
%333 = getelementptr inbounds [10 x i8], [10 x i8]* %332, i64 0, i64 0
%334 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i32 %329, i8* %333)
br label %335
335: ; preds = %328
%336 = load i32, i32* %6
%337 = add nsw i32 %336, 1
store i32 %337, i32* %6
br label %325
338: ; preds = %325
store i32 0, i32* %6
br label %339
339: ; preds = %350, %338
%340 = load i32, i32* %6
%341 = icmp slt i32 %340, 3
br i1 %341, label %342, label %353
342: ; preds = %339
%343 = load i32, i32* %6
%344 = load i32, i32* %6
%345 = sext i32 %344 to i64
%346 = getelementptr inbounds [3 x float], [3 x float]* %15, i64 0, i64 %345
%347 = load float, float* %346
%348 = fpext float %347 to double
%349 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), i32 %343, double %348)
br label %350
350: ; preds = %342
%351 = load i32, i32* %6
%352 = add nsw i32 %351, 1
store i32 %352, i32* %6
br label %339
353: ; preds = %339
%354 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0))
store i32 0, i32* %1
br label %355
355: ; preds = %353, %122
%356 = load i32, i32* %1
ret i32 %356
}

LLVM IR (-O2):
@__const.main.table_names = [3 x [10 x i8]] [[10 x i8] c"Barcelona\00", [10 x i8] c"Milan\00\00\00\00\00", [10 x i8] c"Vascao\00\00\00\00"]
@__const.main.table_names_sizes = [3 x i32] [i32 9, i32 5, i32 6]
@.str.1 = [10 x i8] c"%d -> %s\0A\00"
@.str.2 = [23 x i8] c"\0AQuantidade de jogos: \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [61 x i8] c"\0AResultados das %d partidas (ex: \22Vascao 1 x 3 Barcelona\22):\0A\00"
@.str.5 = [15 x i8] c" %s %d x %d %s\00"
@.str.6 = [22 x i8] c"(Procurando times... \00"
@.str.7 = [28 x i8] c"Ok. Processando escrita... \00"
@.str.9 = [20 x i8] c"\0A(Classificando... \00"
@.str.11 = [8 x i8] c"%d: %s\0A\00"
@.str.12 = [26 x i8] c"%do lugar tem %f pontos.\0A\00"
@str = [19 x i8] c"Times cadastrados:\00"
@str.14 = [19 x i8] c"Ok. Imprimindo...)\00"
@str.15 = [10 x i8] c"(Pronto.)\00"
@str.16 = [13 x i8] c"Ok. Pronto.)\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x [10 x i8]]
%3 = alloca [3 x [6 x float]]
%4 = alloca [10 x i8]
%5 = alloca [10 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca [3 x float]
%9 = bitcast i32* %1 to i8*
%10 = getelementptr inbounds [3 x [10 x i8]], [3 x [10 x i8]]* %2, i64 0, i64 0, i64 0
%11 = bitcast [3 x [6 x float]]* %3 to i8*
%12 = bitcast [3 x [6 x float]]* %3 to i8*
%13 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 1, i64 0
%14 = bitcast float* %13 to i8*
%15 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 2, i64 0
%16 = bitcast float* %15 to i8*
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 0, i8* %10)
%19 = getelementptr inbounds [3 x [10 x i8]], [3 x [10 x i8]]* %2, i64 0, i64 1, i64 0
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 1, i8* %19)
%21 = getelementptr inbounds [3 x [10 x i8]], [3 x [10 x i8]]* %2, i64 0, i64 2, i64 0
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 2, i8* %21)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %1)
%25 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%26 = getelementptr inbounds [10 x i8], [10 x i8]* %5, i64 0, i64 0
%27 = bitcast i32* %6 to i8*
%28 = bitcast i32* %7 to i8*
%29 = bitcast [3 x float]* %8 to i8*
%30 = load i32, i32* %1
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.4, i64 0, i64 0), i32 %30)
%32 = load i32, i32* %1
%33 = icmp sgt i32 %32, 0
br i1 %33, label %34, label %144
34: ; preds = %0, %60
%35 = phi i32 [ %136, %60 ], [ 0, %0 ]
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %25, i32* %6, i32* %7, i8* %26)
br label %37
37: ; preds = %37, %34
%38 = phi i64 [ %54, %37 ], [ 0, %34 ]
%39 = phi i32 [ %50, %37 ], [ -1, %34 ]
%40 = phi i32 [ %47, %37 ], [ -1, %34 ]
%41 = getelementptr inbounds [3 x [10 x i8]], [3 x [10 x i8]]* %2, i64 0, i64 %38, i64 0
%42 = getelementptr inbounds [3 x i32], [3 x i32]* @__const.main.table_names_sizes, i64 0, i64 %38
%43 = load i32, i32* %42
%44 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @strAreEquals to i32 (i8*, i8*, i32, ...)*)(i8* %25, i8* %41, i32 %43)
%45 = icmp eq i32 %44, 0
%46 = trunc i64 %38 to i32
%47 = select i1 %45, i32 %40, i32 %46
%48 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @strAreEquals to i32 (i8*, i8*, i32, ...)*)(i8* %26, i8* %41, i32 %43)
%49 = icmp eq i32 %48, 0
%50 = select i1 %49, i32 %39, i32 %46
%51 = icmp eq i32 %47, -1
%52 = icmp eq i32 %50, -1
%53 = select i1 %51, i1 true, i1 %52
%54 = add nuw nsw i64 %38, 1
%55 = icmp ult i64 %38, 2
%56 = select i1 %53, i1 %55, i1 false
br i1 %56, label %37, label %57
57: ; preds = %37
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%59 = select i1 %51, i1 %52, i1 false
br i1 %59, label %187, label %60
60: ; preds = %57
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0))
%62 = load i32, i32* %6
%63 = sitofp i32 %62 to float
%64 = sext i32 %47 to i64
%65 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 %64, i64 0
%66 = load float, float* %65
%67 = fadd float %66, %63
store float %67, float* %65
%68 = load i32, i32* %7
%69 = sitofp i32 %68 to float
%70 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 %64, i64 1
%71 = load float, float* %70
%72 = fadd float %71, %69
store float %72, float* %70
%73 = icmp sgt i32 %62, %68
%74 = select i1 %73, double 1.000000e+00, double 0.000000e+00
%75 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 %64, i64 2
%76 = load float, float* %75
%77 = fpext float %76 to double
%78 = fadd double %74, %77
%79 = fptrunc double %78 to float
store float %79, float* %75
%80 = call i32 (i32, i32, ...) bitcast (i32 (...)* @points to i32 (i32, i32, ...)*)(i32 %62, i32 %68)
%81 = sitofp i32 %80 to float
%82 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 %64, i64 3
%83 = load float, float* %82
%84 = fadd float %83, %81
store float %84, float* %82
%85 = load i32, i32* %6
%86 = load i32, i32* %7
%87 = sub nsw i32 %85, %86
%88 = sitofp i32 %87 to float
%89 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 %64, i64 4
%90 = load float, float* %89
%91 = fadd float %90, %88
store float %91, float* %89
%92 = fpext float %67 to double
%93 = fpext float %72 to double
%94 = call i32 (double, double, ...) bitcast (i32 (...)* @average to i32 (double, double, ...)*)(double %92, double %93)
%95 = sitofp i32 %94 to float
%96 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 %64, i64 5
store float %95, float* %96
%97 = load i32, i32* %7
%98 = sitofp i32 %97 to float
%99 = sext i32 %50 to i64
%100 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 %99, i64 0
%101 = load float, float* %100
%102 = fadd float %101, %98
store float %102, float* %100
%103 = load i32, i32* %6
%104 = sitofp i32 %103 to float
%105 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 %99, i64 1
%106 = load float, float* %105
%107 = fadd float %106, %104
store float %107, float* %105
%108 = icmp sgt i32 %97, %103
%109 = select i1 %108, double 1.000000e+00, double 0.000000e+00
%110 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 %99, i64 2
%111 = load float, float* %110
%112 = fpext float %111 to double
%113 = fadd double %109, %112
%114 = fptrunc double %113 to float
store float %114, float* %110
%115 = call i32 (i32, i32, ...) bitcast (i32 (...)* @points to i32 (i32, i32, ...)*)(i32 %97, i32 %103)
%116 = sitofp i32 %115 to float
%117 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 %99, i64 3
%118 = load float, float* %117
%119 = fadd float %118, %116
store float %119, float* %117
%120 = load i32, i32* %7
%121 = load i32, i32* %6
%122 = sub nsw i32 %120, %121
%123 = sitofp i32 %122 to float
%124 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 %99, i64 4
%125 = load float, float* %124
%126 = fadd float %125, %123
store float %126, float* %124
%127 = fpext float %102 to double
%128 = fpext float %107 to double
%129 = call i32 (double, double, ...) bitcast (i32 (...)* @average to i32 (double, double, ...)*)(double %127, double %128)
%130 = sitofp i32 %129 to float
%131 = getelementptr inbounds [3 x [6 x float]], [3 x [6 x float]]* %3, i64 0, i64 %99, i64 5
store float %130, float* %131
%132 = load float, float* %82
%133 = getelementptr inbounds [3 x float], [3 x float]* %8, i64 0, i64 %64
store float %132, float* %133
%134 = getelementptr inbounds [3 x float], [3 x float]* %8, i64 0, i64 %99
store float %119, float* %134
%135 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.16, i64 0, i64 0))
%136 = add nuw nsw i32 %35, 1
%137 = load i32, i32* %1
%138 = icmp slt i32 %136, %137
br i1 %138, label %34, label %139
139: ; preds = %60
%140 = getelementptr inbounds [3 x float], [3 x float]* %8, i64 0, i64 0
%141 = load float, float* %140
%142 = getelementptr inbounds [3 x float], [3 x float]* %8, i64 0, i64 1
%143 = load float, float* %142
br label %144
144: ; preds = %139, %0
%145 = phi float [ %143, %139 ], [ 0.000000e+00, %0 ]
%146 = phi float [ %141, %139 ], [ 0.000000e+00, %0 ]
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%148 = getelementptr inbounds [3 x float], [3 x float]* %8, i64 0, i64 0
%149 = getelementptr inbounds [3 x float], [3 x float]* %8, i64 0, i64 1
%150 = getelementptr inbounds [3 x float], [3 x float]* %8, i64 0, i64 2
%151 = load float, float* %148
%152 = load float, float* %150
%153 = load float, float* %149
br label %154
154: ; preds = %169, %144
%155 = phi float [ %170, %169 ], [ %153, %144 ]
%156 = phi float [ %171, %169 ], [ %152, %144 ]
%157 = phi float [ %163, %169 ], [ %151, %144 ]
%158 = phi float [ %172, %169 ], [ %145, %144 ]
%159 = phi float [ %165, %169 ], [ %146, %144 ]
%160 = fcmp olt float %159, %158
br i1 %160, label %161, label %162
161: ; preds = %154
br label %162
162: ; preds = %154, %161
%163 = phi float [ %158, %161 ], [ %157, %154 ]
%164 = phi float [ %159, %161 ], [ %158, %154 ]
%165 = phi float [ %158, %161 ], [ %159, %154 ]
%166 = phi i32 [ 1, %161 ], [ 0, %154 ]
%167 = fcmp olt float %164, %156
br i1 %167, label %168, label %169
168: ; preds = %162
br label %169
169: ; preds = %168, %162
%170 = phi float [ %156, %168 ], [ %155, %162 ]
%171 = phi float [ %164, %168 ], [ %156, %162 ]
%172 = phi float [ %156, %168 ], [ %164, %162 ]
%173 = phi i32 [ 1, %168 ], [ %166, %162 ]
%174 = icmp eq i32 %173, 0
br i1 %174, label %175, label %154
175: ; preds = %169
store float %163, float* %148
store float %171, float* %150
store float %170, float* %149
%176 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.14, i64 0, i64 0))
%177 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i32 0, i8* %10)
%178 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i32 1, i8* %19)
%179 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i32 2, i8* %21)
%180 = fpext float %165 to double
%181 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), i32 0, double %180)
%182 = fpext float %172 to double
%183 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), i32 1, double %182)
%184 = fpext float %171 to double
%185 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), i32 2, double %184)
%186 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.15, i64 0, i64 0))
br label %187
187: ; preds = %57, %175
%188 = phi i32 [ 0, %175 ], [ 666, %57 ]
ret i32 %188
}