#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
struct timespec {
  double tv_nsec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ CLOCK_REALTIME;
int atoi(char *);
int /*<<< orphan*/ clock_gettime(int /*<<< orphan*/, struct timespec *);
int /*<<< orphan*/ exit(int);
scalar_t__ malloc(int);
int omp_get_num_procs();
int /*<<< orphan*/ printf(char *, ...);
int rand();
int main(int argc, char **argv) {
  int n, i, j, k, nump;
  struct timespec cgt1, cgt2;
  double ncgt;
  n = atoi(argv[1]);
  int **m1, **m2, **m3;
  m1 = (int **)malloc(n * sizeof(int *));
  m2 = (int **)malloc(n * sizeof(int *));
  m3 = (int **)malloc(n * sizeof(int *));
  for (i = 0; i < n; i++) {
    m1[i] = (int *)malloc(n * sizeof(int));
    m2[i] = (int *)malloc(n * sizeof(int));
    m3[i] = (int *)malloc(n * sizeof(int));
  }
  if ((m1 == NULL) || (m2 == NULL) || (m3 == NULL)) {
    printf("\nError en la reserva de memoria.");
    exit(-1);
  }
  nump = omp_get_num_procs();
  clock_gettime(CLOCK_REALTIME, &cgt1);
#pragma omp parallel for shared(m1, m2, m3) private(i, j) num_threads(nump)    \
    schedule(guided)
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      m1[i][j] = ((rand() % 4) + 1);
      m2[i][j] = ((rand() % 4) + 1);
      m3[i][j] = 0;
    }
  }
  clock_gettime(CLOCK_REALTIME, &cgt2);
  ncgt = (double)(cgt2.tv_sec - cgt1.tv_sec) +
         (double)((cgt2.tv_nsec - cgt1.tv_nsec) / (1.e+9));
  printf("Tiempo de inicializacion(seg.):%11.9f\t / Tamaño Vector:%u\n", ncgt,
         n);
  printf("\n");
  clock_gettime(CLOCK_REALTIME, &cgt1);
#pragma omp parallel for shared(m1, m2, m3) private(i, j) num_threads(nump)    \
    schedule(guided)
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++)
      m3[i][j] += m1[i][j] * m2[i][j];
  }
  clock_gettime(CLOCK_REALTIME, &cgt2);
  ncgt = (double)(cgt2.tv_sec - cgt1.tv_sec) +
         (double)((cgt2.tv_nsec - cgt1.tv_nsec) / (1.e+9));
  printf("Tiempo de multiplicacion(seg.):%11.9f\t / Tamaño Vector:%u\n", ncgt,
         n);
  printf("\n\n\n");
  printf("Valor (0,0): %d \n", m3[0][0]);
  printf("Valor (n-1,n-1): %d \n", m3[n - 1][n - 1]);
  printf("\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x14(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x58(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x60(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x68(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    124a <main+0xda>
movslq -0x14(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x58(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movslq -0x14(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x60(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movslq -0x14(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x68(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11d6 <main+0x66>
cmpq   $0x0,-0x58(%rbp)
je     126b <main+0xfb>
cmpq   $0x0,-0x60(%rbp)
je     126b <main+0xfb>
cmpq   $0x0,-0x68(%rbp)
jne    1283 <main+0x113>
lea    0xd96(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
mov    $0x0,%al
call   1050 <omp_get_num_procs@plt>
mov    %eax,-0x24(%rbp)
mov    0x2d4c(%rip),%rax
mov    (%rax),%edi
lea    -0x38(%rbp),%rsi
call   1030 <clock_gettime@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1347 <main+0x1d7>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1334 <main+0x1c4>
mov    $0x0,%al
call   1090 <rand@plt>
mov    $0x4,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    -0x58(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    $0x0,%al
call   1090 <rand@plt>
mov    $0x4,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    -0x60(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x68(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12b9 <main+0x149>
jmp    1339 <main+0x1c9>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12a6 <main+0x136>
mov    0x2c92(%rip),%rax
mov    (%rax),%edi
lea    -0x48(%rbp),%rsi
call   1030 <clock_gettime@plt>
mov    -0x40(%rbp),%rax
sub    -0x30(%rbp),%rax
cvtsi2sd %rax,%xmm0
movsd  -0x48(%rbp),%xmm1
subsd  -0x38(%rbp),%xmm1
movsd  0xc88(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    -0x14(%rbp),%esi
lea    0xc95(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xd01(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2c30(%rip),%rax
mov    (%rax),%edi
lea    -0x38(%rbp),%rsi
call   1030 <clock_gettime@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    143f <main+0x2cf>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    142c <main+0x2bc>
mov    -0x58(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x60(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
imul   (%rax,%rcx,4),%edx
mov    -0x68(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
add    (%rax,%rcx,4),%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13d5 <main+0x265>
jmp    1431 <main+0x2c1>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13c2 <main+0x252>
mov    0x2b9a(%rip),%rax
mov    (%rax),%edi
lea    -0x48(%rbp),%rsi
call   1030 <clock_gettime@plt>
mov    -0x40(%rbp),%rax
sub    -0x30(%rbp),%rax
cvtsi2sd %rax,%xmm0
movsd  -0x48(%rbp),%xmm1
subsd  -0x38(%rbp),%xmm1
movsd  0xb90(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
mov    -0x14(%rbp),%esi
lea    0xbd9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xc07(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x68(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%esi
lea    0xbf4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x68(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%esi
lea    0xbdb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xbb9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    0x8(%rsi),%rdi
call   1090 <atoi@plt>
mov    %eax,%ebx
lea    0x0(,%rbx,8),%ebp
mov    %ebp,%edi
call   1080 <malloc@plt>
mov    %rax,%r12
mov    %ebp,%edi
call   1080 <malloc@plt>
mov    %rax,%r14
mov    %ebp,%edi
call   1080 <malloc@plt>
mov    %rax,%rbp
mov    %ebx,%r15d
mov    %rbx,(%rsp)
test   %ebx,%ebx
jle    121e <main+0x8e>
mov    (%rsp),%rax
lea    0x0(,%rax,4),%r13d
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    %r13d,%edi
call   1080 <malloc@plt>
mov    %rax,(%r12,%rbx,8)
mov    %r13d,%edi
call   1080 <malloc@plt>
mov    %rax,(%r14,%rbx,8)
mov    %r13d,%edi
call   1080 <malloc@plt>
mov    %rax,0x0(%rbp,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,%r15
jne    11f0 <main+0x60>
test   %r12,%r12
je     16ce <main+0x53e>
test   %r14,%r14
je     16ce <main+0x53e>
mov    %rbp,%r13
test   %rbp,%rbp
je     16ce <main+0x53e>
xor    %eax,%eax
call   1070 <omp_get_num_procs@plt>
mov    0x2d96(%rip),%rax
mov    (%rax),%edi
lea    0x18(%rsp),%rsi
call   1050 <clock_gettime@plt>
cmpl   $0x0,(%rsp)
jle    12ce <main+0x13e>
xor    %ebx,%ebx
xchg   %ax,%ax
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   10b0 <rand@plt>
lea    0x3(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffffc,%ecx
neg    %ecx
add    %ecx,%eax
add    $0x1,%eax
mov    (%r12,%rbx,8),%rcx
mov    %eax,(%rcx,%rbp,4)
xor    %eax,%eax
call   10b0 <rand@plt>
lea    0x3(%rax),%ecx
test   %eax,%eax
cmovns %eax,%ecx
and    $0xfffffffc,%ecx
neg    %ecx
add    %ecx,%eax
add    $0x1,%eax
mov    (%r14,%rbx,8),%rcx
mov    %eax,(%rcx,%rbp,4)
mov    0x0(%r13,%rbx,8),%rax
movl   $0x0,(%rax,%rbp,4)
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1270 <main+0xe0>
add    $0x1,%rbx
cmp    %r15,%rbx
jne    1260 <main+0xd0>
mov    0x2d0b(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0x8(%rsp),%rsi
call   1050 <clock_gettime@plt>
mov    0x10(%rsp),%rax
sub    0x20(%rsp),%rax
cvtsi2sd %rax,%xmm1
movsd  0x8(%rsp),%xmm0
subsd  0x18(%rsp),%xmm0
divsd  0xcfb(%rip),%xmm0
addsd  %xmm1,%xmm0
lea    0xd19(%rip),%rdi
mov    (%rsp),%rbx
mov    %ebx,%esi
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x0(%rbp),%edi
lea    0x18(%rsp),%rsi
call   1050 <clock_gettime@plt>
test   %ebx,%ebx
jle    1628 <main+0x498>
mov    %r15d,%eax
and    $0xfffffff8,%eax
mov    %rax,0x40(%rsp)
add    $0xfffffffffffffff8,%rax
mov    %rax,0x38(%rsp)
mov    %rax,%rcx
shr    $0x3,%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,0x30(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0x28(%rsp)
mov    %r15,%r9
neg    %r9
xor    %esi,%esi
jmp    138d <main+0x1fd>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%rsi
cmp    %r15,%rsi
je     1628 <main+0x498>
mov    (%r12,%rsi,8),%rcx
mov    (%r14,%rsi,8),%rdx
mov    0x0(%r13,%rsi,8),%rax
cmpl   $0x8,(%rsp)
jae    13b0 <main+0x220>
xor    %ebx,%ebx
jmp    15c0 <main+0x430>
nopw   0x0(%rax,%rax,1)
mov    %r13,%r11
lea    (%rax,%r15,4),%rbx
lea    (%rcx,%r15,4),%rbp
lea    (%rdx,%r15,4),%rdi
cmp    %rbp,%rax
setb   %r13b
cmp    %rbx,%rcx
setb   %r10b
cmp    %rdi,%rax
setb   %r8b
cmp    %rbx,%rdx
setb   %bpl
test   %r10b,%r13b
jne    15b3 <main+0x423>
mov    $0x0,%ebx
and    %bpl,%r8b
mov    %r11,%r13
jne    15c0 <main+0x430>
cmpq   $0x0,0x38(%rsp)
je     1615 <main+0x485>
mov    0x28(%rsp),%r8
xor    %r13d,%r13d
nopl   0x0(%rax)
movdqu (%rcx,%r13,4),%xmm0
movdqu 0x10(%rcx,%r13,4),%xmm1
movdqu (%rdx,%r13,4),%xmm2
movdqu 0x10(%rdx,%r13,4),%xmm3
pshufd $0xf5,%xmm2,%xmm4
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pshufd $0xf5,%xmm0,%xmm0
pmuludq %xmm4,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm0,%xmm2
pshufd $0xf5,%xmm3,%xmm0
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pshufd $0xf5,%xmm1,%xmm1
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm0
punpckldq %xmm0,%xmm3
movdqu (%rax,%r13,4),%xmm0
paddd  %xmm2,%xmm0
movdqu 0x10(%rax,%r13,4),%xmm1
paddd  %xmm3,%xmm1
movdqu 0x20(%rax,%r13,4),%xmm2
movdqu 0x30(%rax,%r13,4),%xmm3
movdqu %xmm0,(%rax,%r13,4)
movdqu %xmm1,0x10(%rax,%r13,4)
movdqu 0x20(%rcx,%r13,4),%xmm0
movdqu 0x30(%rcx,%r13,4),%xmm1
movdqu 0x20(%rdx,%r13,4),%xmm4
movdqu 0x30(%rdx,%r13,4),%xmm5
pshufd $0xf5,%xmm4,%xmm6
pmuludq %xmm0,%xmm4
pshufd $0xe8,%xmm4,%xmm4
pshufd $0xf5,%xmm0,%xmm0
pmuludq %xmm6,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm0,%xmm4
paddd  %xmm2,%xmm4
pshufd $0xf5,%xmm5,%xmm0
pmuludq %xmm1,%xmm5
pshufd $0xe8,%xmm5,%xmm2
pshufd $0xf5,%xmm1,%xmm1
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm0
punpckldq %xmm0,%xmm2
paddd  %xmm3,%xmm2
movdqu %xmm4,0x20(%rax,%r13,4)
movdqu %xmm2,0x30(%rax,%r13,4)
add    $0x10,%r13
add    $0xfffffffffffffffe,%r8
jne    1410 <main+0x280>
testb  $0x1,0x30(%rsp)
je     159d <main+0x40d>
movdqu (%rcx,%r13,4),%xmm0
movdqu 0x10(%rcx,%r13,4),%xmm1
movdqu (%rdx,%r13,4),%xmm2
movdqu 0x10(%rdx,%r13,4),%xmm3
pshufd $0xf5,%xmm2,%xmm4
pmuludq %xmm0,%xmm2
pshufd $0xe8,%xmm2,%xmm2
pshufd $0xf5,%xmm0,%xmm0
pmuludq %xmm4,%xmm0
pshufd $0xe8,%xmm0,%xmm0
punpckldq %xmm0,%xmm2
pshufd $0xf5,%xmm3,%xmm0
pmuludq %xmm1,%xmm3
pshufd $0xe8,%xmm3,%xmm3
pshufd $0xf5,%xmm1,%xmm1
pmuludq %xmm0,%xmm1
pshufd $0xe8,%xmm1,%xmm0
punpckldq %xmm0,%xmm3
movdqu (%rax,%r13,4),%xmm0
paddd  %xmm2,%xmm0
movdqu 0x10(%rax,%r13,4),%xmm1
paddd  %xmm3,%xmm1
movdqu %xmm0,(%rax,%r13,4)
movdqu %xmm1,0x10(%rax,%r13,4)
mov    0x40(%rsp),%rdi
mov    %rdi,%rbx
cmp    %r15,%rdi
mov    %r11,%r13
je     1380 <main+0x1f0>
jmp    15c0 <main+0x430>
xor    %ebx,%ebx
mov    %r11,%r13
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rbp
test   $0x1,%r15b
je     15da <main+0x44a>
mov    (%rdx,%rbx,4),%edi
imul   (%rcx,%rbx,4),%edi
add    %edi,(%rax,%rbx,4)
mov    %rbx,%rbp
or     $0x1,%rbp
not    %rbx
cmp    %r9,%rbx
je     1380 <main+0x1f0>
cs nopw 0x0(%rax,%rax,1)
mov    (%rdx,%rbp,4),%edi
imul   (%rcx,%rbp,4),%edi
add    %edi,(%rax,%rbp,4)
mov    0x4(%rdx,%rbp,4),%edi
imul   0x4(%rcx,%rbp,4),%edi
add    %edi,0x4(%rax,%rbp,4)
add    $0x2,%rbp
cmp    %rbp,%r15
jne    15f0 <main+0x460>
jmp    1380 <main+0x1f0>
xor    %r13d,%r13d
testb  $0x1,0x30(%rsp)
jne    1521 <main+0x391>
jmp    159d <main+0x40d>
mov    0x29b1(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rsi
call   1050 <clock_gettime@plt>
mov    0x10(%rsp),%rax
sub    0x20(%rsp),%rax
xorps  %xmm1,%xmm1
cvtsi2sd %rax,%xmm1
movsd  0x8(%rsp),%xmm0
subsd  0x18(%rsp),%xmm0
divsd  0x99f(%rip),%xmm0
addsd  %xmm1,%xmm0
lea    0x9f9(%rip),%rdi
mov    (%rsp),%rbx
mov    %ebx,%esi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xa49(%rip),%rdi
call   1040 <puts@plt>
mov    0x0(%r13),%rax
mov    (%rax),%esi
lea    0xa0f(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movslq %ebx,%rax
mov    -0x8(%r13,%rax,8),%rcx
mov    -0x4(%rcx,%rax,4),%esi
lea    0xa07(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x933(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
%struct.timespec = type { double, i64 }
@.str = [33 x i8] c"\0AError en la reserva de memoria.\00"
@CLOCK_REALTIME = global i32 0
@.str.1 = [60 x i8] c"Tiempo de inicializacion(seg.):%11.9f\09 / Tama\C3\B1o Vector:%u\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [60 x i8] c"Tiempo de multiplicacion(seg.):%11.9f\09 / Tama\C3\B1o Vector:%u\0A\00"
@.str.4 = [4 x i8] c"\0A\0A\0A\00"
@.str.5 = [18 x i8] c"Valor (0,0): %d \0A\00"
@.str.6 = [22 x i8] c"Valor (n-1,n-1): %d \0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca %struct.timespec
%12 = alloca %struct.timespec
%13 = alloca double
%14 = alloca i32**
%15 = alloca i32**
%16 = alloca i32**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = call i32 @atoi(i8* %19)
store i32 %20, i32* %6
%21 = load i32, i32* %6
%22 = sext i32 %21 to i64
%23 = mul i64 %22, 8
%24 = trunc i64 %23 to i32
%25 = call i64 @malloc(i32 %24)
%26 = inttoptr i64 %25 to i32**
store i32** %26, i32*** %14
%27 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = mul i64 %28, 8
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 %30)
%32 = inttoptr i64 %31 to i32**
store i32** %32, i32*** %15
%33 = load i32, i32* %6
%34 = sext i32 %33 to i64
%35 = mul i64 %34, 8
%36 = trunc i64 %35 to i32
%37 = call i64 @malloc(i32 %36)
%38 = inttoptr i64 %37 to i32**
store i32** %38, i32*** %16
store i32 0, i32* %7
br label %39
39: ; preds = %74, %2
%40 = load i32, i32* %7
%41 = load i32, i32* %6
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %77
43: ; preds = %39
%44 = load i32, i32* %6
%45 = sext i32 %44 to i64
%46 = mul i64 %45, 4
%47 = trunc i64 %46 to i32
%48 = call i64 @malloc(i32 %47)
%49 = inttoptr i64 %48 to i32*
%50 = load i32**, i32*** %14
%51 = load i32, i32* %7
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32*, i32** %50, i64 %52
store i32* %49, i32** %53
%54 = load i32, i32* %6
%55 = sext i32 %54 to i64
%56 = mul i64 %55, 4
%57 = trunc i64 %56 to i32
%58 = call i64 @malloc(i32 %57)
%59 = inttoptr i64 %58 to i32*
%60 = load i32**, i32*** %15
%61 = load i32, i32* %7
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32*, i32** %60, i64 %62
store i32* %59, i32** %63
%64 = load i32, i32* %6
%65 = sext i32 %64 to i64
%66 = mul i64 %65, 4
%67 = trunc i64 %66 to i32
%68 = call i64 @malloc(i32 %67)
%69 = inttoptr i64 %68 to i32*
%70 = load i32**, i32*** %16
%71 = load i32, i32* %7
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i32*, i32** %70, i64 %72
store i32* %69, i32** %73
br label %74
74: ; preds = %43
%75 = load i32, i32* %7
%76 = add nsw i32 %75, 1
store i32 %76, i32* %7
br label %39
77: ; preds = %39
%78 = load i32**, i32*** %14
%79 = icmp eq i32** %78, null
br i1 %79, label %86, label %80
80: ; preds = %77
%81 = load i32**, i32*** %15
%82 = icmp eq i32** %81, null
br i1 %82, label %86, label %83
83: ; preds = %80
%84 = load i32**, i32*** %16
%85 = icmp eq i32** %84, null
br i1 %85, label %86, label %89
86: ; preds = %83, %80, %77
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%88 = call i32 @exit(i32 -1)
unreachable
89: ; preds = %83
%90 = call i32 (...) @omp_get_num_procs()
store i32 %90, i32* %10
%91 = load i32, i32* @CLOCK_REALTIME
%92 = call i32 @clock_gettime(i32 %91, %struct.timespec* %11)
store i32 0, i32* %7
br label %93
93: ; preds = %137, %89
%94 = load i32, i32* %7
%95 = load i32, i32* %6
%96 = icmp slt i32 %94, %95
br i1 %96, label %97, label %140
97: ; preds = %93
store i32 0, i32* %8
br label %98
98: ; preds = %133, %97
%99 = load i32, i32* %8
%100 = load i32, i32* %6
%101 = icmp slt i32 %99, %100
br i1 %101, label %102, label %136
102: ; preds = %98
%103 = call i32 (...) @rand()
%104 = srem i32 %103, 4
%105 = add nsw i32 %104, 1
%106 = load i32**, i32*** %14
%107 = load i32, i32* %7
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i32*, i32** %106, i64 %108
%110 = load i32*, i32** %109
%111 = load i32, i32* %8
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i32, i32* %110, i64 %112
store i32 %105, i32* %113
%114 = call i32 (...) @rand()
%115 = srem i32 %114, 4
%116 = add nsw i32 %115, 1
%117 = load i32**, i32*** %15
%118 = load i32, i32* %7
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32*, i32** %117, i64 %119
%121 = load i32*, i32** %120
%122 = load i32, i32* %8
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i32, i32* %121, i64 %123
store i32 %116, i32* %124
%125 = load i32**, i32*** %16
%126 = load i32, i32* %7
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i32*, i32** %125, i64 %127
%129 = load i32*, i32** %128
%130 = load i32, i32* %8
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds i32, i32* %129, i64 %131
store i32 0, i32* %132
br label %133
133: ; preds = %102
%134 = load i32, i32* %8
%135 = add nsw i32 %134, 1
store i32 %135, i32* %8
br label %98
136: ; preds = %98
br label %137
137: ; preds = %136
%138 = load i32, i32* %7
%139 = add nsw i32 %138, 1
store i32 %139, i32* %7
br label %93
140: ; preds = %93
%141 = load i32, i32* @CLOCK_REALTIME
%142 = call i32 @clock_gettime(i32 %141, %struct.timespec* %12)
%143 = getelementptr inbounds %struct.timespec, %struct.timespec* %12, i32 0, i32 1
%144 = load i64, i64* %143
%145 = getelementptr inbounds %struct.timespec, %struct.timespec* %11, i32 0, i32 1
%146 = load i64, i64* %145
%147 = sub nsw i64 %144, %146
%148 = sitofp i64 %147 to double
%149 = getelementptr inbounds %struct.timespec, %struct.timespec* %12, i32 0, i32 0
%150 = load double, double* %149
%151 = getelementptr inbounds %struct.timespec, %struct.timespec* %11, i32 0, i32 0
%152 = load double, double* %151
%153 = fsub double %150, %152
%154 = fdiv double %153, 1.000000e+09
%155 = fadd double %148, %154
store double %155, double* %13
%156 = load double, double* %13
%157 = load i32, i32* %6
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0), double %156, i32 %157)
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%160 = load i32, i32* @CLOCK_REALTIME
%161 = call i32 @clock_gettime(i32 %160, %struct.timespec* %11)
store i32 0, i32* %7
br label %162
162: ; preds = %205, %140
%163 = load i32, i32* %7
%164 = load i32, i32* %6
%165 = icmp slt i32 %163, %164
br i1 %165, label %166, label %208
166: ; preds = %162
store i32 0, i32* %8
br label %167
167: ; preds = %201, %166
%168 = load i32, i32* %8
%169 = load i32, i32* %6
%170 = icmp slt i32 %168, %169
br i1 %170, label %171, label %204
171: ; preds = %167
%172 = load i32**, i32*** %14
%173 = load i32, i32* %7
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i32*, i32** %172, i64 %174
%176 = load i32*, i32** %175
%177 = load i32, i32* %8
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds i32, i32* %176, i64 %178
%180 = load i32, i32* %179
%181 = load i32**, i32*** %15
%182 = load i32, i32* %7
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds i32*, i32** %181, i64 %183
%185 = load i32*, i32** %184
%186 = load i32, i32* %8
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds i32, i32* %185, i64 %187
%189 = load i32, i32* %188
%190 = mul nsw i32 %180, %189
%191 = load i32**, i32*** %16
%192 = load i32, i32* %7
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds i32*, i32** %191, i64 %193
%195 = load i32*, i32** %194
%196 = load i32, i32* %8
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds i32, i32* %195, i64 %197
%199 = load i32, i32* %198
%200 = add nsw i32 %199, %190
store i32 %200, i32* %198
br label %201
201: ; preds = %171
%202 = load i32, i32* %8
%203 = add nsw i32 %202, 1
store i32 %203, i32* %8
br label %167
204: ; preds = %167
br label %205
205: ; preds = %204
%206 = load i32, i32* %7
%207 = add nsw i32 %206, 1
store i32 %207, i32* %7
br label %162
208: ; preds = %162
%209 = load i32, i32* @CLOCK_REALTIME
%210 = call i32 @clock_gettime(i32 %209, %struct.timespec* %12)
%211 = getelementptr inbounds %struct.timespec, %struct.timespec* %12, i32 0, i32 1
%212 = load i64, i64* %211
%213 = getelementptr inbounds %struct.timespec, %struct.timespec* %11, i32 0, i32 1
%214 = load i64, i64* %213
%215 = sub nsw i64 %212, %214
%216 = sitofp i64 %215 to double
%217 = getelementptr inbounds %struct.timespec, %struct.timespec* %12, i32 0, i32 0
%218 = load double, double* %217
%219 = getelementptr inbounds %struct.timespec, %struct.timespec* %11, i32 0, i32 0
%220 = load double, double* %219
%221 = fsub double %218, %220
%222 = fdiv double %221, 1.000000e+09
%223 = fadd double %216, %222
store double %223, double* %13
%224 = load double, double* %13
%225 = load i32, i32* %6
%226 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0), double %224, i32 %225)
%227 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%228 = load i32**, i32*** %16
%229 = getelementptr inbounds i32*, i32** %228, i64 0
%230 = load i32*, i32** %229
%231 = getelementptr inbounds i32, i32* %230, i64 0
%232 = load i32, i32* %231
%233 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 %232)
%234 = load i32**, i32*** %16
%235 = load i32, i32* %6
%236 = sub nsw i32 %235, 1
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds i32*, i32** %234, i64 %237
%239 = load i32*, i32** %238
%240 = load i32, i32* %6
%241 = sub nsw i32 %240, 1
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds i32, i32* %239, i64 %242
%244 = load i32, i32* %243
%245 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i32 %244)
%246 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%247 = load i32, i32* %3
ret i32 %247
}

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