#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 */
struct tms {
  int tms_utime;
  int tms_stime;
};
typedef unsigned int clock_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ _SC_CLK_TCK;
int atoi(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ free(double **);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
long sysconf(int /*<<< orphan*/);
unsigned int times(struct tms *);
int main(int argc, char **argv) {
  int largo = atoi(argv[4]);
  int i, j, k;
  double **A = (double **)malloc(sizeof(double *) * largo);
  double **B = (double **)malloc(sizeof(double *) * largo);
  double **C = (double **)malloc(sizeof(double *) * largo);
  FILE *m1, *m2, *resultado;
  int suma;
  clock_t startTime, endTime;
  struct tms startTms, endTms;
  unsigned int micros;
  long int ticksPerSec;
  if (argc != 5) {
    printf("Instrucciones de uso: matriz_mpi <Fichero Matriz 1> <Fichero "
           "Matriz 2> <Fichero Matriz resultado> <Largo_Matriz>\n");
    return 1;
  }
  for (i = 0; i < largo; i++) {
    A[i] = (double *)malloc(sizeof(double) * largo);
  }
  for (i = 0; i < largo; i++) {
    B[i] = (double *)malloc(sizeof(double) * largo);
  }
  for (i = 0; i < largo; i++) {
    C[i] = (double *)malloc(sizeof(double) * largo);
  }
  if (!A || !B || !C) {
    printf("No se pudo reservar memoria para la matriz");
  }
  m1 = fopen(argv[1], "rb");
  if (!m1) {
    printf("El fichero %s no existe o no puede ser abierto.\n", argv[1]);
    return 1;
  }
  m2 = fopen(argv[2], "rb");
  if (!m2) {
    printf("El fichero %s no existe o no puede ser abierto.\n", argv[2]);
    return 1;
  }
  resultado = fopen(argv[3], "wb");
  if (!resultado) {
    printf("El fichero %s no puede ser creado.\n", argv[3]);
    fclose(m1);
    fclose(m2);
    return 1;
  }
  for (i = 0; i < largo; i++) {
    for (j = 0; j < largo; j++) {
      A[i][j] = 0;
      B[i][j] = 0;
      C[i][j] = 0;
    }
  }
  for (i = 0; i < largo; i++) {
    for (j = 0; j < largo; j++) {
      fscanf(m1, "%lf", &A[i][j]);
      fscanf(m2, "%lf", &B[i][j]);
    }
  }
  startTime = times(&startTms);
  for (i = 0; i < largo; i++) {
    for (j = 0; j < largo; j++) {
      suma = 0.0;
      for (k = 0; k < largo; k++) {
        suma += A[i][k] * B[k][j];
      }
      C[i][j] += suma;
    }
  }
  endTime = times(&endTms);
  micros = endTime - startTime;
  ticksPerSec = sysconf(_SC_CLK_TCK);
  printf("Tiempo transcurrido (us): %lu\n", micros * 1000000 / ticksPerSec);
  printf("Tiempo de CPU modo usuario (us): %lu\n",
         (endTms.tms_utime - startTms.tms_utime) * 1000000 / ticksPerSec);
  printf("Tiempo de CPU modo sistema (us): %lu\n",
         (endTms.tms_stime - startTms.tms_stime) * 1000000 / ticksPerSec);
  for (i = 0; i < largo; i++) {
    for (j = 0; j < largo; j++) {
      fprintf(resultado, "%lf ", C[i][j]);
    }
    fprintf(resultado, "\n");
  }
  free(A);
  free(B);
  free(C);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x14(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x28(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x38(%rbp)
cmpl   $0x5,-0x8(%rbp)
je     1226 <main+0x86>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    171d <main+0x57d>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1265 <main+0xc5>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,%rdx
mov    -0x28(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    122d <main+0x8d>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12a4 <main+0x104>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    126c <main+0xcc>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12e3 <main+0x143>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,%rdx
mov    -0x38(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12ab <main+0x10b>
cmpq   $0x0,-0x28(%rbp)
je     1304 <main+0x164>
cmpq   $0x0,-0x30(%rbp)
je     1304 <main+0x164>
cmpq   $0x0,-0x38(%rbp)
jne    1312 <main+0x172>
lea    0xd67(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd7c(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
jne    1357 <main+0x1b7>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd5c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    171d <main+0x57d>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd37(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    139c <main+0x1fc>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xd17(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    171d <main+0x57d>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xd26(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    13f3 <main+0x253>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rsi
lea    0xd06(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x40(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x48(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x1,-0x4(%rbp)
jmp    171d <main+0x57d>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1482 <main+0x2e2>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    146f <main+0x2cf>
mov    -0x28(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    140d <main+0x26d>
jmp    1474 <main+0x2d4>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13fa <main+0x25a>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1517 <main+0x377>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1504 <main+0x364>
mov    -0x40(%rbp),%rdi
mov    -0x28(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
lea    0xc2e(%rip),%rsi
call   1060 <fscanf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
lea    0xc07(%rip),%rsi
call   1060 <fscanf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    149c <main+0x2fc>
jmp    1509 <main+0x369>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1489 <main+0x2e9>
lea    -0x68(%rbp),%rdi
call   1090 <times@plt>
mov    %eax,-0x58(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15ef <main+0x44f>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15dc <main+0x43c>
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15af <main+0x40f>
mov    -0x28(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
cvtsi2sdl -0x54(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x54(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1557 <main+0x3b7>
cvtsi2sdl -0x54(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    153d <main+0x39d>
jmp    15e1 <main+0x441>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    152a <main+0x38a>
lea    -0x70(%rbp),%rdi
call   1090 <times@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
sub    -0x58(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    0x29d5(%rip),%rax
mov    (%rax),%edi
call   10b0 <sysconf@plt>
mov    %rax,-0x80(%rbp)
imul   $0xf4240,-0x74(%rbp),%eax
mov    %eax,%eax
cqto
idivq  -0x80(%rbp)
mov    %rax,%rsi
lea    0xacd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x70(%rbp),%eax
sub    -0x68(%rbp),%eax
imul   $0xf4240,%eax,%eax
cltq
cqto
idivq  -0x80(%rbp)
mov    %rax,%rsi
lea    0xac7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x6c(%rbp),%eax
sub    -0x64(%rbp),%eax
imul   $0xf4240,%eax,%eax
cltq
cqto
idivq  -0x80(%rbp)
mov    %rax,%rsi
lea    0xac8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    16fb <main+0x55b>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    16db <main+0x53b>
mov    -0x50(%rbp),%rdi
mov    -0x38(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xaa1(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    169a <main+0x4fa>
mov    -0x50(%rbp),%rdi
lea    0xa10(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1687 <main+0x4e7>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %rsi,%r14
mov    %edi,0x8(%rsp)
mov    0x20(%rsi),%rdi
call   10e0 <atoi@plt>
mov    %eax,%ebp
lea    0x0(,%rbp,8),%r15d
mov    %r15d,%edi
call   10a0 <malloc@plt>
mov    %rax,%r12
mov    %r15d,%edi
call   10a0 <malloc@plt>
mov    %rax,%rbx
mov    %r15d,%edi
call   10a0 <malloc@plt>
cmpl   $0x5,0x8(%rsp)
jne    1568 <main+0x3a8>
mov    %rax,%r13
mov    %r14,0x8(%rsp)
mov    %rbp,0x10(%rsp)
test   %ebp,%ebp
mov    %rax,0x18(%rsp)
jle    12b6 <main+0xf6>
mov    0x10(%rsp),%r13
mov    %r13d,%r14d
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r15d,%edi
call   10a0 <malloc@plt>
mov    %rax,(%r12,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r14
jne    1240 <main+0x80>
test   %r13d,%r13d
mov    0x18(%rsp),%r13
jle    12b6 <main+0xf6>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15d,%edi
call   10a0 <malloc@plt>
mov    %rax,(%rbx,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r14
jne    1270 <main+0xb0>
cmpl   $0x0,0x10(%rsp)
mov    0x18(%rsp),%r13
jle    12b6 <main+0xf6>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r15d,%edi
call   10a0 <malloc@plt>
mov    %rax,0x0(%r13,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r14
jne    12a0 <main+0xe0>
test   %r12,%r12
mov    %r13,%r15
je     12c8 <main+0x108>
test   %rbx,%rbx
je     12c8 <main+0x108>
test   %r15,%r15
jne    12d6 <main+0x116>
lea    0xd31(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%rsp),%rbp
mov    0x8(%rbp),%rdi
lea    0xd45(%rip),%rsi
call   10c0 <fopen@plt>
test   %rax,%rax
mov    0x10(%rsp),%r13
je     157e <main+0x3be>
mov    %rax,%r14
mov    0x10(%rbp),%rdi
lea    0xd24(%rip),%rsi
call   10c0 <fopen@plt>
test   %rax,%rax
je     1584 <main+0x3c4>
mov    %rax,0x28(%rsp)
mov    0x18(%rbp),%rdi
lea    0xd3a(%rip),%rsi
call   10c0 <fopen@plt>
test   %rax,%rax
je     171b <main+0x55b>
mov    %r14,0x60(%rsp)
mov    %rax,0x58(%rsp)
mov    %r13d,%eax
test   %r13d,%r13d
mov    %r12,0x8(%rsp)
mov    %rax,(%rsp)
jle    1749 <main+0x589>
mov    %eax,%r11d
and    $0xfffffffc,%r11d
lea    -0x4(%r11),%rcx
mov    %rcx,0x50(%rsp)
shr    $0x2,%rcx
add    $0x1,%rcx
add    $0xffffffffffffffff,%rax
mov    %rax,0x30(%rsp)
mov    %rcx,%rax
mov    %rcx,0x48(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0x40(%rsp)
xor    %r10d,%r10d
xorpd  %xmm0,%xmm0
jmp    139d <main+0x1dd>
nopl   (%rax)
add    $0x1,%r10
cmp    %rdi,%r10
je     15a0 <main+0x3e0>
mov    (%r12,%r10,8),%rsi
mov    (%rbx,%r10,8),%rcx
mov    (%r15,%r10,8),%rdx
cmp    $0x4,%r13d
jae    1440 <main+0x280>
xor    %ebp,%ebp
mov    (%rsp),%rdi
mov    %rbp,%rax
test   $0x1,%dil
je     13e1 <main+0x221>
movq   $0x0,(%rsi,%rbp,8)
movq   $0x0,(%rcx,%rbp,8)
movq   $0x0,(%rdx,%rbp,8)
mov    %rbp,%rax
or     $0x1,%rax
cmp    %rbp,0x30(%rsp)
mov    (%rsp),%rdi
je     1390 <main+0x1d0>
nopl   0x0(%rax)
movq   $0x0,(%rsi,%rax,8)
movq   $0x0,(%rcx,%rax,8)
movq   $0x0,(%rdx,%rax,8)
movq   $0x0,0x8(%rsi,%rax,8)
movq   $0x0,0x8(%rcx,%rax,8)
movq   $0x0,0x8(%rdx,%rax,8)
add    $0x2,%rax
cmp    %rax,%rdi
jne    13f0 <main+0x230>
jmp    1390 <main+0x1d0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%rsp),%rax
lea    (%rsi,%rax,8),%rbp
lea    (%rcx,%rax,8),%r12
lea    (%rdx,%rax,8),%rax
cmp    %r12,%rsi
setb   %r8b
cmp    %rbp,%rcx
setb   %r9b
cmp    %rax,%rsi
setb   %r13b
cmp    %rbp,%rdx
setb   %bpl
cmp    %rax,%rcx
setb   %r14b
cmp    %r12,%rdx
setb   %r12b
test   %r9b,%r8b
jne    154c <main+0x38c>
and    %bpl,%r13b
jne    154c <main+0x38c>
mov    $0x0,%ebp
and    %r12b,%r14b
mov    0x8(%rsp),%r12
mov    0x10(%rsp),%r13
mov    (%rsp),%rdi
jne    13b9 <main+0x1f9>
cmpq   $0x0,0x50(%rsp)
je     155d <main+0x39d>
mov    0x40(%rsp),%rax
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
movupd %xmm0,(%rsi,%rbp,8)
movupd %xmm0,0x10(%rsi,%rbp,8)
movupd %xmm0,(%rcx,%rbp,8)
movupd %xmm0,0x10(%rcx,%rbp,8)
movupd %xmm0,(%rdx,%rbp,8)
movupd %xmm0,0x10(%rdx,%rbp,8)
movupd %xmm0,0x20(%rsi,%rbp,8)
movupd %xmm0,0x30(%rsi,%rbp,8)
movupd %xmm0,0x20(%rcx,%rbp,8)
movupd %xmm0,0x30(%rcx,%rbp,8)
movupd %xmm0,0x20(%rdx,%rbp,8)
movupd %xmm0,0x30(%rdx,%rbp,8)
add    $0x8,%rbp
add    $0xfffffffffffffffe,%rax
jne    14c0 <main+0x300>
testb  $0x1,0x48(%rsp)
je     1537 <main+0x377>
movupd %xmm0,(%rsi,%rbp,8)
movupd %xmm0,0x10(%rsi,%rbp,8)
movupd %xmm0,(%rcx,%rbp,8)
movupd %xmm0,0x10(%rcx,%rbp,8)
movupd %xmm0,(%rdx,%rbp,8)
movupd %xmm0,0x10(%rdx,%rbp,8)
mov    %r11,%rbp
mov    (%rsp),%rdi
cmp    %rdi,%r11
je     1390 <main+0x1d0>
jmp    13b9 <main+0x1f9>
xor    %ebp,%ebp
mov    0x8(%rsp),%r12
mov    0x10(%rsp),%r13
jmp    13b5 <main+0x1f5>
xor    %ebp,%ebp
testb  $0x1,0x48(%rsp)
jne    1516 <main+0x356>
jmp    1537 <main+0x377>
lea    0xb8b(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%eax
jmp    18a7 <main+0x6e7>
mov    0x8(%rbp),%rsi
jmp    1588 <main+0x3c8>
mov    0x10(%rbp),%rsi
lea    0xa9f(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%eax
jmp    18a7 <main+0x6e7>
test   %r13d,%r13d
mov    (%rsp),%rax
jle    1749 <main+0x589>
lea    0x0(,%rax,8),%r15
xor    %ebp,%ebp
lea    0xac8(%rip),%r13
mov    0x28(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x8(%rsp),%rcx
mov    (%rcx,%rbp,8),%rdx
add    %r12,%rdx
mov    0x60(%rsp),%rdi
mov    %r13,%rsi
call   1070 <fscanf@plt>
mov    (%rbx,%rbp,8),%rdx
add    %r12,%rdx
mov    %r14,%rdi
mov    %r13,%rsi
call   1070 <fscanf@plt>
add    $0x8,%r12
cmp    %r12,%r15
jne    15e0 <main+0x420>
add    $0x1,%rbp
cmp    (%rsp),%rbp
jne    15d0 <main+0x410>
lea    0x20(%rsp),%rdi
call   10b0 <times@plt>
mov    %eax,%r14d
mov    0x10(%rsp),%r13
test   %r13d,%r13d
jle    1756 <main+0x596>
mov    (%rsp),%r10
mov    %r10d,%eax
and    $0xfffffffe,%eax
xor    %r8d,%r8d
mov    0x8(%rsp),%r9
mov    0x18(%rsp),%r15
mov    0x30(%rsp),%r11
jmp    166d <main+0x4ad>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r8
cmp    %r10,%r8
je     1756 <main+0x596>
mov    (%r15,%r8,8),%rdx
mov    (%r9,%r8,8),%rsi
xor    %edi,%edi
jmp    169a <main+0x4da>
nopl   0x0(%rax)
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
addsd  (%rdx,%rdi,8),%xmm0
movsd  %xmm0,(%rdx,%rdi,8)
add    $0x1,%rdi
cmp    %r10,%rdi
je     1660 <main+0x4a0>
xor    %ebp,%ebp
xor    %ecx,%ecx
test   %r11,%r11
je     16f2 <main+0x532>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
movsd  (%rsi,%rbp,8),%xmm1
movsd  0x8(%rsi,%rbp,8),%xmm2
mov    (%rbx,%rbp,8),%rcx
mulsd  (%rcx,%rdi,8),%xmm1
addsd  %xmm0,%xmm1
cvttpd2dq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm0
mov    0x8(%rbx,%rbp,8),%rcx
mulsd  (%rcx,%rdi,8),%xmm2
addsd  %xmm0,%xmm2
cvttsd2si %xmm2,%ecx
add    $0x2,%rbp
cmp    %rbp,%rax
jne    16b0 <main+0x4f0>
test   $0x1,%r10b
je     1680 <main+0x4c0>
movsd  (%rsi,%rbp,8),%xmm0
mov    (%rbx,%rbp,8),%rbp
xorps  %xmm1,%xmm1
cvtsi2sd %ecx,%xmm1
mulsd  0x0(%rbp,%rdi,8),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%ecx
jmp    1680 <main+0x4c0>
mov    0x18(%rbp),%rsi
lea    0x93c(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
mov    0x28(%rsp),%rdi
call   1050 <fclose@plt>
mov    $0x1,%eax
jmp    18a7 <main+0x6e7>
lea    0x20(%rsp),%rdi
call   10b0 <times@plt>
mov    %eax,%r14d
lea    0x38(%rsp),%rdi
call   10b0 <times@plt>
mov    %eax,%ebp
sub    %r14d,%ebp
mov    0x2874(%rip),%rax
mov    (%rax),%edi
call   10d0 <sysconf@plt>
mov    %rax,%r14
imul   $0xf4240,%ebp,%eax
mov    %r14,%rcx
shr    $0x20,%rcx
je     178c <main+0x5cc>
xor    %edx,%edx
idiv   %r14
jmp    1791 <main+0x5d1>
xor    %edx,%edx
div    %r14d
lea    0x8f2(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
movslq 0x38(%rsp),%rax
movslq 0x20(%rsp),%rcx
sub    %rcx,%rax
imul   $0xf4240,%rax,%rax
mov    %rax,%rcx
or     %r14,%rcx
shr    $0x20,%rcx
je     17c9 <main+0x609>
cqto
idiv   %r14
jmp    17ce <main+0x60e>
xor    %edx,%edx
div    %r14d
lea    0x8d4(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
movslq 0x3c(%rsp),%rax
movslq 0x24(%rsp),%rcx
sub    %rcx,%rax
imul   $0xf4240,%rax,%rax
mov    %r14,%rcx
or     %rax,%rcx
shr    $0x20,%rcx
je     1806 <main+0x646>
cqto
idiv   %r14
jmp    180b <main+0x64b>
xor    %edx,%edx
div    %r14d
lea    0x8bd(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
test   %r13d,%r13d
jle    1889 <main+0x6c9>
xor    %r13d,%r13d
mov    0x58(%rsp),%r14
mov    (%rsp),%r15
mov    0x18(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%r12,%r13,8),%rax
movsd  (%rax,%rbp,8),%xmm0
mov    %r14,%rdi
lea    0x892(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1850 <main+0x690>
mov    $0xa,%edi
mov    %r14,%rsi
call   1080 <fputc@plt>
add    $0x1,%r13
cmp    %r15,%r13
jne    1840 <main+0x680>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tms = type { i32, i32 }
@.str = [114 x i8] c"Instrucciones de uso: matriz_mpi <Fichero Matriz 1> <Fichero Matriz 2> <Fichero Matriz resultado> <Largo_Matriz>\0A\00"
@.str.1 = [43 x i8] c"No se pudo reservar memoria para la matriz\00"
@.str.2 = [3 x i8] c"rb\00"
@.str.3 = [49 x i8] c"El fichero %s no existe o no puede ser abierto.\0A\00"
@.str.4 = [3 x i8] c"wb\00"
@.str.5 = [36 x i8] c"El fichero %s no puede ser creado.\0A\00"
@.str.6 = [4 x i8] c"%lf\00"
@_SC_CLK_TCK = global i32 0
@.str.7 = [31 x i8] c"Tiempo transcurrido (us): %lu\0A\00"
@.str.8 = [38 x i8] c"Tiempo de CPU modo usuario (us): %lu\0A\00"
@.str.9 = [38 x i8] c"Tiempo de CPU modo sistema (us): %lu\0A\00"
@.str.10 = [5 x i8] c"%lf \00"
@.str.11 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double**
%11 = alloca double**
%12 = alloca double**
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca %struct.tms
%20 = alloca %struct.tms
%21 = alloca i32
%22 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 4
%25 = load i8*, i8** %24
%26 = call i32 @atoi(i8* %25)
store i32 %26, i32* %6
%27 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = mul i64 8, %28
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 %30)
%32 = inttoptr i64 %31 to double**
store double** %32, double*** %10
%33 = load i32, i32* %6
%34 = sext i32 %33 to i64
%35 = mul i64 8, %34
%36 = trunc i64 %35 to i32
%37 = call i64 @malloc(i32 %36)
%38 = inttoptr i64 %37 to double**
store double** %38, double*** %11
%39 = load i32, i32* %6
%40 = sext i32 %39 to i64
%41 = mul i64 8, %40
%42 = trunc i64 %41 to i32
%43 = call i64 @malloc(i32 %42)
%44 = inttoptr i64 %43 to double**
store double** %44, double*** %12
%45 = load i32, i32* %4
%46 = icmp ne i32 %45, 5
br i1 %46, label %47, label %49
47: ; preds = %2
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([114 x i8], [114 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %369
49: ; preds = %2
store i32 0, i32* %7
br label %50
50: ; preds = %65, %49
%51 = load i32, i32* %7
%52 = load i32, i32* %6
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %68
54: ; preds = %50
%55 = load i32, i32* %6
%56 = sext i32 %55 to i64
%57 = mul i64 8, %56
%58 = trunc i64 %57 to i32
%59 = call i64 @malloc(i32 %58)
%60 = inttoptr i64 %59 to double*
%61 = load double**, double*** %10
%62 = load i32, i32* %7
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double*, double** %61, i64 %63
store double* %60, double** %64
br label %65
65: ; preds = %54
%66 = load i32, i32* %7
%67 = add nsw i32 %66, 1
store i32 %67, i32* %7
br label %50
68: ; preds = %50
store i32 0, i32* %7
br label %69
69: ; preds = %84, %68
%70 = load i32, i32* %7
%71 = load i32, i32* %6
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %87
73: ; preds = %69
%74 = load i32, i32* %6
%75 = sext i32 %74 to i64
%76 = mul i64 8, %75
%77 = trunc i64 %76 to i32
%78 = call i64 @malloc(i32 %77)
%79 = inttoptr i64 %78 to double*
%80 = load double**, double*** %11
%81 = load i32, i32* %7
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double*, double** %80, i64 %82
store double* %79, double** %83
br label %84
84: ; preds = %73
%85 = load i32, i32* %7
%86 = add nsw i32 %85, 1
store i32 %86, i32* %7
br label %69
87: ; preds = %69
store i32 0, i32* %7
br label %88
88: ; preds = %103, %87
%89 = load i32, i32* %7
%90 = load i32, i32* %6
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %106
92: ; preds = %88
%93 = load i32, i32* %6
%94 = sext i32 %93 to i64
%95 = mul i64 8, %94
%96 = trunc i64 %95 to i32
%97 = call i64 @malloc(i32 %96)
%98 = inttoptr i64 %97 to double*
%99 = load double**, double*** %12
%100 = load i32, i32* %7
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double*, double** %99, i64 %101
store double* %98, double** %102
br label %103
103: ; preds = %92
%104 = load i32, i32* %7
%105 = add nsw i32 %104, 1
store i32 %105, i32* %7
br label %88
106: ; preds = %88
%107 = load double**, double*** %10
%108 = icmp ne double** %107, null
br i1 %108, label %109, label %115
109: ; preds = %106
%110 = load double**, double*** %11
%111 = icmp ne double** %110, null
br i1 %111, label %112, label %115
112: ; preds = %109
%113 = load double**, double*** %12
%114 = icmp ne double** %113, null
br i1 %114, label %117, label %115
115: ; preds = %112, %109, %106
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
br label %117
117: ; preds = %115, %112
%118 = load i8**, i8*** %5
%119 = getelementptr inbounds i8*, i8** %118, i64 1
%120 = load i8*, i8** %119
%121 = call i32* @fopen(i8* %120, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %121, i32** %13
%122 = load i32*, i32** %13
%123 = icmp ne i32* %122, null
br i1 %123, label %129, label %124
124: ; preds = %117
%125 = load i8**, i8*** %5
%126 = getelementptr inbounds i8*, i8** %125, i64 1
%127 = load i8*, i8** %126
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0), i8* %127)
store i32 1, i32* %3
br label %369
129: ; preds = %117
%130 = load i8**, i8*** %5
%131 = getelementptr inbounds i8*, i8** %130, i64 2
%132 = load i8*, i8** %131
%133 = call i32* @fopen(i8* %132, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %133, i32** %14
%134 = load i32*, i32** %14
%135 = icmp ne i32* %134, null
br i1 %135, label %141, label %136
136: ; preds = %129
%137 = load i8**, i8*** %5
%138 = getelementptr inbounds i8*, i8** %137, i64 2
%139 = load i8*, i8** %138
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0), i8* %139)
store i32 1, i32* %3
br label %369
141: ; preds = %129
%142 = load i8**, i8*** %5
%143 = getelementptr inbounds i8*, i8** %142, i64 3
%144 = load i8*, i8** %143
%145 = call i32* @fopen(i8* %144, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32* %145, i32** %15
%146 = load i32*, i32** %15
%147 = icmp ne i32* %146, null
br i1 %147, label %157, label %148
148: ; preds = %141
%149 = load i8**, i8*** %5
%150 = getelementptr inbounds i8*, i8** %149, i64 3
%151 = load i8*, i8** %150
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i8* %151)
%153 = load i32*, i32** %13
%154 = call i32 @fclose(i32* %153)
%155 = load i32*, i32** %14
%156 = call i32 @fclose(i32* %155)
store i32 1, i32* %3
br label %369
157: ; preds = %141
store i32 0, i32* %7
br label %158
158: ; preds = %196, %157
%159 = load i32, i32* %7
%160 = load i32, i32* %6
%161 = icmp slt i32 %159, %160
br i1 %161, label %162, label %199
162: ; preds = %158
store i32 0, i32* %8
br label %163
163: ; preds = %192, %162
%164 = load i32, i32* %8
%165 = load i32, i32* %6
%166 = icmp slt i32 %164, %165
br i1 %166, label %167, label %195
167: ; preds = %163
%168 = load double**, double*** %10
%169 = load i32, i32* %7
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double*, double** %168, i64 %170
%172 = load double*, double** %171
%173 = load i32, i32* %8
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds double, double* %172, i64 %174
store double 0.000000e+00, double* %175
%176 = load double**, double*** %11
%177 = load i32, i32* %7
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double*, double** %176, i64 %178
%180 = load double*, double** %179
%181 = load i32, i32* %8
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds double, double* %180, i64 %182
store double 0.000000e+00, double* %183
%184 = load double**, double*** %12
%185 = load i32, i32* %7
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double*, double** %184, i64 %186
%188 = load double*, double** %187
%189 = load i32, i32* %8
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds double, double* %188, i64 %190
store double 0.000000e+00, double* %191
br label %192
192: ; preds = %167
%193 = load i32, i32* %8
%194 = add nsw i32 %193, 1
store i32 %194, i32* %8
br label %163
195: ; preds = %163
br label %196
196: ; preds = %195
%197 = load i32, i32* %7
%198 = add nsw i32 %197, 1
store i32 %198, i32* %7
br label %158
199: ; preds = %158
store i32 0, i32* %7
br label %200
200: ; preds = %234, %199
%201 = load i32, i32* %7
%202 = load i32, i32* %6
%203 = icmp slt i32 %201, %202
br i1 %203, label %204, label %237
204: ; preds = %200
store i32 0, i32* %8
br label %205
205: ; preds = %230, %204
%206 = load i32, i32* %8
%207 = load i32, i32* %6
%208 = icmp slt i32 %206, %207
br i1 %208, label %209, label %233
209: ; preds = %205
%210 = load i32*, i32** %13
%211 = load double**, double*** %10
%212 = load i32, i32* %7
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds double*, double** %211, i64 %213
%215 = load double*, double** %214
%216 = load i32, i32* %8
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds double, double* %215, i64 %217
%219 = call i32 @fscanf(i32* %210, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %218)
%220 = load i32*, i32** %14
%221 = load double**, double*** %11
%222 = load i32, i32* %7
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds double*, double** %221, i64 %223
%225 = load double*, double** %224
%226 = load i32, i32* %8
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds double, double* %225, i64 %227
%229 = call i32 @fscanf(i32* %220, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %228)
br label %230
230: ; preds = %209
%231 = load i32, i32* %8
%232 = add nsw i32 %231, 1
store i32 %232, i32* %8
br label %205
233: ; preds = %205
br label %234
234: ; preds = %233
%235 = load i32, i32* %7
%236 = add nsw i32 %235, 1
store i32 %236, i32* %7
br label %200
237: ; preds = %200
%238 = call i32 @times(%struct.tms* %19)
store i32 %238, i32* %17
store i32 0, i32* %7
br label %239
239: ; preds = %296, %237
%240 = load i32, i32* %7
%241 = load i32, i32* %6
%242 = icmp slt i32 %240, %241
br i1 %242, label %243, label %299
243: ; preds = %239
store i32 0, i32* %8
br label %244
244: ; preds = %292, %243
%245 = load i32, i32* %8
%246 = load i32, i32* %6
%247 = icmp slt i32 %245, %246
br i1 %247, label %248, label %295
248: ; preds = %244
store i32 0, i32* %16
store i32 0, i32* %9
br label %249
249: ; preds = %276, %248
%250 = load i32, i32* %9
%251 = load i32, i32* %6
%252 = icmp slt i32 %250, %251
br i1 %252, label %253, label %279
253: ; preds = %249
%254 = load double**, double*** %10
%255 = load i32, i32* %7
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds double*, double** %254, i64 %256
%258 = load double*, double** %257
%259 = load i32, i32* %9
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds double, double* %258, i64 %260
%262 = load double, double* %261
%263 = load double**, double*** %11
%264 = load i32, i32* %9
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds double*, double** %263, i64 %265
%267 = load double*, double** %266
%268 = load i32, i32* %8
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds double, double* %267, i64 %269
%271 = load double, double* %270
%272 = load i32, i32* %16
%273 = sitofp i32 %272 to double
%274 = call double @llvm.fmuladd.f64(double %262, double %271, double %273)
%275 = fptosi double %274 to i32
store i32 %275, i32* %16
br label %276
276: ; preds = %253
%277 = load i32, i32* %9
%278 = add nsw i32 %277, 1
store i32 %278, i32* %9
br label %249
279: ; preds = %249
%280 = load i32, i32* %16
%281 = sitofp i32 %280 to double
%282 = load double**, double*** %12
%283 = load i32, i32* %7
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds double*, double** %282, i64 %284
%286 = load double*, double** %285
%287 = load i32, i32* %8
%288 = sext i32 %287 to i64
%289 = getelementptr inbounds double, double* %286, i64 %288
%290 = load double, double* %289
%291 = fadd double %290, %281
store double %291, double* %289
br label %292
292: ; preds = %279
%293 = load i32, i32* %8
%294 = add nsw i32 %293, 1
store i32 %294, i32* %8
br label %244
295: ; preds = %244
br label %296
296: ; preds = %295
%297 = load i32, i32* %7
%298 = add nsw i32 %297, 1
store i32 %298, i32* %7
br label %239
299: ; preds = %239
%300 = call i32 @times(%struct.tms* %20)
store i32 %300, i32* %18
%301 = load i32, i32* %18
%302 = load i32, i32* %17
%303 = sub i32 %301, %302
store i32 %303, i32* %21
%304 = load i32, i32* @_SC_CLK_TCK
%305 = call i64 @sysconf(i32 %304)
store i64 %305, i64* %22
%306 = load i32, i32* %21
%307 = mul i32 %306, 1000000
%308 = zext i32 %307 to i64
%309 = load i64, i64* %22
%310 = sdiv i64 %308, %309
%311 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i64 %310)
%312 = getelementptr inbounds %struct.tms, %struct.tms* %20, i32 0, i32 0
%313 = load i32, i32* %312
%314 = getelementptr inbounds %struct.tms, %struct.tms* %19, i32 0, i32 0
%315 = load i32, i32* %314
%316 = sub nsw i32 %313, %315
%317 = mul nsw i32 %316, 1000000
%318 = sext i32 %317 to i64
%319 = load i64, i64* %22
%320 = sdiv i64 %318, %319
%321 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i64 %320)
%322 = getelementptr inbounds %struct.tms, %struct.tms* %20, i32 0, i32 1
%323 = load i32, i32* %322
%324 = getelementptr inbounds %struct.tms, %struct.tms* %19, i32 0, i32 1
%325 = load i32, i32* %324
%326 = sub nsw i32 %323, %325
%327 = mul nsw i32 %326, 1000000
%328 = sext i32 %327 to i64
%329 = load i64, i64* %22
%330 = sdiv i64 %328, %329
%331 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i64 %330)
store i32 0, i32* %7
br label %332
332: ; preds = %359, %299
%333 = load i32, i32* %7
%334 = load i32, i32* %6
%335 = icmp slt i32 %333, %334
br i1 %335, label %336, label %362
336: ; preds = %332
store i32 0, i32* %8
br label %337
337: ; preds = %353, %336
%338 = load i32, i32* %8
%339 = load i32, i32* %6
%340 = icmp slt i32 %338, %339
br i1 %340, label %341, label %356
341: ; preds = %337
%342 = load i32*, i32** %15
%343 = load double**, double*** %12
%344 = load i32, i32* %7
%345 = sext i32 %344 to i64
%346 = getelementptr inbounds double*, double** %343, i64 %345
%347 = load double*, double** %346
%348 = load i32, i32* %8
%349 = sext i32 %348 to i64
%350 = getelementptr inbounds double, double* %347, i64 %349
%351 = load double, double* %350
%352 = call i32 (i32*, i8*, ...) @fprintf(i32* %342, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), double %351)
br label %353
353: ; preds = %341
%354 = load i32, i32* %8
%355 = add nsw i32 %354, 1
store i32 %355, i32* %8
br label %337
356: ; preds = %337
%357 = load i32*, i32** %15
%358 = call i32 (i32*, i8*, ...) @fprintf(i32* %357, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %359
359: ; preds = %356
%360 = load i32, i32* %7
%361 = add nsw i32 %360, 1
store i32 %361, i32* %7
br label %332
362: ; preds = %332
%363 = load double**, double*** %10
%364 = call i32 @free(double** %363)
%365 = load double**, double*** %11
%366 = call i32 @free(double** %365)
%367 = load double**, double*** %12
%368 = call i32 @free(double** %367)
store i32 0, i32* %3
br label %369
369: ; preds = %362, %148, %136, %124, %47
%370 = load i32, i32* %3
ret i32 %370
}

LLVM IR (-O2):
%struct.tms = type { i32, i32 }
@.str.1 = [43 x i8] c"No se pudo reservar memoria para la matriz\00"
@.str.2 = [3 x i8] c"rb\00"
@.str.3 = [49 x i8] c"El fichero %s no existe o no puede ser abierto.\0A\00"
@.str.4 = [3 x i8] c"wb\00"
@.str.5 = [36 x i8] c"El fichero %s no puede ser creado.\0A\00"
@.str.6 = [4 x i8] c"%lf\00"
@_SC_CLK_TCK = global i32 0
@.str.7 = [31 x i8] c"Tiempo transcurrido (us): %lu\0A\00"
@.str.8 = [38 x i8] c"Tiempo de CPU modo usuario (us): %lu\0A\00"
@.str.9 = [38 x i8] c"Tiempo de CPU modo sistema (us): %lu\0A\00"
@.str.10 = [5 x i8] c"%lf \00"
@str = [113 x i8] c"Instrucciones de uso: matriz_mpi <Fichero Matriz 1> <Fichero Matriz 2> <Fichero Matriz resultado> <Largo_Matriz>\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.tms
%4 = alloca %struct.tms
%5 = getelementptr inbounds i8*, i8** %1, i64 4
%6 = load i8*, i8** %5
%7 = tail call i32 @atoi(i8* %6)
%8 = shl i32 %7, 3
%9 = tail call i64 @malloc(i32 %8)
%10 = inttoptr i64 %9 to double**
%11 = tail call i64 @malloc(i32 %8)
%12 = inttoptr i64 %11 to double**
%13 = tail call i64 @malloc(i32 %8)
%14 = inttoptr i64 %13 to double**
%15 = bitcast %struct.tms* %3 to i8*
%16 = bitcast %struct.tms* %4 to i8*
%17 = icmp eq i32 %0, 5
br i1 %17, label %18, label %22
18: ; preds = %2
%19 = icmp sgt i32 %7, 0
br i1 %19, label %20, label %51
20: ; preds = %18
%21 = zext i32 %7 to i64
br label %27
22: ; preds = %2
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([113 x i8], [113 x i8]* @str, i64 0, i64 0))
br label %335
24: ; preds = %27
br i1 %19, label %25, label %51
25: ; preds = %24
%26 = zext i32 %7 to i64
br label %37
27: ; preds = %20, %27
%28 = phi i64 [ 0, %20 ], [ %32, %27 ]
%29 = tail call i64 @malloc(i32 %8)
%30 = inttoptr i64 %29 to double*
%31 = getelementptr inbounds double*, double** %10, i64 %28
store double* %30, double** %31
%32 = add nuw nsw i64 %28, 1
%33 = icmp eq i64 %32, %21
br i1 %33, label %24, label %27
34: ; preds = %37
br i1 %19, label %35, label %51
35: ; preds = %34
%36 = zext i32 %7 to i64
br label %44
37: ; preds = %25, %37
%38 = phi i64 [ 0, %25 ], [ %42, %37 ]
%39 = tail call i64 @malloc(i32 %8)
%40 = inttoptr i64 %39 to double*
%41 = getelementptr inbounds double*, double** %12, i64 %38
store double* %40, double** %41
%42 = add nuw nsw i64 %38, 1
%43 = icmp eq i64 %42, %26
br i1 %43, label %34, label %37
44: ; preds = %35, %44
%45 = phi i64 [ 0, %35 ], [ %49, %44 ]
%46 = tail call i64 @malloc(i32 %8)
%47 = inttoptr i64 %46 to double*
%48 = getelementptr inbounds double*, double** %14, i64 %45
store double* %47, double** %48
%49 = add nuw nsw i64 %45, 1
%50 = icmp eq i64 %49, %36
br i1 %50, label %51, label %44
51: ; preds = %44, %18, %24, %34
%52 = icmp ne i64 %9, 0
%53 = icmp ne i64 %11, 0
%54 = select i1 %52, i1 %53, i1 false
%55 = icmp ne i64 %13, 0
%56 = select i1 %54, i1 %55, i1 false
br i1 %56, label %59, label %57
57: ; preds = %51
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
br label %59
59: ; preds = %51, %57
%60 = getelementptr inbounds i8*, i8** %1, i64 1
%61 = load i8*, i8** %60
%62 = tail call i32* @fopen(i8* %61, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%63 = icmp eq i32* %62, null
br i1 %63, label %64, label %67
64: ; preds = %59
%65 = load i8*, i8** %60
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0), i8* %65)
br label %335
67: ; preds = %59
%68 = getelementptr inbounds i8*, i8** %1, i64 2
%69 = load i8*, i8** %68
%70 = tail call i32* @fopen(i8* %69, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%71 = icmp eq i32* %70, null
br i1 %71, label %72, label %75
72: ; preds = %67
%73 = load i8*, i8** %68
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0), i8* %73)
br label %335
75: ; preds = %67
%76 = getelementptr inbounds i8*, i8** %1, i64 3
%77 = load i8*, i8** %76
%78 = tail call i32* @fopen(i8* %77, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%79 = icmp eq i32* %78, null
br i1 %79, label %97, label %80
80: ; preds = %75
br i1 %19, label %81, label %217
81: ; preds = %80
%82 = zext i32 %7 to i64
%83 = and i64 %82, 4294967292
%84 = add nsw i64 %83, -4
%85 = lshr exact i64 %84, 2
%86 = add nuw nsw i64 %85, 1
%87 = add nsw i64 %82, -1
%88 = icmp ult i32 %7, 4
%89 = and i64 %82, 4294967292
%90 = and i64 %86, 1
%91 = icmp eq i64 %84, 0
%92 = and i64 %86, 9223372036854775806
%93 = icmp eq i64 %90, 0
%94 = icmp eq i64 %89, %82
%95 = and i64 %82, 1
%96 = icmp eq i64 %95, 0
br label %102
97: ; preds = %75
%98 = load i8*, i8** %76
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i8* %98)
%100 = tail call i32 @fclose(i32* %62)
%101 = tail call i32 @fclose(i32* %70)
br label %335
102: ; preds = %197, %81
%103 = phi i64 [ 0, %81 ], [ %198, %197 ]
%104 = getelementptr inbounds double*, double** %10, i64 %103
%105 = load double*, double** %104
%106 = getelementptr inbounds double*, double** %12, i64 %103
%107 = load double*, double** %106
%108 = getelementptr inbounds double*, double** %14, i64 %103
%109 = load double*, double** %108
br i1 %88, label %173, label %110
110: ; preds = %102
%111 = getelementptr double, double* %105, i64 %82
%112 = getelementptr double, double* %107, i64 %82
%113 = getelementptr double, double* %109, i64 %82
%114 = icmp ult double* %105, %112
%115 = icmp ult double* %107, %111
%116 = and i1 %114, %115
%117 = icmp ult double* %105, %113
%118 = icmp ult double* %109, %111
%119 = and i1 %117, %118
%120 = or i1 %116, %119
%121 = icmp ult double* %107, %113
%122 = icmp ult double* %109, %112
%123 = and i1 %121, %122
%124 = or i1 %120, %123
br i1 %124, label %173, label %125
125: ; preds = %110
br i1 %91, label %157, label %126
126: ; preds = %125, %126
%127 = phi i64 [ %154, %126 ], [ 0, %125 ]
%128 = phi i64 [ %155, %126 ], [ 0, %125 ]
%129 = getelementptr inbounds double, double* %105, i64 %127
%130 = bitcast double* %129 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %130
%131 = getelementptr inbounds double, double* %129, i64 2
%132 = bitcast double* %131 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %132
%133 = getelementptr inbounds double, double* %107, i64 %127
%134 = bitcast double* %133 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %134
%135 = getelementptr inbounds double, double* %133, i64 2
%136 = bitcast double* %135 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %136
%137 = getelementptr inbounds double, double* %109, i64 %127
%138 = bitcast double* %137 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %138
%139 = getelementptr inbounds double, double* %137, i64 2
%140 = bitcast double* %139 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %140
%141 = or i64 %127, 4
%142 = getelementptr inbounds double, double* %105, i64 %141
%143 = bitcast double* %142 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %143
%144 = getelementptr inbounds double, double* %142, i64 2
%145 = bitcast double* %144 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %145
%146 = getelementptr inbounds double, double* %107, i64 %141
%147 = bitcast double* %146 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %147
%148 = getelementptr inbounds double, double* %146, i64 2
%149 = bitcast double* %148 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %149
%150 = getelementptr inbounds double, double* %109, i64 %141
%151 = bitcast double* %150 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %151
%152 = getelementptr inbounds double, double* %150, i64 2
%153 = bitcast double* %152 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %153
%154 = add nuw i64 %127, 8
%155 = add i64 %128, 2
%156 = icmp eq i64 %155, %92
br i1 %156, label %157, label %126
157: ; preds = %126, %125
%158 = phi i64 [ 0, %125 ], [ %154, %126 ]
br i1 %93, label %172, label %159
159: ; preds = %157
%160 = getelementptr inbounds double, double* %105, i64 %158
%161 = bitcast double* %160 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %161
%162 = getelementptr inbounds double, double* %160, i64 2
%163 = bitcast double* %162 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %163
%164 = getelementptr inbounds double, double* %107, i64 %158
%165 = bitcast double* %164 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %165
%166 = getelementptr inbounds double, double* %164, i64 2
%167 = bitcast double* %166 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %167
%168 = getelementptr inbounds double, double* %109, i64 %158
%169 = bitcast double* %168 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %169
%170 = getelementptr inbounds double, double* %168, i64 2
%171 = bitcast double* %170 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %171
br label %172
172: ; preds = %157, %159
br i1 %94, label %197, label %173
173: ; preds = %110, %102, %172
%174 = phi i64 [ 0, %110 ], [ 0, %102 ], [ %89, %172 ]
br i1 %96, label %180, label %175
175: ; preds = %173
%176 = getelementptr inbounds double, double* %105, i64 %174
store double 0.000000e+00, double* %176
%177 = getelementptr inbounds double, double* %107, i64 %174
store double 0.000000e+00, double* %177
%178 = getelementptr inbounds double, double* %109, i64 %174
store double 0.000000e+00, double* %178
%179 = or i64 %174, 1
br label %180
180: ; preds = %175, %173
%181 = phi i64 [ %174, %173 ], [ %179, %175 ]
%182 = icmp eq i64 %87, %174
br i1 %182, label %197, label %186
183: ; preds = %197
br i1 %19, label %184, label %217
184: ; preds = %183
%185 = zext i32 %7 to i64
br label %200
186: ; preds = %180, %186
%187 = phi i64 [ %195, %186 ], [ %181, %180 ]
%188 = getelementptr inbounds double, double* %105, i64 %187
store double 0.000000e+00, double* %188
%189 = getelementptr inbounds double, double* %107, i64 %187
store double 0.000000e+00, double* %189
%190 = getelementptr inbounds double, double* %109, i64 %187
store double 0.000000e+00, double* %190
%191 = add nuw nsw i64 %187, 1
%192 = getelementptr inbounds double, double* %105, i64 %191
store double 0.000000e+00, double* %192
%193 = getelementptr inbounds double, double* %107, i64 %191
store double 0.000000e+00, double* %193
%194 = getelementptr inbounds double, double* %109, i64 %191
store double 0.000000e+00, double* %194
%195 = add nuw nsw i64 %187, 2
%196 = icmp eq i64 %195, %82
br i1 %196, label %197, label %186
197: ; preds = %180, %186, %172
%198 = add nuw nsw i64 %103, 1
%199 = icmp eq i64 %198, %82
br i1 %199, label %183, label %102
200: ; preds = %214, %184
%201 = phi i64 [ 0, %184 ], [ %215, %214 ]
%202 = getelementptr inbounds double*, double** %10, i64 %201
%203 = getelementptr inbounds double*, double** %12, i64 %201
br label %204
204: ; preds = %200, %204
%205 = phi i64 [ 0, %200 ], [ %212, %204 ]
%206 = load double*, double** %202
%207 = getelementptr inbounds double, double* %206, i64 %205
%208 = tail call i32 @fscanf(i32* %62, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %207)
%209 = load double*, double** %203
%210 = getelementptr inbounds double, double* %209, i64 %205
%211 = tail call i32 @fscanf(i32* %70, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %210)
%212 = add nuw nsw i64 %205, 1
%213 = icmp eq i64 %212, %185
br i1 %213, label %214, label %204
214: ; preds = %204
%215 = add nuw nsw i64 %201, 1
%216 = icmp eq i64 %215, %185
br i1 %216, label %219, label %200
217: ; preds = %183, %80
%218 = call i32 @times(%struct.tms* %3)
br label %286
219: ; preds = %214
%220 = call i32 @times(%struct.tms* %3)
br i1 %19, label %221, label %286
221: ; preds = %219
%222 = zext i32 %7 to i64
%223 = and i64 %82, 1
%224 = icmp eq i64 %87, 0
%225 = and i64 %82, 4294967294
%226 = icmp eq i64 %223, 0
br label %227
227: ; preds = %283, %221
%228 = phi i64 [ 0, %221 ], [ %284, %283 ]
%229 = getelementptr inbounds double*, double** %10, i64 %228
%230 = getelementptr inbounds double*, double** %14, i64 %228
%231 = load double*, double** %230
%232 = load double*, double** %229
br label %233
233: ; preds = %275, %227
%234 = phi i64 [ 0, %227 ], [ %281, %275 ]
br i1 %224, label %261, label %235
235: ; preds = %233, %235
%236 = phi i64 [ %258, %235 ], [ 0, %233 ]
%237 = phi i32 [ %257, %235 ], [ 0, %233 ]
%238 = phi i64 [ %259, %235 ], [ 0, %233 ]
%239 = getelementptr inbounds double, double* %232, i64 %236
%240 = load double, double* %239
%241 = getelementptr inbounds double*, double** %12, i64 %236
%242 = load double*, double** %241
%243 = getelementptr inbounds double, double* %242, i64 %234
%244 = load double, double* %243
%245 = sitofp i32 %237 to double
%246 = tail call double @llvm.fmuladd.f64(double %240, double %244, double %245)
%247 = fptosi double %246 to i32
%248 = or i64 %236, 1
%249 = getelementptr inbounds double, double* %232, i64 %248
%250 = load double, double* %249
%251 = getelementptr inbounds double*, double** %12, i64 %248
%252 = load double*, double** %251
%253 = getelementptr inbounds double, double* %252, i64 %234
%254 = load double, double* %253
%255 = sitofp i32 %247 to double
%256 = tail call double @llvm.fmuladd.f64(double %250, double %254, double %255)
%257 = fptosi double %256 to i32
%258 = add nuw nsw i64 %236, 2
%259 = add i64 %238, 2
%260 = icmp eq i64 %259, %225
br i1 %260, label %261, label %235
261: ; preds = %235, %233
%262 = phi i32 [ undef, %233 ], [ %257, %235 ]
%263 = phi i64 [ 0, %233 ], [ %258, %235 ]
%264 = phi i32 [ 0, %233 ], [ %257, %235 ]
br i1 %226, label %275, label %265
265: ; preds = %261
%266 = getelementptr inbounds double, double* %232, i64 %263
%267 = load double, double* %266
%268 = getelementptr inbounds double*, double** %12, i64 %263
%269 = load double*, double** %268
%270 = getelementptr inbounds double, double* %269, i64 %234
%271 = load double, double* %270
%272 = sitofp i32 %264 to double
%273 = tail call double @llvm.fmuladd.f64(double %267, double %271, double %272)
%274 = fptosi double %273 to i32
br label %275
275: ; preds = %261, %265
%276 = phi i32 [ %262, %261 ], [ %274, %265 ]
%277 = sitofp i32 %276 to double
%278 = getelementptr inbounds double, double* %231, i64 %234
%279 = load double, double* %278
%280 = fadd double %279, %277
store double %280, double* %278
%281 = add nuw nsw i64 %234, 1
%282 = icmp eq i64 %281, %222
br i1 %282, label %283, label %233
283: ; preds = %275
%284 = add nuw nsw i64 %228, 1
%285 = icmp eq i64 %284, %222
br i1 %285, label %286, label %227
286: ; preds = %283, %217, %219
%287 = phi i32 [ %218, %217 ], [ %220, %219 ], [ %220, %283 ]
%288 = call i32 @times(%struct.tms* %4)
%289 = sub i32 %288, %287
%290 = load i32, i32* @_SC_CLK_TCK
%291 = tail call i64 @sysconf(i32 %290)
%292 = mul i32 %289, 1000000
%293 = zext i32 %292 to i64
%294 = sdiv i64 %293, %291
%295 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i64 %294)
%296 = getelementptr inbounds %struct.tms, %struct.tms* %4, i64 0, i32 0
%297 = load i32, i32* %296
%298 = getelementptr inbounds %struct.tms, %struct.tms* %3, i64 0, i32 0
%299 = load i32, i32* %298
%300 = sub nsw i32 %297, %299
%301 = mul nsw i32 %300, 1000000
%302 = sext i32 %301 to i64
%303 = sdiv i64 %302, %291
%304 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i64 %303)
%305 = getelementptr inbounds %struct.tms, %struct.tms* %4, i64 0, i32 1
%306 = load i32, i32* %305
%307 = getelementptr inbounds %struct.tms, %struct.tms* %3, i64 0, i32 1
%308 = load i32, i32* %307
%309 = sub nsw i32 %306, %308
%310 = mul nsw i32 %309, 1000000
%311 = sext i32 %310 to i64
%312 = sdiv i64 %311, %291
%313 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i64 %312)
br i1 %19, label %314, label %331
314: ; preds = %286
%315 = zext i32 %7 to i64
br label %316
316: ; preds = %327, %314
%317 = phi i64 [ 0, %314 ], [ %329, %327 ]
%318 = getelementptr inbounds double*, double** %14, i64 %317
br label %319
319: ; preds = %316, %319
%320 = phi i64 [ 0, %316 ], [ %325, %319 ]
%321 = load double*, double** %318
%322 = getelementptr inbounds double, double* %321, i64 %320
%323 = load double, double* %322
%324 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %78, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), double %323)
%325 = add nuw nsw i64 %320, 1
%326 = icmp eq i64 %325, %315
br i1 %326, label %327, label %319
327: ; preds = %319
%328 = tail call i32 @fputc(i32 10, i32* %78)
%329 = add nuw nsw i64 %317, 1
%330 = icmp eq i64 %329, %315
br i1 %330, label %331, label %316
331: ; preds = %327, %286
%332 = tail call i32 @free(double** %10)
%333 = tail call i32 @free(double** %12)
%334 = tail call i32 @free(double** %14)
br label %335
335: ; preds = %331, %97, %72, %64, %22
%336 = phi i32 [ 1, %22 ], [ 0, %331 ], [ 1, %97 ], [ 1, %72 ], [ 1, %64 ]
ret i32 %336
}