#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 */

/* Variables and functions */
int atoi(char *);
double dwalltime();
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
main(int argc, char *argv[]) {
  double *A, *B, *C, *D, *ab, *cd, *tot;
  int i, j, k, N;
  int check = 1;
  double timetick;
  if (argc < 2) {
    printf("\n Falta un argumento:: N dimension de la matriz \n");
    return 0;
  }
  N = atoi(argv[1]);
  A = (double *)malloc(sizeof(double) * N * N);
  B = (double *)malloc(sizeof(double) * N * N);
  C = (double *)malloc(sizeof(double) * N * N);
  D = (double *)malloc(sizeof(double) * N * N);
  ab = (double *)malloc(sizeof(double) * N * N);
  cd = (double *)malloc(sizeof(double) * N * N);
  tot = (double *)malloc(sizeof(double) * N * N);
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      A[i * N + j] = 1;
      B[i + j * N] = 1;
      C[i * N + j] = 1;
      D[i + j * N] = 1;
    }
  }
  timetick = dwalltime();
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      ab[i * N + j] = 0;
      for (k = 0; k < N; k++) {
        ab[i * N + j] = ab[i * N + j] + A[i * N + k] * B[k + j * N];
        cd[i * N + j] = cd[i * N + j] + C[i * N + k] * D[k + j * N];
        tot[i * N + j] = cd[i * N + j] + ab[i * N + j];
      }
    }
  }
  printf("Tiempo en segundos %f \n", dwalltime() - timetick);
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      check = check && (tot[i * N + j] == N * 2);
    }
  }
  if (check) {
    printf("Multiplicacion de matrices resultado correcto\n");
  } else {
    printf("Multiplicacion de matrices resultado erroneo\n");
  }
  free(A);
  free(B);
  free(C);
  free(D);
  free(ab);
  free(cd);
  free(tot);
  return (0);
}


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)
movl   $0x1,-0x5c(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1191 <main+0x41>
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    15d4 <main+0x484>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x58(%rbp)
movslq -0x58(%rbp),%rax
shl    $0x3,%rax
movslq -0x58(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x18(%rbp)
movslq -0x58(%rbp),%rax
shl    $0x3,%rax
movslq -0x58(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x20(%rbp)
movslq -0x58(%rbp),%rax
shl    $0x3,%rax
movslq -0x58(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x28(%rbp)
movslq -0x58(%rbp),%rax
shl    $0x3,%rax
movslq -0x58(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x58(%rbp),%rax
shl    $0x3,%rax
movslq -0x58(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq -0x58(%rbp),%rax
shl    $0x3,%rax
movslq -0x58(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x40(%rbp)
movslq -0x58(%rbp),%rax
shl    $0x3,%rax
movslq -0x58(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x58(%rbp),%eax
jge    1321 <main+0x1d1>
movl   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x58(%rbp),%eax
jge    130e <main+0x1be>
mov    -0x18(%rbp),%rax
mov    -0x4c(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    -0x50(%rbp),%ecx
movslq %ecx,%rcx
movsd  0xd63(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
mov    -0x4c(%rbp),%ecx
mov    -0x50(%rbp),%edx
imul   -0x58(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  0xd43(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
mov    -0x4c(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    -0x50(%rbp),%ecx
movslq %ecx,%rcx
movsd  0xd25(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
mov    -0x4c(%rbp),%ecx
mov    -0x50(%rbp),%edx
imul   -0x58(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  0xd05(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1278 <main+0x128>
jmp    1313 <main+0x1c3>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1265 <main+0x115>
mov    $0x0,%al
call   1050 <dwalltime@plt>
movsd  %xmm0,-0x68(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x58(%rbp),%eax
jge    14b9 <main+0x369>
movl   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x58(%rbp),%eax
jge    14a6 <main+0x356>
mov    -0x38(%rbp),%rax
mov    -0x4c(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    -0x50(%rbp),%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x58(%rbp),%eax
jge    1493 <main+0x343>
mov    -0x38(%rbp),%rax
mov    -0x4c(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    -0x50(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x4c(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    -0x54(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x54(%rbp),%ecx
mov    -0x50(%rbp),%edx
imul   -0x58(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
mov    -0x4c(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    -0x50(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
mov    -0x4c(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    -0x50(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
mov    -0x4c(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    -0x54(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x54(%rbp),%ecx
mov    -0x50(%rbp),%edx
imul   -0x58(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
mov    -0x4c(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    -0x50(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
mov    -0x4c(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    -0x50(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x4c(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    -0x50(%rbp),%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
mov    -0x4c(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    -0x50(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1373 <main+0x223>
jmp    1498 <main+0x348>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1347 <main+0x1f7>
jmp    14ab <main+0x35b>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1334 <main+0x1e4>
mov    $0x0,%al
call   1050 <dwalltime@plt>
subsd  -0x68(%rbp),%xmm0
lea    0xb6e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x58(%rbp),%eax
jge    1563 <main+0x413>
movl   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x58(%rbp),%eax
jge    1550 <main+0x400>
xor    %eax,%eax
cmpl   $0x0,-0x5c(%rbp)
mov    %al,-0x69(%rbp)
je     1537 <main+0x3e7>
mov    -0x48(%rbp),%rax
mov    -0x4c(%rbp),%ecx
imul   -0x58(%rbp),%ecx
add    -0x50(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%eax
shl    $0x1,%eax
cvtsi2sd %eax,%xmm1
ucomisd %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
mov    %al,-0x69(%rbp)
mov    -0x69(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    14ed <main+0x39d>
jmp    1555 <main+0x405>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    14da <main+0x38a>
cmpl   $0x0,-0x5c(%rbp)
je     1580 <main+0x430>
lea    0xade(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    158e <main+0x43e>
lea    0xafa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
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
cmp    $0x1,%edi
jg     1184 <main+0x24>
lea    0xef9(%rip),%rdi
call   1040 <puts@plt>
jmp    15de <main+0x47e>
mov    0x8(%rsi),%rdi
call   1080 <atoi@plt>
mov    %eax,%r15d
mov    %eax,%r14d
imul   %eax,%r14d
shl    $0x3,%r14d
mov    %r14d,%edi
call   1070 <malloc@plt>
mov    %rax,0x10(%rsp)
mov    %r14d,%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
mov    %r14d,%edi
call   1070 <malloc@plt>
mov    %rax,0x20(%rsp)
mov    %r14d,%edi
call   1070 <malloc@plt>
mov    %rax,%rbp
mov    %r14d,%edi
call   1070 <malloc@plt>
mov    %rax,%r13
mov    %r14d,%edi
call   1070 <malloc@plt>
mov    %rax,%r12
mov    %r14d,%edi
call   1070 <malloc@plt>
mov    %r15,0x38(%rsp)
mov    %rax,%r14
mov    %r15d,%edx
test   %r15d,%r15d
jle    144a <main+0x2ea>
mov    %edx,%r9d
and    $0xfffffffe,%r9d
mov    0x20(%rsp),%rcx
add    $0x8,%rcx
lea    0x0(,%rdx,8),%rax
mov    %rax,0x40(%rsp)
mov    0x10(%rsp),%rsi
add    $0x8,%rsi
lea    0x0(,%rdx,8),%rdi
add    %rbp,%rdi
mov    %rdx,%r11
shl    $0x4,%r11
mov    %rdx,0x18(%rsp)
lea    (%rbx,%rdx,8),%rax
xor    %edx,%edx
mov    %rdx,0x8(%rsp)
movabs $0x3ff0000000000000,%rdx
mov    %rbx,%r15
mov    %rbp,0x28(%rsp)
mov    %rbp,%rbx
mov    %r15,0x30(%rsp)
jmp    12a7 <main+0x147>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x8(%rsp),%r8
add    $0x1,%r8
mov    0x40(%rsp),%rbp
add    %rbp,%rcx
add    %rbp,%rsi
add    $0x8,%rdi
add    $0x8,%rax
add    $0x8,%r15
add    $0x8,%rbx
mov    %r8,%rbp
mov    %r8,0x8(%rsp)
cmp    0x18(%rsp),%r8
je     1351 <main+0x1f1>
cmpl   $0x1,0x38(%rsp)
jne    12c0 <main+0x160>
xor    %r8d,%r8d
jmp    12fe <main+0x19e>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %ebp,%ebp
xor    %r8d,%r8d
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rdx,-0x8(%rsi,%r8,8)
mov    %rdx,(%r15,%rbp,1)
mov    %rdx,-0x8(%rcx,%r8,8)
mov    %rdx,(%rbx,%rbp,1)
mov    %rdx,(%rsi,%r8,8)
mov    %rdx,(%rax,%rbp,1)
mov    %rdx,(%rcx,%r8,8)
mov    %rdx,(%rdi,%rbp,1)
add    $0x2,%r8
add    %r11,%rbp
cmp    %r8,%r9
jne    12d0 <main+0x170>
testb  $0x1,0x18(%rsp)
je     1270 <main+0x110>
mov    0x8(%rsp),%rbp
imul   0x18(%rsp),%rbp
add    %r8,%rbp
mov    0x10(%rsp),%r10
mov    %rdx,(%r10,%rbp,8)
mov    %rbp,%r10
imul   0x18(%rsp),%r8
add    0x8(%rsp),%r8
mov    0x30(%rsp),%rbp
mov    %rdx,0x0(%rbp,%r8,8)
mov    0x20(%rsp),%rbp
mov    %rdx,0x0(%rbp,%r10,8)
mov    0x28(%rsp),%rbp
mov    %rdx,0x0(%rbp,%r8,8)
jmp    1270 <main+0x110>
xor    %eax,%eax
call   1060 <dwalltime@plt>
cmpl   $0x0,0x38(%rsp)
movsd  %xmm0,0x8(%rsp)
jle    156e <main+0x40e>
mov    0x18(%rsp),%r15
lea    0x0(,%r15,8),%r10
lea    -0x1(%r15),%rcx
xor    %r8d,%r8d
mov    0x20(%rsp),%rsi
mov    0x10(%rsp),%rdi
mov    0x30(%rsp),%rbx
mov    0x28(%rsp),%rbp
jmp    13bd <main+0x25d>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r8
add    %r10,%rdi
add    %r10,%rsi
cmp    %r15,%r8
mov    0x30(%rsp),%rbx
mov    0x28(%rsp),%rbp
je     145a <main+0x2fa>
mov    %r8,%r9
imul   %r15,%r9
mov    %rbp,%rdx
mov    %rbx,%rax
xor    %r11d,%r11d
jmp    13df <main+0x27f>
nop
add    $0x1,%r11
add    %r10,%rax
add    %r10,%rdx
cmp    %r15,%r11
je     13a0 <main+0x240>
lea    (%r11,%r9,1),%rbp
movq   $0x0,0x0(%r13,%rbp,8)
xorpd  %xmm2,%xmm2
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rdi,%rbx,8),%xmm1
mulsd  (%rax,%rbx,8),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,0x0(%r13,%rbp,8)
movsd  (%rsi,%rbx,8),%xmm1
mulsd  (%rdx,%rbx,8),%xmm1
addsd  (%r12,%rbp,8),%xmm1
movsd  %xmm1,(%r12,%rbp,8)
addsd  0x0(%r13,%rbp,8),%xmm1
movsd  %xmm1,(%r14,%rbp,8)
cmp    %rbx,%rcx
je     13d0 <main+0x270>
movsd  0x0(%r13,%rbp,8),%xmm2
add    $0x1,%rbx
jmp    1400 <main+0x2a0>
xor    %eax,%eax
mov    %rdx,%r15
call   1060 <dwalltime@plt>
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1060 <dwalltime@plt>
subsd  0x8(%rsp),%xmm0
lea    0xb92(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0x38(%rsp),%r10
test   %r10d,%r10d
jle    1560 <main+0x400>
lea    (%r10,%r10,1),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    %r15d,%eax
and    $0xfffffffe,%eax
mov    %r14,%rcx
add    $0x8,%rcx
lea    0x0(,%r15,8),%r8
mov    $0x1,%esi
xor    %r9d,%r9d
jmp    14dc <main+0x37c>
nopl   (%rax)
mov    %r9,%rdx
imul   %r15,%rdx
add    %rdx,%rdi
movsd  (%r14,%rdi,8),%xmm1
cmpeqsd %xmm0,%xmm1
movq   %xmm1,%rdx
and    $0x1,%edx
movzbl %dl,%esi
add    $0x1,%r9
add    %r8,%rcx
cmp    %r15,%r9
je     1544 <main+0x3e4>
cmp    $0x1,%r10d
jne    1500 <main+0x3a0>
xor    %edi,%edi
test   $0x1,%r15b
je     14d0 <main+0x370>
test   %esi,%esi
jne    14b0 <main+0x350>
xor    %edx,%edx
jmp    14cd <main+0x36d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %edi,%edi
jmp    151e <main+0x3be>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %edx,%edx
movzbl %dl,%esi
add    $0x2,%rdi
cmp    %rdi,%rax
je     14e4 <main+0x384>
test   %esi,%esi
je     1510 <main+0x3b0>
movsd  -0x8(%rcx,%rdi,8),%xmm1
ucomisd %xmm0,%xmm1
jne    1510 <main+0x3b0>
jp     1510 <main+0x3b0>
movsd  (%rcx,%rdi,8),%xmm1
cmpeqsd %xmm0,%xmm1
movq   %xmm1,%rdx
and    $0x1,%edx
jmp    1512 <main+0x3b2>
lea    0xafa(%rip),%rax
lea    0xac6(%rip),%rdi
test   $0x1,%dl
cmovne %rax,%rdi
mov    0x10(%rsp),%r15
jmp    159f <main+0x43f>
lea    0xade(%rip),%rdi
mov    0x10(%rsp),%r15
jmp    159f <main+0x43f>
xor    %eax,%eax
call   1060 <dwalltime@plt>
subsd  0x8(%rsp),%xmm0
lea    0xa7e(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xab5(%rip),%rdi
mov    0x10(%rsp),%r15
mov    0x30(%rsp),%rbx
mov    0x28(%rsp),%rbp
call   1040 <puts@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    0x20(%rsp),%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [50 x i8] c"\0A Falta un argumento:: N dimension de la matriz \0A\00"
@.str.1 = [24 x i8] c"Tiempo en segundos %f \0A\00"
@.str.2 = [47 x i8] c"Multiplicacion de matrices resultado correcto\0A\00"
@.str.3 = [46 x i8] c"Multiplicacion de matrices resultado erroneo\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %17
%19 = load i32, i32* %4
%20 = icmp slt i32 %19, 2
br i1 %20, label %21, label %23
21: ; preds = %2
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %338
23: ; preds = %2
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32 @atoi(i8* %26)
store i32 %27, i32* %16
%28 = load i32, i32* %16
%29 = sext i32 %28 to i64
%30 = mul i64 8, %29
%31 = load i32, i32* %16
%32 = sext i32 %31 to i64
%33 = mul i64 %30, %32
%34 = trunc i64 %33 to i32
%35 = call i64 @malloc(i32 %34)
%36 = inttoptr i64 %35 to double*
store double* %36, double** %6
%37 = load i32, i32* %16
%38 = sext i32 %37 to i64
%39 = mul i64 8, %38
%40 = load i32, i32* %16
%41 = sext i32 %40 to i64
%42 = mul i64 %39, %41
%43 = trunc i64 %42 to i32
%44 = call i64 @malloc(i32 %43)
%45 = inttoptr i64 %44 to double*
store double* %45, double** %7
%46 = load i32, i32* %16
%47 = sext i32 %46 to i64
%48 = mul i64 8, %47
%49 = load i32, i32* %16
%50 = sext i32 %49 to i64
%51 = mul i64 %48, %50
%52 = trunc i64 %51 to i32
%53 = call i64 @malloc(i32 %52)
%54 = inttoptr i64 %53 to double*
store double* %54, double** %8
%55 = load i32, i32* %16
%56 = sext i32 %55 to i64
%57 = mul i64 8, %56
%58 = load i32, i32* %16
%59 = sext i32 %58 to i64
%60 = mul i64 %57, %59
%61 = trunc i64 %60 to i32
%62 = call i64 @malloc(i32 %61)
%63 = inttoptr i64 %62 to double*
store double* %63, double** %9
%64 = load i32, i32* %16
%65 = sext i32 %64 to i64
%66 = mul i64 8, %65
%67 = load i32, i32* %16
%68 = sext i32 %67 to i64
%69 = mul i64 %66, %68
%70 = trunc i64 %69 to i32
%71 = call i64 @malloc(i32 %70)
%72 = inttoptr i64 %71 to double*
store double* %72, double** %10
%73 = load i32, i32* %16
%74 = sext i32 %73 to i64
%75 = mul i64 8, %74
%76 = load i32, i32* %16
%77 = sext i32 %76 to i64
%78 = mul i64 %75, %77
%79 = trunc i64 %78 to i32
%80 = call i64 @malloc(i32 %79)
%81 = inttoptr i64 %80 to double*
store double* %81, double** %11
%82 = load i32, i32* %16
%83 = sext i32 %82 to i64
%84 = mul i64 8, %83
%85 = load i32, i32* %16
%86 = sext i32 %85 to i64
%87 = mul i64 %84, %86
%88 = trunc i64 %87 to i32
%89 = call i64 @malloc(i32 %88)
%90 = inttoptr i64 %89 to double*
store double* %90, double** %12
store i32 0, i32* %13
br label %91
91: ; preds = %137, %23
%92 = load i32, i32* %13
%93 = load i32, i32* %16
%94 = icmp slt i32 %92, %93
br i1 %94, label %95, label %140
95: ; preds = %91
store i32 0, i32* %14
br label %96
96: ; preds = %133, %95
%97 = load i32, i32* %14
%98 = load i32, i32* %16
%99 = icmp slt i32 %97, %98
br i1 %99, label %100, label %136
100: ; preds = %96
%101 = load double*, double** %6
%102 = load i32, i32* %13
%103 = load i32, i32* %16
%104 = mul nsw i32 %102, %103
%105 = load i32, i32* %14
%106 = add nsw i32 %104, %105
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, double* %101, i64 %107
store double 1.000000e+00, double* %108
%109 = load double*, double** %7
%110 = load i32, i32* %13
%111 = load i32, i32* %14
%112 = load i32, i32* %16
%113 = mul nsw i32 %111, %112
%114 = add nsw i32 %110, %113
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds double, double* %109, i64 %115
store double 1.000000e+00, double* %116
%117 = load double*, double** %8
%118 = load i32, i32* %13
%119 = load i32, i32* %16
%120 = mul nsw i32 %118, %119
%121 = load i32, i32* %14
%122 = add nsw i32 %120, %121
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds double, double* %117, i64 %123
store double 1.000000e+00, double* %124
%125 = load double*, double** %9
%126 = load i32, i32* %13
%127 = load i32, i32* %14
%128 = load i32, i32* %16
%129 = mul nsw i32 %127, %128
%130 = add nsw i32 %126, %129
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds double, double* %125, i64 %131
store double 1.000000e+00, double* %132
br label %133
133: ; preds = %100
%134 = load i32, i32* %14
%135 = add nsw i32 %134, 1
store i32 %135, i32* %14
br label %96
136: ; preds = %96
br label %137
137: ; preds = %136
%138 = load i32, i32* %13
%139 = add nsw i32 %138, 1
store i32 %139, i32* %13
br label %91
140: ; preds = %91
%141 = call double (...) @dwalltime()
store double %141, double* %18
store i32 0, i32* %13
br label %142
142: ; preds = %272, %140
%143 = load i32, i32* %13
%144 = load i32, i32* %16
%145 = icmp slt i32 %143, %144
br i1 %145, label %146, label %275
146: ; preds = %142
store i32 0, i32* %14
br label %147
147: ; preds = %268, %146
%148 = load i32, i32* %14
%149 = load i32, i32* %16
%150 = icmp slt i32 %148, %149
br i1 %150, label %151, label %271
151: ; preds = %147
%152 = load double*, double** %10
%153 = load i32, i32* %13
%154 = load i32, i32* %16
%155 = mul nsw i32 %153, %154
%156 = load i32, i32* %14
%157 = add nsw i32 %155, %156
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds double, double* %152, i64 %158
store double 0.000000e+00, double* %159
store i32 0, i32* %15
br label %160
160: ; preds = %264, %151
%161 = load i32, i32* %15
%162 = load i32, i32* %16
%163 = icmp slt i32 %161, %162
br i1 %163, label %164, label %267
164: ; preds = %160
%165 = load double*, double** %10
%166 = load i32, i32* %13
%167 = load i32, i32* %16
%168 = mul nsw i32 %166, %167
%169 = load i32, i32* %14
%170 = add nsw i32 %168, %169
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds double, double* %165, i64 %171
%173 = load double, double* %172
%174 = load double*, double** %6
%175 = load i32, i32* %13
%176 = load i32, i32* %16
%177 = mul nsw i32 %175, %176
%178 = load i32, i32* %15
%179 = add nsw i32 %177, %178
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds double, double* %174, i64 %180
%182 = load double, double* %181
%183 = load double*, double** %7
%184 = load i32, i32* %15
%185 = load i32, i32* %14
%186 = load i32, i32* %16
%187 = mul nsw i32 %185, %186
%188 = add nsw i32 %184, %187
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds double, double* %183, i64 %189
%191 = load double, double* %190
%192 = call double @llvm.fmuladd.f64(double %182, double %191, double %173)
%193 = load double*, double** %10
%194 = load i32, i32* %13
%195 = load i32, i32* %16
%196 = mul nsw i32 %194, %195
%197 = load i32, i32* %14
%198 = add nsw i32 %196, %197
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds double, double* %193, i64 %199
store double %192, double* %200
%201 = load double*, double** %11
%202 = load i32, i32* %13
%203 = load i32, i32* %16
%204 = mul nsw i32 %202, %203
%205 = load i32, i32* %14
%206 = add nsw i32 %204, %205
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds double, double* %201, i64 %207
%209 = load double, double* %208
%210 = load double*, double** %8
%211 = load i32, i32* %13
%212 = load i32, i32* %16
%213 = mul nsw i32 %211, %212
%214 = load i32, i32* %15
%215 = add nsw i32 %213, %214
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds double, double* %210, i64 %216
%218 = load double, double* %217
%219 = load double*, double** %9
%220 = load i32, i32* %15
%221 = load i32, i32* %14
%222 = load i32, i32* %16
%223 = mul nsw i32 %221, %222
%224 = add nsw i32 %220, %223
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds double, double* %219, i64 %225
%227 = load double, double* %226
%228 = call double @llvm.fmuladd.f64(double %218, double %227, double %209)
%229 = load double*, double** %11
%230 = load i32, i32* %13
%231 = load i32, i32* %16
%232 = mul nsw i32 %230, %231
%233 = load i32, i32* %14
%234 = add nsw i32 %232, %233
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds double, double* %229, i64 %235
store double %228, double* %236
%237 = load double*, double** %11
%238 = load i32, i32* %13
%239 = load i32, i32* %16
%240 = mul nsw i32 %238, %239
%241 = load i32, i32* %14
%242 = add nsw i32 %240, %241
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds double, double* %237, i64 %243
%245 = load double, double* %244
%246 = load double*, double** %10
%247 = load i32, i32* %13
%248 = load i32, i32* %16
%249 = mul nsw i32 %247, %248
%250 = load i32, i32* %14
%251 = add nsw i32 %249, %250
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds double, double* %246, i64 %252
%254 = load double, double* %253
%255 = fadd double %245, %254
%256 = load double*, double** %12
%257 = load i32, i32* %13
%258 = load i32, i32* %16
%259 = mul nsw i32 %257, %258
%260 = load i32, i32* %14
%261 = add nsw i32 %259, %260
%262 = sext i32 %261 to i64
%263 = getelementptr inbounds double, double* %256, i64 %262
store double %255, double* %263
br label %264
264: ; preds = %164
%265 = load i32, i32* %15
%266 = add nsw i32 %265, 1
store i32 %266, i32* %15
br label %160
267: ; preds = %160
br label %268
268: ; preds = %267
%269 = load i32, i32* %14
%270 = add nsw i32 %269, 1
store i32 %270, i32* %14
br label %147
271: ; preds = %147
br label %272
272: ; preds = %271
%273 = load i32, i32* %13
%274 = add nsw i32 %273, 1
store i32 %274, i32* %13
br label %142
275: ; preds = %142
%276 = call double (...) @dwalltime()
%277 = load double, double* %18
%278 = fsub double %276, %277
%279 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), double %278)
store i32 0, i32* %13
br label %280
280: ; preds = %313, %275
%281 = load i32, i32* %13
%282 = load i32, i32* %16
%283 = icmp slt i32 %281, %282
br i1 %283, label %284, label %316
284: ; preds = %280
store i32 0, i32* %14
br label %285
285: ; preds = %309, %284
%286 = load i32, i32* %14
%287 = load i32, i32* %16
%288 = icmp slt i32 %286, %287
br i1 %288, label %289, label %312
289: ; preds = %285
%290 = load i32, i32* %17
%291 = icmp ne i32 %290, 0
br i1 %291, label %292, label %306
292: ; preds = %289
%293 = load double*, double** %12
%294 = load i32, i32* %13
%295 = load i32, i32* %16
%296 = mul nsw i32 %294, %295
%297 = load i32, i32* %14
%298 = add nsw i32 %296, %297
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds double, double* %293, i64 %299
%301 = load double, double* %300
%302 = load i32, i32* %16
%303 = mul nsw i32 %302, 2
%304 = sitofp i32 %303 to double
%305 = fcmp oeq double %301, %304
br label %306
306: ; preds = %292, %289
%307 = phi i1 [ false, %289 ], [ %305, %292 ]
%308 = zext i1 %307 to i32
store i32 %308, i32* %17
br label %309
309: ; preds = %306
%310 = load i32, i32* %14
%311 = add nsw i32 %310, 1
store i32 %311, i32* %14
br label %285
312: ; preds = %285
br label %313
313: ; preds = %312
%314 = load i32, i32* %13
%315 = add nsw i32 %314, 1
store i32 %315, i32* %13
br label %280
316: ; preds = %280
%317 = load i32, i32* %17
%318 = icmp ne i32 %317, 0
br i1 %318, label %319, label %321
319: ; preds = %316
%320 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0))
br label %323
321: ; preds = %316
%322 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0))
br label %323
323: ; preds = %321, %319
%324 = load double*, double** %6
%325 = call i32 @free(double* %324)
%326 = load double*, double** %7
%327 = call i32 @free(double* %326)
%328 = load double*, double** %8
%329 = call i32 @free(double* %328)
%330 = load double*, double** %9
%331 = call i32 @free(double* %330)
%332 = load double*, double** %10
%333 = call i32 @free(double* %332)
%334 = load double*, double** %11
%335 = call i32 @free(double* %334)
%336 = load double*, double** %12
%337 = call i32 @free(double* %336)
store i32 0, i32* %3
br label %338
338: ; preds = %323, %21
%339 = load i32, i32* %3
ret i32 %339
}

LLVM IR (-O2):
@.str.1 = [24 x i8] c"Tiempo en segundos %f \0A\00"
@str = [45 x i8] c"Multiplicacion de matrices resultado erroneo\00"
@str.4 = [46 x i8] c"Multiplicacion de matrices resultado correcto\00"
@str.5 = [49 x i8] c"\0A Falta un argumento:: N dimension de la matriz \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 ([49 x i8], [49 x i8]* @str.5, i64 0, i64 0))
br label %192
6: ; preds = %2
%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 = mul i32 %10, %9
%12 = tail call i64 @malloc(i32 %11)
%13 = inttoptr i64 %12 to double*
%14 = tail call i64 @malloc(i32 %11)
%15 = inttoptr i64 %14 to double*
%16 = tail call i64 @malloc(i32 %11)
%17 = inttoptr i64 %16 to double*
%18 = tail call i64 @malloc(i32 %11)
%19 = inttoptr i64 %18 to double*
%20 = tail call i64 @malloc(i32 %11)
%21 = inttoptr i64 %20 to double*
%22 = tail call i64 @malloc(i32 %11)
%23 = inttoptr i64 %22 to double*
%24 = tail call i64 @malloc(i32 %11)
%25 = inttoptr i64 %24 to double*
%26 = icmp sgt i32 %9, 0
br i1 %26, label %29, label %27
27: ; preds = %6
%28 = tail call double (...) @dwalltime()
br label %116
29: ; preds = %6
%30 = zext i32 %9 to i64
%31 = zext i32 %9 to i64
%32 = and i64 %31, 1
%33 = icmp eq i32 %9, 1
%34 = and i64 %31, 4294967294
%35 = icmp eq i64 %32, 0
br label %36
36: ; preds = %70, %29
%37 = phi i64 [ 0, %29 ], [ %71, %70 ]
%38 = mul nsw i64 %37, %30
br i1 %33, label %60, label %39
39: ; preds = %36, %39
%40 = phi i64 [ %57, %39 ], [ 0, %36 ]
%41 = phi i64 [ %58, %39 ], [ 0, %36 ]
%42 = add nuw nsw i64 %40, %38
%43 = getelementptr inbounds double, double* %13, i64 %42
store double 1.000000e+00, double* %43
%44 = mul nsw i64 %40, %30
%45 = add nuw nsw i64 %44, %37
%46 = getelementptr inbounds double, double* %15, i64 %45
store double 1.000000e+00, double* %46
%47 = getelementptr inbounds double, double* %17, i64 %42
store double 1.000000e+00, double* %47
%48 = getelementptr inbounds double, double* %19, i64 %45
store double 1.000000e+00, double* %48
%49 = or i64 %40, 1
%50 = add nuw nsw i64 %49, %38
%51 = getelementptr inbounds double, double* %13, i64 %50
store double 1.000000e+00, double* %51
%52 = mul nsw i64 %49, %30
%53 = add nuw nsw i64 %52, %37
%54 = getelementptr inbounds double, double* %15, i64 %53
store double 1.000000e+00, double* %54
%55 = getelementptr inbounds double, double* %17, i64 %50
store double 1.000000e+00, double* %55
%56 = getelementptr inbounds double, double* %19, i64 %53
store double 1.000000e+00, double* %56
%57 = add nuw nsw i64 %40, 2
%58 = add i64 %41, 2
%59 = icmp eq i64 %58, %34
br i1 %59, label %60, label %39
60: ; preds = %39, %36
%61 = phi i64 [ 0, %36 ], [ %57, %39 ]
br i1 %35, label %70, label %62
62: ; preds = %60
%63 = add nuw nsw i64 %61, %38
%64 = getelementptr inbounds double, double* %13, i64 %63
store double 1.000000e+00, double* %64
%65 = mul nsw i64 %61, %30
%66 = add nuw nsw i64 %65, %37
%67 = getelementptr inbounds double, double* %15, i64 %66
store double 1.000000e+00, double* %67
%68 = getelementptr inbounds double, double* %17, i64 %63
store double 1.000000e+00, double* %68
%69 = getelementptr inbounds double, double* %19, i64 %66
store double 1.000000e+00, double* %69
br label %70
70: ; preds = %60, %62
%71 = add nuw nsw i64 %37, 1
%72 = icmp eq i64 %71, %31
br i1 %72, label %73, label %36
73: ; preds = %70
%74 = tail call double (...) @dwalltime()
br i1 %26, label %75, label %178
75: ; preds = %73
%76 = zext i32 %9 to i64
%77 = zext i32 %9 to i64
br label %78
78: ; preds = %113, %75
%79 = phi i64 [ 0, %75 ], [ %114, %113 ]
%80 = mul nsw i64 %79, %76
br label %81
81: ; preds = %110, %78
%82 = phi i64 [ 0, %78 ], [ %111, %110 ]
%83 = add nuw nsw i64 %82, %80
%84 = getelementptr inbounds double, double* %21, i64 %83
store double 0.000000e+00, double* %84
%85 = mul nsw i64 %82, %76
%86 = getelementptr inbounds double, double* %23, i64 %83
%87 = getelementptr inbounds double, double* %25, i64 %83
br label %88
88: ; preds = %108, %81
%89 = phi double [ 0.000000e+00, %81 ], [ %109, %108 ]
%90 = phi i64 [ 0, %81 ], [ %106, %108 ]
%91 = add nuw nsw i64 %90, %80
%92 = getelementptr inbounds double, double* %13, i64 %91
%93 = load double, double* %92
%94 = add nuw nsw i64 %90, %85
%95 = getelementptr inbounds double, double* %15, i64 %94
%96 = load double, double* %95
%97 = tail call double @llvm.fmuladd.f64(double %93, double %96, double %89)
store double %97, double* %84
%98 = load double, double* %86
%99 = getelementptr inbounds double, double* %17, i64 %91
%100 = load double, double* %99
%101 = getelementptr inbounds double, double* %19, i64 %94
%102 = load double, double* %101
%103 = tail call double @llvm.fmuladd.f64(double %100, double %102, double %98)
store double %103, double* %86
%104 = load double, double* %84
%105 = fadd double %103, %104
store double %105, double* %87
%106 = add nuw nsw i64 %90, 1
%107 = icmp eq i64 %106, %77
br i1 %107, label %110, label %108
108: ; preds = %88
%109 = load double, double* %84
br label %88
110: ; preds = %88
%111 = add nuw nsw i64 %82, 1
%112 = icmp eq i64 %111, %77
br i1 %112, label %113, label %81
113: ; preds = %110
%114 = add nuw nsw i64 %79, 1
%115 = icmp eq i64 %114, %77
br i1 %115, label %116, label %78
116: ; preds = %113, %27
%117 = phi double [ %28, %27 ], [ %74, %113 ]
%118 = tail call double (...) @dwalltime()
%119 = fsub double %118, %117
%120 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), double %119)
br i1 %26, label %121, label %182
121: ; preds = %116
%122 = shl nuw nsw i32 %9, 1
%123 = sitofp i32 %122 to double
%124 = zext i32 %9 to i64
%125 = zext i32 %9 to i64
%126 = and i64 %125, 1
%127 = icmp eq i32 %9, 1
%128 = and i64 %125, 4294967294
%129 = icmp eq i64 %126, 0
br label %130
130: ; preds = %171, %121
%131 = phi i64 [ 0, %121 ], [ %174, %171 ]
%132 = phi i32 [ 1, %121 ], [ %173, %171 ]
%133 = mul nsw i64 %131, %124
br i1 %127, label %156, label %134
134: ; preds = %130, %150
%135 = phi i64 [ %153, %150 ], [ 0, %130 ]
%136 = phi i32 [ %152, %150 ], [ %132, %130 ]
%137 = phi i64 [ %154, %150 ], [ 0, %130 ]
%138 = icmp eq i32 %136, 0
br i1 %138, label %150, label %139
139: ; preds = %134
%140 = add nuw nsw i64 %135, %133
%141 = getelementptr inbounds double, double* %25, i64 %140
%142 = load double, double* %141
%143 = fcmp oeq double %142, %123
br i1 %143, label %144, label %150
144: ; preds = %139
%145 = or i64 %135, 1
%146 = add nuw nsw i64 %145, %133
%147 = getelementptr inbounds double, double* %25, i64 %146
%148 = load double, double* %147
%149 = fcmp oeq double %148, %123
br label %150
150: ; preds = %134, %144, %139
%151 = phi i1 [ false, %139 ], [ %149, %144 ], [ false, %134 ]
%152 = zext i1 %151 to i32
%153 = add nuw nsw i64 %135, 2
%154 = add i64 %137, 2
%155 = icmp eq i64 %154, %128
br i1 %155, label %156, label %134
156: ; preds = %150, %130
%157 = phi i1 [ undef, %130 ], [ %151, %150 ]
%158 = phi i32 [ undef, %130 ], [ %152, %150 ]
%159 = phi i64 [ 0, %130 ], [ %153, %150 ]
%160 = phi i32 [ %132, %130 ], [ %152, %150 ]
br i1 %129, label %171, label %161
161: ; preds = %156
%162 = icmp eq i32 %160, 0
br i1 %162, label %168, label %163
163: ; preds = %161
%164 = add nuw nsw i64 %159, %133
%165 = getelementptr inbounds double, double* %25, i64 %164
%166 = load double, double* %165
%167 = fcmp oeq double %166, %123
br label %168
168: ; preds = %163, %161
%169 = phi i1 [ false, %161 ], [ %167, %163 ]
%170 = zext i1 %169 to i32
br label %171
171: ; preds = %156, %168
%172 = phi i1 [ %157, %156 ], [ %169, %168 ]
%173 = phi i32 [ %158, %156 ], [ %170, %168 ]
%174 = add nuw nsw i64 %131, 1
%175 = icmp eq i64 %174, %125
br i1 %175, label %176, label %130
176: ; preds = %171
%177 = select i1 %172, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @str.4, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @str, i64 0, i64 0)
br label %182
178: ; preds = %73
%179 = tail call double (...) @dwalltime()
%180 = fsub double %179, %74
%181 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), double %180)
br label %182
182: ; preds = %176, %116, %178
%183 = phi i8* [ getelementptr inbounds ([46 x i8], [46 x i8]* @str.4, i64 0, i64 0), %178 ], [ getelementptr inbounds ([46 x i8], [46 x i8]* @str.4, i64 0, i64 0), %116 ], [ %177, %176 ]
%184 = tail call i32 @puts(i8* dereferenceable(1) %183)
%185 = tail call i32 @free(double* %13)
%186 = tail call i32 @free(double* %15)
%187 = tail call i32 @free(double* %17)
%188 = tail call i32 @free(double* %19)
%189 = tail call i32 @free(double* %21)
%190 = tail call i32 @free(double* %23)
%191 = tail call i32 @free(double* %25)
br label %192
192: ; preds = %182, %4
ret i32 0
}