#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*/ omp_sched_t;

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
scalar_t__ malloc(int);
double omp_get_wtime();
int /*<<< orphan*/ printf(char *, double, ...);
int /*<<< orphan*/ stderr;
main(int argc, char **argv) {
  int N = atoi(argv[1]);
  int i, j, k;
  omp_sched_t kind;
  int modifier;
  double start = 0, end = 0, elapsed = 0;
  double **a;
  a = (double **)malloc(N * sizeof(double *));
  for (i = 0; i < N; i++)
    a[i] = (double *)malloc(N * sizeof(double));
  double **b;
  b = (double **)malloc(N * sizeof(double *));
  for (i = 0; i < N; i++)
    b[i] = (double *)malloc(N * sizeof(double));
  double **tras;
  tras = (double **)malloc(N * sizeof(double *));
  for (i = 0; i < N; i++)
    tras[i] = (double *)malloc(N * sizeof(double));
  double **resultado;
  resultado = (double **)malloc(N * sizeof(double *));
  for (i = 0; i < N; i++)
    resultado[i] = (double *)malloc(N * sizeof(double));
  if (argc < 2) {
    fprintf(stderr, "Faltan argumentos\n");
    exit(-1);
  }
  for (i = 0; i < N; ++i)
    for (j = 0; j < N; ++j) {
      resultado[i][j] = 0;
      a[i][j] = j + 1;
      b[i][j] = j + 1;
    }
  start = omp_get_wtime();
  for (i = 0; i < N; ++i)
    for (j = 0; j < N; ++j)
      tras[i][j] = b[j][i];
  int aux1 = 0.0, aux2 = 0.0, aux3 = 0.0, aux4 = 0.0;
  for (i = 0; i < N; ++i) {
    for (j = 0; j < N; ++j) {
      for (k = 0; k < N; k += 4) {
        aux1 += a[i][k] * b[j][k];
        aux2 += a[i][k + 1] * tras[j][k + 1];
        aux3 += a[i][k + 2] * tras[j][k + 2];
        aux4 += a[i][k + 3] * tras[j][k + 3];
      }
      resultado[i][j] += aux1 + aux2 + aux3 + aux4;
    }
  }
  end = omp_get_wtime();
  elapsed = end - start;
  printf("resultado[0][0] = %g\n", resultado[0][0]);
  printf("resultado[N-1][N-1] = %g\n", resultado[N - 1][N - 1]);
  printf("Tiempo(seg.):%11.9f\t / Tamaño Matrices:%u\n", elapsed, N);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x14(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11f0 <main+0x90>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11b8 <main+0x58>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1242 <main+0xe2>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x50(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    120a <main+0xaa>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1294 <main+0x134>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x58(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    125c <main+0xfc>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12e6 <main+0x186>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x60(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12ae <main+0x14e>
cmpl   $0x2,-0x8(%rbp)
jge    130f <main+0x1af>
mov    0x2ce9(%rip),%rax
mov    (%rax),%edi
lea    0xd00(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13ac <main+0x24c>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1399 <main+0x239>
mov    -0x60(%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
cvtsi2sd %eax,%xmm0
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
mov    -0x50(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1329 <main+0x1c9>
jmp    139e <main+0x23e>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1316 <main+0x1b6>
mov    $0x0,%al
call   1030 <omp_get_wtime@plt>
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1429 <main+0x2c9>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1416 <main+0x2b6>
mov    -0x50(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13d2 <main+0x272>
jmp    141b <main+0x2bb>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13bf <main+0x25f>
movl   $0x0,-0x64(%rbp)
movl   $0x0,-0x68(%rbp)
movl   $0x0,-0x6c(%rbp)
movl   $0x0,-0x70(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15ed <main+0x48d>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15da <main+0x47a>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15a2 <main+0x442>
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
cvtsi2sdl -0x64(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x64(%rbp)
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x20(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
cvtsi2sdl -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x68(%rbp)
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x20(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x20(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
cvtsi2sdl -0x6c(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x20(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x20(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
cvtsi2sdl -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x70(%rbp)
mov    -0x20(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x20(%rbp)
jmp    1472 <main+0x312>
mov    -0x64(%rbp),%eax
add    -0x68(%rbp),%eax
add    -0x6c(%rbp),%eax
add    -0x70(%rbp),%eax
cvtsi2sd %eax,%xmm0
mov    -0x60(%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    145f <main+0x2ff>
jmp    15df <main+0x47f>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    144c <main+0x2ec>
mov    $0x0,%al
call   1030 <omp_get_wtime@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x60(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
lea    0x9f9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x60(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0x9e2(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x40(%rbp),%xmm0
mov    -0x14(%rbp),%esi
lea    0x9e6(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%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    $0x28,%rsp
mov    %edi,(%rsp)
mov    0x8(%rsi),%rdi
call   1070 <atoi@plt>
mov    %eax,%r15d
lea    0x0(,%r15,8),%r13d
mov    %r13d,%edi
call   1060 <malloc@plt>
mov    %r15d,%r14d
test   %r15d,%r15d
mov    %rax,0x18(%rsp)
jle    1262 <main+0x102>
mov    %rax,%rbp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r13d,%edi
call   1060 <malloc@plt>
mov    %rax,0x0(%rbp,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,%r14
jne    11b0 <main+0x50>
mov    %r13d,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
test   %r15d,%r15d
jle    126d <main+0x10d>
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r13d,%edi
call   1060 <malloc@plt>
mov    %rax,(%rbx,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r14
jne    11e0 <main+0x80>
mov    %r13d,%edi
call   1060 <malloc@plt>
mov    %rax,%r12
test   %r15d,%r15d
jle    1278 <main+0x118>
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
mov    %r13d,%edi
call   1060 <malloc@plt>
mov    %rax,(%r12,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r14
jne    1210 <main+0xb0>
mov    %r13d,%edi
call   1060 <malloc@plt>
test   %r15d,%r15d
jle    169d <main+0x53d>
mov    %r15,0x8(%rsp)
xor    %ebp,%ebp
mov    %rax,%r15
mov    %r13d,%edi
call   1060 <malloc@plt>
mov    %rax,(%r15,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r14
jne    1240 <main+0xe0>
mov    %r15,%r13
mov    0x8(%rsp),%r15
jmp    16a0 <main+0x540>
mov    %r13d,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
mov    %r13d,%edi
call   1060 <malloc@plt>
mov    %rax,%r12
mov    (%rsp),%ebp
mov    %r13d,%edi
call   1060 <malloc@plt>
mov    %rax,%r13
cmp    $0x2,%ebp
jl     16ac <main+0x54c>
test   %r15d,%r15d
jle    1623 <main+0x4c3>
lea    -0x1(%r14),%r8
mov    %r14d,%eax
and    $0xfffffffc,%eax
mov    %rax,0x10(%rsp)
lea    0x0(,%r14,8),%r9
and    $0xffffffffffffffe0,%r9
xor    %edx,%edx
movdqa 0xd43(%rip),%xmm0
xorpd  %xmm1,%xmm1
pcmpeqd %xmm2,%xmm2
movdqa 0xd43(%rip),%xmm3
movdqa 0xd4b(%rip),%xmm4
mov    %r8,(%rsp)
mov    %r15,0x8(%rsp)
mov    %r13,0x20(%rsp)
jmp    12fd <main+0x19d>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%rdx
cmp    %r14,%rdx
je     1479 <main+0x319>
mov    0x0(%r13,%rdx,8),%rsi
mov    0x18(%rsp),%rax
mov    (%rax,%rdx,8),%rdi
mov    (%rbx,%rdx,8),%rax
cmp    $0x4,%r15d
jae    1320 <main+0x1c0>
xor    %ecx,%ecx
jmp    13f0 <main+0x290>
nopl   0x0(%rax)
lea    (%rsi,%r14,8),%rbp
lea    (%rdi,%r14,8),%r11
lea    (%rax,%r14,8),%rcx
cmp    %r11,%rsi
setb   %r15b
cmp    %rbp,%rdi
setb   %r13b
cmp    %rcx,%rsi
setb   %r8b
cmp    %rbp,%rax
setb   %bpl
cmp    %rcx,%rdi
setb   %r10b
cmp    %r11,%rax
setb   %r11b
test   %r13b,%r15b
jne    13d6 <main+0x276>
and    %bpl,%r8b
jne    13d6 <main+0x276>
mov    $0x0,%ecx
and    %r11b,%r10b
mov    0x8(%rsp),%r15
mov    0x20(%rsp),%r13
mov    (%rsp),%r8
jne    13f0 <main+0x290>
xor    %ecx,%ecx
movdqa %xmm0,%xmm5
xchg   %ax,%ax
movupd %xmm1,(%rsi,%rcx,1)
pshufd $0xe8,%xmm5,%xmm6
movdqa %xmm6,%xmm7
psubd  %xmm2,%xmm7
paddd  %xmm3,%xmm6
cvtdq2pd %xmm7,%xmm7
cvtdq2pd %xmm6,%xmm6
movupd %xmm1,0x10(%rsi,%rcx,1)
movups %xmm7,(%rdi,%rcx,1)
movups %xmm6,0x10(%rdi,%rcx,1)
movups %xmm7,(%rax,%rcx,1)
movups %xmm6,0x10(%rax,%rcx,1)
paddq  %xmm4,%xmm5
add    $0x20,%rcx
cmp    %rcx,%r9
jne    1380 <main+0x220>
mov    0x10(%rsp),%rbp
mov    %rbp,%rcx
cmp    %r14,%rbp
je     12f0 <main+0x190>
jmp    13f0 <main+0x290>
xor    %ecx,%ecx
mov    0x8(%rsp),%r15
mov    0x20(%rsp),%r13
mov    (%rsp),%r8
cs nopw 0x0(%rax,%rax,1)
mov    %rcx,%rbp
test   $0x1,%r14b
je     1419 <main+0x2b9>
movq   $0x0,(%rsi,%rcx,8)
mov    %rcx,%rbp
or     $0x1,%rbp
xorps  %xmm5,%xmm5
cvtsi2sd %ebp,%xmm5
movsd  %xmm5,(%rdi,%rcx,8)
movsd  %xmm5,(%rax,%rcx,8)
cmp    %rcx,%r8
je     12f0 <main+0x190>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movq   $0x0,(%rsi,%rbp,8)
lea    0x1(%rbp),%ecx
xorps  %xmm5,%xmm5
cvtsi2sd %ecx,%xmm5
movsd  %xmm5,(%rdi,%rbp,8)
movsd  %xmm5,(%rax,%rbp,8)
lea    0x2(%rbp),%rcx
xorps  %xmm5,%xmm5
cvtsi2sd %ecx,%xmm5
movq   $0x0,0x8(%rsi,%rbp,8)
movsd  %xmm5,0x8(%rdi,%rbp,8)
movsd  %xmm5,0x8(%rax,%rbp,8)
mov    %rcx,%rbp
cmp    %rcx,%r14
jne    1430 <main+0x2d0>
jmp    12f0 <main+0x190>
xor    %eax,%eax
call   1030 <omp_get_wtime@plt>
test   %r15d,%r15d
movq   %xmm0,0x10(%rsp)
jle    1630 <main+0x4d0>
mov    %r14d,%eax
and    $0x3,%eax
mov    %r14d,%r8d
and    $0xfffffffc,%r8d
xor    %edx,%edx
mov    (%rsp),%r9
jmp    14bd <main+0x35d>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rdx
cmp    %r14,%rdx
je     154c <main+0x3ec>
mov    (%r12,%rdx,8),%rsi
xor    %edi,%edi
cmp    $0x3,%r9
jb     151b <main+0x3bb>
nopl   0x0(%rax)
mov    (%rbx,%rdi,8),%rbp
movsd  0x0(%rbp,%rdx,8),%xmm1
movsd  %xmm1,(%rsi,%rdi,8)
mov    0x8(%rbx,%rdi,8),%rbp
movsd  0x0(%rbp,%rdx,8),%xmm1
movsd  %xmm1,0x8(%rsi,%rdi,8)
mov    0x10(%rbx,%rdi,8),%rbp
movsd  0x0(%rbp,%rdx,8),%xmm1
movsd  %xmm1,0x10(%rsi,%rdi,8)
mov    0x18(%rbx,%rdi,8),%rbp
movsd  0x0(%rbp,%rdx,8),%xmm1
movsd  %xmm1,0x18(%rsi,%rdi,8)
add    $0x4,%rdi
cmp    %rdi,%r8
jne    14d0 <main+0x370>
test   %rax,%rax
je     14b0 <main+0x350>
lea    (%rsi,%rdi,8),%rsi
lea    (%rbx,%rdi,8),%rdi
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
mov    (%rdi,%rbp,8),%rcx
movsd  (%rcx,%rdx,8),%xmm1
movsd  %xmm1,(%rsi,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%rax
jne    1530 <main+0x3d0>
jmp    14b0 <main+0x350>
test   %r15d,%r15d
jle    1630 <main+0x4d0>
pxor   %xmm0,%xmm0
xor    %r8d,%r8d
nopl   0x0(%rax)
mov    0x0(%r13,%r8,8),%rcx
mov    0x18(%rsp),%rax
mov    (%rax,%r8,8),%rdx
xor    %esi,%esi
mov    (%rbx,%rsi,8),%rdi
mov    (%r12,%rsi,8),%rbp
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movupd 0x8(%rbp,%rax,8),%xmm1
movupd (%rdx,%rax,8),%xmm2
movupd 0x10(%rdx,%rax,8),%xmm3
pshufd $0xee,%xmm0,%xmm4
cvtdq2pd %xmm4,%xmm4
cvtdq2pd %xmm0,%xmm0
movsd  (%rdi,%rax,8),%xmm5
unpcklpd %xmm1,%xmm5
mulpd  %xmm2,%xmm5
addpd  %xmm0,%xmm5
movsd  0x18(%rbp,%rax,8),%xmm0
shufpd $0x1,%xmm0,%xmm1
mulpd  %xmm3,%xmm1
addpd  %xmm4,%xmm1
cvttpd2dq %xmm1,%xmm1
cvttpd2dq %xmm5,%xmm0
unpcklpd %xmm1,%xmm0
add    $0x4,%rax
cmp    %r14,%rax
jb     1580 <main+0x420>
pshufd $0x55,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0xee,%xmm0,%xmm2
pshufd $0xff,%xmm0,%xmm3
paddd  %xmm2,%xmm3
paddd  %xmm1,%xmm3
movd   %xmm3,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
addsd  (%rcx,%rsi,8),%xmm1
movsd  %xmm1,(%rcx,%rsi,8)
add    $0x1,%rsi
cmp    %r14,%rsi
jne    1570 <main+0x410>
add    $0x1,%r8
cmp    %r14,%r8
jne    1560 <main+0x400>
jmp    1630 <main+0x4d0>
xor    %eax,%eax
call   1030 <omp_get_wtime@plt>
movq   %xmm0,0x10(%rsp)
xor    %eax,%eax
call   1030 <omp_get_wtime@plt>
subsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
mov    0x0(%r13),%rax
movsd  (%rax),%xmm0
lea    0x9f1(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movslq %r15d,%rax
mov    -0x8(%r13,%rax,8),%rcx
movsd  -0x8(%rcx,%rax,8),%xmm0
lea    0x9eb(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x9f7(%rip),%rdi
movsd  0x18(%rsp),%xmm0
mov    %r15d,%esi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rax,%r13
mov    (%rsp),%ebp
cmp    $0x2,%ebp
jge    128f <main+0x12f>
mov    0x292d(%rip),%rax
mov    (%rax),%edi
lea    0x974(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [19 x i8] c"Faltan argumentos\0A\00"
@.str.1 = [22 x i8] c"resultado[0][0] = %g\0A\00"
@.str.2 = [26 x i8] c"resultado[N-1][N-1] = %g\0A\00"
@.str.3 = [44 x i8] c"Tiempo(seg.):%11.9f\09 / Tama\C3\B1o Matrices:%u\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = tail call i32 @atoi(i8* %4)
%6 = shl i32 %5, 3
%7 = tail call i64 @malloc(i32 %6)
%8 = inttoptr i64 %7 to double**
%9 = icmp sgt i32 %5, 0
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = tail call i64 @malloc(i32 %6)
%12 = inttoptr i64 %11 to double**
br label %34
13: ; preds = %2
%14 = zext i32 %5 to i64
br label %15
15: ; preds = %13, %15
%16 = phi i64 [ 0, %13 ], [ %20, %15 ]
%17 = tail call i64 @malloc(i32 %6)
%18 = inttoptr i64 %17 to double*
%19 = getelementptr inbounds double*, double** %8, i64 %16
store double* %18, double** %19
%20 = add nuw nsw i64 %16, 1
%21 = icmp eq i64 %20, %14
br i1 %21, label %22, label %15
22: ; preds = %15
%23 = tail call i64 @malloc(i32 %6)
%24 = inttoptr i64 %23 to double**
br i1 %9, label %25, label %34
25: ; preds = %22
%26 = zext i32 %5 to i64
br label %27
27: ; preds = %25, %27
%28 = phi i64 [ 0, %25 ], [ %32, %27 ]
%29 = tail call i64 @malloc(i32 %6)
%30 = inttoptr i64 %29 to double*
%31 = getelementptr inbounds double*, double** %24, i64 %28
store double* %30, double** %31
%32 = add nuw nsw i64 %28, 1
%33 = icmp eq i64 %32, %26
br i1 %33, label %38, label %27
34: ; preds = %10, %22
%35 = phi double** [ %24, %22 ], [ %12, %10 ]
%36 = tail call i64 @malloc(i32 %6)
%37 = inttoptr i64 %36 to double**
br label %50
38: ; preds = %27
%39 = tail call i64 @malloc(i32 %6)
%40 = inttoptr i64 %39 to double**
br i1 %9, label %41, label %50
41: ; preds = %38
%42 = zext i32 %5 to i64
br label %43
43: ; preds = %41, %43
%44 = phi i64 [ 0, %41 ], [ %48, %43 ]
%45 = tail call i64 @malloc(i32 %6)
%46 = inttoptr i64 %45 to double*
%47 = getelementptr inbounds double*, double** %40, i64 %44
store double* %46, double** %47
%48 = add nuw nsw i64 %44, 1
%49 = icmp eq i64 %48, %42
br i1 %49, label %55, label %43
50: ; preds = %34, %38
%51 = phi double** [ %40, %38 ], [ %37, %34 ]
%52 = phi double** [ %24, %38 ], [ %35, %34 ]
%53 = tail call i64 @malloc(i32 %6)
%54 = inttoptr i64 %53 to double**
br label %67
55: ; preds = %43
%56 = tail call i64 @malloc(i32 %6)
%57 = inttoptr i64 %56 to double**
br i1 %9, label %58, label %67
58: ; preds = %55
%59 = zext i32 %5 to i64
br label %60
60: ; preds = %58, %60
%61 = phi i64 [ 0, %58 ], [ %65, %60 ]
%62 = tail call i64 @malloc(i32 %6)
%63 = inttoptr i64 %62 to double*
%64 = getelementptr inbounds double*, double** %57, i64 %61
store double* %63, double** %64
%65 = add nuw nsw i64 %61, 1
%66 = icmp eq i64 %65, %59
br i1 %66, label %67, label %60
67: ; preds = %60, %50, %55
%68 = phi double** [ %54, %50 ], [ %57, %55 ], [ %57, %60 ]
%69 = phi double** [ %52, %50 ], [ %24, %55 ], [ %24, %60 ]
%70 = phi double** [ %51, %50 ], [ %40, %55 ], [ %40, %60 ]
%71 = icmp slt i32 %0, 2
br i1 %71, label %83, label %72
72: ; preds = %67
br i1 %9, label %75, label %73
73: ; preds = %72
%74 = tail call double (...) @omp_get_wtime()
br label %281
75: ; preds = %72
%76 = zext i32 %5 to i64
%77 = add nsw i64 %76, -1
%78 = icmp ult i32 %5, 4
%79 = and i64 %76, 4294967292
%80 = icmp eq i64 %79, %76
%81 = and i64 %76, 1
%82 = icmp eq i64 %81, 0
br label %87
83: ; preds = %67
%84 = load i32, i32* @stderr
%85 = tail call i32 @fprintf(i32 %84, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%86 = tail call i32 @exit(i32 -1)
unreachable
87: ; preds = %162, %75
%88 = phi i64 [ 0, %75 ], [ %163, %162 ]
%89 = getelementptr inbounds double*, double** %68, i64 %88
%90 = load double*, double** %89
%91 = getelementptr inbounds double*, double** %8, i64 %88
%92 = load double*, double** %91
%93 = getelementptr inbounds double*, double** %69, i64 %88
%94 = load double*, double** %93
br i1 %78, label %135, label %95
95: ; preds = %87
%96 = getelementptr double, double* %90, i64 %76
%97 = getelementptr double, double* %92, i64 %76
%98 = getelementptr double, double* %94, i64 %76
%99 = icmp ult double* %90, %97
%100 = icmp ult double* %92, %96
%101 = and i1 %99, %100
%102 = icmp ult double* %90, %98
%103 = icmp ult double* %94, %96
%104 = and i1 %102, %103
%105 = or i1 %101, %104
%106 = icmp ult double* %92, %98
%107 = icmp ult double* %94, %97
%108 = and i1 %106, %107
%109 = or i1 %105, %108
br i1 %109, label %135, label %110
110: ; preds = %95, %110
%111 = phi i64 [ %131, %110 ], [ 0, %95 ]
%112 = phi <2 x i64> [ %132, %110 ], [ <i64 0, i64 1>, %95 ]
%113 = getelementptr inbounds double, double* %90, i64 %111
%114 = bitcast double* %113 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %114
%115 = getelementptr inbounds double, double* %113, i64 2
%116 = bitcast double* %115 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %116
%117 = trunc <2 x i64> %112 to <2 x i32>
%118 = add <2 x i32> %117, <i32 1, i32 1>
%119 = trunc <2 x i64> %112 to <2 x i32>
%120 = add <2 x i32> %119, <i32 3, i32 3>
%121 = sitofp <2 x i32> %118 to <2 x double>
%122 = sitofp <2 x i32> %120 to <2 x double>
%123 = getelementptr inbounds double, double* %92, i64 %111
%124 = bitcast double* %123 to <2 x double>*
store <2 x double> %121, <2 x double>* %124
%125 = getelementptr inbounds double, double* %123, i64 2
%126 = bitcast double* %125 to <2 x double>*
store <2 x double> %122, <2 x double>* %126
%127 = getelementptr inbounds double, double* %94, i64 %111
%128 = bitcast double* %127 to <2 x double>*
store <2 x double> %121, <2 x double>* %128
%129 = getelementptr inbounds double, double* %127, i64 2
%130 = bitcast double* %129 to <2 x double>*
store <2 x double> %122, <2 x double>* %130
%131 = add nuw i64 %111, 4
%132 = add <2 x i64> %112, <i64 4, i64 4>
%133 = icmp eq i64 %131, %79
br i1 %133, label %134, label %110
134: ; preds = %110
br i1 %80, label %162, label %135
135: ; preds = %95, %87, %134
%136 = phi i64 [ 0, %95 ], [ 0, %87 ], [ %79, %134 ]
br i1 %82, label %144, label %137
137: ; preds = %135
%138 = getelementptr inbounds double, double* %90, i64 %136
store double 0.000000e+00, double* %138
%139 = or i64 %136, 1
%140 = trunc i64 %139 to i32
%141 = sitofp i32 %140 to double
%142 = getelementptr inbounds double, double* %92, i64 %136
store double %141, double* %142
%143 = getelementptr inbounds double, double* %94, i64 %136
store double %141, double* %143
br label %144
144: ; preds = %137, %135
%145 = phi i64 [ %136, %135 ], [ %139, %137 ]
%146 = icmp eq i64 %77, %136
br i1 %146, label %162, label %147
147: ; preds = %144, %147
%148 = phi i64 [ %156, %147 ], [ %145, %144 ]
%149 = getelementptr inbounds double, double* %90, i64 %148
store double 0.000000e+00, double* %149
%150 = add nuw nsw i64 %148, 1
%151 = trunc i64 %150 to i32
%152 = sitofp i32 %151 to double
%153 = getelementptr inbounds double, double* %92, i64 %148
store double %152, double* %153
%154 = getelementptr inbounds double, double* %94, i64 %148
store double %152, double* %154
%155 = getelementptr inbounds double, double* %90, i64 %150
store double 0.000000e+00, double* %155
%156 = add nuw nsw i64 %148, 2
%157 = trunc i64 %156 to i32
%158 = sitofp i32 %157 to double
%159 = getelementptr inbounds double, double* %92, i64 %150
store double %158, double* %159
%160 = getelementptr inbounds double, double* %94, i64 %150
store double %158, double* %160
%161 = icmp eq i64 %156, %76
br i1 %161, label %162, label %147
162: ; preds = %144, %147, %134
%163 = add nuw nsw i64 %88, 1
%164 = icmp eq i64 %163, %76
br i1 %164, label %165, label %87
165: ; preds = %162
%166 = tail call double (...) @omp_get_wtime()
br i1 %9, label %167, label %281
167: ; preds = %165
%168 = zext i32 %5 to i64
%169 = and i64 %76, 3
%170 = icmp ult i64 %77, 3
%171 = and i64 %76, 4294967292
%172 = icmp eq i64 %169, 0
br label %173
173: ; preds = %223, %167
%174 = phi i64 [ 0, %167 ], [ %224, %223 ]
%175 = getelementptr inbounds double*, double** %70, i64 %174
%176 = load double*, double** %175
br i1 %170, label %210, label %181
177: ; preds = %223
br i1 %9, label %178, label %281
178: ; preds = %177
%179 = zext i32 %5 to i64
%180 = zext i32 %5 to i64
br label %226
181: ; preds = %173, %181
%182 = phi i64 [ %207, %181 ], [ 0, %173 ]
%183 = phi i64 [ %208, %181 ], [ 0, %173 ]
%184 = getelementptr inbounds double*, double** %69, i64 %182
%185 = load double*, double** %184
%186 = getelementptr inbounds double, double* %185, i64 %174
%187 = load double, double* %186
%188 = getelementptr inbounds double, double* %176, i64 %182
store double %187, double* %188
%189 = or i64 %182, 1
%190 = getelementptr inbounds double*, double** %69, i64 %189
%191 = load double*, double** %190
%192 = getelementptr inbounds double, double* %191, i64 %174
%193 = load double, double* %192
%194 = getelementptr inbounds double, double* %176, i64 %189
store double %193, double* %194
%195 = or i64 %182, 2
%196 = getelementptr inbounds double*, double** %69, i64 %195
%197 = load double*, double** %196
%198 = getelementptr inbounds double, double* %197, i64 %174
%199 = load double, double* %198
%200 = getelementptr inbounds double, double* %176, i64 %195
store double %199, double* %200
%201 = or i64 %182, 3
%202 = getelementptr inbounds double*, double** %69, i64 %201
%203 = load double*, double** %202
%204 = getelementptr inbounds double, double* %203, i64 %174
%205 = load double, double* %204
%206 = getelementptr inbounds double, double* %176, i64 %201
store double %205, double* %206
%207 = add nuw nsw i64 %182, 4
%208 = add i64 %183, 4
%209 = icmp eq i64 %208, %171
br i1 %209, label %210, label %181
210: ; preds = %181, %173
%211 = phi i64 [ 0, %173 ], [ %207, %181 ]
br i1 %172, label %223, label %212
212: ; preds = %210, %212
%213 = phi i64 [ %220, %212 ], [ %211, %210 ]
%214 = phi i64 [ %221, %212 ], [ 0, %210 ]
%215 = getelementptr inbounds double*, double** %69, i64 %213
%216 = load double*, double** %215
%217 = getelementptr inbounds double, double* %216, i64 %174
%218 = load double, double* %217
%219 = getelementptr inbounds double, double* %176, i64 %213
store double %218, double* %219
%220 = add nuw nsw i64 %213, 1
%221 = add i64 %214, 1
%222 = icmp eq i64 %221, %169
br i1 %222, label %223, label %212
223: ; preds = %212, %210
%224 = add nuw nsw i64 %174, 1
%225 = icmp eq i64 %224, %168
br i1 %225, label %177, label %173
226: ; preds = %278, %178
%227 = phi i64 [ 0, %178 ], [ %279, %278 ]
%228 = phi <4 x i32> [ zeroinitializer, %178 ], [ %261, %278 ]
%229 = getelementptr inbounds double*, double** %8, i64 %227
%230 = getelementptr inbounds double*, double** %68, i64 %227
%231 = load double*, double** %230
%232 = load double*, double** %229
br label %233
233: ; preds = %264, %226
%234 = phi i64 [ 0, %226 ], [ %276, %264 ]
%235 = phi <4 x i32> [ %228, %226 ], [ %261, %264 ]
%236 = getelementptr inbounds double*, double** %69, i64 %234
%237 = load double*, double** %236
%238 = getelementptr inbounds double*, double** %70, i64 %234
%239 = load double*, double** %238
br label %240
240: ; preds = %233, %240
%241 = phi i64 [ 0, %233 ], [ %262, %240 ]
%242 = phi <4 x i32> [ %235, %233 ], [ %261, %240 ]
%243 = getelementptr inbounds double, double* %232, i64 %241
%244 = getelementptr inbounds double, double* %237, i64 %241
%245 = load double, double* %244
%246 = or i64 %241, 1
%247 = getelementptr inbounds double, double* %239, i64 %246
%248 = bitcast double* %247 to <2 x double>*
%249 = load <2 x double>, <2 x double>* %248
%250 = or i64 %241, 3
%251 = bitcast double* %243 to <4 x double>*
%252 = load <4 x double>, <4 x double>* %251
%253 = getelementptr inbounds double, double* %239, i64 %250
%254 = load double, double* %253
%255 = sitofp <4 x i32> %242 to <4 x double>
%256 = insertelement <4 x double> poison, double %245, i64 0
%257 = shufflevector <2 x double> %249, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef>
%258 = shufflevector <4 x double> %256, <4 x double> %257, <4 x i32> <i32 0, i32 4, i32 5, i32 undef>
%259 = insertelement <4 x double> %258, double %254, i64 3
%260 = call <4 x double> @llvm.fmuladd.v4f64(<4 x double> %252, <4 x double> %259, <4 x double> %255)
%261 = fptosi <4 x double> %260 to <4 x i32>
%262 = add nuw nsw i64 %241, 4
%263 = icmp ult i64 %262, %179
br i1 %263, label %240, label %264
264: ; preds = %240
%265 = shufflevector <4 x i32> %261, <4 x i32> poison, <4 x i32> <i32 1, i32 undef, i32 undef, i32 undef>
%266 = add nsw <4 x i32> %265, %261
%267 = shufflevector <4 x i32> %261, <4 x i32> poison, <4 x i32> <i32 2, i32 undef, i32 undef, i32 undef>
%268 = add nsw <4 x i32> %266, %267
%269 = shufflevector <4 x i32> %261, <4 x i32> poison, <4 x i32> <i32 3, i32 undef, i32 undef, i32 undef>
%270 = add nsw <4 x i32> %268, %269
%271 = extractelement <4 x i32> %270, i64 0
%272 = sitofp i32 %271 to double
%273 = getelementptr inbounds double, double* %231, i64 %234
%274 = load double, double* %273
%275 = fadd double %274, %272
store double %275, double* %273
%276 = add nuw nsw i64 %234, 1
%277 = icmp eq i64 %276, %180
br i1 %277, label %278, label %233
278: ; preds = %264
%279 = add nuw nsw i64 %227, 1
%280 = icmp eq i64 %279, %180
br i1 %280, label %281, label %226
281: ; preds = %278, %165, %73, %177
%282 = phi double [ %166, %177 ], [ %166, %165 ], [ %74, %73 ], [ %166, %278 ]
%283 = tail call double (...) @omp_get_wtime()
%284 = fsub double %283, %282
%285 = load double*, double** %68
%286 = load double, double* %285
%287 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), double %286)
%288 = add nsw i32 %5, -1
%289 = sext i32 %288 to i64
%290 = getelementptr inbounds double*, double** %68, i64 %289
%291 = load double*, double** %290
%292 = getelementptr inbounds double, double* %291, i64 %289
%293 = load double, double* %292
%294 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), double %293)
%295 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), double %284, i32 %5)
ret i32 0
}