#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 /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, double, ...);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
scalar_t__ malloc(int);
int main() {
  double **A, **B, **C, **T, **D;
  double *x, *y;
  FILE *f;
  int n1, m1, n2, m2, n3, n4;
  int i, j;
  f = fopen("matriz1.csv", "r");
  fscanf(f, "%d;%d", &n1, &m1);
  A = (double **)malloc(n1 * sizeof(double *));
  for (i = 0; i < n1; i++)
    A[i] = (double *)malloc(m1 * sizeof(double));
  for (i = 0; i < n1; i++)
    for (j = 0; j < m1; j++)
      fscanf(f, "%lf;", &A[i][j]);
  fclose(f);
  f = fopen("matriz2.csv", "r");
  fscanf(f, "%d;%d", &n2, &m2);
  B = (double **)malloc(n1 * sizeof(double *));
  for (i = 0; i < n2; i++)
    B[i] = (double *)malloc(m2 * sizeof(double));
  for (i = 0; i < n2; i++)
    for (j = 0; j < m2; j++)
      fscanf(f, "%lf;", &B[i][j]);
  fclose(f);
  f = fopen("vetor1.csv", "r");
  fscanf(f, "%d", &n3);
  x = (double *)malloc(n3 * sizeof(double));
  for (i = 0; i < n3; i++)
    fscanf(f, "%lf;", &x[i]);
  fclose(f);
  f = fopen("vetor2.csv", "r");
  fscanf(f, "%d", &n4);
  y = (double *)malloc(n4 * sizeof(double));
  for (i = 0; i < n4; i++)
    fscanf(f, "%lf;", &y[i]);
  fclose(f);
  if (n1 == n2 && m1 == m2) {
    C = (double **)malloc(n1 * sizeof(double *));
    for (i = 0; i < n1; i++)
      C[i] = (double *)malloc(m1 * sizeof(double));
    for (i = 0; i < n1; i++)
      for (j = 0; j < m1; j++)
        C[i][j] = A[i][j] + B[i][j];
    f = fopen("somaMatriz.csv", "w+");
    fprintf(f, "%d;%d\n", n1, m1);
    for (i = 0; i < n1; i++) {
      for (j = 0; j < m1 - 1; j++) {
        fprintf(f, "%lf;", C[i][j]);
      }
      fprintf(f, "%lf\n", C[i][j]);
    }
    fclose(f);
  }
  T = (double **)malloc(m1 * sizeof(double *));
  for (i = 0; i < m1; i++)
    T[i] = (double *)malloc(n1 * sizeof(double));
  for (i = 0; i < n1; i++)
    for (j = 0; j < m1; j++)
      T[j][i] = A[i][j];
  f = fopen("transposta.csv", "w+");
  fprintf(f, "%d;%d\n", m1, n1);
  for (i = 0; i < m1; i++) {
    for (j = 0; j < n1 - 1; j++) {
      fprintf(f, "%lf;", T[i][j]);
    }
    fprintf(f, "%lf\n", T[i][j]);
  }
  fclose(f);
  D = (double **)malloc(n3 * sizeof(double *));
  for (i = 0; i < n3; i++)
    D[i] = (double *)malloc(n4 * sizeof(double));
  for (i = 0; i < n3; i++)
    for (j = 0; j < n4; j++)
      D[i][j] = x[i] * y[j];
  f = fopen("produtoexterno.csv", "w+");
  fprintf(f, "%d;%d\n", n3, n4);
  for (i = 0; i < n3; i++) {
    for (j = 0; j < n4 - 1; j++) {
      fprintf(f, "%lf;", D[i][j]);
    }
    fprintf(f, "%lf\n", D[i][j]);
  }
  fclose(f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rdi
lea    0xe9f(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
lea    0xe8d(%rip),%rsi
lea    -0x4c(%rbp),%rdx
lea    -0x50(%rbp),%rcx
mov    $0x0,%al
call   1040 <fscanf@plt>
movslq -0x4c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jge    11e2 <main+0x92>
movslq -0x50(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    11aa <main+0x5a>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jge    1252 <main+0x102>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    123f <main+0xef>
mov    -0x48(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq -0x68(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
lea    0xdea(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    11fc <main+0xac>
jmp    1244 <main+0xf4>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    11e9 <main+0x99>
mov    -0x48(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xdb7(%rip),%rdi
lea    0xda3(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
lea    0xd91(%rip),%rsi
lea    -0x54(%rbp),%rdx
lea    -0x58(%rbp),%rcx
mov    $0x0,%al
call   1040 <fscanf@plt>
movslq -0x4c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x54(%rbp),%eax
jge    12de <main+0x18e>
movslq -0x58(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    12a6 <main+0x156>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x54(%rbp),%eax
jge    134e <main+0x1fe>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x58(%rbp),%eax
jge    133b <main+0x1eb>
mov    -0x48(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq -0x68(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
lea    0xcee(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    12f8 <main+0x1a8>
jmp    1340 <main+0x1f0>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    12e5 <main+0x195>
mov    -0x48(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xcc7(%rip),%rdi
lea    0xca7(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
lea    0xc98(%rip),%rsi
lea    -0x5c(%rbp),%rdx
mov    $0x0,%al
call   1040 <fscanf@plt>
movslq -0x5c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jge    13d9 <main+0x289>
mov    -0x48(%rbp),%rdi
mov    -0x38(%rbp),%rdx
movslq -0x64(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
lea    0xc50(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    139e <main+0x24e>
mov    -0x48(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xc47(%rip),%rdi
lea    0xc1c(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
lea    0xc0d(%rip),%rsi
lea    -0x60(%rbp),%rdx
mov    $0x0,%al
call   1040 <fscanf@plt>
movslq -0x60(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x60(%rbp),%eax
jge    1464 <main+0x314>
mov    -0x48(%rbp),%rdi
mov    -0x40(%rbp),%rdx
movslq -0x64(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
lea    0xbc5(%rip),%rsi
mov    $0x0,%al
call   1040 <fscanf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1429 <main+0x2d9>
mov    -0x48(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x4c(%rbp),%eax
cmp    -0x54(%rbp),%eax
jne    162c <main+0x4dc>
mov    -0x50(%rbp),%eax
cmp    -0x58(%rbp),%eax
jne    162c <main+0x4dc>
movslq -0x4c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jge    14d7 <main+0x387>
movslq -0x50(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    149f <main+0x34f>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jge    155d <main+0x40d>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    154a <main+0x3fa>
mov    -0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x68(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x68(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    14f1 <main+0x3a1>
jmp    154f <main+0x3ff>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    14de <main+0x38e>
lea    0xad7(%rip),%rdi
lea    0xadf(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
cvtsi2sdl -0x4c(%rbp),%xmm0
mov    -0x50(%rbp),%edx
lea    0xac6(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jge    1623 <main+0x4d3>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
mov    -0x50(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    15ee <main+0x49e>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xa3b(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    15a8 <main+0x458>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xa46(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1595 <main+0x445>
mov    -0x48(%rbp),%rdi
call   1030 <fclose@plt>
movslq -0x50(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    167e <main+0x52e>
movslq -0x4c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x28(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1646 <main+0x4f6>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jge    16ef <main+0x59f>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    16dc <main+0x58c>
mov    -0x10(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x64(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    1698 <main+0x548>
jmp    16e1 <main+0x591>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1685 <main+0x535>
lea    0x963(%rip),%rdi
lea    0x94d(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
cvtsi2sdl -0x50(%rbp),%xmm0
mov    -0x4c(%rbp),%edx
lea    0x934(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x50(%rbp),%eax
jge    17b5 <main+0x665>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
mov    -0x4c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1780 <main+0x630>
mov    -0x48(%rbp),%rdi
mov    -0x28(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0x8a9(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    173a <main+0x5ea>
mov    -0x48(%rbp),%rdi
mov    -0x28(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0x8b4(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1727 <main+0x5d7>
mov    -0x48(%rbp),%rdi
call   1030 <fclose@plt>
movslq -0x5c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jge    1810 <main+0x6c0>
movslq -0x60(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    17d8 <main+0x688>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jge    1886 <main+0x736>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x60(%rbp),%eax
jge    1873 <main+0x723>
mov    -0x38(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x68(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x68(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    182a <main+0x6da>
jmp    1878 <main+0x728>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1817 <main+0x6c7>
lea    0x7db(%rip),%rdi
lea    0x7b6(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
cvtsi2sdl -0x5c(%rbp),%xmm0
mov    -0x60(%rbp),%edx
lea    0x79d(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jge    194c <main+0x7fc>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
mov    -0x60(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1917 <main+0x7c7>
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0x712(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    18d1 <main+0x781>
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%rax
movslq -0x64(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x68(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0x71d(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    18be <main+0x76e>
mov    -0x48(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
lea    0xe9b(%rip),%rdi
lea    0xea0(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%r15
lea    0xe93(%rip),%rsi
lea    0x8(%rsp),%rdx
lea    0xc(%rsp),%rcx
mov    %rax,%rdi
xor    %eax,%eax
call   1040 <fscanf@plt>
mov    0x8(%rsp),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,%r13
cmpl   $0x0,0x8(%rsp)
jle    123d <main+0xed>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    0xc(%rsp),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,0x0(%r13,%rbx,8)
add    $0x1,%rbx
movslq 0x8(%rsp),%rax
cmp    %rax,%rbx
jl     11b0 <main+0x60>
test   %eax,%eax
jle    123d <main+0xed>
mov    0xc(%rsp),%ecx
lea    0xe36(%rip),%r14
xor    %r12d,%r12d
jmp    11fc <main+0xac>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r12
movslq %eax,%rdx
cmp    %rdx,%r12
jge    123d <main+0xed>
test   %ecx,%ecx
jle    11f0 <main+0xa0>
xor    %ebx,%ebx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x0(%r13,%r12,8),%rdx
add    %rbx,%rdx
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fscanf@plt>
add    $0x1,%rbp
movslq 0xc(%rsp),%rcx
add    $0x8,%rbx
cmp    %rcx,%rbp
jl     1210 <main+0xc0>
mov    0x8(%rsp),%eax
jmp    11f0 <main+0xa0>
mov    %r13,0x28(%rsp)
mov    %r15,%rdi
call   1030 <fclose@plt>
lea    0xdc8(%rip),%rdi
lea    0xdb4(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%r12
lea    0xda7(%rip),%rsi
lea    0x1c(%rsp),%rdx
lea    0x18(%rsp),%rcx
mov    %rax,%rdi
xor    %eax,%eax
call   1040 <fscanf@plt>
mov    0x8(%rsp),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,%r15
cmpl   $0x0,0x1c(%rsp)
jle    132c <main+0x1dc>
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    0x18(%rsp),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,(%r15,%rbx,8)
add    $0x1,%rbx
movslq 0x1c(%rsp),%rax
cmp    %rax,%rbx
jl     12a0 <main+0x150>
test   %eax,%eax
jle    132c <main+0x1dc>
mov    0x18(%rsp),%ecx
lea    0xd47(%rip),%r14
xor    %r13d,%r13d
jmp    12ec <main+0x19c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r13
movslq %eax,%rdx
cmp    %rdx,%r13
jge    132c <main+0x1dc>
test   %ecx,%ecx
jle    12e0 <main+0x190>
xor    %ebx,%ebx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%r15,%r13,8),%rdx
add    %rbx,%rdx
mov    %r12,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fscanf@plt>
add    $0x1,%rbp
movslq 0x18(%rsp),%rcx
add    $0x8,%rbx
cmp    %rcx,%rbp
jl     1300 <main+0x1b0>
mov    0x1c(%rsp),%eax
jmp    12e0 <main+0x190>
mov    %r12,%rdi
call   1030 <fclose@plt>
lea    0xcea(%rip),%rdi
lea    0xcca(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%r14
lea    0xcc0(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %rax,%rdi
xor    %eax,%eax
call   1040 <fscanf@plt>
mov    0x10(%rsp),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,0x30(%rsp)
cmpl   $0x0,0x10(%rsp)
jle    13b2 <main+0x262>
lea    0xc95(%rip),%r13
mov    0x30(%rsp),%rbp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <fscanf@plt>
add    $0x1,%rbx
movslq 0x10(%rsp),%rax
add    $0x8,%rbp
cmp    %rax,%rbx
jl     1390 <main+0x240>
mov    %r14,%rdi
call   1030 <fclose@plt>
lea    0xc6f(%rip),%rdi
lea    0xc44(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%rbx
lea    0xc3a(%rip),%rsi
lea    0x14(%rsp),%rdx
mov    %rax,%rdi
xor    %eax,%eax
call   1040 <fscanf@plt>
mov    0x14(%rsp),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,%r12
cmpl   $0x0,0x14(%rsp)
jle    1432 <main+0x2e2>
lea    0xc11(%rip),%r14
mov    %r12,%r13
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1040 <fscanf@plt>
add    $0x1,%rbp
movslq 0x14(%rsp),%rax
add    $0x8,%r13
cmp    %rax,%rbp
jl     1410 <main+0x2c0>
mov    %rbx,%rdi
call   1030 <fclose@plt>
mov    0x8(%rsp),%edi
cmp    0x1c(%rsp),%edi
mov    0x28(%rsp),%r14
jne    17b8 <main+0x668>
mov    0xc(%rsp),%eax
cmp    0x18(%rsp),%eax
jne    17b8 <main+0x668>
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,0x20(%rsp)
cmpl   $0x0,0x8(%rsp)
jle    16e5 <main+0x595>
xor    %ebx,%ebx
mov    0x20(%rsp),%rbp
nopw   0x0(%rax,%rax,1)
mov    0xc(%rsp),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,0x0(%rbp,%rbx,8)
add    $0x1,%rbx
movslq 0x8(%rsp),%rax
cmp    %rax,%rbx
jl     1480 <main+0x330>
mov    %eax,%r9d
test   %r9d,%r9d
jle    16e5 <main+0x595>
mov    0xc(%rsp),%ecx
mov    %ecx,%eax
and    $0xfffffffc,%eax
mov    %rax,0x50(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,0x48(%rsp)
mov    %rax,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %rdx,%rax
mov    %rdx,0x40(%rsp)
and    $0xfffffffffffffffe,%rdx
mov    %rdx,0x38(%rsp)
mov    %ecx,%r13d
and    $0x3,%r13d
xor    %r14d,%r14d
jmp    14fd <main+0x3ad>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r14
cmp    %r9,%r14
je     16e5 <main+0x595>
test   %ecx,%ecx
jle    14f0 <main+0x3a0>
mov    0x28(%rsp),%rax
mov    (%rax,%r14,8),%rsi
mov    (%r15,%r14,8),%rdi
mov    0x20(%rsp),%rax
mov    (%rax,%r14,8),%rdx
cmp    $0x4,%ecx
jb     1630 <main+0x4e0>
lea    (%rdx,%rcx,8),%rbp
lea    (%rsi,%rcx,8),%rax
lea    (%rdi,%rcx,8),%rbx
cmp    %rax,%rdx
setb   %r10b
cmp    %rbp,%rsi
setb   %r11b
cmp    %rbx,%rdx
setb   %al
cmp    %rbp,%rdi
setb   %r8b
test   %r11b,%r10b
jne    1630 <main+0x4e0>
mov    $0x0,%ebx
and    %r8b,%al
jne    1632 <main+0x4e2>
cmpq   $0x0,0x48(%rsp)
je     16d3 <main+0x583>
mov    0x38(%rsp),%r8
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd (%rsi,%rbx,8),%xmm0
movupd 0x10(%rsi,%rbx,8),%xmm1
movupd (%rdi,%rbx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rdi,%rbx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,(%rdx,%rbx,8)
movupd %xmm0,0x10(%rdx,%rbx,8)
movupd 0x20(%rsi,%rbx,8),%xmm0
movupd 0x30(%rsi,%rbx,8),%xmm1
movupd 0x20(%rdi,%rbx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x30(%rdi,%rbx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,0x20(%rdx,%rbx,8)
movupd %xmm0,0x30(%rdx,%rbx,8)
add    $0x8,%rbx
add    $0xfffffffffffffffe,%r8
jne    1580 <main+0x430>
testb  $0x1,0x40(%rsp)
je     160f <main+0x4bf>
movupd (%rsi,%rbx,8),%xmm0
movupd 0x10(%rsi,%rbx,8),%xmm1
movupd (%rdi,%rbx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rdi,%rbx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,(%rdx,%rbx,8)
movupd %xmm0,0x10(%rdx,%rbx,8)
mov    0x50(%rsp),%rax
mov    %rax,%rbx
cmp    %rcx,%rax
je     14f0 <main+0x3a0>
jmp    1632 <main+0x4e2>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %ebx,%ebx
mov    %rbx,%rax
not    %rax
add    %rcx,%rax
test   %r13,%r13
je     1669 <main+0x519>
mov    %r13,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rsi,%rbx,8),%xmm0
addsd  (%rdi,%rbx,8),%xmm0
movsd  %xmm0,(%rdx,%rbx,8)
add    $0x1,%rbx
add    $0xffffffffffffffff,%rbp
jne    1650 <main+0x500>
cmp    $0x3,%rax
jb     14f0 <main+0x3a0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rsi,%rbx,8),%xmm0
addsd  (%rdi,%rbx,8),%xmm0
movsd  %xmm0,(%rdx,%rbx,8)
movsd  0x8(%rsi,%rbx,8),%xmm0
addsd  0x8(%rdi,%rbx,8),%xmm0
movsd  %xmm0,0x8(%rdx,%rbx,8)
movsd  0x10(%rsi,%rbx,8),%xmm0
addsd  0x10(%rdi,%rbx,8),%xmm0
movsd  %xmm0,0x10(%rdx,%rbx,8)
movsd  0x18(%rsi,%rbx,8),%xmm0
addsd  0x18(%rdi,%rbx,8),%xmm0
movsd  %xmm0,0x18(%rdx,%rbx,8)
add    $0x4,%rbx
cmp    %rbx,%rcx
jne    1680 <main+0x530>
jmp    14f0 <main+0x3a0>
xor    %ebx,%ebx
testb  $0x1,0x40(%rsp)
jne    15e6 <main+0x496>
jmp    160f <main+0x4bf>
lea    0x94f(%rip),%rdi
lea    0x957(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%r14
xorps  %xmm0,%xmm0
cvtsi2sdl 0x8(%rsp),%xmm0
mov    0xc(%rsp),%edx
lea    0x93e(%rip),%rsi
mov    %rax,%rdi
mov    $0x1,%al
call   1050 <fprintf@plt>
cmpl   $0x0,0x8(%rsp)
mov    0x20(%rsp),%rbx
jle    17ab <main+0x65b>
xor    %ebp,%ebp
lea    0x8e2(%rip),%r13
jmp    176e <main+0x61e>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %r15d,%r15d
mov    (%rbx,%rbp,8),%rax
mov    %r15d,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    %r14,%rdi
lea    0x8fb(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
add    $0x1,%rbp
movslq 0x8(%rsp),%rax
cmp    %rax,%rbp
jge    17ab <main+0x65b>
cmpl   $0x2,0xc(%rsp)
jl     1740 <main+0x5f0>
xor    %r15d,%r15d
nopl   0x0(%rax,%rax,1)
mov    (%rbx,%rbp,8),%rax
movsd  (%rax,%r15,8),%xmm0
mov    %r14,%rdi
mov    %r13,%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
add    $0x1,%r15
movslq 0xc(%rsp),%rax
add    $0xffffffffffffffff,%rax
cmp    %rax,%r15
jl     1780 <main+0x630>
jmp    1743 <main+0x5f3>
mov    %r14,%rdi
call   1030 <fclose@plt>
mov    0x28(%rsp),%r14
mov    0xc(%rsp),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
mov    0xc(%rsp),%r10d
test   %r10d,%r10d
jle    17fe <main+0x6ae>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x8(%rsp),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,(%rbx,%rbp,8)
add    $0x1,%rbp
movslq 0xc(%rsp),%r10
cmp    %r10,%rbp
jl     17e0 <main+0x690>
mov    0x8(%rsp),%r9d
test   %r9d,%r9d
jle    18cc <main+0x77c>
mov    %r10d,%r11d
lea    -0x1(%r11),%r8
mov    %r11d,%edi
and    $0x3,%edi
and    $0xfffffffc,%r11d
xor    %ebp,%ebp
jmp    183d <main+0x6ed>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbp
cmp    %r9,%rbp
je     18cc <main+0x77c>
test   %r10d,%r10d
jle    1830 <main+0x6e0>
mov    (%r14,%rbp,8),%rsi
xor    %ecx,%ecx
cmp    $0x3,%r8
jb     1897 <main+0x747>
xchg   %ax,%ax
movsd  (%rsi,%rcx,8),%xmm0
mov    (%rbx,%rcx,8),%rax
movsd  %xmm0,(%rax,%rbp,8)
movsd  0x8(%rsi,%rcx,8),%xmm0
mov    0x8(%rbx,%rcx,8),%rax
movsd  %xmm0,(%rax,%rbp,8)
movsd  0x10(%rsi,%rcx,8),%xmm0
mov    0x10(%rbx,%rcx,8),%rax
movsd  %xmm0,(%rax,%rbp,8)
movsd  0x18(%rsi,%rcx,8),%xmm0
mov    0x18(%rbx,%rcx,8),%rax
movsd  %xmm0,(%rax,%rbp,8)
add    $0x4,%rcx
cmp    %rcx,%r11
jne    1850 <main+0x700>
test   %rdi,%rdi
je     1830 <main+0x6e0>
lea    (%rbx,%rcx,8),%rax
lea    (%rsi,%rcx,8),%rcx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
movsd  (%rcx,%rsi,8),%xmm0
mov    (%rax,%rsi,8),%rdx
movsd  %xmm0,(%rdx,%rbp,8)
add    $0x1,%rsi
cmp    %rsi,%rdi
jne    18b0 <main+0x760>
jmp    1830 <main+0x6e0>
lea    0x786(%rip),%rdi
lea    0x770(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%rbp
xorps  %xmm0,%xmm0
cvtsi2sdl 0xc(%rsp),%xmm0
mov    0x8(%rsp),%edx
lea    0x757(%rip),%rsi
mov    %rax,%rdi
mov    $0x1,%al
call   1050 <fprintf@plt>
cmpl   $0x0,0xc(%rsp)
jle    198b <main+0x83b>
xor    %r13d,%r13d
lea    0x6ff(%rip),%r15
jmp    194e <main+0x7fe>
nopw   0x0(%rax,%rax,1)
xor    %r14d,%r14d
mov    (%rbx,%r13,8),%rax
mov    %r14d,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    %rbp,%rdi
lea    0x71b(%rip),%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
add    $0x1,%r13
movslq 0xc(%rsp),%rax
cmp    %rax,%r13
jge    198b <main+0x83b>
cmpl   $0x2,0x8(%rsp)
jl     1920 <main+0x7d0>
xor    %r14d,%r14d
nopl   0x0(%rax,%rax,1)
mov    (%rbx,%r13,8),%rax
movsd  (%rax,%r14,8),%xmm0
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
add    $0x1,%r14
movslq 0x8(%rsp),%rax
add    $0xffffffffffffffff,%rax
cmp    %rax,%r14
jl     1960 <main+0x810>
jmp    1923 <main+0x7d3>
mov    %rbp,%rdi
call   1030 <fclose@plt>
mov    0x10(%rsp),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,%r15
cmpl   $0x0,0x10(%rsp)
jle    1c05 <main+0xab5>
xor    %ebx,%ebx
nop
mov    0x14(%rsp),%edi
shl    $0x3,%edi
call   1060 <malloc@plt>
mov    %rax,(%r15,%rbx,8)
add    $0x1,%rbx
movslq 0x10(%rsp),%rax
cmp    %rax,%rbx
jl     19b0 <main+0x860>
mov    %eax,%r8d
test   %r8d,%r8d
mov    0x30(%rsp),%rax
jle    1c05 <main+0xab5>
mov    0x14(%rsp),%ecx
lea    (%r12,%rcx,8),%r10
mov    %ecx,%r13d
and    $0xfffffffc,%r13d
lea    -0x4(%r13),%r11
mov    %r11,0x28(%rsp)
shr    $0x2,%r11
add    $0x1,%r11
mov    %r11,%rdx
and    $0xfffffffffffffffe,%rdx
mov    %rdx,0x20(%rsp)
mov    %ecx,%r14d
and    $0x3,%r14d
xor    %ebp,%ebp
jmp    1a2d <main+0x8dd>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%rbp
cmp    %r8,%rbp
je     1c05 <main+0xab5>
test   %ecx,%ecx
jle    1a20 <main+0x8d0>
mov    (%r15,%rbp,8),%rdx
cmp    $0x4,%ecx
jae    1a50 <main+0x900>
xor    %esi,%esi
jmp    1b50 <main+0xa00>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    (%rax,%rbp,8),%rbx
lea    (%rax,%rbp,8),%rsi
add    $0x8,%rsi
lea    (%rdx,%rcx,8),%rdi
cmp    %rsi,%rdx
setb   %sil
cmp    %rdi,%rbx
setb   %r9b
cmp    %r10,%rdx
setb   %bl
cmp    %rdi,%r12
setb   %al
test   %r9b,%sil
jne    1b49 <main+0x9f9>
mov    $0x0,%esi
and    %al,%bl
mov    0x30(%rsp),%rax
jne    1b50 <main+0xa00>
cmpq   $0x0,0x28(%rsp)
je     1bf4 <main+0xaa4>
movsd  (%rax,%rbp,8),%xmm0
unpcklpd %xmm0,%xmm0
mov    0x20(%rsp),%rdi
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd (%r12,%rsi,8),%xmm1
movupd 0x10(%r12,%rsi,8),%xmm2
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
movupd %xmm1,(%rdx,%rsi,8)
movupd %xmm2,0x10(%rdx,%rsi,8)
movupd 0x20(%r12,%rsi,8),%xmm1
movupd 0x30(%r12,%rsi,8),%xmm2
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
movupd %xmm1,0x20(%rdx,%rsi,8)
movupd %xmm2,0x30(%rdx,%rsi,8)
add    $0x8,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1ac0 <main+0x970>
test   $0x1,%r11b
je     1b3b <main+0x9eb>
movsd  (%rax,%rbp,8),%xmm0
unpcklpd %xmm0,%xmm0
movupd (%r12,%rsi,8),%xmm1
movupd 0x10(%r12,%rsi,8),%xmm2
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
movupd %xmm1,(%rdx,%rsi,8)
movupd %xmm2,0x10(%rdx,%rsi,8)
mov    %r13,%rsi
cmp    %rcx,%r13
je     1a20 <main+0x8d0>
jmp    1b50 <main+0xa00>
xor    %esi,%esi
mov    0x30(%rsp),%rax
mov    %rsi,%rdi
not    %rdi
add    %rcx,%rdi
test   %r14,%r14
je     1b8a <main+0xa3a>
mov    %r14,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rax,%rbp,8),%xmm0
mulsd  (%r12,%rsi,8),%xmm0
movsd  %xmm0,(%rdx,%rsi,8)
add    $0x1,%rsi
add    $0xffffffffffffffff,%rbx
jne    1b70 <main+0xa20>
cmp    $0x3,%rdi
jb     1a20 <main+0x8d0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%rax,%rbp,8),%xmm0
mulsd  (%r12,%rsi,8),%xmm0
movsd  %xmm0,(%rdx,%rsi,8)
movsd  (%rax,%rbp,8),%xmm0
mulsd  0x8(%r12,%rsi,8),%xmm0
movsd  %xmm0,0x8(%rdx,%rsi,8)
movsd  (%rax,%rbp,8),%xmm0
mulsd  0x10(%r12,%rsi,8),%xmm0
movsd  %xmm0,0x10(%rdx,%rsi,8)
movsd  (%rax,%rbp,8),%xmm0
mulsd  0x18(%r12,%rsi,8),%xmm0
movsd  %xmm0,0x18(%rdx,%rsi,8)
add    $0x4,%rsi
cmp    %rsi,%rcx
jne    1ba0 <main+0xa50>
jmp    1a20 <main+0x8d0>
xor    %esi,%esi
test   $0x1,%r11b
jne    1b12 <main+0x9c2>
jmp    1b3b <main+0x9eb>
lea    0x45c(%rip),%rdi
lea    0x437(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%r13
xorps  %xmm0,%xmm0
cvtsi2sdl 0x10(%rsp),%xmm0
mov    0x14(%rsp),%edx
lea    0x41e(%rip),%rsi
mov    %rax,%rdi
mov    $0x1,%al
call   1050 <fprintf@plt>
cmpl   $0x0,0x10(%rsp)
jle    1cca <main+0xb7a>
xor    %ebx,%ebx
lea    0x3c7(%rip),%r12
lea    0x400(%rip),%r14
jmp    1c88 <main+0xb38>
cs nopw 0x0(%rax,%rax,1)
xor    %ebp,%ebp
mov    (%r15,%rbx,8),%rax
mov    %ebp,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    %r13,%rdi
mov    %r14,%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
add    $0x1,%rbx
movslq 0x10(%rsp),%rax
cmp    %rax,%rbx
jge    1cca <main+0xb7a>
cmpl   $0x2,0x14(%rsp)
jl     1c60 <main+0xb10>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbx,8),%rax
movsd  (%rax,%rbp,8),%xmm0
mov    %r13,%rdi
mov    %r12,%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
add    $0x1,%rbp
movslq 0x14(%rsp),%rax
add    $0xffffffffffffffff,%rax
cmp    %rax,%rbp
jl     1ca0 <main+0xb50>
jmp    1c62 <main+0xb12>
mov    %r13,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"matriz1.csv\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [6 x i8] c"%d;%d\00"
@.str.3 = [5 x i8] c"%lf;\00"
@.str.4 = [12 x i8] c"matriz2.csv\00"
@.str.5 = [11 x i8] c"vetor1.csv\00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [11 x i8] c"vetor2.csv\00"
@.str.8 = [15 x i8] c"somaMatriz.csv\00"
@.str.9 = [3 x i8] c"w+\00"
@.str.10 = [7 x i8] c"%d;%d\0A\00"
@.str.11 = [5 x i8] c"%lf\0A\00"
@.str.12 = [15 x i8] c"transposta.csv\00"
@.str.13 = [19 x i8] c"produtoexterno.csv\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double**
%3 = alloca double**
%4 = alloca double**
%5 = alloca double**
%6 = alloca double**
%7 = alloca double*
%8 = alloca double*
%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
store i32 0, i32* %1
%18 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %18, i32** %9
%19 = load i32*, i32** %9
%20 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32* %10, i32* %11)
%21 = load i32, i32* %10
%22 = sext i32 %21 to i64
%23 = mul i64 %22, 8
%24 = trunc i64 %23 to i32
%25 = call i64 @malloc(i32 %24)
%26 = inttoptr i64 %25 to double**
store double** %26, double*** %2
store i32 0, i32* %16
br label %27
27: ; preds = %42, %0
%28 = load i32, i32* %16
%29 = load i32, i32* %10
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %45
31: ; preds = %27
%32 = load i32, i32* %11
%33 = sext i32 %32 to i64
%34 = mul i64 %33, 8
%35 = trunc i64 %34 to i32
%36 = call i64 @malloc(i32 %35)
%37 = inttoptr i64 %36 to double*
%38 = load double**, double*** %2
%39 = load i32, i32* %16
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double*, double** %38, i64 %40
store double* %37, double** %41
br label %42
42: ; preds = %31
%43 = load i32, i32* %16
%44 = add nsw i32 %43, 1
store i32 %44, i32* %16
br label %27
45: ; preds = %27
store i32 0, i32* %16
br label %46
46: ; preds = %70, %45
%47 = load i32, i32* %16
%48 = load i32, i32* %10
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %73
50: ; preds = %46
store i32 0, i32* %17
br label %51
51: ; preds = %66, %50
%52 = load i32, i32* %17
%53 = load i32, i32* %11
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %69
55: ; preds = %51
%56 = load i32*, i32** %9
%57 = load double**, double*** %2
%58 = load i32, i32* %16
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double*, double** %57, i64 %59
%61 = load double*, double** %60
%62 = load i32, i32* %17
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %61, i64 %63
%65 = call i32 (i32*, i8*, ...) @fscanf(i32* %56, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double* %64)
br label %66
66: ; preds = %55
%67 = load i32, i32* %17
%68 = add nsw i32 %67, 1
store i32 %68, i32* %17
br label %51
69: ; preds = %51
br label %70
70: ; preds = %69
%71 = load i32, i32* %16
%72 = add nsw i32 %71, 1
store i32 %72, i32* %16
br label %46
73: ; preds = %46
%74 = load i32*, i32** %9
%75 = call i32 @fclose(i32* %74)
%76 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %76, i32** %9
%77 = load i32*, i32** %9
%78 = call i32 (i32*, i8*, ...) @fscanf(i32* %77, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32* %12, i32* %13)
%79 = load i32, i32* %10
%80 = sext i32 %79 to i64
%81 = mul i64 %80, 8
%82 = trunc i64 %81 to i32
%83 = call i64 @malloc(i32 %82)
%84 = inttoptr i64 %83 to double**
store double** %84, double*** %3
store i32 0, i32* %16
br label %85
85: ; preds = %100, %73
%86 = load i32, i32* %16
%87 = load i32, i32* %12
%88 = icmp slt i32 %86, %87
br i1 %88, label %89, label %103
89: ; preds = %85
%90 = load i32, i32* %13
%91 = sext i32 %90 to i64
%92 = mul i64 %91, 8
%93 = trunc i64 %92 to i32
%94 = call i64 @malloc(i32 %93)
%95 = inttoptr i64 %94 to double*
%96 = load double**, double*** %3
%97 = load i32, i32* %16
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double*, double** %96, i64 %98
store double* %95, double** %99
br label %100
100: ; preds = %89
%101 = load i32, i32* %16
%102 = add nsw i32 %101, 1
store i32 %102, i32* %16
br label %85
103: ; preds = %85
store i32 0, i32* %16
br label %104
104: ; preds = %128, %103
%105 = load i32, i32* %16
%106 = load i32, i32* %12
%107 = icmp slt i32 %105, %106
br i1 %107, label %108, label %131
108: ; preds = %104
store i32 0, i32* %17
br label %109
109: ; preds = %124, %108
%110 = load i32, i32* %17
%111 = load i32, i32* %13
%112 = icmp slt i32 %110, %111
br i1 %112, label %113, label %127
113: ; preds = %109
%114 = load i32*, i32** %9
%115 = load double**, double*** %3
%116 = load i32, i32* %16
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds double*, double** %115, i64 %117
%119 = load double*, double** %118
%120 = load i32, i32* %17
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, double* %119, i64 %121
%123 = call i32 (i32*, i8*, ...) @fscanf(i32* %114, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double* %122)
br label %124
124: ; preds = %113
%125 = load i32, i32* %17
%126 = add nsw i32 %125, 1
store i32 %126, i32* %17
br label %109
127: ; preds = %109
br label %128
128: ; preds = %127
%129 = load i32, i32* %16
%130 = add nsw i32 %129, 1
store i32 %130, i32* %16
br label %104
131: ; preds = %104
%132 = load i32*, i32** %9
%133 = call i32 @fclose(i32* %132)
%134 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %134, i32** %9
%135 = load i32*, i32** %9
%136 = call i32 (i32*, i8*, ...) @fscanf(i32* %135, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %14)
%137 = load i32, i32* %14
%138 = sext i32 %137 to i64
%139 = mul i64 %138, 8
%140 = trunc i64 %139 to i32
%141 = call i64 @malloc(i32 %140)
%142 = inttoptr i64 %141 to double*
store double* %142, double** %7
store i32 0, i32* %16
br label %143
143: ; preds = %154, %131
%144 = load i32, i32* %16
%145 = load i32, i32* %14
%146 = icmp slt i32 %144, %145
br i1 %146, label %147, label %157
147: ; preds = %143
%148 = load i32*, i32** %9
%149 = load double*, double** %7
%150 = load i32, i32* %16
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds double, double* %149, i64 %151
%153 = call i32 (i32*, i8*, ...) @fscanf(i32* %148, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double* %152)
br label %154
154: ; preds = %147
%155 = load i32, i32* %16
%156 = add nsw i32 %155, 1
store i32 %156, i32* %16
br label %143
157: ; preds = %143
%158 = load i32*, i32** %9
%159 = call i32 @fclose(i32* %158)
%160 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %160, i32** %9
%161 = load i32*, i32** %9
%162 = call i32 (i32*, i8*, ...) @fscanf(i32* %161, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %15)
%163 = load i32, i32* %15
%164 = sext i32 %163 to i64
%165 = mul i64 %164, 8
%166 = trunc i64 %165 to i32
%167 = call i64 @malloc(i32 %166)
%168 = inttoptr i64 %167 to double*
store double* %168, double** %8
store i32 0, i32* %16
br label %169
169: ; preds = %180, %157
%170 = load i32, i32* %16
%171 = load i32, i32* %15
%172 = icmp slt i32 %170, %171
br i1 %172, label %173, label %183
173: ; preds = %169
%174 = load i32*, i32** %9
%175 = load double*, double** %8
%176 = load i32, i32* %16
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds double, double* %175, i64 %177
%179 = call i32 (i32*, i8*, ...) @fscanf(i32* %174, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double* %178)
br label %180
180: ; preds = %173
%181 = load i32, i32* %16
%182 = add nsw i32 %181, 1
store i32 %182, i32* %16
br label %169
183: ; preds = %169
%184 = load i32*, i32** %9
%185 = call i32 @fclose(i32* %184)
%186 = load i32, i32* %10
%187 = load i32, i32* %12
%188 = icmp eq i32 %186, %187
br i1 %188, label %189, label %313
189: ; preds = %183
%190 = load i32, i32* %11
%191 = load i32, i32* %13
%192 = icmp eq i32 %190, %191
br i1 %192, label %193, label %313
193: ; preds = %189
%194 = load i32, i32* %10
%195 = sext i32 %194 to i64
%196 = mul i64 %195, 8
%197 = trunc i64 %196 to i32
%198 = call i64 @malloc(i32 %197)
%199 = inttoptr i64 %198 to double**
store double** %199, double*** %4
store i32 0, i32* %16
br label %200
200: ; preds = %215, %193
%201 = load i32, i32* %16
%202 = load i32, i32* %10
%203 = icmp slt i32 %201, %202
br i1 %203, label %204, label %218
204: ; preds = %200
%205 = load i32, i32* %11
%206 = sext i32 %205 to i64
%207 = mul i64 %206, 8
%208 = trunc i64 %207 to i32
%209 = call i64 @malloc(i32 %208)
%210 = inttoptr i64 %209 to double*
%211 = load double**, double*** %4
%212 = load i32, i32* %16
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds double*, double** %211, i64 %213
store double* %210, double** %214
br label %215
215: ; preds = %204
%216 = load i32, i32* %16
%217 = add nsw i32 %216, 1
store i32 %217, i32* %16
br label %200
218: ; preds = %200
store i32 0, i32* %16
br label %219
219: ; preds = %260, %218
%220 = load i32, i32* %16
%221 = load i32, i32* %10
%222 = icmp slt i32 %220, %221
br i1 %222, label %223, label %263
223: ; preds = %219
store i32 0, i32* %17
br label %224
224: ; preds = %256, %223
%225 = load i32, i32* %17
%226 = load i32, i32* %11
%227 = icmp slt i32 %225, %226
br i1 %227, label %228, label %259
228: ; preds = %224
%229 = load double**, double*** %2
%230 = load i32, i32* %16
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds double*, double** %229, i64 %231
%233 = load double*, double** %232
%234 = load i32, i32* %17
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds double, double* %233, i64 %235
%237 = load double, double* %236
%238 = load double**, double*** %3
%239 = load i32, i32* %16
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds double*, double** %238, i64 %240
%242 = load double*, double** %241
%243 = load i32, i32* %17
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds double, double* %242, i64 %244
%246 = load double, double* %245
%247 = fadd double %237, %246
%248 = load double**, double*** %4
%249 = load i32, i32* %16
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds double*, double** %248, i64 %250
%252 = load double*, double** %251
%253 = load i32, i32* %17
%254 = sext i32 %253 to i64
%255 = getelementptr inbounds double, double* %252, i64 %254
store double %247, double* %255
br label %256
256: ; preds = %228
%257 = load i32, i32* %17
%258 = add nsw i32 %257, 1
store i32 %258, i32* %17
br label %224
259: ; preds = %224
br label %260
260: ; preds = %259
%261 = load i32, i32* %16
%262 = add nsw i32 %261, 1
store i32 %262, i32* %16
br label %219
263: ; preds = %219
%264 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
store i32* %264, i32** %9
%265 = load i32*, i32** %9
%266 = load i32, i32* %10
%267 = sitofp i32 %266 to double
%268 = load i32, i32* %11
%269 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %265, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), double %267, i32 %268)
store i32 0, i32* %16
br label %270
270: ; preds = %307, %263
%271 = load i32, i32* %16
%272 = load i32, i32* %10
%273 = icmp slt i32 %271, %272
br i1 %273, label %274, label %310
274: ; preds = %270
store i32 0, i32* %17
br label %275
275: ; preds = %292, %274
%276 = load i32, i32* %17
%277 = load i32, i32* %11
%278 = sub nsw i32 %277, 1
%279 = icmp slt i32 %276, %278
br i1 %279, label %280, label %295
280: ; preds = %275
%281 = load i32*, i32** %9
%282 = load double**, double*** %4
%283 = load i32, i32* %16
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds double*, double** %282, i64 %284
%286 = load double*, double** %285
%287 = load i32, i32* %17
%288 = sext i32 %287 to i64
%289 = getelementptr inbounds double, double* %286, i64 %288
%290 = load double, double* %289
%291 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %281, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %290)
br label %292
292: ; preds = %280
%293 = load i32, i32* %17
%294 = add nsw i32 %293, 1
store i32 %294, i32* %17
br label %275
295: ; preds = %275
%296 = load i32*, i32** %9
%297 = load double**, double*** %4
%298 = load i32, i32* %16
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds double*, double** %297, i64 %299
%301 = load double*, double** %300
%302 = load i32, i32* %17
%303 = sext i32 %302 to i64
%304 = getelementptr inbounds double, double* %301, i64 %303
%305 = load double, double* %304
%306 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %296, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), double %305)
br label %307
307: ; preds = %295
%308 = load i32, i32* %16
%309 = add nsw i32 %308, 1
store i32 %309, i32* %16
br label %270
310: ; preds = %270
%311 = load i32*, i32** %9
%312 = call i32 @fclose(i32* %311)
br label %313
313: ; preds = %310, %189, %183
%314 = load i32, i32* %11
%315 = sext i32 %314 to i64
%316 = mul i64 %315, 8
%317 = trunc i64 %316 to i32
%318 = call i64 @malloc(i32 %317)
%319 = inttoptr i64 %318 to double**
store double** %319, double*** %5
store i32 0, i32* %16
br label %320
320: ; preds = %335, %313
%321 = load i32, i32* %16
%322 = load i32, i32* %11
%323 = icmp slt i32 %321, %322
br i1 %323, label %324, label %338
324: ; preds = %320
%325 = load i32, i32* %10
%326 = sext i32 %325 to i64
%327 = mul i64 %326, 8
%328 = trunc i64 %327 to i32
%329 = call i64 @malloc(i32 %328)
%330 = inttoptr i64 %329 to double*
%331 = load double**, double*** %5
%332 = load i32, i32* %16
%333 = sext i32 %332 to i64
%334 = getelementptr inbounds double*, double** %331, i64 %333
store double* %330, double** %334
br label %335
335: ; preds = %324
%336 = load i32, i32* %16
%337 = add nsw i32 %336, 1
store i32 %337, i32* %16
br label %320
338: ; preds = %320
store i32 0, i32* %16
br label %339
339: ; preds = %370, %338
%340 = load i32, i32* %16
%341 = load i32, i32* %10
%342 = icmp slt i32 %340, %341
br i1 %342, label %343, label %373
343: ; preds = %339
store i32 0, i32* %17
br label %344
344: ; preds = %366, %343
%345 = load i32, i32* %17
%346 = load i32, i32* %11
%347 = icmp slt i32 %345, %346
br i1 %347, label %348, label %369
348: ; preds = %344
%349 = load double**, double*** %2
%350 = load i32, i32* %16
%351 = sext i32 %350 to i64
%352 = getelementptr inbounds double*, double** %349, i64 %351
%353 = load double*, double** %352
%354 = load i32, i32* %17
%355 = sext i32 %354 to i64
%356 = getelementptr inbounds double, double* %353, i64 %355
%357 = load double, double* %356
%358 = load double**, double*** %5
%359 = load i32, i32* %17
%360 = sext i32 %359 to i64
%361 = getelementptr inbounds double*, double** %358, i64 %360
%362 = load double*, double** %361
%363 = load i32, i32* %16
%364 = sext i32 %363 to i64
%365 = getelementptr inbounds double, double* %362, i64 %364
store double %357, double* %365
br label %366
366: ; preds = %348
%367 = load i32, i32* %17
%368 = add nsw i32 %367, 1
store i32 %368, i32* %17
br label %344
369: ; preds = %344
br label %370
370: ; preds = %369
%371 = load i32, i32* %16
%372 = add nsw i32 %371, 1
store i32 %372, i32* %16
br label %339
373: ; preds = %339
%374 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
store i32* %374, i32** %9
%375 = load i32*, i32** %9
%376 = load i32, i32* %11
%377 = sitofp i32 %376 to double
%378 = load i32, i32* %10
%379 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %375, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), double %377, i32 %378)
store i32 0, i32* %16
br label %380
380: ; preds = %417, %373
%381 = load i32, i32* %16
%382 = load i32, i32* %11
%383 = icmp slt i32 %381, %382
br i1 %383, label %384, label %420
384: ; preds = %380
store i32 0, i32* %17
br label %385
385: ; preds = %402, %384
%386 = load i32, i32* %17
%387 = load i32, i32* %10
%388 = sub nsw i32 %387, 1
%389 = icmp slt i32 %386, %388
br i1 %389, label %390, label %405
390: ; preds = %385
%391 = load i32*, i32** %9
%392 = load double**, double*** %5
%393 = load i32, i32* %16
%394 = sext i32 %393 to i64
%395 = getelementptr inbounds double*, double** %392, i64 %394
%396 = load double*, double** %395
%397 = load i32, i32* %17
%398 = sext i32 %397 to i64
%399 = getelementptr inbounds double, double* %396, i64 %398
%400 = load double, double* %399
%401 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %391, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %400)
br label %402
402: ; preds = %390
%403 = load i32, i32* %17
%404 = add nsw i32 %403, 1
store i32 %404, i32* %17
br label %385
405: ; preds = %385
%406 = load i32*, i32** %9
%407 = load double**, double*** %5
%408 = load i32, i32* %16
%409 = sext i32 %408 to i64
%410 = getelementptr inbounds double*, double** %407, i64 %409
%411 = load double*, double** %410
%412 = load i32, i32* %17
%413 = sext i32 %412 to i64
%414 = getelementptr inbounds double, double* %411, i64 %413
%415 = load double, double* %414
%416 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %406, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), double %415)
br label %417
417: ; preds = %405
%418 = load i32, i32* %16
%419 = add nsw i32 %418, 1
store i32 %419, i32* %16
br label %380
420: ; preds = %380
%421 = load i32*, i32** %9
%422 = call i32 @fclose(i32* %421)
%423 = load i32, i32* %14
%424 = sext i32 %423 to i64
%425 = mul i64 %424, 8
%426 = trunc i64 %425 to i32
%427 = call i64 @malloc(i32 %426)
%428 = inttoptr i64 %427 to double**
store double** %428, double*** %6
store i32 0, i32* %16
br label %429
429: ; preds = %444, %420
%430 = load i32, i32* %16
%431 = load i32, i32* %14
%432 = icmp slt i32 %430, %431
br i1 %432, label %433, label %447
433: ; preds = %429
%434 = load i32, i32* %15
%435 = sext i32 %434 to i64
%436 = mul i64 %435, 8
%437 = trunc i64 %436 to i32
%438 = call i64 @malloc(i32 %437)
%439 = inttoptr i64 %438 to double*
%440 = load double**, double*** %6
%441 = load i32, i32* %16
%442 = sext i32 %441 to i64
%443 = getelementptr inbounds double*, double** %440, i64 %442
store double* %439, double** %443
br label %444
444: ; preds = %433
%445 = load i32, i32* %16
%446 = add nsw i32 %445, 1
store i32 %446, i32* %16
br label %429
447: ; preds = %429
store i32 0, i32* %16
br label %448
448: ; preds = %481, %447
%449 = load i32, i32* %16
%450 = load i32, i32* %14
%451 = icmp slt i32 %449, %450
br i1 %451, label %452, label %484
452: ; preds = %448
store i32 0, i32* %17
br label %453
453: ; preds = %477, %452
%454 = load i32, i32* %17
%455 = load i32, i32* %15
%456 = icmp slt i32 %454, %455
br i1 %456, label %457, label %480
457: ; preds = %453
%458 = load double*, double** %7
%459 = load i32, i32* %16
%460 = sext i32 %459 to i64
%461 = getelementptr inbounds double, double* %458, i64 %460
%462 = load double, double* %461
%463 = load double*, double** %8
%464 = load i32, i32* %17
%465 = sext i32 %464 to i64
%466 = getelementptr inbounds double, double* %463, i64 %465
%467 = load double, double* %466
%468 = fmul double %462, %467
%469 = load double**, double*** %6
%470 = load i32, i32* %16
%471 = sext i32 %470 to i64
%472 = getelementptr inbounds double*, double** %469, i64 %471
%473 = load double*, double** %472
%474 = load i32, i32* %17
%475 = sext i32 %474 to i64
%476 = getelementptr inbounds double, double* %473, i64 %475
store double %468, double* %476
br label %477
477: ; preds = %457
%478 = load i32, i32* %17
%479 = add nsw i32 %478, 1
store i32 %479, i32* %17
br label %453
480: ; preds = %453
br label %481
481: ; preds = %480
%482 = load i32, i32* %16
%483 = add nsw i32 %482, 1
store i32 %483, i32* %16
br label %448
484: ; preds = %448
%485 = call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
store i32* %485, i32** %9
%486 = load i32*, i32** %9
%487 = load i32, i32* %14
%488 = sitofp i32 %487 to double
%489 = load i32, i32* %15
%490 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %486, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), double %488, i32 %489)
store i32 0, i32* %16
br label %491
491: ; preds = %528, %484
%492 = load i32, i32* %16
%493 = load i32, i32* %14
%494 = icmp slt i32 %492, %493
br i1 %494, label %495, label %531
495: ; preds = %491
store i32 0, i32* %17
br label %496
496: ; preds = %513, %495
%497 = load i32, i32* %17
%498 = load i32, i32* %15
%499 = sub nsw i32 %498, 1
%500 = icmp slt i32 %497, %499
br i1 %500, label %501, label %516
501: ; preds = %496
%502 = load i32*, i32** %9
%503 = load double**, double*** %6
%504 = load i32, i32* %16
%505 = sext i32 %504 to i64
%506 = getelementptr inbounds double*, double** %503, i64 %505
%507 = load double*, double** %506
%508 = load i32, i32* %17
%509 = sext i32 %508 to i64
%510 = getelementptr inbounds double, double* %507, i64 %509
%511 = load double, double* %510
%512 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %502, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %511)
br label %513
513: ; preds = %501
%514 = load i32, i32* %17
%515 = add nsw i32 %514, 1
store i32 %515, i32* %17
br label %496
516: ; preds = %496
%517 = load i32*, i32** %9
%518 = load double**, double*** %6
%519 = load i32, i32* %16
%520 = sext i32 %519 to i64
%521 = getelementptr inbounds double*, double** %518, i64 %520
%522 = load double*, double** %521
%523 = load i32, i32* %17
%524 = sext i32 %523 to i64
%525 = getelementptr inbounds double, double* %522, i64 %524
%526 = load double, double* %525
%527 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %517, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), double %526)
br label %528
528: ; preds = %516
%529 = load i32, i32* %16
%530 = add nsw i32 %529, 1
store i32 %530, i32* %16
br label %491
531: ; preds = %491
%532 = load i32*, i32** %9
%533 = call i32 @fclose(i32* %532)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"matriz1.csv\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [6 x i8] c"%d;%d\00"
@.str.3 = [5 x i8] c"%lf;\00"
@.str.4 = [12 x i8] c"matriz2.csv\00"
@.str.5 = [11 x i8] c"vetor1.csv\00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [11 x i8] c"vetor2.csv\00"
@.str.8 = [15 x i8] c"somaMatriz.csv\00"
@.str.9 = [3 x i8] c"w+\00"
@.str.10 = [7 x i8] c"%d;%d\0A\00"
@.str.11 = [5 x i8] c"%lf\0A\00"
@.str.12 = [15 x i8] c"transposta.csv\00"
@.str.13 = [19 x i8] c"produtoexterno.csv\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %1 to i8*
%8 = bitcast i32* %2 to i8*
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = tail call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 (i32*, i8*, ...) @fscanf(i32* %13, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32* %1, i32* %2)
%15 = load i32, i32* %1
%16 = shl i32 %15, 3
%17 = call i64 @malloc(i32 %16)
%18 = inttoptr i64 %17 to double**
%19 = load i32, i32* %1
%20 = icmp sgt i32 %19, 0
br i1 %20, label %25, label %60
21: ; preds = %25
%22 = icmp sgt i32 %33, 0
br i1 %22, label %23, label %60
23: ; preds = %21
%24 = load i32, i32* %2
br label %36
25: ; preds = %0, %25
%26 = phi i64 [ %32, %25 ], [ 0, %0 ]
%27 = load i32, i32* %2
%28 = shl i32 %27, 3
%29 = call i64 @malloc(i32 %28)
%30 = inttoptr i64 %29 to double*
%31 = getelementptr inbounds double*, double** %18, i64 %26
store double* %30, double** %31
%32 = add nuw nsw i64 %26, 1
%33 = load i32, i32* %1
%34 = sext i32 %33 to i64
%35 = icmp slt i64 %32, %34
br i1 %35, label %25, label %21
36: ; preds = %23, %54
%37 = phi i32 [ %33, %23 ], [ %55, %54 ]
%38 = phi i32 [ %24, %23 ], [ %56, %54 ]
%39 = phi i64 [ 0, %23 ], [ %57, %54 ]
%40 = icmp sgt i32 %38, 0
br i1 %40, label %41, label %54
41: ; preds = %36
%42 = getelementptr inbounds double*, double** %18, i64 %39
br label %43
43: ; preds = %41, %43
%44 = phi i64 [ 0, %41 ], [ %48, %43 ]
%45 = load double*, double** %42
%46 = getelementptr inbounds double, double* %45, i64 %44
%47 = call i32 (i32*, i8*, ...) @fscanf(i32* %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double* %46)
%48 = add nuw nsw i64 %44, 1
%49 = load i32, i32* %2
%50 = sext i32 %49 to i64
%51 = icmp slt i64 %48, %50
br i1 %51, label %43, label %52
52: ; preds = %43
%53 = load i32, i32* %1
br label %54
54: ; preds = %52, %36
%55 = phi i32 [ %53, %52 ], [ %37, %36 ]
%56 = phi i32 [ %49, %52 ], [ %38, %36 ]
%57 = add nuw nsw i64 %39, 1
%58 = sext i32 %55 to i64
%59 = icmp slt i64 %57, %58
br i1 %59, label %36, label %60
60: ; preds = %54, %0, %21
%61 = call i32 @fclose(i32* %13)
%62 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%63 = call i32 (i32*, i8*, ...) @fscanf(i32* %62, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32* %3, i32* %4)
%64 = load i32, i32* %1
%65 = shl i32 %64, 3
%66 = call i64 @malloc(i32 %65)
%67 = inttoptr i64 %66 to double**
%68 = load i32, i32* %3
%69 = icmp sgt i32 %68, 0
br i1 %69, label %74, label %109
70: ; preds = %74
%71 = icmp sgt i32 %82, 0
br i1 %71, label %72, label %109
72: ; preds = %70
%73 = load i32, i32* %4
br label %85
74: ; preds = %60, %74
%75 = phi i64 [ %81, %74 ], [ 0, %60 ]
%76 = load i32, i32* %4
%77 = shl i32 %76, 3
%78 = call i64 @malloc(i32 %77)
%79 = inttoptr i64 %78 to double*
%80 = getelementptr inbounds double*, double** %67, i64 %75
store double* %79, double** %80
%81 = add nuw nsw i64 %75, 1
%82 = load i32, i32* %3
%83 = sext i32 %82 to i64
%84 = icmp slt i64 %81, %83
br i1 %84, label %74, label %70
85: ; preds = %72, %103
%86 = phi i32 [ %82, %72 ], [ %104, %103 ]
%87 = phi i32 [ %73, %72 ], [ %105, %103 ]
%88 = phi i64 [ 0, %72 ], [ %106, %103 ]
%89 = icmp sgt i32 %87, 0
br i1 %89, label %90, label %103
90: ; preds = %85
%91 = getelementptr inbounds double*, double** %67, i64 %88
br label %92
92: ; preds = %90, %92
%93 = phi i64 [ 0, %90 ], [ %97, %92 ]
%94 = load double*, double** %91
%95 = getelementptr inbounds double, double* %94, i64 %93
%96 = call i32 (i32*, i8*, ...) @fscanf(i32* %62, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double* %95)
%97 = add nuw nsw i64 %93, 1
%98 = load i32, i32* %4
%99 = sext i32 %98 to i64
%100 = icmp slt i64 %97, %99
br i1 %100, label %92, label %101
101: ; preds = %92
%102 = load i32, i32* %3
br label %103
103: ; preds = %101, %85
%104 = phi i32 [ %102, %101 ], [ %86, %85 ]
%105 = phi i32 [ %98, %101 ], [ %87, %85 ]
%106 = add nuw nsw i64 %88, 1
%107 = sext i32 %104 to i64
%108 = icmp slt i64 %106, %107
br i1 %108, label %85, label %109
109: ; preds = %103, %60, %70
%110 = call i32 @fclose(i32* %62)
%111 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%112 = call i32 (i32*, i8*, ...) @fscanf(i32* %111, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %5)
%113 = load i32, i32* %5
%114 = shl i32 %113, 3
%115 = call i64 @malloc(i32 %114)
%116 = inttoptr i64 %115 to double*
%117 = load i32, i32* %5
%118 = icmp sgt i32 %117, 0
br i1 %118, label %119, label %127
119: ; preds = %109, %119
%120 = phi i64 [ %123, %119 ], [ 0, %109 ]
%121 = getelementptr inbounds double, double* %116, i64 %120
%122 = call i32 (i32*, i8*, ...) @fscanf(i32* %111, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double* %121)
%123 = add nuw nsw i64 %120, 1
%124 = load i32, i32* %5
%125 = sext i32 %124 to i64
%126 = icmp slt i64 %123, %125
br i1 %126, label %119, label %127
127: ; preds = %119, %109
%128 = call i32 @fclose(i32* %111)
%129 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%130 = call i32 (i32*, i8*, ...) @fscanf(i32* %129, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %6)
%131 = load i32, i32* %6
%132 = shl i32 %131, 3
%133 = call i64 @malloc(i32 %132)
%134 = inttoptr i64 %133 to double*
%135 = inttoptr i64 %133 to i8*
%136 = load i32, i32* %6
%137 = icmp sgt i32 %136, 0
br i1 %137, label %138, label %146
138: ; preds = %127, %138
%139 = phi i64 [ %142, %138 ], [ 0, %127 ]
%140 = getelementptr inbounds double, double* %134, i64 %139
%141 = call i32 (i32*, i8*, ...) @fscanf(i32* %129, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double* %140)
%142 = add nuw nsw i64 %139, 1
%143 = load i32, i32* %6
%144 = sext i32 %143 to i64
%145 = icmp slt i64 %142, %144
br i1 %145, label %138, label %146
146: ; preds = %138, %127
%147 = call i32 @fclose(i32* %129)
%148 = load i32, i32* %1
%149 = load i32, i32* %3
%150 = icmp eq i32 %148, %149
br i1 %150, label %151, label %370
151: ; preds = %146
%152 = load i32, i32* %2
%153 = load i32, i32* %4
%154 = icmp eq i32 %152, %153
br i1 %154, label %155, label %370
155: ; preds = %151
%156 = shl i32 %148, 3
%157 = call i64 @malloc(i32 %156)
%158 = inttoptr i64 %157 to double**
%159 = load i32, i32* %1
%160 = icmp sgt i32 %159, 0
br i1 %160, label %181, label %331
161: ; preds = %181
%162 = icmp sgt i32 %189, 0
br i1 %162, label %163, label %331
163: ; preds = %161
%164 = load i32, i32* %2
%165 = icmp sgt i32 %164, 0
%166 = zext i32 %189 to i64
%167 = zext i32 %164 to i64
%168 = and i64 %167, 4294967292
%169 = add nsw i64 %168, -4
%170 = lshr exact i64 %169, 2
%171 = add nuw nsw i64 %170, 1
%172 = icmp ult i32 %164, 4
%173 = and i64 %167, 4294967292
%174 = and i64 %171, 1
%175 = icmp eq i64 %169, 0
%176 = and i64 %171, 9223372036854775806
%177 = icmp eq i64 %174, 0
%178 = icmp eq i64 %173, %167
%179 = and i64 %167, 3
%180 = icmp eq i64 %179, 0
br label %192
181: ; preds = %155, %181
%182 = phi i64 [ %188, %181 ], [ 0, %155 ]
%183 = load i32, i32* %2
%184 = shl i32 %183, 3
%185 = call i64 @malloc(i32 %184)
%186 = inttoptr i64 %185 to double*
%187 = getelementptr inbounds double*, double** %158, i64 %182
store double* %186, double** %187
%188 = add nuw nsw i64 %182, 1
%189 = load i32, i32* %1
%190 = sext i32 %189 to i64
%191 = icmp slt i64 %188, %190
br i1 %191, label %181, label %161
192: ; preds = %163, %328
%193 = phi i64 [ 0, %163 ], [ %329, %328 ]
br i1 %165, label %194, label %328
194: ; preds = %192
%195 = getelementptr inbounds double*, double** %18, i64 %193
%196 = load double*, double** %195
%197 = getelementptr inbounds double*, double** %67, i64 %193
%198 = load double*, double** %197
%199 = getelementptr inbounds double*, double** %158, i64 %193
%200 = load double*, double** %199
br i1 %172, label %278, label %201
201: ; preds = %194
%202 = getelementptr double, double* %200, i64 %167
%203 = getelementptr double, double* %196, i64 %167
%204 = getelementptr double, double* %198, i64 %167
%205 = icmp ult double* %200, %203
%206 = icmp ult double* %196, %202
%207 = and i1 %205, %206
%208 = icmp ult double* %200, %204
%209 = icmp ult double* %198, %202
%210 = and i1 %208, %209
%211 = or i1 %207, %210
br i1 %211, label %278, label %212
212: ; preds = %201
br i1 %175, label %256, label %213
213: ; preds = %212, %213
%214 = phi i64 [ %253, %213 ], [ 0, %212 ]
%215 = phi i64 [ %254, %213 ], [ 0, %212 ]
%216 = getelementptr inbounds double, double* %196, i64 %214
%217 = bitcast double* %216 to <2 x double>*
%218 = load <2 x double>, <2 x double>* %217
%219 = getelementptr inbounds double, double* %216, i64 2
%220 = bitcast double* %219 to <2 x double>*
%221 = load <2 x double>, <2 x double>* %220
%222 = getelementptr inbounds double, double* %198, i64 %214
%223 = bitcast double* %222 to <2 x double>*
%224 = load <2 x double>, <2 x double>* %223
%225 = getelementptr inbounds double, double* %222, i64 2
%226 = bitcast double* %225 to <2 x double>*
%227 = load <2 x double>, <2 x double>* %226
%228 = fadd <2 x double> %218, %224
%229 = fadd <2 x double> %221, %227
%230 = getelementptr inbounds double, double* %200, i64 %214
%231 = bitcast double* %230 to <2 x double>*
store <2 x double> %228, <2 x double>* %231
%232 = getelementptr inbounds double, double* %230, i64 2
%233 = bitcast double* %232 to <2 x double>*
store <2 x double> %229, <2 x double>* %233
%234 = or i64 %214, 4
%235 = getelementptr inbounds double, double* %196, i64 %234
%236 = bitcast double* %235 to <2 x double>*
%237 = load <2 x double>, <2 x double>* %236
%238 = getelementptr inbounds double, double* %235, i64 2
%239 = bitcast double* %238 to <2 x double>*
%240 = load <2 x double>, <2 x double>* %239
%241 = getelementptr inbounds double, double* %198, i64 %234
%242 = bitcast double* %241 to <2 x double>*
%243 = load <2 x double>, <2 x double>* %242
%244 = getelementptr inbounds double, double* %241, i64 2
%245 = bitcast double* %244 to <2 x double>*
%246 = load <2 x double>, <2 x double>* %245
%247 = fadd <2 x double> %237, %243
%248 = fadd <2 x double> %240, %246
%249 = getelementptr inbounds double, double* %200, i64 %234
%250 = bitcast double* %249 to <2 x double>*
store <2 x double> %247, <2 x double>* %250
%251 = getelementptr inbounds double, double* %249, i64 2
%252 = bitcast double* %251 to <2 x double>*
store <2 x double> %248, <2 x double>* %252
%253 = add nuw i64 %214, 8
%254 = add i64 %215, 2
%255 = icmp eq i64 %254, %176
br i1 %255, label %256, label %213
256: ; preds = %213, %212
%257 = phi i64 [ 0, %212 ], [ %253, %213 ]
br i1 %177, label %277, label %258
258: ; preds = %256
%259 = getelementptr inbounds double, double* %196, i64 %257
%260 = bitcast double* %259 to <2 x double>*
%261 = load <2 x double>, <2 x double>* %260
%262 = getelementptr inbounds double, double* %259, i64 2
%263 = bitcast double* %262 to <2 x double>*
%264 = load <2 x double>, <2 x double>* %263
%265 = getelementptr inbounds double, double* %198, i64 %257
%266 = bitcast double* %265 to <2 x double>*
%267 = load <2 x double>, <2 x double>* %266
%268 = getelementptr inbounds double, double* %265, i64 2
%269 = bitcast double* %268 to <2 x double>*
%270 = load <2 x double>, <2 x double>* %269
%271 = fadd <2 x double> %261, %267
%272 = fadd <2 x double> %264, %270
%273 = getelementptr inbounds double, double* %200, i64 %257
%274 = bitcast double* %273 to <2 x double>*
store <2 x double> %271, <2 x double>* %274
%275 = getelementptr inbounds double, double* %273, i64 2
%276 = bitcast double* %275 to <2 x double>*
store <2 x double> %272, <2 x double>* %276
br label %277
277: ; preds = %256, %258
br i1 %178, label %328, label %278
278: ; preds = %201, %194, %277
%279 = phi i64 [ 0, %201 ], [ 0, %194 ], [ %173, %277 ]
%280 = xor i64 %279, -1
%281 = add nsw i64 %280, %167
br i1 %180, label %294, label %282
282: ; preds = %278, %282
%283 = phi i64 [ %291, %282 ], [ %279, %278 ]
%284 = phi i64 [ %292, %282 ], [ 0, %278 ]
%285 = getelementptr inbounds double, double* %196, i64 %283
%286 = load double, double* %285
%287 = getelementptr inbounds double, double* %198, i64 %283
%288 = load double, double* %287
%289 = fadd double %286, %288
%290 = getelementptr inbounds double, double* %200, i64 %283
store double %289, double* %290
%291 = add nuw nsw i64 %283, 1
%292 = add i64 %284, 1
%293 = icmp eq i64 %292, %179
br i1 %293, label %294, label %282
294: ; preds = %282, %278
%295 = phi i64 [ %279, %278 ], [ %291, %282 ]
%296 = icmp ult i64 %281, 3
br i1 %296, label %328, label %297
297: ; preds = %294, %297
%298 = phi i64 [ %326, %297 ], [ %295, %294 ]
%299 = getelementptr inbounds double, double* %196, i64 %298
%300 = load double, double* %299
%301 = getelementptr inbounds double, double* %198, i64 %298
%302 = load double, double* %301
%303 = fadd double %300, %302
%304 = getelementptr inbounds double, double* %200, i64 %298
store double %303, double* %304
%305 = add nuw nsw i64 %298, 1
%306 = getelementptr inbounds double, double* %196, i64 %305
%307 = load double, double* %306
%308 = getelementptr inbounds double, double* %198, i64 %305
%309 = load double, double* %308
%310 = fadd double %307, %309
%311 = getelementptr inbounds double, double* %200, i64 %305
store double %310, double* %311
%312 = add nuw nsw i64 %298, 2
%313 = getelementptr inbounds double, double* %196, i64 %312
%314 = load double, double* %313
%315 = getelementptr inbounds double, double* %198, i64 %312
%316 = load double, double* %315
%317 = fadd double %314, %316
%318 = getelementptr inbounds double, double* %200, i64 %312
store double %317, double* %318
%319 = add nuw nsw i64 %298, 3
%320 = getelementptr inbounds double, double* %196, i64 %319
%321 = load double, double* %320
%322 = getelementptr inbounds double, double* %198, i64 %319
%323 = load double, double* %322
%324 = fadd double %321, %323
%325 = getelementptr inbounds double, double* %200, i64 %319
store double %324, double* %325
%326 = add nuw nsw i64 %298, 4
%327 = icmp eq i64 %326, %167
br i1 %327, label %328, label %297
328: ; preds = %294, %297, %277, %192
%329 = add nuw nsw i64 %193, 1
%330 = icmp eq i64 %329, %166
br i1 %330, label %331, label %192
331: ; preds = %328, %155, %161
%332 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%333 = load i32, i32* %1
%334 = sitofp i32 %333 to double
%335 = load i32, i32* %2
%336 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %332, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), double %334, i32 %335)
%337 = load i32, i32* %1
%338 = icmp sgt i32 %337, 0
br i1 %338, label %339, label %368
339: ; preds = %331, %356
%340 = phi i64 [ %364, %356 ], [ 0, %331 ]
%341 = load i32, i32* %2
%342 = icmp sgt i32 %341, 1
br i1 %342, label %343, label %356
343: ; preds = %339
%344 = getelementptr inbounds double*, double** %158, i64 %340
br label %345
345: ; preds = %343, %345
%346 = phi i64 [ 0, %343 ], [ %351, %345 ]
%347 = load double*, double** %344
%348 = getelementptr inbounds double, double* %347, i64 %346
%349 = load double, double* %348
%350 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %332, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %349)
%351 = add nuw nsw i64 %346, 1
%352 = load i32, i32* %2
%353 = add nsw i32 %352, -1
%354 = sext i32 %353 to i64
%355 = icmp slt i64 %351, %354
br i1 %355, label %345, label %356
356: ; preds = %345, %339
%357 = phi i64 [ 0, %339 ], [ %351, %345 ]
%358 = getelementptr inbounds double*, double** %158, i64 %340
%359 = load double*, double** %358
%360 = and i64 %357, 4294967295
%361 = getelementptr inbounds double, double* %359, i64 %360
%362 = load double, double* %361
%363 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %332, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), double %362)
%364 = add nuw nsw i64 %340, 1
%365 = load i32, i32* %1
%366 = sext i32 %365 to i64
%367 = icmp slt i64 %364, %366
br i1 %367, label %339, label %368
368: ; preds = %356, %331
%369 = call i32 @fclose(i32* %332)
br label %370
370: ; preds = %368, %151, %146
%371 = load i32, i32* %2
%372 = shl i32 %371, 3
%373 = call i64 @malloc(i32 %372)
%374 = inttoptr i64 %373 to double**
%375 = load i32, i32* %2
%376 = icmp sgt i32 %375, 0
br i1 %376, label %390, label %377
377: ; preds = %390, %370
%378 = phi i32 [ %375, %370 ], [ %398, %390 ]
%379 = load i32, i32* %1
%380 = icmp sgt i32 %379, 0
br i1 %380, label %381, label %451
381: ; preds = %377
%382 = icmp sgt i32 %378, 0
%383 = zext i32 %379 to i64
%384 = zext i32 %378 to i64
%385 = add nsw i64 %384, -1
%386 = and i64 %384, 3
%387 = icmp ult i64 %385, 3
%388 = and i64 %384, 4294967292
%389 = icmp eq i64 %386, 0
br label %401
390: ; preds = %370, %390
%391 = phi i64 [ %397, %390 ], [ 0, %370 ]
%392 = load i32, i32* %1
%393 = shl i32 %392, 3
%394 = call i64 @malloc(i32 %393)
%395 = inttoptr i64 %394 to double*
%396 = getelementptr inbounds double*, double** %374, i64 %391
store double* %395, double** %396
%397 = add nuw nsw i64 %391, 1
%398 = load i32, i32* %2
%399 = sext i32 %398 to i64
%400 = icmp slt i64 %397, %399
br i1 %400, label %390, label %377
401: ; preds = %381, %448
%402 = phi i64 [ 0, %381 ], [ %449, %448 ]
br i1 %382, label %403, label %448
403: ; preds = %401
%404 = getelementptr inbounds double*, double** %18, i64 %402
%405 = load double*, double** %404
br i1 %387, label %435, label %406
406: ; preds = %403, %406
%407 = phi i64 [ %432, %406 ], [ 0, %403 ]
%408 = phi i64 [ %433, %406 ], [ 0, %403 ]
%409 = getelementptr inbounds double, double* %405, i64 %407
%410 = load double, double* %409
%411 = getelementptr inbounds double*, double** %374, i64 %407
%412 = load double*, double** %411
%413 = getelementptr inbounds double, double* %412, i64 %402
store double %410, double* %413
%414 = or i64 %407, 1
%415 = getelementptr inbounds double, double* %405, i64 %414
%416 = load double, double* %415
%417 = getelementptr inbounds double*, double** %374, i64 %414
%418 = load double*, double** %417
%419 = getelementptr inbounds double, double* %418, i64 %402
store double %416, double* %419
%420 = or i64 %407, 2
%421 = getelementptr inbounds double, double* %405, i64 %420
%422 = load double, double* %421
%423 = getelementptr inbounds double*, double** %374, i64 %420
%424 = load double*, double** %423
%425 = getelementptr inbounds double, double* %424, i64 %402
store double %422, double* %425
%426 = or i64 %407, 3
%427 = getelementptr inbounds double, double* %405, i64 %426
%428 = load double, double* %427
%429 = getelementptr inbounds double*, double** %374, i64 %426
%430 = load double*, double** %429
%431 = getelementptr inbounds double, double* %430, i64 %402
store double %428, double* %431
%432 = add nuw nsw i64 %407, 4
%433 = add i64 %408, 4
%434 = icmp eq i64 %433, %388
br i1 %434, label %435, label %406
435: ; preds = %406, %403
%436 = phi i64 [ 0, %403 ], [ %432, %406 ]
br i1 %389, label %448, label %437
437: ; preds = %435, %437
%438 = phi i64 [ %445, %437 ], [ %436, %435 ]
%439 = phi i64 [ %446, %437 ], [ 0, %435 ]
%440 = getelementptr inbounds double, double* %405, i64 %438
%441 = load double, double* %440
%442 = getelementptr inbounds double*, double** %374, i64 %438
%443 = load double*, double** %442
%444 = getelementptr inbounds double, double* %443, i64 %402
store double %441, double* %444
%445 = add nuw nsw i64 %438, 1
%446 = add i64 %439, 1
%447 = icmp eq i64 %446, %386
br i1 %447, label %448, label %437
448: ; preds = %435, %437, %401
%449 = add nuw nsw i64 %402, 1
%450 = icmp eq i64 %449, %383
br i1 %450, label %451, label %401
451: ; preds = %448, %377
%452 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%453 = load i32, i32* %2
%454 = sitofp i32 %453 to double
%455 = load i32, i32* %1
%456 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %452, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), double %454, i32 %455)
%457 = load i32, i32* %2
%458 = icmp sgt i32 %457, 0
br i1 %458, label %459, label %488
459: ; preds = %451, %476
%460 = phi i64 [ %484, %476 ], [ 0, %451 ]
%461 = load i32, i32* %1
%462 = icmp sgt i32 %461, 1
br i1 %462, label %463, label %476
463: ; preds = %459
%464 = getelementptr inbounds double*, double** %374, i64 %460
br label %465
465: ; preds = %463, %465
%466 = phi i64 [ 0, %463 ], [ %471, %465 ]
%467 = load double*, double** %464
%468 = getelementptr inbounds double, double* %467, i64 %466
%469 = load double, double* %468
%470 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %452, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %469)
%471 = add nuw nsw i64 %466, 1
%472 = load i32, i32* %1
%473 = add nsw i32 %472, -1
%474 = sext i32 %473 to i64
%475 = icmp slt i64 %471, %474
br i1 %475, label %465, label %476
476: ; preds = %465, %459
%477 = phi i64 [ 0, %459 ], [ %471, %465 ]
%478 = getelementptr inbounds double*, double** %374, i64 %460
%479 = load double*, double** %478
%480 = and i64 %477, 4294967295
%481 = getelementptr inbounds double, double* %479, i64 %480
%482 = load double, double* %481
%483 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %452, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), double %482)
%484 = add nuw nsw i64 %460, 1
%485 = load i32, i32* %2
%486 = sext i32 %485 to i64
%487 = icmp slt i64 %484, %486
br i1 %487, label %459, label %488
488: ; preds = %476, %451
%489 = call i32 @fclose(i32* %452)
%490 = load i32, i32* %5
%491 = shl i32 %490, 3
%492 = call i64 @malloc(i32 %491)
%493 = inttoptr i64 %492 to double**
%494 = load i32, i32* %5
%495 = icmp sgt i32 %494, 0
br i1 %495, label %517, label %659
496: ; preds = %517
%497 = icmp sgt i32 %525, 0
br i1 %497, label %498, label %659
498: ; preds = %496
%499 = load i32, i32* %6
%500 = icmp sgt i32 %499, 0
%501 = zext i32 %525 to i64
%502 = zext i32 %499 to i64
%503 = getelementptr double, double* %134, i64 %502
%504 = and i64 %502, 4294967292
%505 = add nsw i64 %504, -4
%506 = lshr exact i64 %505, 2
%507 = add nuw nsw i64 %506, 1
%508 = icmp ult i32 %499, 4
%509 = and i64 %502, 4294967292
%510 = and i64 %507, 1
%511 = icmp eq i64 %505, 0
%512 = and i64 %507, 9223372036854775806
%513 = icmp eq i64 %510, 0
%514 = icmp eq i64 %509, %502
%515 = and i64 %502, 3
%516 = icmp eq i64 %515, 0
br label %528
517: ; preds = %488, %517
%518 = phi i64 [ %524, %517 ], [ 0, %488 ]
%519 = load i32, i32* %6
%520 = shl i32 %519, 3
%521 = call i64 @malloc(i32 %520)
%522 = inttoptr i64 %521 to double*
%523 = getelementptr inbounds double*, double** %493, i64 %518
store double* %522, double** %523
%524 = add nuw nsw i64 %518, 1
%525 = load i32, i32* %5
%526 = sext i32 %525 to i64
%527 = icmp slt i64 %524, %526
br i1 %527, label %517, label %496
528: ; preds = %498, %656
%529 = phi i64 [ 0, %498 ], [ %657, %656 ]
%530 = getelementptr double, double* %116, i64 %529
%531 = add nuw i64 %529, 1
%532 = getelementptr double, double* %116, i64 %531
br i1 %500, label %533, label %656
533: ; preds = %528
%534 = getelementptr inbounds double, double* %116, i64 %529
%535 = getelementptr inbounds double*, double** %493, i64 %529
%536 = load double*, double** %535
br i1 %508, label %611, label %537
537: ; preds = %533
%538 = getelementptr double, double* %536, i64 %502
%539 = bitcast double* %538 to i8*
%540 = icmp ult double* %536, %532
%541 = icmp ult double* %530, %538
%542 = and i1 %540, %541
%543 = icmp ult double* %536, %503
%544 = icmp ult i8* %135, %539
%545 = and i1 %543, %544
%546 = or i1 %542, %545
br i1 %546, label %611, label %547
547: ; preds = %537
br i1 %511, label %590, label %548
548: ; preds = %547
%549 = load double, double* %534
%550 = insertelement <2 x double> poison, double %549, i64 0
%551 = shufflevector <2 x double> %550, <2 x double> poison, <2 x i32> zeroinitializer
%552 = insertelement <2 x double> poison, double %549, i64 0
%553 = shufflevector <2 x double> %552, <2 x double> poison, <2 x i32> zeroinitializer
%554 = load double, double* %534
%555 = insertelement <2 x double> poison, double %554, i64 0
%556 = shufflevector <2 x double> %555, <2 x double> poison, <2 x i32> zeroinitializer
%557 = insertelement <2 x double> poison, double %554, i64 0
%558 = shufflevector <2 x double> %557, <2 x double> poison, <2 x i32> zeroinitializer
br label %559
559: ; preds = %559, %548
%560 = phi i64 [ 0, %548 ], [ %587, %559 ]
%561 = phi i64 [ 0, %548 ], [ %588, %559 ]
%562 = getelementptr inbounds double, double* %134, i64 %560
%563 = bitcast double* %562 to <2 x double>*
%564 = load <2 x double>, <2 x double>* %563
%565 = getelementptr inbounds double, double* %562, i64 2
%566 = bitcast double* %565 to <2 x double>*
%567 = load <2 x double>, <2 x double>* %566
%568 = fmul <2 x double> %551, %564
%569 = fmul <2 x double> %553, %567
%570 = getelementptr inbounds double, double* %536, i64 %560
%571 = bitcast double* %570 to <2 x double>*
store <2 x double> %568, <2 x double>* %571
%572 = getelementptr inbounds double, double* %570, i64 2
%573 = bitcast double* %572 to <2 x double>*
store <2 x double> %569, <2 x double>* %573
%574 = or i64 %560, 4
%575 = getelementptr inbounds double, double* %134, i64 %574
%576 = bitcast double* %575 to <2 x double>*
%577 = load <2 x double>, <2 x double>* %576
%578 = getelementptr inbounds double, double* %575, i64 2
%579 = bitcast double* %578 to <2 x double>*
%580 = load <2 x double>, <2 x double>* %579
%581 = fmul <2 x double> %556, %577
%582 = fmul <2 x double> %558, %580
%583 = getelementptr inbounds double, double* %536, i64 %574
%584 = bitcast double* %583 to <2 x double>*
store <2 x double> %581, <2 x double>* %584
%585 = getelementptr inbounds double, double* %583, i64 2
%586 = bitcast double* %585 to <2 x double>*
store <2 x double> %582, <2 x double>* %586
%587 = add nuw i64 %560, 8
%588 = add i64 %561, 2
%589 = icmp eq i64 %588, %512
br i1 %589, label %590, label %559
590: ; preds = %559, %547
%591 = phi i64 [ 0, %547 ], [ %587, %559 ]
br i1 %513, label %610, label %592
592: ; preds = %590
%593 = load double, double* %534
%594 = insertelement <2 x double> poison, double %593, i64 0
%595 = shufflevector <2 x double> %594, <2 x double> poison, <2 x i32> zeroinitializer
%596 = insertelement <2 x double> poison, double %593, i64 0
%597 = shufflevector <2 x double> %596, <2 x double> poison, <2 x i32> zeroinitializer
%598 = getelementptr inbounds double, double* %134, i64 %591
%599 = bitcast double* %598 to <2 x double>*
%600 = load <2 x double>, <2 x double>* %599
%601 = getelementptr inbounds double, double* %598, i64 2
%602 = bitcast double* %601 to <2 x double>*
%603 = load <2 x double>, <2 x double>* %602
%604 = fmul <2 x double> %595, %600
%605 = fmul <2 x double> %597, %603
%606 = getelementptr inbounds double, double* %536, i64 %591
%607 = bitcast double* %606 to <2 x double>*
store <2 x double> %604, <2 x double>* %607
%608 = getelementptr inbounds double, double* %606, i64 2
%609 = bitcast double* %608 to <2 x double>*
store <2 x double> %605, <2 x double>* %609
br label %610
610: ; preds = %590, %592
br i1 %514, label %656, label %611
611: ; preds = %537, %533, %610
%612 = phi i64 [ 0, %537 ], [ 0, %533 ], [ %509, %610 ]
%613 = xor i64 %612, -1
%614 = add nsw i64 %613, %502
br i1 %516, label %626, label %615
615: ; preds = %611, %615
%616 = phi i64 [ %623, %615 ], [ %612, %611 ]
%617 = phi i64 [ %624, %615 ], [ 0, %611 ]
%618 = load double, double* %534
%619 = getelementptr inbounds double, double* %134, i64 %616
%620 = load double, double* %619
%621 = fmul double %618, %620
%622 = getelementptr inbounds double, double* %536, i64 %616
store double %621, double* %622
%623 = add nuw nsw i64 %616, 1
%624 = add i64 %617, 1
%625 = icmp eq i64 %624, %515
br i1 %625, label %626, label %615
626: ; preds = %615, %611
%627 = phi i64 [ %612, %611 ], [ %623, %615 ]
%628 = icmp ult i64 %614, 3
br i1 %628, label %656, label %629
629: ; preds = %626, %629
%630 = phi i64 [ %654, %629 ], [ %627, %626 ]
%631 = load double, double* %534
%632 = getelementptr inbounds double, double* %134, i64 %630
%633 = load double, double* %632
%634 = fmul double %631, %633
%635 = getelementptr inbounds double, double* %536, i64 %630
store double %634, double* %635
%636 = add nuw nsw i64 %630, 1
%637 = load double, double* %534
%638 = getelementptr inbounds double, double* %134, i64 %636
%639 = load double, double* %638
%640 = fmul double %637, %639
%641 = getelementptr inbounds double, double* %536, i64 %636
store double %640, double* %641
%642 = add nuw nsw i64 %630, 2
%643 = load double, double* %534
%644 = getelementptr inbounds double, double* %134, i64 %642
%645 = load double, double* %644
%646 = fmul double %643, %645
%647 = getelementptr inbounds double, double* %536, i64 %642
store double %646, double* %647
%648 = add nuw nsw i64 %630, 3
%649 = load double, double* %534
%650 = getelementptr inbounds double, double* %134, i64 %648
%651 = load double, double* %650
%652 = fmul double %649, %651
%653 = getelementptr inbounds double, double* %536, i64 %648
store double %652, double* %653
%654 = add nuw nsw i64 %630, 4
%655 = icmp eq i64 %654, %502
br i1 %655, label %656, label %629
656: ; preds = %626, %629, %610, %528
%657 = add nuw nsw i64 %529, 1
%658 = icmp eq i64 %657, %501
br i1 %658, label %659, label %528
659: ; preds = %656, %488, %496
%660 = call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%661 = load i32, i32* %5
%662 = sitofp i32 %661 to double
%663 = load i32, i32* %6
%664 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %660, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), double %662, i32 %663)
%665 = load i32, i32* %5
%666 = icmp sgt i32 %665, 0
br i1 %666, label %667, label %696
667: ; preds = %659, %684
%668 = phi i64 [ %692, %684 ], [ 0, %659 ]
%669 = load i32, i32* %6
%670 = icmp sgt i32 %669, 1
br i1 %670, label %671, label %684
671: ; preds = %667
%672 = getelementptr inbounds double*, double** %493, i64 %668
br label %673
673: ; preds = %671, %673
%674 = phi i64 [ 0, %671 ], [ %679, %673 ]
%675 = load double*, double** %672
%676 = getelementptr inbounds double, double* %675, i64 %674
%677 = load double, double* %676
%678 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %660, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %677)
%679 = add nuw nsw i64 %674, 1
%680 = load i32, i32* %6
%681 = add nsw i32 %680, -1
%682 = sext i32 %681 to i64
%683 = icmp slt i64 %679, %682
br i1 %683, label %673, label %684
684: ; preds = %673, %667
%685 = phi i64 [ 0, %667 ], [ %679, %673 ]
%686 = getelementptr inbounds double*, double** %493, i64 %668
%687 = load double*, double** %686
%688 = and i64 %685, 4294967295
%689 = getelementptr inbounds double, double* %687, i64 %688
%690 = load double, double* %689
%691 = call i32 (i32*, i8*, double, ...) @fprintf(i32* %660, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), double %690)
%692 = add nuw nsw i64 %668, 1
%693 = load i32, i32* %5
%694 = sext i32 %693 to i64
%695 = icmp slt i64 %692, %694
br i1 %695, label %667, label %696
696: ; preds = %684, %659
%697 = call i32 @fclose(i32* %660)
ret i32 0
}