#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 */
typedef int /*<<< orphan*/ omp_sched_t;

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
scalar_t__ malloc(int);
double omp_get_wtime();
int /*<<< orphan*/ printf(char *, double, ...);
int /*<<< orphan*/ stderr;
main(int argc, char **argv) {
  int N = atoi(argv[1]);
  int i, j, k;
  omp_sched_t kind;
  int modifier;
  double start = 0, end = 0, elapsed = 0;
  double **a;
  a = (double **)malloc(N * sizeof(double *));
  for (i = 0; i < N; i++)
    a[i] = (double *)malloc(N * sizeof(double));
  double **b;
  b = (double **)malloc(N * sizeof(double *));
  for (i = 0; i < N; i++)
    b[i] = (double *)malloc(N * sizeof(double));
  double **resultado;
  resultado = (double **)malloc(N * sizeof(double *));
  for (i = 0; i < N; i++)
    resultado[i] = (double *)malloc(N * sizeof(double));
  if (argc < 2) {
    fprintf(stderr, "Faltan argumentos\n");
    exit(-1);
  }
  for (i = 0; i < N; ++i)
    for (j = 0; j < N; ++j) {
      resultado[i][j] = 0;
      a[i][j] = j + 1;
      b[i][j] = j + 1;
    }
  start = omp_get_wtime();
#pragma omp parallel for schedule(dynamic) private(j, k)
  for (i = 0; i < N; ++i) {
#pragma omp parallel for schedule(dynamic) private(k)
    for (j = 0; j < N; ++j)
      for (k = 0; k < N; ++k)
#pragma omp atomic
        resultado[i][j] += a[i][k] * b[k][j];
  }
  end = omp_get_wtime();
  elapsed = end - start;
  printf("resultado[0][0] = %g\n", resultado[0][0]);
  printf("resultado[N-1][N-1] = %g\n", resultado[N - 1][N - 1]);
  printf("Tiempo(seg.):%11.9f\t / Tamaño Matrices:%u\n", elapsed, N);
}


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)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x14(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11f0 <main+0x90>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11b8 <main+0x58>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1242 <main+0xe2>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x50(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    120a <main+0xaa>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1294 <main+0x134>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x58(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    125c <main+0xfc>
cmpl   $0x2,-0x8(%rbp)
jge    12bd <main+0x15d>
mov    0x2d3b(%rip),%rax
mov    (%rax),%edi
lea    0xd52(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    135a <main+0x1fa>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1347 <main+0x1e7>
mov    -0x58(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
mov    -0x50(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12d7 <main+0x177>
jmp    134c <main+0x1ec>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12c4 <main+0x164>
mov    $0x0,%al
call   1030 <omp_get_wtime@plt>
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    141f <main+0x2bf>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    140c <main+0x2ac>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13f9 <main+0x299>
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x58(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1393 <main+0x233>
jmp    13fe <main+0x29e>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1380 <main+0x220>
jmp    1411 <main+0x2b1>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    136d <main+0x20d>
mov    $0x0,%al
call   1030 <omp_get_wtime@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x58(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
lea    0xbc7(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x58(%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
movsd  (%rax,%rcx,8),%xmm0
lea    0xbb0(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x40(%rbp),%xmm0
mov    -0x14(%rbp),%esi
lea    0xbb4(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %edi,%ebp
mov    0x8(%rsi),%rdi
call   1070 <atoi@plt>
mov    %eax,%r15d
lea    0x0(,%r15,8),%r14d
mov    %r14d,%edi
call   1060 <malloc@plt>
mov    %rax,%r12
mov    %r15d,%r13d
test   %r15d,%r15d
jle    1226 <main+0xc6>
xor    %ebx,%ebx
nopl   (%rax)
mov    %r14d,%edi
call   1060 <malloc@plt>
mov    %rax,(%r12,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,%r13
jne    11a0 <main+0x40>
mov    %r14d,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
test   %r15d,%r15d
jle    1231 <main+0xd1>
mov    %ebp,0x8(%rsp)
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r14d,%edi
call   1060 <malloc@plt>
mov    %rax,(%rbx,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r13
jne    11d0 <main+0x70>
mov    %r14d,%edi
call   1060 <malloc@plt>
mov    %rax,%r8
test   %r15d,%r15d
jle    1220 <main+0xc0>
mov    %r15,0x18(%rsp)
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r14d,%edi
mov    %r8,%r15
call   1060 <malloc@plt>
mov    %r15,%r8
mov    %rax,(%r15,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%r13
jne    1200 <main+0xa0>
mov    0x18(%rsp),%r15
mov    0x8(%rsp),%ebp
jmp    123c <main+0xdc>
mov    %r14d,%edi
call   1060 <malloc@plt>
mov    %rax,%rbx
mov    %r14d,%edi
call   1060 <malloc@plt>
mov    %rax,%r8
cmp    $0x2,%ebp
jl     1568 <main+0x408>
test   %r15d,%r15d
mov    %r8,0x8(%rsp)
jle    14ea <main+0x38a>
lea    -0x1(%r13),%r14
mov    %r13d,%eax
and    $0xfffffffc,%eax
mov    %rax,0x20(%rsp)
lea    0x0(,%r13,8),%r9
and    $0xffffffffffffffe0,%r9
xor    %r10d,%r10d
movdqa 0xd87(%rip),%xmm0
xorpd  %xmm1,%xmm1
pcmpeqd %xmm2,%xmm2
movdqa 0xd87(%rip),%xmm3
movdqa 0xd8f(%rip),%xmm4
mov    %r15,0x18(%rsp)
mov    %r12,0x10(%rsp)
jmp    12ad <main+0x14d>
nopl   (%rax)
add    $0x1,%r10
cmp    %r13,%r10
je     1429 <main+0x2c9>
mov    (%r8,%r10,8),%rsi
mov    (%r12,%r10,8),%rdi
mov    (%rbx,%r10,8),%rax
cmp    $0x4,%r15d
jae    12d0 <main+0x170>
xor    %edx,%edx
jmp    13a0 <main+0x240>
cs nopw 0x0(%rax,%rax,1)
lea    (%rsi,%r13,8),%rcx
lea    (%rdi,%r13,8),%r11
lea    (%rax,%r13,8),%rdx
cmp    %r11,%rsi
setb   %r12b
cmp    %rcx,%rdi
setb   %r15b
cmp    %rdx,%rsi
setb   %r8b
cmp    %rcx,%rax
setb   %bpl
cmp    %rdx,%rdi
setb   %cl
cmp    %r11,%rax
setb   %r11b
test   %r15b,%r12b
jne    1386 <main+0x226>
and    %bpl,%r8b
jne    1386 <main+0x226>
mov    $0x0,%edx
and    %r11b,%cl
mov    0x18(%rsp),%r15
mov    0x10(%rsp),%r12
mov    0x8(%rsp),%r8
jne    13a0 <main+0x240>
xor    %ecx,%ecx
movdqa %xmm0,%xmm5
xchg   %ax,%ax
movupd %xmm1,(%rsi,%rcx,1)
pshufd $0xe8,%xmm5,%xmm6
movdqa %xmm6,%xmm7
psubd  %xmm2,%xmm7
paddd  %xmm3,%xmm6
cvtdq2pd %xmm7,%xmm7
cvtdq2pd %xmm6,%xmm6
movupd %xmm1,0x10(%rsi,%rcx,1)
movups %xmm7,(%rdi,%rcx,1)
movups %xmm6,0x10(%rdi,%rcx,1)
movups %xmm7,(%rax,%rcx,1)
movups %xmm6,0x10(%rax,%rcx,1)
paddq  %xmm4,%xmm5
add    $0x20,%rcx
cmp    %rcx,%r9
jne    1330 <main+0x1d0>
mov    0x20(%rsp),%rcx
mov    %rcx,%rdx
cmp    %r13,%rcx
je     12a0 <main+0x140>
jmp    13a0 <main+0x240>
xor    %edx,%edx
mov    0x18(%rsp),%r15
mov    0x10(%rsp),%r12
mov    0x8(%rsp),%r8
nopw   0x0(%rax,%rax,1)
mov    %rdx,%rcx
test   $0x1,%r13b
je     13c9 <main+0x269>
movq   $0x0,(%rsi,%rdx,8)
mov    %rdx,%rcx
or     $0x1,%rcx
xorps  %xmm5,%xmm5
cvtsi2sd %ecx,%xmm5
movsd  %xmm5,(%rdi,%rdx,8)
movsd  %xmm5,(%rax,%rdx,8)
cmp    %rdx,%r14
je     12a0 <main+0x140>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movq   $0x0,(%rsi,%rcx,8)
lea    0x1(%rcx),%edx
xorps  %xmm5,%xmm5
cvtsi2sd %edx,%xmm5
movsd  %xmm5,(%rdi,%rcx,8)
movsd  %xmm5,(%rax,%rcx,8)
lea    0x2(%rcx),%rdx
xorps  %xmm5,%xmm5
cvtsi2sd %edx,%xmm5
movq   $0x0,0x8(%rsi,%rcx,8)
movsd  %xmm5,0x8(%rdi,%rcx,8)
movsd  %xmm5,0x8(%rax,%rcx,8)
mov    %rdx,%rcx
cmp    %rdx,%r13
jne    13e0 <main+0x280>
jmp    12a0 <main+0x140>
xor    %eax,%eax
call   1030 <omp_get_wtime@plt>
test   %r15d,%r15d
movq   %xmm0,0x20(%rsp)
jle    14f7 <main+0x397>
mov    %r13d,%eax
and    $0xfffffffe,%eax
xor    %r8d,%r8d
mov    0x8(%rsp),%r9
jmp    145d <main+0x2fd>
nop
add    $0x1,%r8
cmp    %r13,%r8
je     14f7 <main+0x397>
mov    (%r12,%r8,8),%rdx
mov    (%r9,%r8,8),%rsi
xor    %edi,%edi
jmp    1479 <main+0x319>
nopl   0x0(%rax)
add    $0x1,%rdi
cmp    %r13,%rdi
je     1450 <main+0x2f0>
movsd  (%rsi,%rdi,8),%xmm2
xor    %ecx,%ecx
test   %r14,%r14
je     14cb <main+0x36b>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%rdx,%rcx,8),%xmm1
mov    (%rbx,%rcx,8),%rbp
mulsd  0x0(%rbp,%rdi,8),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,(%rsi,%rdi,8)
movsd  0x8(%rdx,%rcx,8),%xmm2
mov    0x8(%rbx,%rcx,8),%rbp
mulsd  0x0(%rbp,%rdi,8),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rsi,%rdi,8)
add    $0x2,%rcx
cmp    %rcx,%rax
jne    1490 <main+0x330>
test   $0x1,%r13b
je     1470 <main+0x310>
movsd  (%rdx,%rcx,8),%xmm1
mov    (%rbx,%rcx,8),%rcx
mulsd  (%rcx,%rdi,8),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,(%rsi,%rdi,8)
jmp    1470 <main+0x310>
xor    %eax,%eax
call   1030 <omp_get_wtime@plt>
movq   %xmm0,0x20(%rsp)
xor    %eax,%eax
call   1030 <omp_get_wtime@plt>
subsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
mov    0x8(%rsp),%rbx
mov    (%rbx),%rax
movsd  (%rax),%xmm0
lea    0xb26(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movslq %r15d,%rax
mov    -0x8(%rbx,%rax,8),%rcx
movsd  -0x8(%rcx,%rax,8),%xmm0
lea    0xb20(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xb2c(%rip),%rdi
movsd  0x10(%rsp),%xmm0
mov    %r15d,%esi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2a71(%rip),%rax
mov    (%rax),%edi
lea    0xab8(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [19 x i8] c"Faltan argumentos\0A\00"
@.str.1 = [22 x i8] c"resultado[0][0] = %g\0A\00"
@.str.2 = [26 x i8] c"resultado[N-1][N-1] = %g\0A\00"
@.str.3 = [44 x i8] c"Tiempo(seg.):%11.9f\09 / Tama\C3\B1o Matrices:%u\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = tail call i32 @atoi(i8* %4)
%6 = shl i32 %5, 3
%7 = tail call i64 @malloc(i32 %6)
%8 = inttoptr i64 %7 to double**
%9 = icmp sgt i32 %5, 0
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = tail call i64 @malloc(i32 %6)
%12 = inttoptr i64 %11 to double**
br label %34
13: ; preds = %2
%14 = zext i32 %5 to i64
br label %15
15: ; preds = %13, %15
%16 = phi i64 [ 0, %13 ], [ %20, %15 ]
%17 = tail call i64 @malloc(i32 %6)
%18 = inttoptr i64 %17 to double*
%19 = getelementptr inbounds double*, double** %8, i64 %16
store double* %18, double** %19
%20 = add nuw nsw i64 %16, 1
%21 = icmp eq i64 %20, %14
br i1 %21, label %22, label %15
22: ; preds = %15
%23 = tail call i64 @malloc(i32 %6)
%24 = inttoptr i64 %23 to double**
br i1 %9, label %25, label %34
25: ; preds = %22
%26 = zext i32 %5 to i64
br label %27
27: ; preds = %25, %27
%28 = phi i64 [ 0, %25 ], [ %32, %27 ]
%29 = tail call i64 @malloc(i32 %6)
%30 = inttoptr i64 %29 to double*
%31 = getelementptr inbounds double*, double** %24, i64 %28
store double* %30, double** %31
%32 = add nuw nsw i64 %28, 1
%33 = icmp eq i64 %32, %26
br i1 %33, label %38, label %27
34: ; preds = %10, %22
%35 = phi double** [ %24, %22 ], [ %12, %10 ]
%36 = tail call i64 @malloc(i32 %6)
%37 = inttoptr i64 %36 to double**
br label %50
38: ; preds = %27
%39 = tail call i64 @malloc(i32 %6)
%40 = inttoptr i64 %39 to double**
br i1 %9, label %41, label %50
41: ; preds = %38
%42 = zext i32 %5 to i64
br label %43
43: ; preds = %41, %43
%44 = phi i64 [ 0, %41 ], [ %48, %43 ]
%45 = tail call i64 @malloc(i32 %6)
%46 = inttoptr i64 %45 to double*
%47 = getelementptr inbounds double*, double** %40, i64 %44
store double* %46, double** %47
%48 = add nuw nsw i64 %44, 1
%49 = icmp eq i64 %48, %42
br i1 %49, label %50, label %43
50: ; preds = %43, %34, %38
%51 = phi double** [ %37, %34 ], [ %40, %38 ], [ %40, %43 ]
%52 = phi double** [ %35, %34 ], [ %24, %38 ], [ %24, %43 ]
%53 = icmp slt i32 %0, 2
br i1 %53, label %65, label %54
54: ; preds = %50
br i1 %9, label %57, label %55
55: ; preds = %54
%56 = tail call double (...) @omp_get_wtime()
br label %204
57: ; preds = %54
%58 = zext i32 %5 to i64
%59 = add nsw i64 %58, -1
%60 = icmp ult i32 %5, 4
%61 = and i64 %58, 4294967292
%62 = icmp eq i64 %61, %58
%63 = and i64 %58, 1
%64 = icmp eq i64 %63, 0
br label %69
65: ; preds = %50
%66 = load i32, i32* @stderr
%67 = tail call i32 @fprintf(i32 %66, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%68 = tail call i32 @exit(i32 -1)
unreachable
69: ; preds = %144, %57
%70 = phi i64 [ 0, %57 ], [ %145, %144 ]
%71 = getelementptr inbounds double*, double** %51, i64 %70
%72 = load double*, double** %71
%73 = getelementptr inbounds double*, double** %8, i64 %70
%74 = load double*, double** %73
%75 = getelementptr inbounds double*, double** %52, i64 %70
%76 = load double*, double** %75
br i1 %60, label %117, label %77
77: ; preds = %69
%78 = getelementptr double, double* %72, i64 %58
%79 = getelementptr double, double* %74, i64 %58
%80 = getelementptr double, double* %76, i64 %58
%81 = icmp ult double* %72, %79
%82 = icmp ult double* %74, %78
%83 = and i1 %81, %82
%84 = icmp ult double* %72, %80
%85 = icmp ult double* %76, %78
%86 = and i1 %84, %85
%87 = or i1 %83, %86
%88 = icmp ult double* %74, %80
%89 = icmp ult double* %76, %79
%90 = and i1 %88, %89
%91 = or i1 %87, %90
br i1 %91, label %117, label %92
92: ; preds = %77, %92
%93 = phi i64 [ %113, %92 ], [ 0, %77 ]
%94 = phi <2 x i64> [ %114, %92 ], [ <i64 0, i64 1>, %77 ]
%95 = getelementptr inbounds double, double* %72, i64 %93
%96 = bitcast double* %95 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %96
%97 = getelementptr inbounds double, double* %95, i64 2
%98 = bitcast double* %97 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %98
%99 = trunc <2 x i64> %94 to <2 x i32>
%100 = add <2 x i32> %99, <i32 1, i32 1>
%101 = trunc <2 x i64> %94 to <2 x i32>
%102 = add <2 x i32> %101, <i32 3, i32 3>
%103 = sitofp <2 x i32> %100 to <2 x double>
%104 = sitofp <2 x i32> %102 to <2 x double>
%105 = getelementptr inbounds double, double* %74, i64 %93
%106 = bitcast double* %105 to <2 x double>*
store <2 x double> %103, <2 x double>* %106
%107 = getelementptr inbounds double, double* %105, i64 2
%108 = bitcast double* %107 to <2 x double>*
store <2 x double> %104, <2 x double>* %108
%109 = getelementptr inbounds double, double* %76, i64 %93
%110 = bitcast double* %109 to <2 x double>*
store <2 x double> %103, <2 x double>* %110
%111 = getelementptr inbounds double, double* %109, i64 2
%112 = bitcast double* %111 to <2 x double>*
store <2 x double> %104, <2 x double>* %112
%113 = add nuw i64 %93, 4
%114 = add <2 x i64> %94, <i64 4, i64 4>
%115 = icmp eq i64 %113, %61
br i1 %115, label %116, label %92
116: ; preds = %92
br i1 %62, label %144, label %117
117: ; preds = %77, %69, %116
%118 = phi i64 [ 0, %77 ], [ 0, %69 ], [ %61, %116 ]
br i1 %64, label %126, label %119
119: ; preds = %117
%120 = getelementptr inbounds double, double* %72, i64 %118
store double 0.000000e+00, double* %120
%121 = or i64 %118, 1
%122 = trunc i64 %121 to i32
%123 = sitofp i32 %122 to double
%124 = getelementptr inbounds double, double* %74, i64 %118
store double %123, double* %124
%125 = getelementptr inbounds double, double* %76, i64 %118
store double %123, double* %125
br label %126
126: ; preds = %119, %117
%127 = phi i64 [ %118, %117 ], [ %121, %119 ]
%128 = icmp eq i64 %59, %118
br i1 %128, label %144, label %129
129: ; preds = %126, %129
%130 = phi i64 [ %138, %129 ], [ %127, %126 ]
%131 = getelementptr inbounds double, double* %72, i64 %130
store double 0.000000e+00, double* %131
%132 = add nuw nsw i64 %130, 1
%133 = trunc i64 %132 to i32
%134 = sitofp i32 %133 to double
%135 = getelementptr inbounds double, double* %74, i64 %130
store double %134, double* %135
%136 = getelementptr inbounds double, double* %76, i64 %130
store double %134, double* %136
%137 = getelementptr inbounds double, double* %72, i64 %132
store double 0.000000e+00, double* %137
%138 = add nuw nsw i64 %130, 2
%139 = trunc i64 %138 to i32
%140 = sitofp i32 %139 to double
%141 = getelementptr inbounds double, double* %74, i64 %132
store double %140, double* %141
%142 = getelementptr inbounds double, double* %76, i64 %132
store double %140, double* %142
%143 = icmp eq i64 %138, %58
br i1 %143, label %144, label %129
144: ; preds = %126, %129, %116
%145 = add nuw nsw i64 %70, 1
%146 = icmp eq i64 %145, %58
br i1 %146, label %147, label %69
147: ; preds = %144
%148 = tail call double (...) @omp_get_wtime()
br i1 %9, label %149, label %204
149: ; preds = %147
%150 = zext i32 %5 to i64
%151 = and i64 %58, 1
%152 = icmp eq i64 %59, 0
%153 = and i64 %58, 4294967294
%154 = icmp eq i64 %151, 0
br label %155
155: ; preds = %201, %149
%156 = phi i64 [ 0, %149 ], [ %202, %201 ]
%157 = getelementptr inbounds double*, double** %8, i64 %156
%158 = getelementptr inbounds double*, double** %51, i64 %156
%159 = load double*, double** %157
%160 = load double*, double** %158
br label %161
161: ; preds = %198, %155
%162 = phi i64 [ 0, %155 ], [ %199, %198 ]
%163 = getelementptr inbounds double, double* %160, i64 %162
%164 = load double, double* %163
br i1 %152, label %187, label %165
165: ; preds = %161, %165
%166 = phi double [ %183, %165 ], [ %164, %161 ]
%167 = phi i64 [ %184, %165 ], [ 0, %161 ]
%168 = phi i64 [ %185, %165 ], [ 0, %161 ]
%169 = getelementptr inbounds double, double* %159, i64 %167
%170 = load double, double* %169
%171 = getelementptr inbounds double*, double** %52, i64 %167
%172 = load double*, double** %171
%173 = getelementptr inbounds double, double* %172, i64 %162
%174 = load double, double* %173
%175 = tail call double @llvm.fmuladd.f64(double %170, double %174, double %166)
store double %175, double* %163
%176 = or i64 %167, 1
%177 = getelementptr inbounds double, double* %159, i64 %176
%178 = load double, double* %177
%179 = getelementptr inbounds double*, double** %52, i64 %176
%180 = load double*, double** %179
%181 = getelementptr inbounds double, double* %180, i64 %162
%182 = load double, double* %181
%183 = tail call double @llvm.fmuladd.f64(double %178, double %182, double %175)
store double %183, double* %163
%184 = add nuw nsw i64 %167, 2
%185 = add i64 %168, 2
%186 = icmp eq i64 %185, %153
br i1 %186, label %187, label %165
187: ; preds = %165, %161
%188 = phi double [ %164, %161 ], [ %183, %165 ]
%189 = phi i64 [ 0, %161 ], [ %184, %165 ]
br i1 %154, label %198, label %190
190: ; preds = %187
%191 = getelementptr inbounds double, double* %159, i64 %189
%192 = load double, double* %191
%193 = getelementptr inbounds double*, double** %52, i64 %189
%194 = load double*, double** %193
%195 = getelementptr inbounds double, double* %194, i64 %162
%196 = load double, double* %195
%197 = tail call double @llvm.fmuladd.f64(double %192, double %196, double %188)
store double %197, double* %163
br label %198
198: ; preds = %187, %190
%199 = add nuw nsw i64 %162, 1
%200 = icmp eq i64 %199, %150
br i1 %200, label %201, label %161
201: ; preds = %198
%202 = add nuw nsw i64 %156, 1
%203 = icmp eq i64 %202, %150
br i1 %203, label %204, label %155
204: ; preds = %201, %55, %147
%205 = phi double [ %56, %55 ], [ %148, %147 ], [ %148, %201 ]
%206 = tail call double (...) @omp_get_wtime()
%207 = fsub double %206, %205
%208 = load double*, double** %51
%209 = load double, double* %208
%210 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), double %209)
%211 = add nsw i32 %5, -1
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds double*, double** %51, i64 %212
%214 = load double*, double** %213
%215 = getelementptr inbounds double, double* %214, i64 %212
%216 = load double, double* %215
%217 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), double %216)
%218 = tail call i32 (i8*, double, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), double %207, i32 %5)
ret i32 0
}