#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
double atof(char *);
size_t atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ limpa(char *, int);
int /*<<< orphan*/ printf(char *);
void input(int argc, char *argv[], double A[1000][1000], double b[1000],
           int *line, int *col) {
  FILE *input = fopen(argv[1], "r");
  char aux[10], aux2[10];
  int n, m, r;
  if (input == 0) {
    printf("Erro ao abrir arquivo.\n");
    exit(1);
  }
  limpa(aux, 10);
  limpa(aux2, 10);
  for (r = fgetc(input), n = 0; ('0' <= r) && (r <= '9'); r = fgetc(input), n++)
    aux[n] = r;
  for (r = fgetc(input), n = 0; ('0' <= r) && (r <= '9'); r = fgetc(input), n++)
    aux2[n] = r;
  n = atoi(aux);
  m = atoi(aux2);
  *line = n;
  *col = m;
  printf("Lendo a entrada...\n");
  int k = fgetc(input);
  for (r = 0; r < (n * m);) {
    if (('0' <= k) && (k <= '9')) {
      char linha[1000];
      char coluna[1000];
      char val[1000];
      int i;
      limpa(val, 1000);
      limpa(linha, 1000);
      limpa(coluna, 1000);
      for (i = 0; ((k != ' ') && (k != 10)); i++, k = fgetc(input))
        linha[i] = k;
      while ((k == ' ') || (k == 10))
        k = fgetc(input);
      for (i = 0; ((k != ' ') && (k != 10)); i++, k = fgetc(input))
        coluna[i] = k;
      while ((k == ' ') || (k == 10))
        k = fgetc(input);
      for (i = 0; ((k != ' ') && (k != 10)); i++, k = fgetc(input))
        val[i] = k;
      A[atoi(linha)][atoi(coluna)] = atof(val);
      r++;
    } else
      k = fgetc(input);
  }
  for (r = 0; r < n;) {
    if (('0' <= k) && (k <= '9')) {
      int i;
      char val[1000];
      char line[1000];
      limpa(val, 1000);
      limpa(line, 1000);
      for (i = 0; ((k != ' ') && (k != 10)); i++, k = fgetc(input))
        line[i] = k;
      while ((k == ' ') || (k == 10))
        k = fgetc(input);
      for (i = 0; ((k != ' ') && (k != 10) && (k != EOF));
           i++, k = fgetc(input))
        val[i] = k;
      b[atoi(line)] = atof(val);
      r++;
    } else
      k = fgetc(input);
  }
  printf("Leitura completa!\n\n");
  fclose(input);
}


x86 assembly (clang, -O0):
<input>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1450,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe4f(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    11db <input+0x5b>
lea    0xe36(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    -0x42(%rbp),%rdi
mov    $0xa,%esi
call   1070 <limpa@plt>
lea    -0x4c(%rbp),%rdi
mov    $0xa,%esi
call   1070 <limpa@plt>
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x58(%rbp)
movl   $0x0,-0x50(%rbp)
xor    %eax,%eax
mov    $0x30,%ecx
cmp    -0x58(%rbp),%ecx
mov    %al,-0x1411(%rbp)
jg     122d <input+0xad>
cmpl   $0x39,-0x58(%rbp)
setle  %al
mov    %al,-0x1411(%rbp)
mov    -0x1411(%rbp),%al
test   $0x1,%al
jne    1240 <input+0xc0>
jmp    1267 <input+0xe7>
mov    -0x58(%rbp),%eax
mov    %al,%cl
movslq -0x50(%rbp),%rax
mov    %cl,-0x42(%rbp,%rax,1)
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x58(%rbp)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    120a <input+0x8a>
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x58(%rbp)
movl   $0x0,-0x50(%rbp)
xor    %eax,%eax
mov    $0x30,%ecx
cmp    -0x58(%rbp),%ecx
mov    %al,-0x1412(%rbp)
jg     129d <input+0x11d>
cmpl   $0x39,-0x58(%rbp)
setle  %al
mov    %al,-0x1412(%rbp)
mov    -0x1412(%rbp),%al
test   $0x1,%al
jne    12b0 <input+0x130>
jmp    12d7 <input+0x157>
mov    -0x58(%rbp),%eax
mov    %al,%cl
movslq -0x50(%rbp),%rax
mov    %cl,-0x4c(%rbp,%rax,1)
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x58(%rbp)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    127a <input+0xfa>
lea    -0x42(%rbp),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x50(%rbp)
lea    -0x4c(%rbp),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x54(%rbp)
mov    -0x50(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x54(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
lea    0xd12(%rip),%rdi
call   1050 <printf@plt>
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x5c(%rbp)
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
mov    -0x50(%rbp),%ecx
imul   -0x54(%rbp),%ecx
cmp    %ecx,%eax
jge    15e2 <input+0x462>
mov    $0x30,%eax
cmp    -0x5c(%rbp),%eax
jg     15d1 <input+0x451>
cmpl   $0x39,-0x5c(%rbp)
jg     15d1 <input+0x451>
lea    -0xc30(%rbp),%rdi
mov    $0x3e8,%esi
call   1070 <limpa@plt>
lea    -0x450(%rbp),%rdi
mov    $0x3e8,%esi
call   1070 <limpa@plt>
lea    -0x840(%rbp),%rdi
mov    $0x3e8,%esi
call   1070 <limpa@plt>
movl   $0x0,-0xc34(%rbp)
xor    %eax,%eax
cmpl   $0x20,-0x5c(%rbp)
mov    %al,-0x1413(%rbp)
je     13a6 <input+0x226>
cmpl   $0xa,-0x5c(%rbp)
setne  %al
mov    %al,-0x1413(%rbp)
mov    -0x1413(%rbp),%al
test   $0x1,%al
jne    13b9 <input+0x239>
jmp    13ec <input+0x26c>
mov    -0x5c(%rbp),%eax
mov    %al,%cl
movslq -0xc34(%rbp),%rax
mov    %cl,-0x450(%rbp,%rax,1)
mov    -0xc34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc34(%rbp)
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x5c(%rbp)
jmp    1387 <input+0x207>
jmp    13f1 <input+0x271>
mov    $0x1,%al
cmpl   $0x20,-0x5c(%rbp)
mov    %al,-0x1414(%rbp)
je     1410 <input+0x290>
cmpl   $0xa,-0x5c(%rbp)
sete   %al
mov    %al,-0x1414(%rbp)
mov    -0x1414(%rbp),%al
test   $0x1,%al
jne    1423 <input+0x2a3>
jmp    1434 <input+0x2b4>
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x5c(%rbp)
jmp    13f1 <input+0x271>
movl   $0x0,-0xc34(%rbp)
xor    %eax,%eax
cmpl   $0x20,-0x5c(%rbp)
mov    %al,-0x1415(%rbp)
je     145d <input+0x2dd>
cmpl   $0xa,-0x5c(%rbp)
setne  %al
mov    %al,-0x1415(%rbp)
mov    -0x1415(%rbp),%al
test   $0x1,%al
jne    1470 <input+0x2f0>
jmp    14a3 <input+0x323>
mov    -0x5c(%rbp),%eax
mov    %al,%cl
movslq -0xc34(%rbp),%rax
mov    %cl,-0x840(%rbp,%rax,1)
mov    -0xc34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc34(%rbp)
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x5c(%rbp)
jmp    143e <input+0x2be>
jmp    14a8 <input+0x328>
mov    $0x1,%al
cmpl   $0x20,-0x5c(%rbp)
mov    %al,-0x1416(%rbp)
je     14c7 <input+0x347>
cmpl   $0xa,-0x5c(%rbp)
sete   %al
mov    %al,-0x1416(%rbp)
mov    -0x1416(%rbp),%al
test   $0x1,%al
jne    14da <input+0x35a>
jmp    14eb <input+0x36b>
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x5c(%rbp)
jmp    14a8 <input+0x328>
movl   $0x0,-0xc34(%rbp)
xor    %eax,%eax
cmpl   $0x20,-0x5c(%rbp)
mov    %al,-0x1417(%rbp)
je     1514 <input+0x394>
cmpl   $0xa,-0x5c(%rbp)
setne  %al
mov    %al,-0x1417(%rbp)
mov    -0x1417(%rbp),%al
test   $0x1,%al
jne    1527 <input+0x3a7>
jmp    155a <input+0x3da>
mov    -0x5c(%rbp),%eax
mov    %al,%cl
movslq -0xc34(%rbp),%rax
mov    %cl,-0xc30(%rbp,%rax,1)
mov    -0xc34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc34(%rbp)
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x5c(%rbp)
jmp    14f5 <input+0x375>
lea    -0xc30(%rbp),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x1428(%rbp)
ff
mov    -0x18(%rbp),%rax
mov    %rax,-0x1430(%rbp)
lea    -0x450(%rbp),%rdi
call   1090 <atoi@plt>
mov    %rax,%rcx
mov    -0x1430(%rbp),%rax
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
mov    %rax,-0x1420(%rbp)
lea    -0x840(%rbp),%rdi
call   1090 <atoi@plt>
movsd  -0x1428(%rbp),%xmm0
ff
mov    %rax,%rcx
mov    -0x1420(%rbp),%rax
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    15dd <input+0x45d>
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x5c(%rbp)
jmp    1320 <input+0x1a0>
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    17d0 <input+0x650>
mov    $0x30,%eax
cmp    -0x5c(%rbp),%eax
jg     17bf <input+0x63f>
cmpl   $0x39,-0x5c(%rbp)
jg     17bf <input+0x63f>
lea    -0x1020(%rbp),%rdi
mov    $0x3e8,%esi
call   1070 <limpa@plt>
lea    -0x1410(%rbp),%rdi
mov    $0x3e8,%esi
call   1070 <limpa@plt>
movl   $0x0,-0xc38(%rbp)
xor    %eax,%eax
cmpl   $0x20,-0x5c(%rbp)
mov    %al,-0x1431(%rbp)
je     1658 <input+0x4d8>
cmpl   $0xa,-0x5c(%rbp)
setne  %al
mov    %al,-0x1431(%rbp)
mov    -0x1431(%rbp),%al
test   $0x1,%al
jne    166b <input+0x4eb>
jmp    169e <input+0x51e>
mov    -0x5c(%rbp),%eax
mov    %al,%cl
movslq -0xc38(%rbp),%rax
mov    %cl,-0x1410(%rbp,%rax,1)
mov    -0xc38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc38(%rbp)
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x5c(%rbp)
jmp    1639 <input+0x4b9>
jmp    16a3 <input+0x523>
mov    $0x1,%al
cmpl   $0x20,-0x5c(%rbp)
mov    %al,-0x1432(%rbp)
je     16c2 <input+0x542>
cmpl   $0xa,-0x5c(%rbp)
sete   %al
mov    %al,-0x1432(%rbp)
mov    -0x1432(%rbp),%al
test   $0x1,%al
jne    16d5 <input+0x555>
jmp    16e6 <input+0x566>
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x5c(%rbp)
jmp    16a3 <input+0x523>
movl   $0x0,-0xc38(%rbp)
xor    %eax,%eax
cmpl   $0x20,-0x5c(%rbp)
mov    %al,-0x1433(%rbp)
je     1729 <input+0x5a9>
xor    %eax,%eax
cmpl   $0xa,-0x5c(%rbp)
mov    %al,-0x1433(%rbp)
je     1729 <input+0x5a9>
mov    -0x5c(%rbp),%eax
mov    0x28ca(%rip),%rcx
cmp    (%rcx),%eax
setne  %al
mov    %al,-0x1433(%rbp)
mov    -0x1433(%rbp),%al
test   $0x1,%al
jne    173c <input+0x5bc>
jmp    176f <input+0x5ef>
mov    -0x5c(%rbp),%eax
mov    %al,%cl
movslq -0xc38(%rbp),%rax
mov    %cl,-0x1020(%rbp,%rax,1)
mov    -0xc38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc38(%rbp)
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x5c(%rbp)
jmp    16f0 <input+0x570>
lea    -0x1020(%rbp),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x1448(%rbp)
ff
mov    -0x20(%rbp),%rax
mov    %rax,-0x1440(%rbp)
lea    -0x1410(%rbp),%rdi
call   1090 <atoi@plt>
movsd  -0x1448(%rbp),%xmm0
ff
mov    %rax,%rcx
mov    -0x1440(%rbp),%rax
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    17cb <input+0x64b>
mov    -0x38(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x5c(%rbp)
jmp    15e9 <input+0x469>
lea    0x857(%rip),%rdi
call   1050 <printf@plt>
mov    -0x38(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x1450,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<input>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc08,%rsp
mov    %r9,%r14
mov    %r8,%r12
mov    %rcx,0x20(%rsp)
mov    %rdx,0x18(%rsp)
mov    0x8(%rsi),%rdi
lea    0xe54(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1513 <input+0x393>
mov    %rax,%r13
lea    0x36(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
call   1070 <limpa@plt>
lea    0x2c(%rsp),%rbp
mov    %rbp,%rdi
mov    $0xa,%esi
call   1070 <limpa@plt>
mov    %r13,%rdi
call   1060 <fgetc@plt>
lea    -0x30(%rax),%ecx
cmp    $0x9,%ecx
ja     1218 <input+0x98>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %al,(%rbx)
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ecx
add    $0xffffffd0,%ecx
add    $0x1,%rbx
cmp    $0xa,%ecx
jb     1200 <input+0x80>
mov    %r13,%rdi
call   1060 <fgetc@plt>
lea    -0x30(%rax),%ecx
cmp    $0x9,%ecx
ja     1249 <input+0xc9>
nopl   0x0(%rax,%rax,1)
mov    %al,0x0(%rbp)
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ecx
add    $0xffffffd0,%ecx
add    $0x1,%rbp
cmp    $0xa,%ecx
jb     1230 <input+0xb0>
lea    0x36(%rsp),%rdi
call   1090 <atoi@plt>
mov    %rax,%rbp
lea    0x2c(%rsp),%rdi
call   1090 <atoi@plt>
mov    %rax,%r15
mov    %ebp,(%r12)
mov    %r15d,(%r14)
lea    0xd91(%rip),%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
mov    %rbp,0x10(%rsp)
imul   %ebp,%r15d
test   %r15d,%r15d
jle    13e9 <input+0x269>
xor    %r12d,%r12d
lea    0x820(%rsp),%r14
jmp    12b3 <input+0x133>
nop
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
cmp    %r15d,%r12d
jge    13e9 <input+0x269>
lea    -0x30(%rbx),%eax
cmp    $0x9,%eax
ja     12a0 <input+0x120>
mov    %r14,%rdi
mov    $0x3e8,%esi
call   1070 <limpa@plt>
lea    0x430(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x3e8,%esi
call   1070 <limpa@plt>
lea    0x40(%rsp),%rdi
mov    $0x3e8,%esi
call   1070 <limpa@plt>
cmp    $0x20,%ebx
je     132a <input+0x1aa>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmp    $0xa,%ebx
je     132a <input+0x1aa>
mov    %bl,0x0(%rbp)
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
add    $0x1,%rbp
cmp    $0x20,%ebx
jne    1300 <input+0x180>
jmp    132a <input+0x1aa>
nopl   (%rax)
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
cmp    $0xa,%ebx
je     1320 <input+0x1a0>
cmp    $0x20,%ebx
je     1320 <input+0x1a0>
lea    0x40(%rsp),%rbp
cmp    $0x20,%ebx
je     136a <input+0x1ea>
xchg   %ax,%ax
cmp    $0xa,%ebx
je     136a <input+0x1ea>
mov    %bl,0x0(%rbp)
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
add    $0x1,%rbp
cmp    $0x20,%ebx
jne    1340 <input+0x1c0>
jmp    136a <input+0x1ea>
nopl   (%rax)
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
cmp    $0xa,%ebx
je     1360 <input+0x1e0>
cmp    $0x20,%ebx
je     1360 <input+0x1e0>
mov    %r14,%rbp
cmp    $0xa,%ebx
je     139b <input+0x21b>
nopl   0x0(%rax)
cmp    $0x20,%ebx
je     139b <input+0x21b>
mov    %bl,0x0(%rbp)
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
add    $0x1,%rbp
cmp    $0xa,%ebx
jne    1380 <input+0x200>
mov    %r14,%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x8(%rsp)
lea    0x430(%rsp),%rdi
call   1090 <atoi@plt>
mov    %r14,%rbp
mov    %rax,%r14
lea    0x40(%rsp),%rdi
call   1090 <atoi@plt>
imul   $0x1f40,%r14,%rcx
mov    %rbp,%r14
add    0x18(%rsp),%rcx
movsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%r12d
jmp    12aa <input+0x12a>
cmpl   $0x0,0x10(%rsp)
jle    14ed <input+0x36d>
xor    %r12d,%r12d
lea    0x430(%rsp),%r14
lea    0x40(%rsp),%rbp
mov    0x2bdd(%rip),%r15
jmp    1425 <input+0x2a5>
nopl   (%rax)
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
cmp    0x10(%rsp),%r12d
jge    14ed <input+0x36d>
lea    -0x30(%rbx),%eax
cmp    $0x9,%eax
ja     1410 <input+0x290>
mov    %r14,%rdi
mov    $0x3e8,%esi
call   1070 <limpa@plt>
mov    %rbp,%rdi
mov    $0x3e8,%esi
call   1070 <limpa@plt>
cmp    $0x20,%ebx
je     147a <input+0x2fa>
nopl   0x0(%rax)
cmp    $0xa,%ebx
je     147a <input+0x2fa>
mov    %bl,0x0(%rbp)
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
add    $0x1,%rbp
cmp    $0x20,%ebx
jne    1450 <input+0x2d0>
jmp    147a <input+0x2fa>
nopl   (%rax)
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
cmp    $0xa,%ebx
je     1470 <input+0x2f0>
cmp    $0x20,%ebx
je     1470 <input+0x2f0>
mov    %r14,%rbp
cmp    $0xa,%ebx
je     14b0 <input+0x330>
nopl   0x0(%rax)
cmp    $0x20,%ebx
je     14b0 <input+0x330>
cmp    (%r15),%ebx
je     14b0 <input+0x330>
mov    %bl,(%r14)
mov    %r13,%rdi
call   1060 <fgetc@plt>
mov    %eax,%ebx
add    $0x1,%r14
cmp    $0xa,%ebx
jne    1490 <input+0x310>
mov    %rbp,%r14
mov    %rbp,%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x8(%rsp)
lea    0x40(%rsp),%rbp
mov    %rbp,%rdi
call   1090 <atoi@plt>
mov    0x20(%rsp),%rcx
movsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%r12d
cmp    0x10(%rsp),%r12d
jl     1425 <input+0x2a5>
lea    0xb21(%rip),%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1050 <fclose@plt>
add    $0xc08,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xb0e(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [24 x i8] c"Erro ao abrir arquivo.\0A\00"
@.str.2 = [20 x i8] c"Lendo a entrada...\0A\00"
@EOF = global i32 0
@.str.3 = [20 x i8] c"Leitura completa!\0A\0A\00"
define void @input(i32 %0, i8** %1, [1000 x double]* %2, double* %3, i32* %4, i32* %5) {
%7 = alloca i32
%8 = alloca i8**
%9 = alloca [1000 x double]*
%10 = alloca double*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca [10 x i8]
%15 = alloca [10 x i8]
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca [1000 x i8]
%21 = alloca [1000 x i8]
%22 = alloca [1000 x i8]
%23 = alloca i32
%24 = alloca i32
%25 = alloca [1000 x i8]
%26 = alloca [1000 x i8]
store i32 %0, i32* %7
store i8** %1, i8*** %8
store [1000 x double]* %2, [1000 x double]** %9
store double* %3, double** %10
store i32* %4, i32** %11
store i32* %5, i32** %12
%27 = load i8**, i8*** %8
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = call i32* @fopen(i8* %29, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %30, i32** %13
%31 = load i32*, i32** %13
%32 = icmp eq i32* %31, null
br i1 %32, label %33, label %36
33: ; preds = %6
%34 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%35 = call i32 @exit(i32 1)
unreachable
36: ; preds = %6
%37 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%38 = call i32 @limpa(i8* %37, i32 10)
%39 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%40 = call i32 @limpa(i8* %39, i32 10)
%41 = load i32*, i32** %13
%42 = call i32 @fgetc(i32* %41)
store i32 %42, i32* %18
store i32 0, i32* %16
br label %43
43: ; preds = %57, %36
%44 = load i32, i32* %18
%45 = icmp sle i32 48, %44
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = load i32, i32* %18
%48 = icmp sle i32 %47, 57
br label %49
49: ; preds = %46, %43
%50 = phi i1 [ false, %43 ], [ %48, %46 ]
br i1 %50, label %51, label %62
51: ; preds = %49
%52 = load i32, i32* %18
%53 = trunc i32 %52 to i8
%54 = load i32, i32* %16
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 %55
store i8 %53, i8* %56
br label %57
57: ; preds = %51
%58 = load i32*, i32** %13
%59 = call i32 @fgetc(i32* %58)
store i32 %59, i32* %18
%60 = load i32, i32* %16
%61 = add nsw i32 %60, 1
store i32 %61, i32* %16
br label %43
62: ; preds = %49
%63 = load i32*, i32** %13
%64 = call i32 @fgetc(i32* %63)
store i32 %64, i32* %18
store i32 0, i32* %16
br label %65
65: ; preds = %79, %62
%66 = load i32, i32* %18
%67 = icmp sle i32 48, %66
br i1 %67, label %68, label %71
68: ; preds = %65
%69 = load i32, i32* %18
%70 = icmp sle i32 %69, 57
br label %71
71: ; preds = %68, %65
%72 = phi i1 [ false, %65 ], [ %70, %68 ]
br i1 %72, label %73, label %84
73: ; preds = %71
%74 = load i32, i32* %18
%75 = trunc i32 %74 to i8
%76 = load i32, i32* %16
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 %77
store i8 %75, i8* %78
br label %79
79: ; preds = %73
%80 = load i32*, i32** %13
%81 = call i32 @fgetc(i32* %80)
store i32 %81, i32* %18
%82 = load i32, i32* %16
%83 = add nsw i32 %82, 1
store i32 %83, i32* %16
br label %65
84: ; preds = %71
%85 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%86 = call i64 @atoi(i8* %85)
%87 = trunc i64 %86 to i32
store i32 %87, i32* %16
%88 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%89 = call i64 @atoi(i8* %88)
%90 = trunc i64 %89 to i32
store i32 %90, i32* %17
%91 = load i32, i32* %16
%92 = load i32*, i32** %11
store i32 %91, i32* %92
%93 = load i32, i32* %17
%94 = load i32*, i32** %12
store i32 %93, i32* %94
%95 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%96 = load i32*, i32** %13
%97 = call i32 @fgetc(i32* %96)
store i32 %97, i32* %19
store i32 0, i32* %18
br label %98
98: ; preds = %215, %84
%99 = load i32, i32* %18
%100 = load i32, i32* %16
%101 = load i32, i32* %17
%102 = mul nsw i32 %100, %101
%103 = icmp slt i32 %99, %102
br i1 %103, label %104, label %216
104: ; preds = %98
%105 = load i32, i32* %19
%106 = icmp sle i32 48, %105
br i1 %106, label %107, label %212
107: ; preds = %104
%108 = load i32, i32* %19
%109 = icmp sle i32 %108, 57
br i1 %109, label %110, label %212
110: ; preds = %107
%111 = getelementptr inbounds [1000 x i8], [1000 x i8]* %22, i64 0, i64 0
%112 = call i32 @limpa(i8* %111, i32 1000)
%113 = getelementptr inbounds [1000 x i8], [1000 x i8]* %20, i64 0, i64 0
%114 = call i32 @limpa(i8* %113, i32 1000)
%115 = getelementptr inbounds [1000 x i8], [1000 x i8]* %21, i64 0, i64 0
%116 = call i32 @limpa(i8* %115, i32 1000)
store i32 0, i32* %23
br label %117
117: ; preds = %131, %110
%118 = load i32, i32* %19
%119 = icmp ne i32 %118, 32
br i1 %119, label %120, label %123
120: ; preds = %117
%121 = load i32, i32* %19
%122 = icmp ne i32 %121, 10
br label %123
123: ; preds = %120, %117
%124 = phi i1 [ false, %117 ], [ %122, %120 ]
br i1 %124, label %125, label %136
125: ; preds = %123
%126 = load i32, i32* %19
%127 = trunc i32 %126 to i8
%128 = load i32, i32* %23
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [1000 x i8], [1000 x i8]* %20, i64 0, i64 %129
store i8 %127, i8* %130
br label %131
131: ; preds = %125
%132 = load i32, i32* %23
%133 = add nsw i32 %132, 1
store i32 %133, i32* %23
%134 = load i32*, i32** %13
%135 = call i32 @fgetc(i32* %134)
store i32 %135, i32* %19
br label %117
136: ; preds = %123
br label %137
137: ; preds = %145, %136
%138 = load i32, i32* %19
%139 = icmp eq i32 %138, 32
br i1 %139, label %143, label %140
140: ; preds = %137
%141 = load i32, i32* %19
%142 = icmp eq i32 %141, 10
br label %143
143: ; preds = %140, %137
%144 = phi i1 [ true, %137 ], [ %142, %140 ]
br i1 %144, label %145, label %148
145: ; preds = %143
%146 = load i32*, i32** %13
%147 = call i32 @fgetc(i32* %146)
store i32 %147, i32* %19
br label %137
148: ; preds = %143
store i32 0, i32* %23
br label %149
149: ; preds = %163, %148
%150 = load i32, i32* %19
%151 = icmp ne i32 %150, 32
br i1 %151, label %152, label %155
152: ; preds = %149
%153 = load i32, i32* %19
%154 = icmp ne i32 %153, 10
br label %155
155: ; preds = %152, %149
%156 = phi i1 [ false, %149 ], [ %154, %152 ]
br i1 %156, label %157, label %168
157: ; preds = %155
%158 = load i32, i32* %19
%159 = trunc i32 %158 to i8
%160 = load i32, i32* %23
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [1000 x i8], [1000 x i8]* %21, i64 0, i64 %161
store i8 %159, i8* %162
br label %163
163: ; preds = %157
%164 = load i32, i32* %23
%165 = add nsw i32 %164, 1
store i32 %165, i32* %23
%166 = load i32*, i32** %13
%167 = call i32 @fgetc(i32* %166)
store i32 %167, i32* %19
br label %149
168: ; preds = %155
br label %169
169: ; preds = %177, %168
%170 = load i32, i32* %19
%171 = icmp eq i32 %170, 32
br i1 %171, label %175, label %172
172: ; preds = %169
%173 = load i32, i32* %19
%174 = icmp eq i32 %173, 10
br label %175
175: ; preds = %172, %169
%176 = phi i1 [ true, %169 ], [ %174, %172 ]
br i1 %176, label %177, label %180
177: ; preds = %175
%178 = load i32*, i32** %13
%179 = call i32 @fgetc(i32* %178)
store i32 %179, i32* %19
br label %169
180: ; preds = %175
store i32 0, i32* %23
br label %181
181: ; preds = %195, %180
%182 = load i32, i32* %19
%183 = icmp ne i32 %182, 32
br i1 %183, label %184, label %187
184: ; preds = %181
%185 = load i32, i32* %19
%186 = icmp ne i32 %185, 10
br label %187
187: ; preds = %184, %181
%188 = phi i1 [ false, %181 ], [ %186, %184 ]
br i1 %188, label %189, label %200
189: ; preds = %187
%190 = load i32, i32* %19
%191 = trunc i32 %190 to i8
%192 = load i32, i32* %23
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds [1000 x i8], [1000 x i8]* %22, i64 0, i64 %193
store i8 %191, i8* %194
br label %195
195: ; preds = %189
%196 = load i32, i32* %23
%197 = add nsw i32 %196, 1
store i32 %197, i32* %23
%198 = load i32*, i32** %13
%199 = call i32 @fgetc(i32* %198)
store i32 %199, i32* %19
br label %181
200: ; preds = %187
%201 = getelementptr inbounds [1000 x i8], [1000 x i8]* %22, i64 0, i64 0
%202 = call double @atof(i8* %201)
%203 = load [1000 x double]*, [1000 x double]** %9
%204 = getelementptr inbounds [1000 x i8], [1000 x i8]* %20, i64 0, i64 0
%205 = call i64 @atoi(i8* %204)
%206 = getelementptr inbounds [1000 x double], [1000 x double]* %203, i64 %205
%207 = getelementptr inbounds [1000 x i8], [1000 x i8]* %21, i64 0, i64 0
%208 = call i64 @atoi(i8* %207)
%209 = getelementptr inbounds [1000 x double], [1000 x double]* %206, i64 0, i64 %208
store double %202, double* %209
%210 = load i32, i32* %18
%211 = add nsw i32 %210, 1
store i32 %211, i32* %18
br label %215
212: ; preds = %107, %104
%213 = load i32*, i32** %13
%214 = call i32 @fgetc(i32* %213)
store i32 %214, i32* %19
br label %215
215: ; preds = %212, %200
br label %98
216: ; preds = %98
store i32 0, i32* %18
br label %217
217: ; preds = %299, %216
%218 = load i32, i32* %18
%219 = load i32, i32* %16
%220 = icmp slt i32 %218, %219
br i1 %220, label %221, label %300
221: ; preds = %217
%222 = load i32, i32* %19
%223 = icmp sle i32 48, %222
br i1 %223, label %224, label %296
224: ; preds = %221
%225 = load i32, i32* %19
%226 = icmp sle i32 %225, 57
br i1 %226, label %227, label %296
227: ; preds = %224
%228 = getelementptr inbounds [1000 x i8], [1000 x i8]* %25, i64 0, i64 0
%229 = call i32 @limpa(i8* %228, i32 1000)
%230 = getelementptr inbounds [1000 x i8], [1000 x i8]* %26, i64 0, i64 0
%231 = call i32 @limpa(i8* %230, i32 1000)
store i32 0, i32* %24
br label %232
232: ; preds = %246, %227
%233 = load i32, i32* %19
%234 = icmp ne i32 %233, 32
br i1 %234, label %235, label %238
235: ; preds = %232
%236 = load i32, i32* %19
%237 = icmp ne i32 %236, 10
br label %238
238: ; preds = %235, %232
%239 = phi i1 [ false, %232 ], [ %237, %235 ]
br i1 %239, label %240, label %251
240: ; preds = %238
%241 = load i32, i32* %19
%242 = trunc i32 %241 to i8
%243 = load i32, i32* %24
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds [1000 x i8], [1000 x i8]* %26, i64 0, i64 %244
store i8 %242, i8* %245
br label %246
246: ; preds = %240
%247 = load i32, i32* %24
%248 = add nsw i32 %247, 1
store i32 %248, i32* %24
%249 = load i32*, i32** %13
%250 = call i32 @fgetc(i32* %249)
store i32 %250, i32* %19
br label %232
251: ; preds = %238
br label %252
252: ; preds = %260, %251
%253 = load i32, i32* %19
%254 = icmp eq i32 %253, 32
br i1 %254, label %258, label %255
255: ; preds = %252
%256 = load i32, i32* %19
%257 = icmp eq i32 %256, 10
br label %258
258: ; preds = %255, %252
%259 = phi i1 [ true, %252 ], [ %257, %255 ]
br i1 %259, label %260, label %263
260: ; preds = %258
%261 = load i32*, i32** %13
%262 = call i32 @fgetc(i32* %261)
store i32 %262, i32* %19
br label %252
263: ; preds = %258
store i32 0, i32* %24
br label %264
264: ; preds = %282, %263
%265 = load i32, i32* %19
%266 = icmp ne i32 %265, 32
br i1 %266, label %267, label %274
267: ; preds = %264
%268 = load i32, i32* %19
%269 = icmp ne i32 %268, 10
br i1 %269, label %270, label %274
270: ; preds = %267
%271 = load i32, i32* %19
%272 = load i32, i32* @EOF
%273 = icmp ne i32 %271, %272
br label %274
274: ; preds = %270, %267, %264
%275 = phi i1 [ false, %267 ], [ false, %264 ], [ %273, %270 ]
br i1 %275, label %276, label %287
276: ; preds = %274
%277 = load i32, i32* %19
%278 = trunc i32 %277 to i8
%279 = load i32, i32* %24
%280 = sext i32 %279 to i64
%281 = getelementptr inbounds [1000 x i8], [1000 x i8]* %25, i64 0, i64 %280
store i8 %278, i8* %281
br label %282
282: ; preds = %276
%283 = load i32, i32* %24
%284 = add nsw i32 %283, 1
store i32 %284, i32* %24
%285 = load i32*, i32** %13
%286 = call i32 @fgetc(i32* %285)
store i32 %286, i32* %19
br label %264
287: ; preds = %274
%288 = getelementptr inbounds [1000 x i8], [1000 x i8]* %25, i64 0, i64 0
%289 = call double @atof(i8* %288)
%290 = load double*, double** %10
%291 = getelementptr inbounds [1000 x i8], [1000 x i8]* %26, i64 0, i64 0
%292 = call i64 @atoi(i8* %291)
%293 = getelementptr inbounds double, double* %290, i64 %292
store double %289, double* %293
%294 = load i32, i32* %18
%295 = add nsw i32 %294, 1
store i32 %295, i32* %18
br label %299
296: ; preds = %224, %221
%297 = load i32*, i32** %13
%298 = call i32 @fgetc(i32* %297)
store i32 %298, i32* %19
br label %299
299: ; preds = %296, %287
br label %217
300: ; preds = %217
%301 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%302 = load i32*, i32** %13
%303 = call i32 @fclose(i32* %302)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@EOF = global i32 0
@str = [19 x i8] c"Lendo a entrada...\00"
@str.4 = [19 x i8] c"Leitura completa!\0A\00"
@str.5 = [23 x i8] c"Erro ao abrir arquivo.\00"
define void @input(i32 %0, i8** nocapture %1, [1000 x double]* nocapture writeonly %2, double* nocapture writeonly %3, i32* nocapture writeonly %4, i32* nocapture writeonly %5) {
%7 = alloca [10 x i8]
%8 = alloca [10 x i8]
%9 = alloca [1000 x i8]
%10 = alloca [1000 x i8]
%11 = alloca [1000 x i8]
%12 = alloca [1000 x i8]
%13 = alloca [1000 x i8]
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = tail call i32* @fopen(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%17 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%18 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%19 = icmp eq i32* %16, null
br i1 %19, label %20, label %23
20: ; preds = %6
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.5, i64 0, i64 0))
%22 = tail call i32 @exit(i32 1)
unreachable
23: ; preds = %6
%24 = call i32 @limpa(i8* %17, i32 10)
%25 = call i32 @limpa(i8* %18, i32 10)
%26 = call i32 @fgetc(i32* %16)
%27 = add i32 %26, -48
%28 = icmp ult i32 %27, 10
br i1 %28, label %29, label %38
29: ; preds = %23, %29
%30 = phi i64 [ %35, %29 ], [ 0, %23 ]
%31 = phi i32 [ %34, %29 ], [ %26, %23 ]
%32 = trunc i32 %31 to i8
%33 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 %30
store i8 %32, i8* %33
%34 = call i32 @fgetc(i32* %16)
%35 = add nuw i64 %30, 1
%36 = add i32 %34, -48
%37 = icmp ult i32 %36, 10
br i1 %37, label %29, label %38
38: ; preds = %29, %23
%39 = call i32 @fgetc(i32* %16)
%40 = add i32 %39, -48
%41 = icmp ult i32 %40, 10
br i1 %41, label %42, label %51
42: ; preds = %38, %42
%43 = phi i64 [ %48, %42 ], [ 0, %38 ]
%44 = phi i32 [ %47, %42 ], [ %39, %38 ]
%45 = trunc i32 %44 to i8
%46 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 %43
store i8 %45, i8* %46
%47 = call i32 @fgetc(i32* %16)
%48 = add nuw i64 %43, 1
%49 = add i32 %47, -48
%50 = icmp ult i32 %49, 10
br i1 %50, label %42, label %51
51: ; preds = %42, %38
%52 = call i64 @atoi(i8* %17)
%53 = trunc i64 %52 to i32
%54 = call i64 @atoi(i8* %18)
%55 = trunc i64 %54 to i32
store i32 %53, i32* %4
store i32 %55, i32* %5
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%57 = call i32 @fgetc(i32* %16)
%58 = mul nsw i32 %55, %53
%59 = icmp sgt i32 %58, 0
br i1 %59, label %60, label %64
60: ; preds = %51
%61 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%62 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 0
%63 = getelementptr inbounds [1000 x i8], [1000 x i8]* %11, i64 0, i64 0
br label %70
64: ; preds = %121, %51
%65 = phi i32 [ %57, %51 ], [ %123, %121 ]
%66 = icmp sgt i32 %53, 0
br i1 %66, label %67, label %168
67: ; preds = %64
%68 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 0
%69 = getelementptr inbounds [1000 x i8], [1000 x i8]* %13, i64 0, i64 0
br label %125
70: ; preds = %60, %121
%71 = phi i32 [ %57, %60 ], [ %123, %121 ]
%72 = phi i32 [ 0, %60 ], [ %122, %121 ]
%73 = add i32 %71, -48
%74 = icmp ult i32 %73, 10
br i1 %74, label %75, label %119
75: ; preds = %70
%76 = call i32 @limpa(i8* %63, i32 1000)
%77 = call i32 @limpa(i8* %61, i32 1000)
%78 = call i32 @limpa(i8* %62, i32 1000)
br label %79
79: ; preds = %83, %75
%80 = phi i64 [ %86, %83 ], [ 0, %75 ]
%81 = phi i32 [ %87, %83 ], [ %71, %75 ]
switch i32 %81, label %83 [
i32 32, label %82
i32 10, label %82
]
82: ; preds = %79, %79
br label %88
83: ; preds = %79
%84 = trunc i32 %81 to i8
%85 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 %80
store i8 %84, i8* %85
%86 = add nuw i64 %80, 1
%87 = call i32 @fgetc(i32* %16)
br label %79
88: ; preds = %82, %90
%89 = phi i32 [ %91, %90 ], [ %81, %82 ]
switch i32 %89, label %92 [
i32 32, label %90
i32 10, label %90
]
90: ; preds = %88, %88
%91 = call i32 @fgetc(i32* %16)
br label %88
92: ; preds = %88, %96
%93 = phi i64 [ %99, %96 ], [ 0, %88 ]
%94 = phi i32 [ %100, %96 ], [ %89, %88 ]
switch i32 %94, label %96 [
i32 32, label %95
i32 10, label %95
]
95: ; preds = %92, %92
br label %101
96: ; preds = %92
%97 = trunc i32 %94 to i8
%98 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 %93
store i8 %97, i8* %98
%99 = add nuw i64 %93, 1
%100 = call i32 @fgetc(i32* %16)
br label %92
101: ; preds = %95, %103
%102 = phi i32 [ %104, %103 ], [ %94, %95 ]
switch i32 %102, label %105 [
i32 32, label %103
i32 10, label %103
]
103: ; preds = %101, %101
%104 = call i32 @fgetc(i32* %16)
br label %101
105: ; preds = %101, %108
%106 = phi i64 [ %111, %108 ], [ 0, %101 ]
%107 = phi i32 [ %112, %108 ], [ %102, %101 ]
switch i32 %107, label %108 [
i32 32, label %113
i32 10, label %113
]
108: ; preds = %105
%109 = trunc i32 %107 to i8
%110 = getelementptr inbounds [1000 x i8], [1000 x i8]* %11, i64 0, i64 %106
store i8 %109, i8* %110
%111 = add nuw i64 %106, 1
%112 = call i32 @fgetc(i32* %16)
br label %105
113: ; preds = %105, %105
%114 = call double @atof(i8* %63)
%115 = call i64 @atoi(i8* %61)
%116 = call i64 @atoi(i8* %62)
%117 = getelementptr inbounds [1000 x double], [1000 x double]* %2, i64 %115, i64 %116
store double %114, double* %117
%118 = add nsw i32 %72, 1
br label %121
119: ; preds = %70
%120 = call i32 @fgetc(i32* %16)
br label %121
121: ; preds = %119, %113
%122 = phi i32 [ %118, %113 ], [ %72, %119 ]
%123 = phi i32 [ %107, %113 ], [ %120, %119 ]
%124 = icmp slt i32 %122, %58
br i1 %124, label %70, label %64
125: ; preds = %67, %164
%126 = phi i32 [ %65, %67 ], [ %166, %164 ]
%127 = phi i32 [ 0, %67 ], [ %165, %164 ]
%128 = add i32 %126, -48
%129 = icmp ult i32 %128, 10
br i1 %129, label %130, label %162
130: ; preds = %125
%131 = call i32 @limpa(i8* %68, i32 1000)
%132 = call i32 @limpa(i8* %69, i32 1000)
br label %133
133: ; preds = %137, %130
%134 = phi i64 [ %140, %137 ], [ 0, %130 ]
%135 = phi i32 [ %141, %137 ], [ %126, %130 ]
switch i32 %135, label %137 [
i32 32, label %136
i32 10, label %136
]
136: ; preds = %133, %133
br label %142
137: ; preds = %133
%138 = trunc i32 %135 to i8
%139 = getelementptr inbounds [1000 x i8], [1000 x i8]* %13, i64 0, i64 %134
store i8 %138, i8* %139
%140 = add nuw i64 %134, 1
%141 = call i32 @fgetc(i32* %16)
br label %133
142: ; preds = %136, %144
%143 = phi i32 [ %145, %144 ], [ %135, %136 ]
switch i32 %143, label %146 [
i32 32, label %144
i32 10, label %144
]
144: ; preds = %142, %142
%145 = call i32 @fgetc(i32* %16)
br label %142
146: ; preds = %142, %152
%147 = phi i64 [ %155, %152 ], [ 0, %142 ]
%148 = phi i32 [ %156, %152 ], [ %143, %142 ]
switch i32 %148, label %149 [
i32 32, label %157
i32 10, label %157
]
149: ; preds = %146
%150 = load i32, i32* @EOF
%151 = icmp eq i32 %148, %150
br i1 %151, label %157, label %152
152: ; preds = %149
%153 = trunc i32 %148 to i8
%154 = getelementptr inbounds [1000 x i8], [1000 x i8]* %12, i64 0, i64 %147
store i8 %153, i8* %154
%155 = add nuw i64 %147, 1
%156 = call i32 @fgetc(i32* %16)
br label %146
157: ; preds = %146, %146, %149
%158 = call double @atof(i8* %68)
%159 = call i64 @atoi(i8* %69)
%160 = getelementptr inbounds double, double* %3, i64 %159
store double %158, double* %160
%161 = add nsw i32 %127, 1
br label %164
162: ; preds = %125
%163 = call i32 @fgetc(i32* %16)
br label %164
164: ; preds = %162, %157
%165 = phi i32 [ %161, %157 ], [ %127, %162 ]
%166 = phi i32 [ %148, %157 ], [ %163, %162 ]
%167 = icmp slt i32 %165, %53
br i1 %167, label %125, label %168
168: ; preds = %164, %64
%169 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.4, i64 0, i64 0))
%170 = call i32 @fclose(i32* %16)
ret void
}