#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 /*<<< orphan*/ aloc2Dmatrix(double ***, int, int);
int /*<<< orphan*/ free2D(double **);
scalar_t__ malloc(int);
void populate1Dmatrix(double *a, int flag, int nreq, int world_rank, int size) {
  int i, j;
  double **m, **aux;
  aloc2Dmatrix(&m, size, size);
  aux = (double **)malloc(size * sizeof(double *));
  for (i = 0; i < size; i++) {
    aux[i] = (double *)malloc(size * sizeof(double));
    for (j = 0; j <= i; j++) {
      m[i][j] = (double)(-j % size) / size + 1;
    }
    for (j = i + 1; j < size; j++) {
      m[i][j] = 0;
    }
    m[i][i] = 1;
  }
  int r, s, t;
  for (r = 0; r < size; ++r)
    for (s = 0; s < size; ++s)
      aux[r][s] = 0;
  for (t = 0; t < size; ++t)
    for (r = 0; r < size; ++r)
      for (s = 0; s < size; ++s)
        aux[r][s] += m[r][t] * m[s][t];
  for (r = 0; r < size; ++r)
    for (s = 0; s < size; ++s) {
      m[r][s] = aux[r][s];
    }
  a[0] = flag;
  a[1] = nreq;
  a[2] = world_rank;
  a[3] = size;
  int k = 4;
  for (int i = 0; i < size; i++) {
    for (int j = 0; j < size; j++) {
      a[k] = m[i][j];
      k++;
    }
  }
  free2D(m);
  free2D(aux);
}


x86 assembly (clang, -O0):
<populate1Dmatrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    -0x18(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    -0x28(%rbp),%rdi
call   1040 <aloc2Dmatrix@plt>
movslq -0x18(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1030 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    125a <populate1Dmatrix+0x12a>
movslq -0x18(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1030 <malloc@plt>
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     11f4 <populate1Dmatrix+0xc4>
xor    %eax,%eax
sub    -0x20(%rbp),%eax
cltd
idivl  -0x18(%rbp)
cvtsi2sd %edx,%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  0xe33(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11a3 <populate1Dmatrix+0x73>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    122f <populate1Dmatrix+0xff>
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11fd <populate1Dmatrix+0xcd>
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
movsd  0xdb9(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1172 <populate1Dmatrix+0x42>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    12b9 <populate1Dmatrix+0x189>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    12a6 <populate1Dmatrix+0x176>
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1274 <populate1Dmatrix+0x144>
jmp    12ab <populate1Dmatrix+0x17b>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1261 <populate1Dmatrix+0x131>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1372 <populate1Dmatrix+0x242>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    135f <populate1Dmatrix+0x22f>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    134c <populate1Dmatrix+0x21c>
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12e6 <populate1Dmatrix+0x1b6>
jmp    1351 <populate1Dmatrix+0x221>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12d3 <populate1Dmatrix+0x1a3>
jmp    1364 <populate1Dmatrix+0x234>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12c0 <populate1Dmatrix+0x190>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    13e3 <populate1Dmatrix+0x2b3>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    13d0 <populate1Dmatrix+0x2a0>
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    138c <populate1Dmatrix+0x25c>
jmp    13d5 <populate1Dmatrix+0x2a5>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1379 <populate1Dmatrix+0x249>
cvtsi2sdl -0xc(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
cvtsi2sdl -0x10(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
cvtsi2sdl -0x14(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x10(%rax)
cvtsi2sdl -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x18(%rax)
movl   $0x4,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1493 <populate1Dmatrix+0x363>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1480 <populate1Dmatrix+0x350>
mov    -0x28(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    143b <populate1Dmatrix+0x30b>
jmp    1485 <populate1Dmatrix+0x355>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1428 <populate1Dmatrix+0x2f8>
mov    -0x28(%rbp),%rdi
call   1050 <free2D@plt>
mov    -0x30(%rbp),%rdi
call   1050 <free2D@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<populate1Dmatrix>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r8d,%r14d
mov    %ecx,0x40(%rsp)
mov    %edx,0x38(%rsp)
mov    %esi,0x30(%rsp)
mov    %rdi,0x50(%rsp)
lea    0x28(%rsp),%rdi
mov    %r8d,%esi
mov    %r8d,%edx
call   1050 <aloc2Dmatrix@plt>
lea    0x0(,%r14,8),%edi
mov    %edi,0x18(%rsp)
call   1040 <malloc@plt>
mov    %rax,0x8(%rsp)
cvtsi2sd %r14d,%xmm0
movsd  %xmm0,0x20(%rsp)
mov    %r14d,%r13d
test   %r14d,%r14d
jle    1600 <populate1Dmatrix+0x4c0>
lea    -0x2(%r14),%eax
mov    %eax,0x48(%rsp)
mov    $0x1,%r12d
xor    %ebp,%ebp
jmp    11db <populate1Dmatrix+0x9b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movabs $0x3ff0000000000000,%rax
mov    %rax,(%rbx,%r15,8)
add    $0x1,%r12
cmp    %r13,%rbp
je     1273 <populate1Dmatrix+0x133>
mov    %rbp,%r15
add    $0x1,%rbp
mov    0x48(%rsp),%eax
sub    %r15d,%eax
lea    0x8(,%rax,8),%rax
mov    %rax,0x10(%rsp)
mov    0x18(%rsp),%edi
call   1040 <malloc@plt>
movsd  0xdf9(%rip),%xmm2
mov    0x8(%rsp),%rcx
mov    %rax,(%rcx,%r15,8)
mov    0x28(%rsp),%rax
mov    (%rax,%r15,8),%rbx
xor    %ecx,%ecx
movsd  0x20(%rsp),%xmm1
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %ecx,%eax
cltd
idiv   %r14d
neg    %edx
xorps  %xmm0,%xmm0
cvtsi2sd %edx,%xmm0
divsd  %xmm1,%xmm0
addsd  %xmm2,%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%r12
jne    1230 <populate1Dmatrix+0xf0>
cmp    %r13,%rbp
jae    11c0 <populate1Dmatrix+0x80>
lea    (%rbx,%rbp,8),%rdi
xor    %esi,%esi
mov    0x10(%rsp),%rdx
call   1030 <memset@plt>
jmp    11c0 <populate1Dmatrix+0x80>
test   %r14d,%r14d
jle    1600 <populate1Dmatrix+0x4c0>
lea    0x0(,%r13,8),%rbp
lea    -0x1(%r13),%r15
mov    %r13d,%eax
and    $0x7,%eax
mov    %rax,0x10(%rsp)
cmp    $0x7,%r15
jae    12a1 <populate1Dmatrix+0x161>
xor    %r12d,%r12d
jmp    1346 <populate1Dmatrix+0x206>
mov    %r13d,%eax
and    $0xfffffff8,%eax
mov    %rax,0x18(%rsp)
xor    %r12d,%r12d
mov    0x8(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rbx,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x8(%rbx,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x10(%rbx,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x18(%rbx,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x20(%rbx,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x28(%rbx,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x30(%rbx,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
mov    0x38(%rbx,%r12,8),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1030 <memset@plt>
add    $0x8,%r12
cmp    %r12,0x18(%rsp)
jne    12c0 <populate1Dmatrix+0x180>
cmpq   $0x0,0x10(%rsp)
je     1379 <populate1Dmatrix+0x239>
mov    %rbp,%rbx
mov    0x8(%rsp),%rax
lea    (%rax,%r12,8),%r12
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    (%r12,%rbp,8),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1030 <memset@plt>
add    $0x1,%rbp
cmp    %rbp,0x10(%rsp)
jne    1360 <populate1Dmatrix+0x220>
test   %r14d,%r14d
jle    1600 <populate1Dmatrix+0x4c0>
mov    %r13d,%eax
and    $0xfffffffe,%eax
xor    %ecx,%ecx
mov    0x8(%rsp),%r9
jmp    13ad <populate1Dmatrix+0x26d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rcx
cmp    %r13,%rcx
je     143c <populate1Dmatrix+0x2fc>
mov    0x28(%rsp),%rdx
xor    %r8d,%r8d
jmp    13c9 <populate1Dmatrix+0x289>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r8
cmp    %r13,%r8
je     13a0 <populate1Dmatrix+0x260>
mov    (%rdx,%r8,8),%rbx
mov    (%r9,%r8,8),%rdi
xor    %ebp,%ebp
test   %r15,%r15
je     141c <populate1Dmatrix+0x2dc>
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rcx,8),%xmm0
mov    (%rdx,%rbp,8),%rsi
mulsd  (%rsi,%rcx,8),%xmm0
addsd  (%rdi,%rbp,8),%xmm0
movsd  %xmm0,(%rdi,%rbp,8)
movsd  (%rbx,%rcx,8),%xmm0
mov    0x8(%rdx,%rbp,8),%rsi
mulsd  (%rsi,%rcx,8),%xmm0
addsd  0x8(%rdi,%rbp,8),%xmm0
movsd  %xmm0,0x8(%rdi,%rbp,8)
add    $0x2,%rbp
cmp    %rbp,%rax
jne    13e0 <populate1Dmatrix+0x2a0>
test   $0x1,%r13b
je     13c0 <populate1Dmatrix+0x280>
movsd  (%rbx,%rcx,8),%xmm0
mov    (%rdx,%rbp,8),%rsi
mulsd  (%rsi,%rcx,8),%xmm0
addsd  (%rdi,%rbp,8),%xmm0
movsd  %xmm0,(%rdi,%rbp,8)
jmp    13c0 <populate1Dmatrix+0x280>
test   %r14d,%r14d
jle    1600 <populate1Dmatrix+0x4c0>
mov    0x28(%rsp),%r15
mov    %r13d,%r10d
and    $0xfffffffc,%r10d
add    $0xfffffffffffffffc,%r10
mov    %r10,%r8
shr    $0x2,%r8
add    $0x1,%r8
mov    %r13d,%r11d
and    $0xfffffffc,%r11d
mov    %r8d,%r9d
and    $0x3,%r9d
and    $0xfffffffffffffffc,%r8
mov    %r13d,%r12d
and    $0x3,%r12d
mov    %r9,%rdi
shl    $0x5,%rdi
xor    %edx,%edx
jmp    149d <populate1Dmatrix+0x35d>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rdx
cmp    %r13,%rdx
je     1600 <populate1Dmatrix+0x4c0>
mov    0x8(%rsp),%rax
mov    (%rax,%rdx,8),%rcx
mov    (%r15,%rdx,8),%rsi
cmp    $0x4,%r14d
jb     14ca <populate1Dmatrix+0x38a>
lea    (%rcx,%r13,8),%rax
cmp    %rax,%rsi
jae    1540 <populate1Dmatrix+0x400>
lea    (%rsi,%r13,8),%rax
cmp    %rax,%rcx
jae    1540 <populate1Dmatrix+0x400>
xor    %eax,%eax
mov    %rax,%rbx
not    %rbx
add    %r13,%rbx
test   %r12,%r12
je     14f4 <populate1Dmatrix+0x3b4>
mov    %r12,%rbp
nopl   (%rax)
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,(%rsi,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rbp
jne    14e0 <populate1Dmatrix+0x3a0>
cmp    $0x3,%rbx
jb     1490 <populate1Dmatrix+0x350>
nopw   0x0(%rax,%rax,1)
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,(%rsi,%rax,8)
movsd  0x8(%rcx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rsi,%rax,8)
movsd  0x10(%rcx,%rax,8),%xmm0
movsd  %xmm0,0x10(%rsi,%rax,8)
movsd  0x18(%rcx,%rax,8),%xmm0
movsd  %xmm0,0x18(%rsi,%rax,8)
add    $0x4,%rax
cmp    %rax,%r13
jne    1500 <populate1Dmatrix+0x3c0>
jmp    1490 <populate1Dmatrix+0x350>
nopl   0x0(%rax)
cmp    $0xc,%r10
jae    154a <populate1Dmatrix+0x40a>
xor    %eax,%eax
jmp    15ac <populate1Dmatrix+0x46c>
mov    %r8,%rbx
xor    %eax,%eax
nop
movups (%rcx,%rax,8),%xmm0
movups 0x10(%rcx,%rax,8),%xmm1
movups %xmm0,(%rsi,%rax,8)
movups %xmm1,0x10(%rsi,%rax,8)
movups 0x20(%rcx,%rax,8),%xmm0
movups 0x30(%rcx,%rax,8),%xmm1
movups %xmm0,0x20(%rsi,%rax,8)
movups %xmm1,0x30(%rsi,%rax,8)
movups 0x40(%rcx,%rax,8),%xmm0
movups 0x50(%rcx,%rax,8),%xmm1
movups %xmm0,0x40(%rsi,%rax,8)
movups %xmm1,0x50(%rsi,%rax,8)
movupd 0x60(%rcx,%rax,8),%xmm0
movupd 0x70(%rcx,%rax,8),%xmm1
movupd %xmm0,0x60(%rsi,%rax,8)
movupd %xmm1,0x70(%rsi,%rax,8)
add    $0x10,%rax
add    $0xfffffffffffffffc,%rbx
jne    1550 <populate1Dmatrix+0x410>
test   %r9,%r9
je     15ef <populate1Dmatrix+0x4af>
lea    (%rsi,%rax,8),%rbx
add    $0x10,%rbx
lea    (%rcx,%rax,8),%rax
add    $0x10,%rax
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movupd -0x10(%rax,%rbp,1),%xmm0
movupd (%rax,%rbp,1),%xmm1
movupd %xmm0,-0x10(%rbx,%rbp,1)
movupd %xmm1,(%rbx,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rdi
jne    15d0 <populate1Dmatrix+0x490>
mov    %r11,%rax
cmp    %r13,%r11
je     1490 <populate1Dmatrix+0x350>
jmp    14cc <populate1Dmatrix+0x38c>
xorps  %xmm0,%xmm0
cvtsi2sdl 0x30(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl 0x38(%rsp),%xmm1
mov    0x50(%rsp),%rax
movsd  %xmm0,(%rax)
movsd  %xmm1,0x8(%rax)
xorps  %xmm0,%xmm0
cvtsi2sdl 0x40(%rsp),%xmm0
movsd  %xmm0,0x10(%rax)
movsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x18(%rax)
mov    0x28(%rsp),%rdi
test   %r14d,%r14d
jle    1856 <populate1Dmatrix+0x716>
lea    (%rax,%r13,8),%rcx
mov    %rcx,0x20(%rsp)
mov    %r13d,%r15d
and    $0xfffffffc,%r15d
lea    -0x4(%r15),%rcx
mov    %rcx,0x18(%rsp)
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %ecx,%esi
and    $0x3,%esi
and    $0xfffffffffffffffc,%rcx
mov    %rcx,0x38(%rsp)
mov    %r13d,%r12d
and    $0x3,%r12d
lea    0x70(%rax),%rcx
mov    %rcx,0x30(%rsp)
lea    0x10(%rax),%rcx
mov    %rcx,0x40(%rsp)
mov    %rsi,0x48(%rsp)
shl    $0x5,%rsi
lea    0x18(%rax),%rcx
mov    %rcx,0x10(%rsp)
mov    $0x4,%r9d
xor    %r10d,%r10d
jmp    16bd <populate1Dmatrix+0x57d>
nopl   0x0(%rax)
add    $0x1,%r10
cmp    %r13,%r10
je     1856 <populate1Dmatrix+0x716>
mov    (%rdi,%r10,8),%r8
movslq %r9d,%r9
cmp    $0x4,%r14d
jb     16ed <populate1Dmatrix+0x5ad>
lea    (%rax,%r9,8),%rcx
lea    (%r8,%r13,8),%rdx
cmp    %rdx,%rcx
jae    1780 <populate1Dmatrix+0x640>
mov    0x20(%rsp),%rcx
lea    (%rcx,%r9,8),%rcx
cmp    %rcx,%r8
jae    1780 <populate1Dmatrix+0x640>
xor    %ecx,%ecx
mov    %rcx,%rbx
not    %rbx
add    %r13,%rbx
test   %r12,%r12
je     171a <populate1Dmatrix+0x5da>
mov    %r12,%rbp
movsd  (%r8,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%r9,8)
add    $0x1,%r9
add    $0x1,%rcx
add    $0xffffffffffffffff,%rbp
jne    1700 <populate1Dmatrix+0x5c0>
cmp    $0x3,%rbx
jb     16b0 <populate1Dmatrix+0x570>
mov    0x10(%rsp),%rdx
lea    (%rdx,%r9,8),%rbx
mov    %r13,%rbp
sub    %rcx,%rbp
lea    (%r8,%rcx,8),%rdx
add    $0x18,%rdx
xor    %ecx,%ecx
nopl   0x0(%rax)
movsd  -0x18(%rdx,%rcx,8),%xmm0
movsd  %xmm0,-0x18(%rbx,%rcx,8)
movsd  -0x10(%rdx,%rcx,8),%xmm0
movsd  %xmm0,-0x10(%rbx,%rcx,8)
movsd  -0x8(%rdx,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rbx,%rcx,8)
movsd  (%rdx,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rbp
jne    1740 <populate1Dmatrix+0x600>
add    %rcx,%r9
jmp    16b0 <populate1Dmatrix+0x570>
nop
cmpq   $0xc,0x18(%rsp)
jae    178c <populate1Dmatrix+0x64c>
xor    %ecx,%ecx
jmp    1802 <populate1Dmatrix+0x6c2>
mov    0x30(%rsp),%rax
lea    (%rax,%r9,8),%rbx
mov    0x38(%rsp),%r11
xor    %ecx,%ecx
nopl   0x0(%rax)
movups (%r8,%rcx,8),%xmm0
movups 0x10(%r8,%rcx,8),%xmm1
movups %xmm0,-0x70(%rbx,%rcx,8)
movups %xmm1,-0x60(%rbx,%rcx,8)
movups 0x20(%r8,%rcx,8),%xmm0
movups 0x30(%r8,%rcx,8),%xmm1
movups %xmm0,-0x50(%rbx,%rcx,8)
movups %xmm1,-0x40(%rbx,%rcx,8)
movups 0x40(%r8,%rcx,8),%xmm0
movups 0x50(%r8,%rcx,8),%xmm1
movups %xmm0,-0x30(%rbx,%rcx,8)
movups %xmm1,-0x20(%rbx,%rcx,8)
movups 0x60(%r8,%rcx,8),%xmm0
movupd 0x70(%r8,%rcx,8),%xmm1
movups %xmm0,-0x10(%rbx,%rcx,8)
movupd %xmm1,(%rbx,%rcx,8)
add    $0x10,%rcx
add    $0xfffffffffffffffc,%r11
jne    17a0 <populate1Dmatrix+0x660>
cmpq   $0x0,0x48(%rsp)
je     183d <populate1Dmatrix+0x6fd>
lea    (%r8,%rcx,8),%rdx
add    $0x10,%rdx
add    %r9,%rcx
mov    0x40(%rsp),%rax
lea    (%rax,%rcx,8),%rcx
xor    %ebp,%ebp
movups -0x10(%rdx,%rbp,1),%xmm0
movupd (%rdx,%rbp,1),%xmm1
movups %xmm0,-0x10(%rcx,%rbp,1)
movupd %xmm1,(%rcx,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rsi
jne    1820 <populate1Dmatrix+0x6e0>
add    %r15,%r9
mov    %r15,%rcx
cmp    %r13,%r15
mov    0x50(%rsp),%rax
je     16b0 <populate1Dmatrix+0x570>
jmp    16ef <populate1Dmatrix+0x5af>
call   1060 <free2D@plt>
mov    0x8(%rsp),%rdi
call   1060 <free2D@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @populate1Dmatrix(double* nocapture writeonly %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca double**
%7 = bitcast double*** %6 to i8*
%8 = call i32 @aloc2Dmatrix(double*** %6, i32 %4, i32 %4)
%9 = shl i32 %4, 3
%10 = call i64 @malloc(i32 %9)
%11 = inttoptr i64 %10 to double**
%12 = icmp sgt i32 %4, 0
br i1 %12, label %13, label %304
13: ; preds = %5
%14 = sitofp i32 %4 to double
%15 = add nsw i32 %4, -2
%16 = zext i32 %4 to i64
%17 = zext i32 %4 to i64
br label %27
18: ; preds = %58
br i1 %12, label %19, label %304
19: ; preds = %18
%20 = zext i32 %4 to i64
%21 = shl nuw nsw i64 %20, 3
%22 = add nsw i64 %17, -1
%23 = and i64 %17, 7
%24 = icmp ult i64 %22, 7
br i1 %24, label %62, label %25
25: ; preds = %19
%26 = and i64 %17, 4294967288
br label %81
27: ; preds = %13, %58
%28 = phi i64 [ 1, %13 ], [ %60, %58 ]
%29 = phi i64 [ 0, %13 ], [ %30, %58 ]
%30 = add nuw nsw i64 %29, 1
%31 = trunc i64 %29 to i32
%32 = sub i32 %15, %31
%33 = zext i32 %32 to i64
%34 = shl nuw nsw i64 %33, 3
%35 = add nuw nsw i64 %34, 8
%36 = call i64 @malloc(i32 %9)
%37 = inttoptr i64 %36 to double*
%38 = getelementptr inbounds double*, double** %11, i64 %29
store double* %37, double** %38
%39 = load double**, double*** %6
%40 = getelementptr inbounds double*, double** %39, i64 %29
%41 = load double*, double** %40
br label %42
42: ; preds = %27, %42
%43 = phi i64 [ 0, %27 ], [ %51, %42 ]
%44 = trunc i64 %43 to i32
%45 = srem i32 %44, %4
%46 = sub nsw i32 0, %45
%47 = sitofp i32 %46 to double
%48 = fdiv double %47, %14
%49 = fadd double %48, 1.000000e+00
%50 = getelementptr inbounds double, double* %41, i64 %43
store double %49, double* %50
%51 = add nuw nsw i64 %43, 1
%52 = icmp eq i64 %51, %28
br i1 %52, label %53, label %42
53: ; preds = %42
%54 = icmp ult i64 %30, %16
br i1 %54, label %55, label %58
55: ; preds = %53
%56 = getelementptr double, double* %41, i64 %30
%57 = bitcast double* %56 to i8*
br label %58
58: ; preds = %55, %53
%59 = getelementptr inbounds double, double* %41, i64 %29
store double 1.000000e+00, double* %59
%60 = add nuw nsw i64 %28, 1
%61 = icmp eq i64 %30, %17
br i1 %61, label %18, label %27
62: ; preds = %81, %19
%63 = phi i64 [ 0, %19 ], [ %115, %81 ]
%64 = icmp eq i64 %23, 0
br i1 %64, label %74, label %65
65: ; preds = %62, %65
%66 = phi i64 [ %71, %65 ], [ %63, %62 ]
%67 = phi i64 [ %72, %65 ], [ 0, %62 ]
%68 = getelementptr inbounds double*, double** %11, i64 %66
%69 = bitcast double** %68 to i8**
%70 = load i8*, i8** %69
%71 = add nuw nsw i64 %66, 1
%72 = add i64 %67, 1
%73 = icmp eq i64 %72, %23
br i1 %73, label %74, label %65
74: ; preds = %65, %62
br i1 %12, label %75, label %304
75: ; preds = %74
%76 = zext i32 %4 to i64
%77 = and i64 %17, 1
%78 = icmp eq i64 %22, 0
%79 = and i64 %17, 4294967294
%80 = icmp eq i64 %77, 0
br label %118
81: ; preds = %81, %25
%82 = phi i64 [ 0, %25 ], [ %115, %81 ]
%83 = phi i64 [ 0, %25 ], [ %116, %81 ]
%84 = getelementptr inbounds double*, double** %11, i64 %82
%85 = bitcast double** %84 to i8**
%86 = load i8*, i8** %85
%87 = or i64 %82, 1
%88 = getelementptr inbounds double*, double** %11, i64 %87
%89 = bitcast double** %88 to i8**
%90 = load i8*, i8** %89
%91 = or i64 %82, 2
%92 = getelementptr inbounds double*, double** %11, i64 %91
%93 = bitcast double** %92 to i8**
%94 = load i8*, i8** %93
%95 = or i64 %82, 3
%96 = getelementptr inbounds double*, double** %11, i64 %95
%97 = bitcast double** %96 to i8**
%98 = load i8*, i8** %97
%99 = or i64 %82, 4
%100 = getelementptr inbounds double*, double** %11, i64 %99
%101 = bitcast double** %100 to i8**
%102 = load i8*, i8** %101
%103 = or i64 %82, 5
%104 = getelementptr inbounds double*, double** %11, i64 %103
%105 = bitcast double** %104 to i8**
%106 = load i8*, i8** %105
%107 = or i64 %82, 6
%108 = getelementptr inbounds double*, double** %11, i64 %107
%109 = bitcast double** %108 to i8**
%110 = load i8*, i8** %109
%111 = or i64 %82, 7
%112 = getelementptr inbounds double*, double** %11, i64 %111
%113 = bitcast double** %112 to i8**
%114 = load i8*, i8** %113
%115 = add nuw nsw i64 %82, 8
%116 = add i64 %83, 8
%117 = icmp eq i64 %116, %26
br i1 %117, label %62, label %81
118: ; preds = %182, %75
%119 = phi i64 [ 0, %75 ], [ %183, %182 ]
%120 = load double**, double*** %6
br label %138
121: ; preds = %182
br i1 %12, label %122, label %304
122: ; preds = %121
%123 = load double**, double*** %6
%124 = zext i32 %4 to i64
%125 = and i64 %124, 4294967292
%126 = add nsw i64 %125, -4
%127 = lshr exact i64 %126, 2
%128 = add nuw nsw i64 %127, 1
%129 = icmp ult i32 %4, 4
%130 = and i64 %17, 4294967292
%131 = and i64 %128, 3
%132 = icmp ult i64 %126, 12
%133 = and i64 %128, 9223372036854775804
%134 = icmp eq i64 %131, 0
%135 = icmp eq i64 %130, %17
%136 = and i64 %124, 3
%137 = icmp eq i64 %136, 0
br label %185
138: ; preds = %179, %118
%139 = phi i64 [ 0, %118 ], [ %180, %179 ]
%140 = getelementptr inbounds double*, double** %120, i64 %139
%141 = load double*, double** %140
%142 = getelementptr inbounds double, double* %141, i64 %119
%143 = getelementptr inbounds double*, double** %11, i64 %139
%144 = load double*, double** %143
br i1 %78, label %168, label %145
145: ; preds = %138, %145
%146 = phi i64 [ %165, %145 ], [ 0, %138 ]
%147 = phi i64 [ %166, %145 ], [ 0, %138 ]
%148 = load double, double* %142
%149 = getelementptr inbounds double*, double** %120, i64 %146
%150 = load double*, double** %149
%151 = getelementptr inbounds double, double* %150, i64 %119
%152 = load double, double* %151
%153 = getelementptr inbounds double, double* %144, i64 %146
%154 = load double, double* %153
%155 = call double @llvm.fmuladd.f64(double %148, double %152, double %154)
store double %155, double* %153
%156 = or i64 %146, 1
%157 = load double, double* %142
%158 = getelementptr inbounds double*, double** %120, i64 %156
%159 = load double*, double** %158
%160 = getelementptr inbounds double, double* %159, i64 %119
%161 = load double, double* %160
%162 = getelementptr inbounds double, double* %144, i64 %156
%163 = load double, double* %162
%164 = call double @llvm.fmuladd.f64(double %157, double %161, double %163)
store double %164, double* %162
%165 = add nuw nsw i64 %146, 2
%166 = add i64 %147, 2
%167 = icmp eq i64 %166, %79
br i1 %167, label %168, label %145
168: ; preds = %145, %138
%169 = phi i64 [ 0, %138 ], [ %165, %145 ]
br i1 %80, label %179, label %170
170: ; preds = %168
%171 = load double, double* %142
%172 = getelementptr inbounds double*, double** %120, i64 %169
%173 = load double*, double** %172
%174 = getelementptr inbounds double, double* %173, i64 %119
%175 = load double, double* %174
%176 = getelementptr inbounds double, double* %144, i64 %169
%177 = load double, double* %176
%178 = call double @llvm.fmuladd.f64(double %171, double %175, double %177)
store double %178, double* %176
br label %179
179: ; preds = %168, %170
%180 = add nuw nsw i64 %139, 1
%181 = icmp eq i64 %180, %76
br i1 %181, label %182, label %138
182: ; preds = %179
%183 = add nuw nsw i64 %119, 1
%184 = icmp eq i64 %183, %76
br i1 %184, label %121, label %118
185: ; preds = %301, %122
%186 = phi i64 [ 0, %122 ], [ %302, %301 ]
%187 = getelementptr inbounds double*, double** %11, i64 %186
%188 = load double*, double** %187
%189 = getelementptr inbounds double*, double** %123, i64 %186
%190 = load double*, double** %189
br i1 %129, label %266, label %191
191: ; preds = %185
%192 = getelementptr double, double* %190, i64 %17
%193 = getelementptr double, double* %188, i64 %17
%194 = icmp ult double* %190, %193
%195 = icmp ult double* %188, %192
%196 = and i1 %194, %195
br i1 %196, label %266, label %197
197: ; preds = %191
br i1 %132, label %247, label %198
198: ; preds = %197, %198
%199 = phi i64 [ %244, %198 ], [ 0, %197 ]
%200 = phi i64 [ %245, %198 ], [ 0, %197 ]
%201 = getelementptr inbounds double, double* %188, i64 %199
%202 = bitcast double* %201 to <2 x double>*
%203 = load <2 x double>, <2 x double>* %202
%204 = getelementptr inbounds double, double* %201, i64 2
%205 = bitcast double* %204 to <2 x double>*
%206 = load <2 x double>, <2 x double>* %205
%207 = getelementptr inbounds double, double* %190, i64 %199
%208 = bitcast double* %207 to <2 x double>*
store <2 x double> %203, <2 x double>* %208
%209 = getelementptr inbounds double, double* %207, i64 2
%210 = bitcast double* %209 to <2 x double>*
store <2 x double> %206, <2 x double>* %210
%211 = or i64 %199, 4
%212 = getelementptr inbounds double, double* %188, i64 %211
%213 = bitcast double* %212 to <2 x double>*
%214 = load <2 x double>, <2 x double>* %213
%215 = getelementptr inbounds double, double* %212, i64 2
%216 = bitcast double* %215 to <2 x double>*
%217 = load <2 x double>, <2 x double>* %216
%218 = getelementptr inbounds double, double* %190, i64 %211
%219 = bitcast double* %218 to <2 x double>*
store <2 x double> %214, <2 x double>* %219
%220 = getelementptr inbounds double, double* %218, i64 2
%221 = bitcast double* %220 to <2 x double>*
store <2 x double> %217, <2 x double>* %221
%222 = or i64 %199, 8
%223 = getelementptr inbounds double, double* %188, i64 %222
%224 = bitcast double* %223 to <2 x double>*
%225 = load <2 x double>, <2 x double>* %224
%226 = getelementptr inbounds double, double* %223, i64 2
%227 = bitcast double* %226 to <2 x double>*
%228 = load <2 x double>, <2 x double>* %227
%229 = getelementptr inbounds double, double* %190, i64 %222
%230 = bitcast double* %229 to <2 x double>*
store <2 x double> %225, <2 x double>* %230
%231 = getelementptr inbounds double, double* %229, i64 2
%232 = bitcast double* %231 to <2 x double>*
store <2 x double> %228, <2 x double>* %232
%233 = or i64 %199, 12
%234 = getelementptr inbounds double, double* %188, i64 %233
%235 = bitcast double* %234 to <2 x double>*
%236 = load <2 x double>, <2 x double>* %235
%237 = getelementptr inbounds double, double* %234, i64 2
%238 = bitcast double* %237 to <2 x double>*
%239 = load <2 x double>, <2 x double>* %238
%240 = getelementptr inbounds double, double* %190, i64 %233
%241 = bitcast double* %240 to <2 x double>*
store <2 x double> %236, <2 x double>* %241
%242 = getelementptr inbounds double, double* %240, i64 2
%243 = bitcast double* %242 to <2 x double>*
store <2 x double> %239, <2 x double>* %243
%244 = add nuw i64 %199, 16
%245 = add nuw i64 %200, 4
%246 = icmp eq i64 %245, %133
br i1 %246, label %247, label %198
247: ; preds = %198, %197
%248 = phi i64 [ 0, %197 ], [ %244, %198 ]
br i1 %134, label %265, label %249
249: ; preds = %247, %249
%250 = phi i64 [ %262, %249 ], [ %248, %247 ]
%251 = phi i64 [ %263, %249 ], [ 0, %247 ]
%252 = getelementptr inbounds double, double* %188, i64 %250
%253 = bitcast double* %252 to <2 x double>*
%254 = load <2 x double>, <2 x double>* %253
%255 = getelementptr inbounds double, double* %252, i64 2
%256 = bitcast double* %255 to <2 x double>*
%257 = load <2 x double>, <2 x double>* %256
%258 = getelementptr inbounds double, double* %190, i64 %250
%259 = bitcast double* %258 to <2 x double>*
store <2 x double> %254, <2 x double>* %259
%260 = getelementptr inbounds double, double* %258, i64 2
%261 = bitcast double* %260 to <2 x double>*
store <2 x double> %257, <2 x double>* %261
%262 = add nuw i64 %250, 4
%263 = add i64 %251, 1
%264 = icmp eq i64 %263, %131
br i1 %264, label %265, label %249
265: ; preds = %249, %247
br i1 %135, label %301, label %266
266: ; preds = %191, %185, %265
%267 = phi i64 [ 0, %191 ], [ 0, %185 ], [ %130, %265 ]
%268 = xor i64 %267, -1
%269 = add nsw i64 %268, %124
br i1 %137, label %279, label %270
270: ; preds = %266, %270
%271 = phi i64 [ %276, %270 ], [ %267, %266 ]
%272 = phi i64 [ %277, %270 ], [ 0, %266 ]
%273 = getelementptr inbounds double, double* %188, i64 %271
%274 = load double, double* %273
%275 = getelementptr inbounds double, double* %190, i64 %271
store double %274, double* %275
%276 = add nuw nsw i64 %271, 1
%277 = add i64 %272, 1
%278 = icmp eq i64 %277, %136
br i1 %278, label %279, label %270
279: ; preds = %270, %266
%280 = phi i64 [ %267, %266 ], [ %276, %270 ]
%281 = icmp ult i64 %269, 3
br i1 %281, label %301, label %282
282: ; preds = %279, %282
%283 = phi i64 [ %299, %282 ], [ %280, %279 ]
%284 = getelementptr inbounds double, double* %188, i64 %283
%285 = load double, double* %284
%286 = getelementptr inbounds double, double* %190, i64 %283
store double %285, double* %286
%287 = add nuw nsw i64 %283, 1
%288 = getelementptr inbounds double, double* %188, i64 %287
%289 = load double, double* %288
%290 = getelementptr inbounds double, double* %190, i64 %287
store double %289, double* %290
%291 = add nuw nsw i64 %283, 2
%292 = getelementptr inbounds double, double* %188, i64 %291
%293 = load double, double* %292
%294 = getelementptr inbounds double, double* %190, i64 %291
store double %293, double* %294
%295 = add nuw nsw i64 %283, 3
%296 = getelementptr inbounds double, double* %188, i64 %295
%297 = load double, double* %296
%298 = getelementptr inbounds double, double* %190, i64 %295
store double %297, double* %298
%299 = add nuw nsw i64 %283, 4
%300 = icmp eq i64 %299, %124
br i1 %300, label %301, label %282
301: ; preds = %279, %282, %265
%302 = add nuw nsw i64 %186, 1
%303 = icmp eq i64 %302, %124
br i1 %303, label %304, label %185
304: ; preds = %301, %5, %18, %74, %121
%305 = sitofp i32 %1 to double
store double %305, double* %0
%306 = sitofp i32 %2 to double
%307 = getelementptr inbounds double, double* %0, i64 1
store double %306, double* %307
%308 = sitofp i32 %3 to double
%309 = getelementptr inbounds double, double* %0, i64 2
store double %308, double* %309
%310 = sitofp i32 %4 to double
%311 = getelementptr inbounds double, double* %0, i64 3
store double %310, double* %311
%312 = load double**, double*** %6
br i1 %12, label %313, label %439
313: ; preds = %304
%314 = zext i32 %4 to i64
%315 = getelementptr double, double* %0, i64 %314
%316 = and i64 %314, 4294967292
%317 = add nsw i64 %316, -4
%318 = lshr exact i64 %317, 2
%319 = add nuw nsw i64 %318, 1
%320 = icmp ult i32 %4, 4
%321 = and i64 %314, 4294967292
%322 = and i64 %319, 3
%323 = icmp ult i64 %317, 12
%324 = and i64 %319, 9223372036854775804
%325 = icmp eq i64 %322, 0
%326 = icmp eq i64 %321, %314
%327 = and i64 %314, 3
%328 = icmp eq i64 %327, 0
br label %329
329: ; preds = %442, %313
%330 = phi i64 [ 0, %313 ], [ %444, %442 ]
%331 = phi i64 [ 4, %313 ], [ %443, %442 ]
%332 = getelementptr inbounds double*, double** %312, i64 %330
%333 = load double*, double** %332
%334 = shl i64 %331, 32
%335 = ashr exact i64 %334, 32
br i1 %320, label %418, label %336
336: ; preds = %329
%337 = getelementptr double, double* %0, i64 %335
%338 = getelementptr double, double* %315, i64 %335
%339 = getelementptr double, double* %333, i64 %314
%340 = icmp ult double* %337, %339
%341 = icmp ult double* %333, %338
%342 = and i1 %340, %341
br i1 %342, label %418, label %343
343: ; preds = %336
%344 = add nsw i64 %335, %321
br i1 %323, label %398, label %345
345: ; preds = %343, %345
%346 = phi i64 [ %395, %345 ], [ 0, %343 ]
%347 = phi i64 [ %396, %345 ], [ 0, %343 ]
%348 = add i64 %335, %346
%349 = getelementptr inbounds double, double* %333, i64 %346
%350 = bitcast double* %349 to <2 x double>*
%351 = load <2 x double>, <2 x double>* %350
%352 = getelementptr inbounds double, double* %349, i64 2
%353 = bitcast double* %352 to <2 x double>*
%354 = load <2 x double>, <2 x double>* %353
%355 = getelementptr inbounds double, double* %0, i64 %348
%356 = bitcast double* %355 to <2 x double>*
store <2 x double> %351, <2 x double>* %356
%357 = getelementptr inbounds double, double* %355, i64 2
%358 = bitcast double* %357 to <2 x double>*
store <2 x double> %354, <2 x double>* %358
%359 = or i64 %346, 4
%360 = add i64 %335, %359
%361 = getelementptr inbounds double, double* %333, i64 %359
%362 = bitcast double* %361 to <2 x double>*
%363 = load <2 x double>, <2 x double>* %362
%364 = getelementptr inbounds double, double* %361, i64 2
%365 = bitcast double* %364 to <2 x double>*
%366 = load <2 x double>, <2 x double>* %365
%367 = getelementptr inbounds double, double* %0, i64 %360
%368 = bitcast double* %367 to <2 x double>*
store <2 x double> %363, <2 x double>* %368
%369 = getelementptr inbounds double, double* %367, i64 2
%370 = bitcast double* %369 to <2 x double>*
store <2 x double> %366, <2 x double>* %370
%371 = or i64 %346, 8
%372 = add i64 %335, %371
%373 = getelementptr inbounds double, double* %333, i64 %371
%374 = bitcast double* %373 to <2 x double>*
%375 = load <2 x double>, <2 x double>* %374
%376 = getelementptr inbounds double, double* %373, i64 2
%377 = bitcast double* %376 to <2 x double>*
%378 = load <2 x double>, <2 x double>* %377
%379 = getelementptr inbounds double, double* %0, i64 %372
%380 = bitcast double* %379 to <2 x double>*
store <2 x double> %375, <2 x double>* %380
%381 = getelementptr inbounds double, double* %379, i64 2
%382 = bitcast double* %381 to <2 x double>*
store <2 x double> %378, <2 x double>* %382
%383 = or i64 %346, 12
%384 = add i64 %335, %383
%385 = getelementptr inbounds double, double* %333, i64 %383
%386 = bitcast double* %385 to <2 x double>*
%387 = load <2 x double>, <2 x double>* %386
%388 = getelementptr inbounds double, double* %385, i64 2
%389 = bitcast double* %388 to <2 x double>*
%390 = load <2 x double>, <2 x double>* %389
%391 = getelementptr inbounds double, double* %0, i64 %384
%392 = bitcast double* %391 to <2 x double>*
store <2 x double> %387, <2 x double>* %392
%393 = getelementptr inbounds double, double* %391, i64 2
%394 = bitcast double* %393 to <2 x double>*
store <2 x double> %390, <2 x double>* %394
%395 = add nuw i64 %346, 16
%396 = add nuw i64 %347, 4
%397 = icmp eq i64 %396, %324
br i1 %397, label %398, label %345
398: ; preds = %345, %343
%399 = phi i64 [ 0, %343 ], [ %395, %345 ]
br i1 %325, label %417, label %400
400: ; preds = %398, %400
%401 = phi i64 [ %414, %400 ], [ %399, %398 ]
%402 = phi i64 [ %415, %400 ], [ 0, %398 ]
%403 = add i64 %335, %401
%404 = getelementptr inbounds double, double* %333, i64 %401
%405 = bitcast double* %404 to <2 x double>*
%406 = load <2 x double>, <2 x double>* %405
%407 = getelementptr inbounds double, double* %404, i64 2
%408 = bitcast double* %407 to <2 x double>*
%409 = load <2 x double>, <2 x double>* %408
%410 = getelementptr inbounds double, double* %0, i64 %403
%411 = bitcast double* %410 to <2 x double>*
store <2 x double> %406, <2 x double>* %411
%412 = getelementptr inbounds double, double* %410, i64 2
%413 = bitcast double* %412 to <2 x double>*
store <2 x double> %409, <2 x double>* %413
%414 = add nuw i64 %401, 4
%415 = add i64 %402, 1
%416 = icmp eq i64 %415, %322
br i1 %416, label %417, label %400
417: ; preds = %400, %398
br i1 %326, label %442, label %418
418: ; preds = %336, %329, %417
%419 = phi i64 [ %335, %336 ], [ %335, %329 ], [ %344, %417 ]
%420 = phi i64 [ 0, %336 ], [ 0, %329 ], [ %321, %417 ]
%421 = xor i64 %420, -1
%422 = add nsw i64 %421, %314
br i1 %328, label %434, label %423
423: ; preds = %418, %423
%424 = phi i64 [ %430, %423 ], [ %419, %418 ]
%425 = phi i64 [ %431, %423 ], [ %420, %418 ]
%426 = phi i64 [ %432, %423 ], [ 0, %418 ]
%427 = getelementptr inbounds double, double* %333, i64 %425
%428 = load double, double* %427
%429 = getelementptr inbounds double, double* %0, i64 %424
store double %428, double* %429
%430 = add nsw i64 %424, 1
%431 = add nuw nsw i64 %425, 1
%432 = add i64 %426, 1
%433 = icmp eq i64 %432, %327
br i1 %433, label %434, label %423
434: ; preds = %423, %418
%435 = phi i64 [ undef, %418 ], [ %430, %423 ]
%436 = phi i64 [ %419, %418 ], [ %430, %423 ]
%437 = phi i64 [ %420, %418 ], [ %431, %423 ]
%438 = icmp ult i64 %422, 3
br i1 %438, label %442, label %446
439: ; preds = %442, %304
%440 = call i32 @free2D(double** %312)
%441 = call i32 @free2D(double** %11)
ret void
442: ; preds = %434, %446, %417
%443 = phi i64 [ %344, %417 ], [ %435, %434 ], [ %467, %446 ]
%444 = add nuw nsw i64 %330, 1
%445 = icmp eq i64 %444, %314
br i1 %445, label %439, label %329
446: ; preds = %434, %446
%447 = phi i64 [ %467, %446 ], [ %436, %434 ]
%448 = phi i64 [ %468, %446 ], [ %437, %434 ]
%449 = getelementptr inbounds double, double* %333, i64 %448
%450 = load double, double* %449
%451 = getelementptr inbounds double, double* %0, i64 %447
store double %450, double* %451
%452 = add nsw i64 %447, 1
%453 = add nuw nsw i64 %448, 1
%454 = getelementptr inbounds double, double* %333, i64 %453
%455 = load double, double* %454
%456 = getelementptr inbounds double, double* %0, i64 %452
store double %455, double* %456
%457 = add nsw i64 %447, 2
%458 = add nuw nsw i64 %448, 2
%459 = getelementptr inbounds double, double* %333, i64 %458
%460 = load double, double* %459
%461 = getelementptr inbounds double, double* %0, i64 %457
store double %460, double* %461
%462 = add nsw i64 %447, 3
%463 = add nuw nsw i64 %448, 3
%464 = getelementptr inbounds double, double* %333, i64 %463
%465 = load double, double* %464
%466 = getelementptr inbounds double, double* %0, i64 %462
store double %465, double* %466
%467 = add nsw i64 %447, 4
%468 = add nuw nsw i64 %448, 4
%469 = icmp eq i64 %468, %314
br i1 %469, label %442, label %446
}