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


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)
movl   $0x3,-0x1c(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    119f <main+0x3f>
lea    0xe72(%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,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1060 <malloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1060 <malloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1060 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jae    1224 <main+0xc4>
mov    -0x1c(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x48(%rbp),%rax
mov    -0x20(%rbp),%ecx
mov    %rdx,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11ee <main+0x8e>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jae    1259 <main+0xf9>
mov    -0x20(%rbp),%eax
cvtsi2sd %rax,%xmm0
mov    -0x50(%rbp),%rax
mov    -0x20(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    122b <main+0xcb>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jae    12c0 <main+0x160>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jae    12ad <main+0x14d>
mov    -0x20(%rbp),%eax
mov    -0x24(%rbp),%ecx
add    %ecx,%eax
cvtsi2sd %rax,%xmm0
mov    -0x48(%rbp),%rax
mov    -0x20(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1273 <main+0x113>
jmp    12b2 <main+0x152>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1260 <main+0x100>
mov    $0x0,%al
call   1040 <omp_get_wtime@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jae    135c <main+0x1fc>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jae    133d <main+0x1dd>
mov    -0x48(%rbp),%rax
mov    -0x20(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
mov    -0x24(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12f2 <main+0x192>
movsd  -0x18(%rbp),%xmm0
mov    -0x58(%rbp),%rax
mov    -0x20(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12d7 <main+0x177>
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    -0x1c(%rbp),%esi
lea    0xc98(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xcb6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jae    13da <main+0x27a>
mov    -0x58(%rbp),%rax
mov    -0x20(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
lea    0xc9e(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    13a6 <main+0x246>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jae    141d <main+0x2bd>
mov    -0x48(%rbp),%rax
mov    -0x20(%rbp),%ecx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    13f3 <main+0x293>
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
push   %rax
cmp    $0x1,%edi
jle    16c9 <main+0x559>
mov    0x8(%rsi),%rdi
xor    %eax,%eax
call   1080 <atoi@plt>
mov    %eax,%ebp
mov    %eax,%r12d
lea    0x0(,%r12,8),%r13
mov    %r13,%rdi
call   1070 <malloc@plt>
mov    %rax,%rbx
mov    %r13,%rdi
call   1070 <malloc@plt>
mov    %rax,%r15
mov    %r13,%rdi
call   1070 <malloc@plt>
mov    %rax,%r14
test   %ebp,%ebp
je     14dd <main+0x36d>
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
mov    %r13,%rdi
call   1070 <malloc@plt>
mov    %rax,(%r14,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r12
jne    11d0 <main+0x60>
test   %r12,%r12
je     14dd <main+0x36d>
cmp    $0x4,%r12d
jae    11fb <main+0x8b>
xor    %eax,%eax
jmp    1320 <main+0x1b0>
mov    %r12d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rcx
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rcx,%rcx
je     16b1 <main+0x541>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
movdqa 0xdd8(%rip),%xmm1
xor    %ecx,%ecx
movdqa 0xddd(%rip),%xmm8
pxor   %xmm2,%xmm2
movdqa 0xde1(%rip),%xmm3
movdqa 0xde9(%rip),%xmm4
movdqa 0xdf1(%rip),%xmm5
movdqa 0xdf9(%rip),%xmm6
nopw   0x0(%rax,%rax,1)
movdqa %xmm1,%xmm7
paddd  %xmm8,%xmm7
movdqa %xmm1,%xmm0
punpckldq %xmm2,%xmm0
por    %xmm3,%xmm0
subpd  %xmm3,%xmm0
punpckldq %xmm2,%xmm7
por    %xmm3,%xmm7
subpd  %xmm3,%xmm7
movupd %xmm0,(%rbx,%rcx,8)
movupd %xmm7,0x10(%rbx,%rcx,8)
movdqa %xmm1,%xmm0
paddd  %xmm4,%xmm0
movdqa %xmm1,%xmm7
paddd  %xmm5,%xmm7
punpckldq %xmm2,%xmm0
por    %xmm3,%xmm0
subpd  %xmm3,%xmm0
punpckldq %xmm2,%xmm7
por    %xmm3,%xmm7
subpd  %xmm3,%xmm7
movupd %xmm0,0x20(%rbx,%rcx,8)
movupd %xmm7,0x30(%rbx,%rcx,8)
add    $0x8,%rcx
paddd  %xmm6,%xmm1
add    $0xfffffffffffffffe,%rsi
jne    1260 <main+0xf0>
test   $0x1,%dl
je     1312 <main+0x1a2>
movdqa 0xd31(%rip),%xmm0
paddd  %xmm1,%xmm0
pxor   %xmm2,%xmm2
punpckldq %xmm2,%xmm1
movdqa 0xd2d(%rip),%xmm3
por    %xmm3,%xmm1
subpd  %xmm3,%xmm1
punpckldq %xmm2,%xmm0
por    %xmm3,%xmm0
subpd  %xmm3,%xmm0
movupd %xmm1,(%rbx,%rcx,8)
movupd %xmm0,0x10(%rbx,%rcx,8)
cmp    %r12,%rax
je     1338 <main+0x1c8>
nopw   0x0(%rax,%rax,1)
mov    %eax,%ecx
xorps  %xmm0,%xmm0
cvtsi2sd %rcx,%xmm0
movsd  %xmm0,(%rbx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r12
jne    1320 <main+0x1b0>
test   %r12,%r12
je     14dd <main+0x36d>
mov    %r12d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%r9
mov    %r9,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %rdx,%r8
and    $0xfffffffffffffffe,%r8
xor    %edi,%edi
movdqa 0xc98(%rip),%xmm8
pxor   %xmm1,%xmm1
movdqa 0xcac(%rip),%xmm2
movdqa 0xcb3(%rip),%xmm9
movdqa 0xccb(%rip),%xmm4
jmp    139d <main+0x22d>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rdi
cmp    %r12,%rdi
je     159d <main+0x42d>
mov    (%r14,%rdi,8),%rbp
cmp    $0x4,%r12d
jae    13b0 <main+0x240>
xor    %ecx,%ecx
jmp    14b0 <main+0x340>
xchg   %ax,%ax
movd   %edi,%xmm5
pshufd $0x50,%xmm5,%xmm5
test   %r9,%r9
je     14cf <main+0x35f>
lea    0x2(%rdi),%ecx
movd   %ecx,%xmm6
pshufd $0x50,%xmm6,%xmm3
mov    %r8,%rcx
xor    %esi,%esi
movdqa %xmm8,%xmm0
nopl   0x0(%rax,%rax,1)
movdqa %xmm0,%xmm6
paddd  %xmm5,%xmm6
movdqa %xmm3,%xmm7
paddd  %xmm0,%xmm7
punpckldq %xmm1,%xmm6
por    %xmm2,%xmm6
subpd  %xmm2,%xmm6
punpckldq %xmm1,%xmm7
por    %xmm2,%xmm7
subpd  %xmm2,%xmm7
movupd %xmm6,0x0(%rbp,%rsi,8)
movupd %xmm7,0x10(%rbp,%rsi,8)
movdqa %xmm0,%xmm6
paddd  %xmm9,%xmm6
movdqa %xmm3,%xmm7
paddd  %xmm6,%xmm7
paddd  %xmm5,%xmm6
punpckldq %xmm1,%xmm6
por    %xmm2,%xmm6
subpd  %xmm2,%xmm6
punpckldq %xmm1,%xmm7
por    %xmm2,%xmm7
subpd  %xmm2,%xmm7
movupd %xmm6,0x20(%rbp,%rsi,8)
movupd %xmm7,0x30(%rbp,%rsi,8)
add    $0x8,%rsi
paddd  %xmm4,%xmm0
add    $0xfffffffffffffffe,%rcx
jne    13e0 <main+0x270>
test   $0x1,%dl
je     1498 <main+0x328>
paddd  %xmm0,%xmm5
lea    0x2(%rdi),%ecx
movd   %ecx,%xmm3
pshufd $0x50,%xmm3,%xmm3
paddd  %xmm0,%xmm3
punpckldq %xmm1,%xmm5
por    %xmm2,%xmm5
subpd  %xmm2,%xmm5
punpckldq %xmm1,%xmm3
por    %xmm2,%xmm3
subpd  %xmm2,%xmm3
movupd %xmm5,0x0(%rbp,%rsi,8)
movupd %xmm3,0x10(%rbp,%rsi,8)
mov    %rax,%rcx
cmp    %r12,%rax
je     1390 <main+0x220>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    (%rdi,%rcx,1),%esi
xorps  %xmm0,%xmm0
cvtsi2sd %rsi,%xmm0
movsd  %xmm0,0x0(%rbp,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%r12
jne    14b0 <main+0x340>
jmp    1390 <main+0x220>
xor    %esi,%esi
movdqa %xmm8,%xmm0
test   $0x1,%dl
jne    1460 <main+0x2f0>
jmp    1498 <main+0x328>
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
subsd  (%rsp),%xmm0
lea    0xb56(%rip),%rdi
mov    %r12d,%esi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xb75(%rip),%rdi
call   1040 <puts@plt>
test   %r12,%r12
je     1574 <main+0x404>
xor    %ebp,%ebp
lea    0xb5e(%rip),%r13
xchg   %ax,%ax
movsd  (%r15,%rbp,8),%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r12
jne    1530 <main+0x3c0>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
test   %r12,%r12
je     1584 <main+0x414>
xor    %ebx,%ebx
mov    (%r14,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1560 <main+0x3f0>
jmp    1584 <main+0x414>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
xorps  %xmm4,%xmm4
cvtsi2sd %eax,%xmm4
test   %r12,%r12
movsd  %xmm4,(%rsp)
je     167c <main+0x50c>
lea    -0x1(%r12),%r8
mov    %r12d,%ecx
and    $0x3,%ecx
mov    %r12d,%edx
and    $0xfffffffc,%edx
xor    %esi,%esi
jmp    15e3 <main+0x473>
xchg   %ax,%ax
movsd  %xmm0,(%r15,%rsi,8)
add    $0x1,%rsi
cmp    %r12,%rsi
je     14f0 <main+0x380>
mov    (%r14,%rsi,8),%rdi
xorpd  %xmm0,%xmm0
xor    %ebp,%ebp
cmp    $0x3,%r8
jb     1647 <main+0x4d7>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rdi,%rbp,8),%xmm1
movsd  0x8(%rdi,%rbp,8),%xmm2
mulsd  (%rbx,%rbp,8),%xmm1
mulsd  0x8(%rbx,%rbp,8),%xmm2
addsd  %xmm0,%xmm1
movsd  0x10(%rdi,%rbp,8),%xmm3
mulsd  0x10(%rbx,%rbp,8),%xmm3
addsd  %xmm1,%xmm2
movsd  0x18(%rdi,%rbp,8),%xmm0
mulsd  0x18(%rbx,%rbp,8),%xmm0
addsd  %xmm2,%xmm3
addsd  %xmm3,%xmm0
add    $0x4,%rbp
cmp    %rbp,%rdx
jne    1600 <main+0x490>
test   %rcx,%rcx
je     15d0 <main+0x460>
lea    (%rbx,%rbp,8),%rax
lea    (%rdi,%rbp,8),%rdi
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
movsd  (%rdi,%rbp,8),%xmm1
mulsd  (%rax,%rbp,8),%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%rbp
cmp    %rbp,%rcx
jne    1660 <main+0x4f0>
jmp    15d0 <main+0x460>
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
subsd  (%rsp),%xmm0
lea    0x9ca(%rip),%rdi
mov    %r12d,%esi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0x9e9(%rip),%rdi
call   1040 <puts@plt>
jmp    1549 <main+0x3d9>
movdqa 0x947(%rip),%xmm1
xor    %ecx,%ecx
test   $0x1,%dl
jne    12d7 <main+0x167>
jmp    1312 <main+0x1a2>
lea    0x9d4(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"Faltan no componentes del vector\0A\00"
@.str.1 = [44 x i8] c"Tiempo(seg.):%11.9f\09 / Tama\C3\B1o Vectores:%u\0A\00"
@.str.2 = [21 x i8] c"Vector resultadoado\0A\00"
@.str.3 = [4 x i8] c"%f \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double**
%14 = alloca double*
%15 = alloca double*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 3, i32* %7
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %20
18: ; preds = %2
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
unreachable
20: ; preds = %2
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %23)
store i32 %24, i32* %7
%25 = load i32, i32* %7
%26 = zext i32 %25 to i64
%27 = mul i64 %26, 8
%28 = call i8* @malloc(i64 %27)
%29 = bitcast i8* %28 to double*
store double* %29, double** %14
%30 = load i32, i32* %7
%31 = zext i32 %30 to i64
%32 = mul i64 %31, 8
%33 = call i8* @malloc(i64 %32)
%34 = bitcast i8* %33 to double*
store double* %34, double** %15
%35 = load i32, i32* %7
%36 = zext i32 %35 to i64
%37 = mul i64 %36, 8
%38 = call i8* @malloc(i64 %37)
%39 = bitcast i8* %38 to double**
store double** %39, double*** %13
store i32 0, i32* %8
br label %40
40: ; preds = %54, %20
%41 = load i32, i32* %8
%42 = load i32, i32* %7
%43 = icmp ult i32 %41, %42
br i1 %43, label %44, label %57
44: ; preds = %40
%45 = load i32, i32* %7
%46 = zext i32 %45 to i64
%47 = mul i64 %46, 8
%48 = call i8* @malloc(i64 %47)
%49 = bitcast i8* %48 to double*
%50 = load double**, double*** %13
%51 = load i32, i32* %8
%52 = zext i32 %51 to i64
%53 = getelementptr inbounds double*, double** %50, i64 %52
store double* %49, double** %53
br label %54
54: ; preds = %44
%55 = load i32, i32* %8
%56 = add i32 %55, 1
store i32 %56, i32* %8
br label %40
57: ; preds = %40
store i32 0, i32* %8
br label %58
58: ; preds = %69, %57
%59 = load i32, i32* %8
%60 = load i32, i32* %7
%61 = icmp ult i32 %59, %60
br i1 %61, label %62, label %72
62: ; preds = %58
%63 = load i32, i32* %8
%64 = uitofp i32 %63 to double
%65 = load double*, double** %14
%66 = load i32, i32* %8
%67 = zext i32 %66 to i64
%68 = getelementptr inbounds double, double* %65, i64 %67
store double %64, double* %68
br label %69
69: ; preds = %62
%70 = load i32, i32* %8
%71 = add i32 %70, 1
store i32 %71, i32* %8
br label %58
72: ; preds = %58
store i32 0, i32* %8
br label %73
73: ; preds = %99, %72
%74 = load i32, i32* %8
%75 = load i32, i32* %7
%76 = icmp ult i32 %74, %75
br i1 %76, label %77, label %102
77: ; preds = %73
store i32 0, i32* %9
br label %78
78: ; preds = %95, %77
%79 = load i32, i32* %9
%80 = load i32, i32* %7
%81 = icmp ult i32 %79, %80
br i1 %81, label %82, label %98
82: ; preds = %78
%83 = load i32, i32* %8
%84 = load i32, i32* %9
%85 = add i32 %83, %84
%86 = uitofp i32 %85 to double
%87 = load double**, double*** %13
%88 = load i32, i32* %8
%89 = zext i32 %88 to i64
%90 = getelementptr inbounds double*, double** %87, i64 %89
%91 = load double*, double** %90
%92 = load i32, i32* %9
%93 = zext i32 %92 to i64
%94 = getelementptr inbounds double, double* %91, i64 %93
store double %86, double* %94
br label %95
95: ; preds = %82
%96 = load i32, i32* %9
%97 = add i32 %96, 1
store i32 %97, i32* %9
br label %78
98: ; preds = %78
br label %99
99: ; preds = %98
%100 = load i32, i32* %8
%101 = add i32 %100, 1
store i32 %101, i32* %8
br label %73
102: ; preds = %73
%103 = call i32 (...) @omp_get_wtime()
%104 = sitofp i32 %103 to double
store double %104, double* %10
store i32 0, i32* %8
br label %105
105: ; preds = %140, %102
%106 = load i32, i32* %8
%107 = load i32, i32* %7
%108 = icmp ult i32 %106, %107
br i1 %108, label %109, label %143
109: ; preds = %105
store double 0.000000e+00, double* %6
store i32 0, i32* %9
br label %110
110: ; preds = %131, %109
%111 = load i32, i32* %9
%112 = load i32, i32* %7
%113 = icmp ult i32 %111, %112
br i1 %113, label %114, label %134
114: ; preds = %110
%115 = load double**, double*** %13
%116 = load i32, i32* %8
%117 = zext i32 %116 to i64
%118 = getelementptr inbounds double*, double** %115, i64 %117
%119 = load double*, double** %118
%120 = load i32, i32* %9
%121 = zext i32 %120 to i64
%122 = getelementptr inbounds double, double* %119, i64 %121
%123 = load double, double* %122
%124 = load double*, double** %14
%125 = load i32, i32* %9
%126 = zext i32 %125 to i64
%127 = getelementptr inbounds double, double* %124, i64 %126
%128 = load double, double* %127
%129 = load double, double* %6
%130 = call double @llvm.fmuladd.f64(double %123, double %128, double %129)
store double %130, double* %6
br label %131
131: ; preds = %114
%132 = load i32, i32* %9
%133 = add i32 %132, 1
store i32 %133, i32* %9
br label %110
134: ; preds = %110
%135 = load double, double* %6
%136 = load double*, double** %15
%137 = load i32, i32* %8
%138 = zext i32 %137 to i64
%139 = getelementptr inbounds double, double* %136, i64 %138
store double %135, double* %139
br label %140
140: ; preds = %134
%141 = load i32, i32* %8
%142 = add i32 %141, 1
store i32 %142, i32* %8
br label %105
143: ; preds = %105
%144 = call i32 (...) @omp_get_wtime()
%145 = sitofp i32 %144 to double
store double %145, double* %11
%146 = load double, double* %11
%147 = load double, double* %10
%148 = fsub double %146, %147
store double %148, double* %12
%149 = load double, double* %12
%150 = load i32, i32* %7
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), double %149, i32 %150)
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %8
br label %153
153: ; preds = %164, %143
%154 = load i32, i32* %8
%155 = load i32, i32* %7
%156 = icmp ult i32 %154, %155
br i1 %156, label %157, label %167
157: ; preds = %153
%158 = load double*, double** %15
%159 = load i32, i32* %8
%160 = zext i32 %159 to i64
%161 = getelementptr inbounds double, double* %158, i64 %160
%162 = load double, double* %161
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double %162)
br label %164
164: ; preds = %157
%165 = load i32, i32* %8
%166 = add i32 %165, 1
store i32 %166, i32* %8
br label %153
167: ; preds = %153
%168 = load double*, double** %14
%169 = bitcast double* %168 to i8*
%170 = load double*, double** %15
%171 = bitcast double* %170 to i8*
store i32 0, i32* %8
br label %172
172: ; preds = %183, %167
%173 = load i32, i32* %8
%174 = load i32, i32* %7
%175 = icmp ult i32 %173, %174
br i1 %175, label %176, label %186
176: ; preds = %172
%177 = load double**, double*** %13
%178 = load i32, i32* %8
%179 = zext i32 %178 to i64
%180 = getelementptr inbounds double*, double** %177, i64 %179
%181 = load double*, double** %180
%182 = bitcast double* %181 to i8*
br label %183
183: ; preds = %176
%184 = load i32, i32* %8
%185 = add i32 %184, 1
store i32 %185, i32* %8
br label %172
186: ; preds = %172
%187 = load double**, double*** %13
%188 = bitcast double** %187 to i8*
%189 = load i32, i32* %3
ret i32 %189
}

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