int main(int argc, char **argv) {
  unsigned int N, i, j;
  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));
  for (i = 0; i < N; i++) {
    v1[i] = 3;
  }
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      if (i <= j) {
        matriz[i][j] = 2;
      } else {
        matriz[i][j] = 0;
      }
    }
  }
  for (i = 0; i < N; i++) {
    double result = 0;
    for (j = 0; j < N; j++) {
      if (i <= j) {
        result = result + (matriz[i][j] * v1[j]);
      }
    }
    v2[i] = result;
  }
  printf("Tamaño Vectores:%u\n", N);
  printf("Vector resultado\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    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1188 <main+0x38>
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    $0x0,%al
call   1060 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1050 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1050 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1050 <malloc@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    120d <main+0xbd>
mov    -0x14(%rbp),%eax
mov    %eax,%edi
shl    $0x3,%rdi
call   1050 <malloc@plt>
mov    %rax,%rdx
mov    -0x28(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11d7 <main+0x87>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1242 <main+0xf2>
mov    -0x30(%rbp),%rax
mov    -0x18(%rbp),%ecx
movsd  0xdd9(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1214 <main+0xc4>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    12d0 <main+0x180>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    12bd <main+0x16d>
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
ja     1294 <main+0x144>
mov    -0x28(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x1c(%rbp),%ecx
movsd  0xd76(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    12aa <main+0x15a>
mov    -0x28(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x1c(%rbp),%ecx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    12af <main+0x15f>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    125c <main+0x10c>
jmp    12c2 <main+0x172>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1249 <main+0xf9>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    136d <main+0x21d>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    134e <main+0x1fe>
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
ja     133b <main+0x1eb>
movsd  -0x40(%rbp),%xmm1
mov    -0x28(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    (%rax,%rcx,8),%rax
mov    -0x1c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x1c(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    1340 <main+0x1f0>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12f2 <main+0x1a2>
movsd  -0x40(%rbp),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x18(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12d7 <main+0x187>
mov    -0x14(%rbp),%esi
lea    0xcbb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xcc2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    13c7 <main+0x277>
mov    -0x38(%rbp),%rax
mov    -0x18(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
lea    0xca7(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1393 <main+0x243>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    140a <main+0x2ba>
mov    -0x28(%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    13e0 <main+0x290>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x4(%rbp),%eax
add    $0x40,%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    15b0 <main+0x450>
mov    0x8(%rsi),%rdi
xor    %eax,%eax
call   1070 <atoi@plt>
mov    %eax,%ebp
mov    %eax,%r14d
lea    0x0(,%r14,8),%rbx
mov    %rbx,%rdi
call   1060 <malloc@plt>
mov    %rax,%r13
mov    %rbx,%rdi
call   1060 <malloc@plt>
mov    %rax,%r15
mov    %rbx,%rdi
call   1060 <malloc@plt>
mov    %rax,%r12
test   %ebp,%ebp
je     14de <main+0x37e>
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1060 <malloc@plt>
mov    %rax,(%r12,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r14
jne    11c0 <main+0x60>
test   %r14,%r14
je     14de <main+0x37e>
cmp    $0x4,%r14d
jae    11eb <main+0x8b>
xor    %eax,%eax
jmp    12f9 <main+0x199>
mov    %r14d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %edx,%ecx
and    $0x7,%ecx
cmp    $0x1c,%rsi
jae    1212 <main+0xb2>
xor    %esi,%esi
jmp    12b6 <main+0x156>
and    $0xfffffffffffffff8,%rdx
xor    %esi,%esi
movapd 0xde0(%rip),%xmm0
movupd %xmm0,0x0(%r13,%rsi,8)
movupd %xmm0,0x10(%r13,%rsi,8)
movupd %xmm0,0x20(%r13,%rsi,8)
movupd %xmm0,0x30(%r13,%rsi,8)
movupd %xmm0,0x40(%r13,%rsi,8)
movupd %xmm0,0x50(%r13,%rsi,8)
movupd %xmm0,0x60(%r13,%rsi,8)
movupd %xmm0,0x70(%r13,%rsi,8)
movupd %xmm0,0x80(%r13,%rsi,8)
movupd %xmm0,0x90(%r13,%rsi,8)
movupd %xmm0,0xa0(%r13,%rsi,8)
movupd %xmm0,0xb0(%r13,%rsi,8)
movupd %xmm0,0xc0(%r13,%rsi,8)
movupd %xmm0,0xd0(%r13,%rsi,8)
movupd %xmm0,0xe0(%r13,%rsi,8)
movupd %xmm0,0xf0(%r13,%rsi,8)
add    $0x20,%rsi
add    $0xfffffffffffffff8,%rdx
jne    1220 <main+0xc0>
test   %rcx,%rcx
je     12f4 <main+0x194>
lea    0x10(,%rsi,8),%rdx
add    %r13,%rdx
shl    $0x5,%rcx
xor    %esi,%esi
movapd 0xd2c(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd %xmm0,-0x10(%rdx,%rsi,1)
movupd %xmm0,(%rdx,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%rcx
jne    12e0 <main+0x180>
cmp    %r14,%rax
je     131e <main+0x1be>
movabs $0x4008000000000000,%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rcx,0x0(%r13,%rax,8)
add    $0x1,%rax
cmp    %rax,%r14
jne    1310 <main+0x1b0>
test   %r14,%r14
je     14de <main+0x37e>
lea    -0x1(%r14),%rax
mov    %r14d,%ebx
and    $0x3,%ebx
mov    %r14d,%edx
and    $0xfffffffc,%edx
xor    %esi,%esi
movsd  0xccf(%rip),%xmm0
jmp    135d <main+0x1fd>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%rsi
cmp    %r14,%rsi
je     1413 <main+0x2b3>
cmp    $0x3,%rax
jae    13a0 <main+0x240>
xor    %edi,%edi
test   %rbx,%rbx
je     1350 <main+0x1f0>
mov    (%r12,%rsi,8),%rbp
mov    %rbx,%rcx
jmp    1390 <main+0x230>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  %xmm1,0x0(%rbp,%rdi,8)
add    $0x1,%rdi
add    $0xffffffffffffffff,%rcx
je     1350 <main+0x1f0>
xorpd  %xmm1,%xmm1
cmp    %rdi,%rsi
ja     1380 <main+0x220>
movapd %xmm0,%xmm1
jmp    1380 <main+0x220>
nop
mov    (%r12,%rsi,8),%rbp
xor    %edi,%edi
jmp    13bf <main+0x25f>
nopl   0x0(%rax,%rax,1)
movsd  %xmm1,0x18(%rbp,%rdi,8)
add    $0x4,%rdi
cmp    %rdx,%rdi
je     1365 <main+0x205>
xorpd  %xmm1,%xmm1
xorpd  %xmm2,%xmm2
cmp    %rdi,%rsi
ja     13d0 <main+0x270>
movapd %xmm0,%xmm2
movsd  %xmm2,0x0(%rbp,%rdi,8)
lea    0x1(%rdi),%rcx
xorpd  %xmm2,%xmm2
cmp    %rcx,%rsi
ja     13e7 <main+0x287>
movapd %xmm0,%xmm2
movsd  %xmm2,0x8(%rbp,%rdi,8)
lea    0x2(%rdi),%rcx
xorpd  %xmm2,%xmm2
cmp    %rcx,%rsi
ja     13fe <main+0x29e>
movapd %xmm0,%xmm2
movsd  %xmm2,0x10(%rbp,%rdi,8)
lea    0x3(%rdi),%rcx
cmp    %rcx,%rsi
ja     13b0 <main+0x250>
movapd %xmm0,%xmm1
jmp    13b0 <main+0x250>
test   %r14,%r14
je     14de <main+0x37e>
mov    %r14d,%ecx
and    $0xfffffffe,%ecx
xor    %edx,%edx
jmp    1443 <main+0x2e3>
cs nopw 0x0(%rax,%rax,1)
movsd  %xmm0,(%r15,%rdx,8)
add    $0x1,%rdx
cmp    %r14,%rdx
je     154b <main+0x3eb>
xorpd  %xmm0,%xmm0
test   %rax,%rax
je     14b0 <main+0x350>
xor    %edi,%edi
jmp    1459 <main+0x2f9>
add    $0x1,%rdi
cmp    %rcx,%rdi
je     14a0 <main+0x340>
mov    %rdi,%rsi
cmp    %rdi,%rdx
ja     1475 <main+0x315>
mov    (%r12,%rdx,8),%rdi
movsd  (%rdi,%rsi,8),%xmm1
mulsd  0x0(%r13,%rsi,8),%xmm1
addsd  %xmm1,%xmm0
lea    0x1(%rsi),%rdi
cmp    %rdi,%rdx
ja     1450 <main+0x2f0>
mov    (%r12,%rdx,8),%rbp
movsd  0x8(%rbp,%rsi,8),%xmm1
mulsd  0x8(%r13,%rsi,8),%xmm1
addsd  %xmm1,%xmm0
jmp    1450 <main+0x2f0>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x2,%rsi
test   $0x1,%r14b
je     1430 <main+0x2d0>
jmp    14bc <main+0x35c>
nopl   0x0(%rax)
xor    %esi,%esi
test   $0x1,%r14b
je     1430 <main+0x2d0>
cmp    %rsi,%rdx
ja     1430 <main+0x2d0>
mov    (%r12,%rdx,8),%rdi
movsd  (%rdi,%rsi,8),%xmm1
mulsd  0x0(%r13,%rsi,8),%xmm1
addsd  %xmm1,%xmm0
jmp    1430 <main+0x2d0>
lea    0xb33(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xb3b(%rip),%rdi
call   1040 <puts@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
test   %r14,%r14
je     1532 <main+0x3d2>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%r12,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
jne    1520 <main+0x3c0>
mov    %r12,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xac6(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xace(%rip),%rdi
call   1040 <puts@plt>
test   %r14,%r14
je     159e <main+0x43e>
xor    %ebp,%ebp
lea    0xab7(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
movsd  (%r15,%rbp,8),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r14
jne    1580 <main+0x420>
jmp    14fb <main+0x39b>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
jmp    1532 <main+0x3d2>
lea    0xa8b(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>

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

LLVM IR (-O2):
@.str.1 = [21 x i8] c"Tama\C3\B1o Vectores:%u\0A\00"
@.str.3 = [4 x i8] c"%f \00"
@str = [17 x i8] c"Vector resultado\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 %220, label %93
19: ; preds = %93
br i1 %18, label %220, 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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 3.000000e+00, double 3.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 %107
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 = %107, %89
br i1 %18, label %220, label %101
101: ; preds = %100
%102 = add nsw i64 %10, -1
%103 = and i64 %10, 3
%104 = icmp ult i64 %102, 3
%105 = and i64 %10, 4294967292
%106 = icmp eq i64 %103, 0
br label %112
107: ; preds = %91, %107
%108 = phi i64 [ %110, %107 ], [ %92, %91 ]
%109 = getelementptr inbounds double, double* %13, i64 %108
store double 3.000000e+00, double* %109
%110 = add nuw nsw i64 %108, 1
%111 = icmp eq i64 %110, %10
br i1 %111, label %100, label %107
112: ; preds = %101, %158
%113 = phi i64 [ %159, %158 ], [ 0, %101 ]
%114 = getelementptr inbounds double*, double** %17, i64 %113
br i1 %104, label %145, label %115
115: ; preds = %112
%116 = load double*, double** %114
%117 = load double*, double** %114
br label %124
118: ; preds = %158
br i1 %18, label %220, label %119
119: ; preds = %118
%120 = and i64 %10, 1
%121 = icmp eq i64 %102, 0
%122 = and i64 %10, 4294967294
%123 = icmp eq i64 %120, 0
br label %161
124: ; preds = %124, %115
%125 = phi i64 [ 0, %115 ], [ %142, %124 ]
%126 = phi i64 [ 0, %115 ], [ %143, %124 ]
%127 = icmp ugt i64 %113, %125
%128 = getelementptr inbounds double, double* %116, i64 %125
%129 = select i1 %127, double 0.000000e+00, double 2.000000e+00
store double %129, double* %128
%130 = or i64 %125, 1
%131 = icmp ugt i64 %113, %130
%132 = getelementptr inbounds double, double* %116, i64 %130
%133 = select i1 %131, double 0.000000e+00, double 2.000000e+00
store double %133, double* %132
%134 = or i64 %125, 2
%135 = icmp ugt i64 %113, %134
%136 = getelementptr inbounds double, double* %117, i64 %134
%137 = select i1 %135, double 0.000000e+00, double 2.000000e+00
store double %137, double* %136
%138 = or i64 %125, 3
%139 = icmp ugt i64 %113, %138
%140 = getelementptr inbounds double, double* %117, i64 %138
%141 = select i1 %139, double 0.000000e+00, double 2.000000e+00
store double %141, double* %140
%142 = add nuw nsw i64 %125, 4
%143 = add i64 %126, 4
%144 = icmp eq i64 %143, %105
br i1 %144, label %145, label %124
145: ; preds = %124, %112
%146 = phi i64 [ 0, %112 ], [ %142, %124 ]
br i1 %106, label %158, label %147
147: ; preds = %145
%148 = load double*, double** %114
br label %149
149: ; preds = %149, %147
%150 = phi i64 [ %146, %147 ], [ %155, %149 ]
%151 = phi i64 [ 0, %147 ], [ %156, %149 ]
%152 = icmp ugt i64 %113, %150
%153 = getelementptr inbounds double, double* %148, i64 %150
%154 = select i1 %152, double 0.000000e+00, double 2.000000e+00
store double %154, double* %153
%155 = add nuw nsw i64 %150, 1
%156 = add i64 %151, 1
%157 = icmp eq i64 %156, %103
br i1 %157, label %158, label %149
158: ; preds = %149, %145
%159 = add nuw nsw i64 %113, 1
%160 = icmp eq i64 %159, %10
br i1 %160, label %118, label %112
161: ; preds = %119, %205
%162 = phi i64 [ %208, %205 ], [ 0, %119 ]
%163 = getelementptr inbounds double*, double** %17, i64 %162
br i1 %121, label %192, label %164
164: ; preds = %161, %187
%165 = phi i64 [ %189, %187 ], [ 0, %161 ]
%166 = phi double [ %188, %187 ], [ 0.000000e+00, %161 ]
%167 = phi i64 [ %190, %187 ], [ 0, %161 ]
%168 = icmp ugt i64 %162, %165
br i1 %168, label %176, label %169
169: ; preds = %164
%170 = load double*, double** %163
%171 = getelementptr inbounds double, double* %170, i64 %165
%172 = load double, double* %171
%173 = getelementptr inbounds double, double* %13, i64 %165
%174 = load double, double* %173
%175 = tail call double @llvm.fmuladd.f64(double %172, double %174, double %166)
br label %176
176: ; preds = %164, %169
%177 = phi double [ %175, %169 ], [ %166, %164 ]
%178 = or i64 %165, 1
%179 = icmp ugt i64 %162, %178
br i1 %179, label %187, label %180
180: ; preds = %176
%181 = load double*, double** %163
%182 = getelementptr inbounds double, double* %181, i64 %178
%183 = load double, double* %182
%184 = getelementptr inbounds double, double* %13, i64 %178
%185 = load double, double* %184
%186 = tail call double @llvm.fmuladd.f64(double %183, double %185, double %177)
br label %187
187: ; preds = %180, %176
%188 = phi double [ %186, %180 ], [ %177, %176 ]
%189 = add nuw nsw i64 %165, 2
%190 = add i64 %167, 2
%191 = icmp eq i64 %190, %122
br i1 %191, label %192, label %164
192: ; preds = %187, %161
%193 = phi double [ undef, %161 ], [ %188, %187 ]
%194 = phi i64 [ 0, %161 ], [ %189, %187 ]
%195 = phi double [ 0.000000e+00, %161 ], [ %188, %187 ]
br i1 %123, label %205, label %196
196: ; preds = %192
%197 = icmp ugt i64 %162, %194
br i1 %197, label %205, label %198
198: ; preds = %196
%199 = load double*, double** %163
%200 = getelementptr inbounds double, double* %199, i64 %194
%201 = load double, double* %200
%202 = getelementptr inbounds double, double* %13, i64 %194
%203 = load double, double* %202
%204 = tail call double @llvm.fmuladd.f64(double %201, double %203, double %195)
br label %205
205: ; preds = %196, %198, %192
%206 = phi double [ %193, %192 ], [ %204, %198 ], [ %195, %196 ]
%207 = getelementptr inbounds double, double* %15, i64 %162
store double %206, double* %207
%208 = add nuw nsw i64 %162, 1
%209 = icmp eq i64 %208, %10
br i1 %209, label %210, label %161
210: ; preds = %205
%211 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%212 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
br i1 %18, label %231, label %213
213: ; preds = %210, %213
%214 = phi i64 [ %218, %213 ], [ 0, %210 ]
%215 = getelementptr inbounds double, double* %15, i64 %214
%216 = load double, double* %215
%217 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double %216)
%218 = add nuw nsw i64 %214, 1
%219 = icmp eq i64 %218, %10
br i1 %219, label %223, label %213
220: ; preds = %118, %100, %19, %6
%221 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%222 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
br label %223
223: ; preds = %213, %220
tail call void @free(i8* %12)
tail call void @free(i8* %14)
br i1 %18, label %232, label %224
224: ; preds = %223, %224
%225 = phi i64 [ %229, %224 ], [ 0, %223 ]
%226 = getelementptr inbounds double*, double** %17, i64 %225
%227 = bitcast double** %226 to i8**
%228 = load i8*, i8** %227
tail call void @free(i8* %228)
%229 = add nuw nsw i64 %225, 1
%230 = icmp eq i64 %229, %10
br i1 %230, label %232, label %224
231: ; preds = %210
tail call void @free(i8* %12)
tail call void @free(i8* %14)
br label %232
232: ; preds = %224, %231, %223
tail call void @free(i8* %16)
ret i32 0
}