int main(int argc, char **argv) {
  unsigned int N, i, j, k, resultado;
  double cgt1, cgt2;
  double ncgt;
  if (argc < 2) {
    printf("Faltan no componentes del vector\n");
    exit(-1);
  }
  N = atoi(argv[1]);
  double **matrizA, **matrizC, **matrizB;
  matrizB = (double **)malloc(N * sizeof(double *));
  for (i = 0; i < N; i++)
    matrizB[i] = (double *)malloc(N * sizeof(double));
  matrizC = (double **)malloc(N * sizeof(double *));
  for (i = 0; i < N; i++)
    matrizC[i] = (double *)malloc(N * sizeof(double));
  matrizA = (double **)malloc(N * sizeof(double *));
  for (i = 0; i < N; i++)
    matrizA[i] = (double *)malloc(N * sizeof(double));
#pragma omp parallel for
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      matrizB[i][j] = 2;
      matrizC[i][j] = 1;
    }
  }
  cgt1 = omp_get_wtime();
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      resultado = 0;
#pragma omp parallel for reduction(+ : resultado)
      for (k = 0; k < N; k++) {
        resultado += matrizB[i][k] * matrizC[k][j];
      }
      matrizA[i][j] = resultado;
    }
  }
  cgt2 = omp_get_wtime();
  ncgt = cgt2 - cgt1;
  printf("Tiempo(seg.):%11.9f\t / Tamaño Matriz:%u\n", ncgt, N);
  printf("MAtriz resultado\n");
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      printf("%f ", matrizA[i][j]);
    }
    printf("\n");
  }
  for (i = 0; i < N; i++)
    free(matrizB[i]);
  free(matrizB);
  for (i = 0; i < N; i++)
    free(matrizC[i]);
  free(matrizC);
  for (i = 0; i < N; i++)
    free(matrizA[i]);
  free(matrizA);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1198 <main+0x38>
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    $0x0,%al
call   1070 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1060 <malloc@plt>
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    11f9 <main+0x99>
mov    -0x14(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x58(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11c3 <main+0x63>
mov    -0x14(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1060 <malloc@plt>
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1248 <main+0xe8>
mov    -0x14(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x50(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1212 <main+0xb2>
mov    -0x14(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1060 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1297 <main+0x137>
mov    -0x14(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x48(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1261 <main+0x101>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1314 <main+0x1b4>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1301 <main+0x1a1>
mov    -0x58(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x1c(%rbp),%ecx
movsd  0xd35(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x1c(%rbp),%ecx
movsd  0xd12(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12b1 <main+0x151>
jmp    1306 <main+0x1a6>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    129e <main+0x13e>
mov    $0x0,%al
call   1040 <omp_get_wtime@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    13e9 <main+0x289>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    13d6 <main+0x276>
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    13ad <main+0x24d>
mov    -0x58(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x20(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
mov    (%rax,%rcx,8),%rax
mov    -0x1c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x24(%rbp),%eax
cvtsi2sd %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rax
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1358 <main+0x1f8>
mov    -0x24(%rbp),%eax
cvtsi2sd %rax,%xmm0
mov    -0x48(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x1c(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    133e <main+0x1de>
jmp    13db <main+0x27b>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    132b <main+0x1cb>
mov    $0x0,%al
call   1040 <omp_get_wtime@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
mov    -0x14(%rbp),%esi
lea    0xc1b(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xc37(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    149d <main+0x33d>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1481 <main+0x321>
mov    -0x48(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x1c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
lea    0xc02(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1446 <main+0x2e6>
lea    0xbe4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1433 <main+0x2d3>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    14ce <main+0x36e>
mov    -0x58(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    14a4 <main+0x344>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1508 <main+0x3a8>
mov    -0x50(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    14de <main+0x37e>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1542 <main+0x3e2>
mov    -0x48(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1518 <main+0x3b8>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
cmp    $0x1,%edi
jle    16ad <main+0x52d>
mov    0x8(%rsi),%rdi
xor    %eax,%eax
call   1090 <atoi@plt>
mov    %eax,%ebx
mov    %eax,%r15d
lea    0x0(,%r15,8),%r13
mov    %r13,%rdi
call   1080 <malloc@plt>
mov    %rax,%r12
test   %ebx,%ebx
je     1454 <main+0x2d4>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r13,%rdi
call   1080 <malloc@plt>
mov    %rax,(%r12,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,%r15
jne    11d0 <main+0x50>
mov    %r13,%rdi
call   1080 <malloc@plt>
mov    %rax,%rbx
test   %r15,%r15
je     145f <main+0x2df>
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
call   1080 <malloc@plt>
mov    %rax,(%rbx,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1200 <main+0x80>
mov    %r13,%rdi
call   1080 <malloc@plt>
mov    %rax,%r14
test   %r15,%r15
je     146a <main+0x2ea>
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
call   1080 <malloc@plt>
mov    %rax,(%r14,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1230 <main+0xb0>
test   %r15,%r15
je     146a <main+0x2ea>
mov    %r14,0x8(%rsp)
mov    %r15d,%eax
and    $0xfffffffc,%eax
mov    %rax,(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,0x20(%rsp)
shr    $0x2,%rax
add    $0x1,%rax
lea    -0x1(%r15),%r13
mov    %eax,%r9d
and    $0x3,%r9d
and    $0xfffffffffffffffc,%rax
mov    %rax,0x10(%rsp)
mov    %r15d,%r10d
and    $0x3,%r10d
mov    %r9,0x18(%rsp)
shl    $0x5,%r9
xor    %r14d,%r14d
movabs $0x4000000000000000,%rdx
movabs $0x3ff0000000000000,%rax
movapd 0xd4f(%rip),%xmm0
movapd 0xd57(%rip),%xmm1
jmp    12cd <main+0x14d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14
cmp    %r15,%r14
je     15bd <main+0x43d>
mov    (%r12,%r14,8),%rbp
mov    (%rbx,%r14,8),%r8
cmp    $0x4,%r15d
jb     12fc <main+0x17c>
lea    (%r8,%r15,8),%rcx
cmp    %rcx,%rbp
jae    1370 <main+0x1f0>
lea    0x0(,%r15,8),%rcx
add    %rbp,%rcx
cmp    %rcx,%r8
jae    1370 <main+0x1f0>
xor    %r11d,%r11d
mov    %r13,%rsi
sub    %r11,%rsi
test   %r10,%r10
je     1323 <main+0x1a3>
mov    %r10,%rdi
nopl   (%rax)
mov    %rdx,0x0(%rbp,%r11,8)
mov    %rax,(%r8,%r11,8)
add    $0x1,%r11
add    $0xffffffffffffffff,%rdi
jne    1310 <main+0x190>
cmp    $0x3,%rsi
jb     12c0 <main+0x140>
nopl   0x0(%rax)
mov    %rdx,0x0(%rbp,%r11,8)
mov    %rax,(%r8,%r11,8)
mov    %rdx,0x8(%rbp,%r11,8)
mov    %rax,0x8(%r8,%r11,8)
mov    %rdx,0x10(%rbp,%r11,8)
mov    %rax,0x10(%r8,%r11,8)
mov    %rdx,0x18(%rbp,%r11,8)
mov    %rax,0x18(%r8,%r11,8)
add    $0x4,%r11
cmp    %r11,%r15
jne    1330 <main+0x1b0>
jmp    12c0 <main+0x140>
cs nopw 0x0(%rax,%rax,1)
nop
cmpq   $0xc,0x20(%rsp)
jae    137f <main+0x1ff>
xor    %edi,%edi
jmp    1401 <main+0x281>
mov    0x10(%rsp),%rsi
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
movupd %xmm0,0x0(%rbp,%rdi,8)
movupd %xmm0,0x10(%rbp,%rdi,8)
movupd %xmm1,(%r8,%rdi,8)
movupd %xmm1,0x10(%r8,%rdi,8)
movupd %xmm0,0x20(%rbp,%rdi,8)
movupd %xmm0,0x30(%rbp,%rdi,8)
movupd %xmm1,0x20(%r8,%rdi,8)
movupd %xmm1,0x30(%r8,%rdi,8)
movupd %xmm0,0x40(%rbp,%rdi,8)
movupd %xmm0,0x50(%rbp,%rdi,8)
movupd %xmm1,0x40(%r8,%rdi,8)
movupd %xmm1,0x50(%r8,%rdi,8)
movupd %xmm0,0x60(%rbp,%rdi,8)
movupd %xmm0,0x70(%rbp,%rdi,8)
movupd %xmm1,0x60(%r8,%rdi,8)
movupd %xmm1,0x70(%r8,%rdi,8)
add    $0x10,%rdi
add    $0xfffffffffffffffc,%rsi
jne    1390 <main+0x210>
cmpq   $0x0,0x18(%rsp)
je     143f <main+0x2bf>
lea    (%r8,%rdi,8),%rsi
add    $0x10,%rsi
lea    0x10(,%rdi,8),%rdi
add    %rbp,%rdi
xor    %ecx,%ecx
xchg   %ax,%ax
movupd %xmm0,-0x10(%rdi,%rcx,1)
movupd %xmm0,(%rdi,%rcx,1)
movupd %xmm1,-0x10(%rsi,%rcx,1)
movupd %xmm1,(%rsi,%rcx,1)
add    $0x20,%rcx
cmp    %rcx,%r9
jne    1420 <main+0x2a0>
mov    (%rsp),%rcx
mov    %rcx,%r11
cmp    %r15,%rcx
je     12c0 <main+0x140>
jmp    12ff <main+0x17f>
mov    %r13,%rdi
call   1080 <malloc@plt>
mov    %rax,%rbx
mov    %r13,%rdi
call   1080 <malloc@plt>
mov    %rax,%r14
xor    %eax,%eax
call   1060 <omp_get_wtime@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1060 <omp_get_wtime@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
subsd  (%rsp),%xmm0
lea    0xb89(%rip),%rdi
mov    %r15d,%esi
mov    $0x1,%al
call   1070 <printf@plt>
lea    0xba6(%rip),%rdi
call   1050 <puts@plt>
test   %r15,%r15
je     1594 <main+0x414>
mov    %r12,(%rsp)
xor    %ebp,%ebp
lea    0xb87(%rip),%r13
mov    %r14,0x8(%rsp)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbp,8),%r12
xor    %r14d,%r14d
nopw   0x0(%rax,%rax,1)
movsd  (%r12,%r14,8),%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1070 <printf@plt>
add    $0x1,%r14
cmp    %r14,%r15
jne    14e0 <main+0x360>
mov    $0xa,%edi
call   1040 <putchar@plt>
add    $0x1,%rbp
cmp    %r15,%rbp
mov    0x8(%rsp),%r14
jne    14d0 <main+0x350>
test   %r15,%r15
mov    (%rsp),%r12
je     1594 <main+0x414>
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    (%r12,%rbp,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1520 <main+0x3a0>
mov    %r12,%rdi
call   1030 <free@plt>
test   %r15,%r15
je     159c <main+0x41c>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%rbx,%rbp,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1550 <main+0x3d0>
mov    %rbx,%rdi
call   1030 <free@plt>
test   %r15,%r15
je     15a4 <main+0x424>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1580 <main+0x400>
jmp    15a4 <main+0x424>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1060 <omp_get_wtime@plt>
test   %r15,%r15
mov    0x8(%rsp),%r14
je     1471 <main+0x2f1>
mov    %r15d,%ecx
and    $0xfffffffe,%ecx
xor    %r8d,%r8d
jmp    15ed <main+0x46d>
nopl   (%rax)
add    $0x1,%r8
cmp    %r15,%r8
je     1471 <main+0x2f1>
mov    (%r12,%r8,8),%rsi
mov    (%r14,%r8,8),%r9
xor    %ebp,%ebp
jmp    1619 <main+0x499>
nopl   0x0(%rax)
mov    %edi,%edx
xorps  %xmm0,%xmm0
cvtsi2sd %rdx,%xmm0
movsd  %xmm0,(%r9,%rbp,8)
add    $0x1,%rbp
cmp    %r15,%rbp
je     15e0 <main+0x460>
xor    %edx,%edx
xor    %edi,%edi
test   %r13,%r13
je     167d <main+0x4fd>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %edi,%edi
xorps  %xmm0,%xmm0
cvtsi2sd %rdi,%xmm0
movsd  (%rsi,%rdx,8),%xmm1
mov    (%rbx,%rdx,8),%rdi
mulsd  (%rdi,%rbp,8),%xmm1
addsd  %xmm0,%xmm1
cvttsd2si %xmm1,%rdi
movsd  0x8(%rsi,%rdx,8),%xmm0
mov    %edi,%edi
xorps  %xmm1,%xmm1
cvtsi2sd %rdi,%xmm1
mov    0x8(%rbx,%rdx,8),%rdi
mulsd  (%rdi,%rbp,8),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rdi
add    $0x2,%rdx
cmp    %rdx,%rcx
jne    1630 <main+0x4b0>
test   $0x1,%r15b
je     1600 <main+0x480>
movsd  (%rsi,%rdx,8),%xmm0
mov    (%rbx,%rdx,8),%rdx
mov    %edi,%edi
xorps  %xmm1,%xmm1
cvtsi2sd %rdi,%xmm1
mulsd  (%rdx,%rbp,8),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rdi
jmp    1600 <main+0x480>
lea    0x9ab(%rip),%rdi
call   1050 <puts@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>

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

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