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] = 2;
#pragma omp for private(j)
    for (i = 0; i < N; i++) {
      for (j = 0; j < N; j++) {
        matriz[i][j] = 2;
      }
    }
  }
  cgt1 = omp_get_wtime();
#pragma omp parallel for private(resultado, j)
  for (i = 0; i < N; i++) {
    resultado = 0;
    for (j = 0; j < N; j++) {
      resultado = 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    0xe7a(%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    -0x50(%rbp),%rax
mov    -0x20(%rbp),%ecx
movsd  0xdba(%rip),%xmm0
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    12bb <main+0x15b>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jae    12a8 <main+0x148>
mov    -0x48(%rbp),%rax
mov    -0x20(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
movsd  0xd6b(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1273 <main+0x113>
jmp    12ad <main+0x14d>
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    1357 <main+0x1f7>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jae    1338 <main+0x1d8>
movsd  -0x18(%rbp),%xmm1
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
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12ed <main+0x18d>
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    12d2 <main+0x172>
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    0xca5(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xcc3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jae    13d5 <main+0x275>
mov    -0x58(%rbp),%rax
mov    -0x20(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
lea    0xcab(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    13a1 <main+0x241>
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    1418 <main+0x2b8>
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    13ee <main+0x28e>
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    1631 <main+0x4c1>
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     1452 <main+0x2e2>
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     1452 <main+0x2e2>
movabs $0x4000000000000000,%rax
cmp    $0x4,%r12d
jae    1205 <main+0x95>
xor    %ecx,%ecx
jmp    12f0 <main+0x180>
mov    %r12d,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdi
mov    %rdi,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %esi,%edx
and    $0x7,%edx
cmp    $0x1c,%rdi
jae    122c <main+0xbc>
xor    %edi,%edi
jmp    12b1 <main+0x141>
and    $0xfffffffffffffff8,%rsi
xor    %edi,%edi
movaps 0xdc7(%rip),%xmm0
nopl   0x0(%rax)
movups %xmm0,(%rbx,%rdi,8)
movups %xmm0,0x10(%rbx,%rdi,8)
movups %xmm0,0x20(%rbx,%rdi,8)
movups %xmm0,0x30(%rbx,%rdi,8)
movups %xmm0,0x40(%rbx,%rdi,8)
movups %xmm0,0x50(%rbx,%rdi,8)
movups %xmm0,0x60(%rbx,%rdi,8)
movups %xmm0,0x70(%rbx,%rdi,8)
movups %xmm0,0x80(%rbx,%rdi,8)
movups %xmm0,0x90(%rbx,%rdi,8)
movups %xmm0,0xa0(%rbx,%rdi,8)
movups %xmm0,0xb0(%rbx,%rdi,8)
movups %xmm0,0xc0(%rbx,%rdi,8)
movups %xmm0,0xd0(%rbx,%rdi,8)
movups %xmm0,0xe0(%rbx,%rdi,8)
movups %xmm0,0xf0(%rbx,%rdi,8)
add    $0x20,%rdi
add    $0xfffffffffffffff8,%rsi
jne    1240 <main+0xd0>
test   %rdx,%rdx
je     12e2 <main+0x172>
lea    (%rbx,%rdi,8),%rsi
add    $0x10,%rsi
shl    $0x5,%rdx
xor    %edi,%edi
movaps 0xd35(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movups %xmm0,-0x10(%rsi,%rdi,1)
movups %xmm0,(%rsi,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rdx
jne    12d0 <main+0x160>
cmp    %r12,%rcx
je     12fd <main+0x18d>
nopw   0x0(%rax,%rax,1)
mov    %rax,(%rbx,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%r12
jne    12f0 <main+0x180>
test   %r12,%r12
je     1452 <main+0x2e2>
mov    %r12d,%r11d
and    $0xfffffffc,%r11d
lea    -0x4(%r11),%r9
mov    %r9,%r8
shr    $0x2,%r8
add    $0x1,%r8
mov    %r8d,%r10d
and    $0x7,%r10d
and    $0xfffffffffffffff8,%r8
mov    %r10,%rdi
shl    $0x5,%rdi
xor    %ebp,%ebp
movapd 0xcc8(%rip),%xmm0
jmp    134d <main+0x1dd>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbp
cmp    %r12,%rbp
je     151d <main+0x3ad>
mov    (%r14,%rbp,8),%rdx
cmp    $0x4,%r12d
jae    1360 <main+0x1f0>
xor    %ecx,%ecx
jmp    1440 <main+0x2d0>
xchg   %ax,%ax
cmp    $0x1c,%r9
jae    1370 <main+0x200>
xor    %esi,%esi
jmp    1405 <main+0x295>
nopl   (%rax)
mov    %r8,%rcx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nop
movupd %xmm0,(%rdx,%rsi,8)
movupd %xmm0,0x10(%rdx,%rsi,8)
movupd %xmm0,0x20(%rdx,%rsi,8)
movupd %xmm0,0x30(%rdx,%rsi,8)
movupd %xmm0,0x40(%rdx,%rsi,8)
movupd %xmm0,0x50(%rdx,%rsi,8)
movupd %xmm0,0x60(%rdx,%rsi,8)
movupd %xmm0,0x70(%rdx,%rsi,8)
movupd %xmm0,0x80(%rdx,%rsi,8)
movupd %xmm0,0x90(%rdx,%rsi,8)
movupd %xmm0,0xa0(%rdx,%rsi,8)
movupd %xmm0,0xb0(%rdx,%rsi,8)
movupd %xmm0,0xc0(%rdx,%rsi,8)
movupd %xmm0,0xd0(%rdx,%rsi,8)
movupd %xmm0,0xe0(%rdx,%rsi,8)
movupd %xmm0,0xf0(%rdx,%rsi,8)
add    $0x20,%rsi
add    $0xfffffffffffffff8,%rcx
jne    1380 <main+0x210>
test   %r10,%r10
je     1434 <main+0x2c4>
lea    (%rdx,%rsi,8),%rcx
add    $0x10,%rcx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd %xmm0,-0x10(%rcx,%rsi,1)
movupd %xmm0,(%rcx,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%rdi
jne    1420 <main+0x2b0>
mov    %r11,%rcx
cmp    %r12,%r11
je     1340 <main+0x1d0>
mov    %rax,(%rdx,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%r12
jne    1440 <main+0x2d0>
jmp    1340 <main+0x1d0>
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    0xb91(%rip),%rdi
mov    %r12d,%esi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xbb0(%rip),%rdi
call   1040 <puts@plt>
test   %r12,%r12
je     14f4 <main+0x384>
xor    %ebp,%ebp
lea    0xb99(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%r15,%rbp,8),%xmm0
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r12
jne    14b0 <main+0x340>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
test   %r12,%r12
je     1504 <main+0x394>
xor    %ebx,%ebx
mov    (%r14,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    14e0 <main+0x370>
jmp    1504 <main+0x394>
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>
cvtsi2sd %eax,%xmm4
test   %r12,%r12
movsd  %xmm4,(%rsp)
je     15fc <main+0x48c>
lea    -0x1(%r12),%r8
mov    %r12d,%ecx
and    $0x3,%ecx
mov    %r12d,%edx
and    $0xfffffffc,%edx
xor    %esi,%esi
jmp    1563 <main+0x3f3>
nopl   0x0(%rax,%rax,1)
movsd  %xmm0,(%r15,%rsi,8)
add    $0x1,%rsi
cmp    %r12,%rsi
je     1465 <main+0x2f5>
mov    (%r14,%rsi,8),%rdi
xorpd  %xmm0,%xmm0
xor    %ebp,%ebp
cmp    $0x3,%r8
jb     15c7 <main+0x457>
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    1580 <main+0x410>
test   %rcx,%rcx
je     1550 <main+0x3e0>
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    15e0 <main+0x470>
jmp    1550 <main+0x3e0>
xor    %eax,%eax
call   1050 <omp_get_wtime@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
subsd  (%rsp),%xmm0
lea    0x9fa(%rip),%rdi
mov    %r12d,%esi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xa19(%rip),%rdi
call   1040 <puts@plt>
jmp    14c9 <main+0x359>
lea    0xa1c(%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 = %67, %57
%59 = load i32, i32* %8
%60 = load i32, i32* %7
%61 = icmp ult i32 %59, %60
br i1 %61, label %62, label %70
62: ; preds = %58
%63 = load double*, double** %14
%64 = load i32, i32* %8
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds double, double* %63, i64 %65
store double 2.000000e+00, double* %66
br label %67
67: ; preds = %62
%68 = load i32, i32* %8
%69 = add i32 %68, 1
store i32 %69, i32* %8
br label %58
70: ; preds = %58
store i32 0, i32* %8
br label %71
71: ; preds = %93, %70
%72 = load i32, i32* %8
%73 = load i32, i32* %7
%74 = icmp ult i32 %72, %73
br i1 %74, label %75, label %96
75: ; preds = %71
store i32 0, i32* %9
br label %76
76: ; preds = %89, %75
%77 = load i32, i32* %9
%78 = load i32, i32* %7
%79 = icmp ult i32 %77, %78
br i1 %79, label %80, label %92
80: ; preds = %76
%81 = load double**, double*** %13
%82 = load i32, i32* %8
%83 = zext i32 %82 to i64
%84 = getelementptr inbounds double*, double** %81, i64 %83
%85 = load double*, double** %84
%86 = load i32, i32* %9
%87 = zext i32 %86 to i64
%88 = getelementptr inbounds double, double* %85, i64 %87
store double 2.000000e+00, double* %88
br label %89
89: ; preds = %80
%90 = load i32, i32* %9
%91 = add i32 %90, 1
store i32 %91, i32* %9
br label %76
92: ; preds = %76
br label %93
93: ; preds = %92
%94 = load i32, i32* %8
%95 = add i32 %94, 1
store i32 %95, i32* %8
br label %71
96: ; preds = %71
%97 = call i32 (...) @omp_get_wtime()
%98 = sitofp i32 %97 to double
store double %98, double* %10
store i32 0, i32* %8
br label %99
99: ; preds = %134, %96
%100 = load i32, i32* %8
%101 = load i32, i32* %7
%102 = icmp ult i32 %100, %101
br i1 %102, label %103, label %137
103: ; preds = %99
store double 0.000000e+00, double* %6
store i32 0, i32* %9
br label %104
104: ; preds = %125, %103
%105 = load i32, i32* %9
%106 = load i32, i32* %7
%107 = icmp ult i32 %105, %106
br i1 %107, label %108, label %128
108: ; preds = %104
%109 = load double, double* %6
%110 = load double**, double*** %13
%111 = load i32, i32* %8
%112 = zext i32 %111 to i64
%113 = getelementptr inbounds double*, double** %110, i64 %112
%114 = load double*, double** %113
%115 = load i32, i32* %9
%116 = zext i32 %115 to i64
%117 = getelementptr inbounds double, double* %114, i64 %116
%118 = load double, double* %117
%119 = load double*, double** %14
%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 = call double @llvm.fmuladd.f64(double %118, double %123, double %109)
store double %124, double* %6
br label %125
125: ; preds = %108
%126 = load i32, i32* %9
%127 = add i32 %126, 1
store i32 %127, i32* %9
br label %104
128: ; preds = %104
%129 = load double, double* %6
%130 = load double*, double** %15
%131 = load i32, i32* %8
%132 = zext i32 %131 to i64
%133 = getelementptr inbounds double, double* %130, i64 %132
store double %129, double* %133
br label %134
134: ; preds = %128
%135 = load i32, i32* %8
%136 = add i32 %135, 1
store i32 %136, i32* %8
br label %99
137: ; preds = %99
%138 = call i32 (...) @omp_get_wtime()
%139 = sitofp i32 %138 to double
store double %139, double* %11
%140 = load double, double* %11
%141 = load double, double* %10
%142 = fsub double %140, %141
store double %142, double* %12
%143 = load double, double* %12
%144 = load i32, i32* %7
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), double %143, i32 %144)
%146 = 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 %147
147: ; preds = %158, %137
%148 = load i32, i32* %8
%149 = load i32, i32* %7
%150 = icmp ult i32 %148, %149
br i1 %150, label %151, label %161
151: ; preds = %147
%152 = load double*, double** %15
%153 = load i32, i32* %8
%154 = zext i32 %153 to i64
%155 = getelementptr inbounds double, double* %152, i64 %154
%156 = load double, double* %155
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double %156)
br label %158
158: ; preds = %151
%159 = load i32, i32* %8
%160 = add i32 %159, 1
store i32 %160, i32* %8
br label %147
161: ; preds = %147
%162 = load double*, double** %14
%163 = bitcast double* %162 to i8*
%164 = load double*, double** %15
%165 = bitcast double* %164 to i8*
store i32 0, i32* %8
br label %166
166: ; preds = %177, %161
%167 = load i32, i32* %8
%168 = load i32, i32* %7
%169 = icmp ult i32 %167, %168
br i1 %169, label %170, label %180
170: ; preds = %166
%171 = load double**, double*** %13
%172 = load i32, i32* %8
%173 = zext i32 %172 to i64
%174 = getelementptr inbounds double*, double** %171, i64 %173
%175 = load double*, double** %174
%176 = bitcast double* %175 to i8*
br label %177
177: ; preds = %170
%178 = load i32, i32* %8
%179 = add i32 %178, 1
store i32 %179, i32* %8
br label %166
180: ; preds = %166
%181 = load double**, double*** %13
%182 = bitcast double** %181 to i8*
%183 = load i32, i32* %3
ret i32 %183
}

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