#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*/ free(void *);
scalar_t__ polybench_alloc_data(int, int);
void init_array(int n, double A[2000 + 0][2000 + 0]) {
  int i, j;
  for (i = 0; i < n; i++) {
    for (j = 0; j <= i; j++)
      A[i][j] = (double)(-j % n) / n + 1;
    for (j = i + 1; j < n; j++) {
      A[i][j] = 0;
    }
    A[i][i] = 1;
  }
  int r, s, t;
  double(*B)[2000 + 0][2000 + 0];
  B = (double(*)[2000 + 0][2000 + 0])
      polybench_alloc_data((2000 + 0) * (2000 + 0), sizeof(double));
  ;
  for (r = 0; r < n; ++r)
    for (s = 0; s < n; ++s)
      (*B)[r][s] = 0;
  for (t = 0; t < n; ++t)
    for (r = 0; r < n; ++r)
      for (s = 0; s < n; ++s)
        (*B)[r][s] += A[r][t] * A[s][t];
  for (r = 0; r < n; ++r)
    for (s = 0; s < n; ++s)
      A[r][s] = (*B)[r][s];
  free((void *)B);
  ;
}


x86 assembly (clang, -O0):
<init_array>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1212 <init_array+0xf2>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     11a0 <init_array+0x80>
xor    %eax,%eax
sub    -0x18(%rbp),%eax
cltd
idivl  -0x4(%rbp)
cvtsi2sd %edx,%xmm0
cvtsi2sdl -0x4(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  0xe8d(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1149 <init_array+0x29>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11e1 <init_array+0xc1>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11a9 <init_array+0x89>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x14(%rbp),%rcx
movsd  0xe01(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1136 <init_array+0x16>
mov    $0x3d0900,%edi
mov    $0x8,%esi
call   1040 <polybench_alloc_data@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    128a <init_array+0x16a>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1277 <init_array+0x157>
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%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    123f <init_array+0x11f>
jmp    127c <init_array+0x15c>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    122c <init_array+0x10c>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1355 <init_array+0x235>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1342 <init_array+0x222>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    132f <init_array+0x20f>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x20(%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    12b7 <init_array+0x197>
jmp    1334 <init_array+0x214>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12a4 <init_array+0x184>
jmp    1347 <init_array+0x227>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1291 <init_array+0x171>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13d2 <init_array+0x2b2>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13bf <init_array+0x29f>
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    136f <init_array+0x24f>
jmp    13c4 <init_array+0x2a4>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    135c <init_array+0x23c>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_array>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
test   %edi,%edi
jle    1280 <init_array+0x150>
mov    %edi,%r14d
cvtsi2sd %edi,%xmm1
lea    -0x2(%r14),%r8d
mov    %edi,%r13d
mov    $0x1,%ebx
xor    %r15d,%r15d
movsd  0xe9c(%rip),%xmm2
movabs $0x3ff0000000000000,%r9
mov    %rsi,%rbp
mov    %rsi,0x18(%rsp)
movsd  %xmm1,0x8(%rsp)
mov    %r8d,0x10(%rsp)
jmp    11b7 <init_array+0x87>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
imul   $0x3e80,%r12,%rax
mov    0x18(%rsp),%rsi
add    %rsi,%rax
mov    %r9,(%rax,%r12,8)
add    $0x1,%rbx
add    $0x3e80,%rbp
cmp    %r13,%r15
je     123c <init_array+0x10c>
mov    %r15,%r12
imul   $0x3e88,%r15,%rax
lea    (%rax,%rsi,1),%rdi
add    $0x8,%rdi
mov    %r8d,%eax
sub    %r12d,%eax
lea    0x8(,%rax,8),%rcx
xor    %esi,%esi
nopl   0x0(%rax)
mov    %esi,%eax
cltd
idiv   %r14d
neg    %edx
xorps  %xmm0,%xmm0
cvtsi2sd %edx,%xmm0
divsd  %xmm1,%xmm0
addsd  %xmm2,%xmm0
movsd  %xmm0,0x0(%rbp,%rsi,8)
add    $0x1,%rsi
cmp    %rsi,%rbx
jne    11e0 <init_array+0xb0>
lea    0x1(%r12),%r15
cmp    %r13,%r15
jae    1190 <init_array+0x60>
xor    %esi,%esi
mov    %rcx,%rdx
call   1040 <memset@plt>
movabs $0x3ff0000000000000,%r9
movsd  0xdd4(%rip),%xmm2
mov    0x10(%rsp),%r8d
movsd  0x8(%rsp),%xmm1
jmp    1190 <init_array+0x60>
mov    $0x3d0900,%edi
mov    $0x8,%esi
call   1050 <polybench_alloc_data@plt>
mov    %rax,%rdx
test   %r14d,%r14d
jle    17c5 <init_array+0x695>
lea    0x0(,%r13,8),%r12
lea    -0x1(%r13),%rax
mov    %r13d,%ecx
and    $0x7,%ecx
mov    %rcx,0x8(%rsp)
cmp    $0x7,%rax
mov    %rdx,(%rsp)
jae    1297 <init_array+0x167>
xor    %r15d,%r15d
jmp    1348 <init_array+0x218>
mov    $0x3d0900,%edi
mov    $0x8,%esi
call   1050 <polybench_alloc_data@plt>
mov    %rax,%rdx
jmp    17c5 <init_array+0x695>
mov    %r13d,%ebp
and    $0xfffffff8,%ebp
xor    %r15d,%r15d
mov    %rdx,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1040 <memset@plt>
lea    0x3e80(%rbx),%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1040 <memset@plt>
lea    0x7d00(%rbx),%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1040 <memset@plt>
lea    0xbb80(%rbx),%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1040 <memset@plt>
lea    0xfa00(%rbx),%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1040 <memset@plt>
lea    0x13880(%rbx),%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1040 <memset@plt>
lea    0x17700(%rbx),%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1040 <memset@plt>
lea    0x1b580(%rbx),%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1040 <memset@plt>
add    $0x8,%r15
add    $0x1f400,%rbx
cmp    %r15,%rbp
jne    12b0 <init_array+0x180>
mov    0x8(%rsp),%rax
test   %rax,%rax
je     138a <init_array+0x25a>
imul   $0x3e80,%r15,%r15
add    (%rsp),%r15
imul   $0x3e80,%rax,%rbp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
lea    (%r15,%rbx,1),%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1040 <memset@plt>
add    $0x3e80,%rbx
cmp    %rbx,%rbp
jne    1370 <init_array+0x240>
test   %r14d,%r14d
jle    17c1 <init_array+0x691>
mov    %r13d,%eax
and    $0xfffffffc,%eax
mov    %rax,0x48(%rsp)
mov    %r13,%rdi
neg    %rdi
mov    (%rsp),%rdx
lea    0x10(%rdx),%rax
mov    %rax,0x40(%rsp)
lea    0x0(,%r13,8),%rsi
and    $0xffffffffffffffe0,%rsi
mov    0x18(%rsp),%rcx
lea    0x3e80(%rcx),%rax
mov    %rax,0x28(%rsp)
lea    0x8(%rdx),%rax
mov    %rax,0x38(%rsp)
xor    %r8d,%r8d
imul   $0x3e80,%r13,%rax
add    %rcx,%rax
mov    %rax,0x30(%rsp)
mov    %rcx,0x20(%rsp)
jmp    140d <init_array+0x2dd>
addq   $0x8,0x20(%rsp)
addq   $0x8,0x28(%rsp)
mov    0x8(%rsp),%rax
mov    %rax,%r8
cmp    %r13,%rax
je     15fd <init_array+0x4cd>
lea    (%rcx,%r8,8),%rax
mov    %rax,0x10(%rsp)
mov    0x30(%rsp),%rax
lea    (%rax,%r8,8),%rax
add    $0xffffffffffffc188,%rax
mov    %rax,0x50(%rsp)
lea    0x1(%r8),%rax
mov    %rax,0x8(%rsp)
mov    0x38(%rsp),%r9
mov    0x40(%rsp),%r10
xor    %r15d,%r15d
jmp    1467 <init_array+0x337>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r15
add    $0x3e80,%r10
add    $0x3e80,%r9
cmp    %r13,%r15
je     13f0 <init_array+0x2c0>
imul   $0x3e80,%r15,%rax
lea    (%rdx,%rax,1),%r12
add    %rcx,%rax
lea    (%rax,%r8,8),%r11
cmp    $0x4,%r14d
jae    1520 <init_array+0x3f0>
xor    %ebx,%ebx
mov    %rbx,%rbp
test   $0x1,%r13b
je     14b6 <init_array+0x386>
movsd  (%r11),%xmm0
imul   $0x3e80,%rbx,%rax
add    %rcx,%rax
mulsd  (%rax,%r8,8),%xmm0
addsd  (%r12,%rbx,8),%xmm0
movsd  %xmm0,(%r12,%rbx,8)
mov    %rbx,%rbp
or     $0x1,%rbp
not    %rbx
cmp    %rdi,%rbx
je     1450 <init_array+0x320>
imul   $0x3e80,%rbp,%rbx
add    0x28(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
movsd  (%r11),%xmm0
mulsd  -0x3e80(%rbx),%xmm0
ff
addsd  -0x8(%r9,%rbp,8),%xmm0
movsd  %xmm0,-0x8(%r9,%rbp,8)
movsd  (%r11),%xmm0
mulsd  (%rbx),%xmm0
addsd  (%r9,%rbp,8),%xmm0
movsd  %xmm0,(%r9,%rbp,8)
add    $0x2,%rbp
add    $0x7d00,%rbx
cmp    %rbp,%r13
jne    14d0 <init_array+0x3a0>
jmp    1450 <init_array+0x320>
cs nopw 0x0(%rax,%rax,1)
nop
lea    (%r12,%r13,8),%rcx
mov    0x8(%rsp),%rdx
lea    (%rax,%rdx,8),%rax
cmp    0x50(%rsp),%r12
setb   %bl
cmp    %rcx,0x10(%rsp)
setb   %dl
cmp    %rax,%r12
setb   %al
cmp    %rcx,%r11
setb   %cl
test   %dl,%bl
jne    15ed <init_array+0x4bd>
mov    $0x0,%ebx
and    %cl,%al
mov    0x18(%rsp),%rcx
mov    (%rsp),%rdx
jne    1485 <init_array+0x355>
movsd  (%r11),%xmm0
unpcklpd %xmm0,%xmm0
xor    %ebx,%ebx
mov    0x20(%rsp),%rbp
nopw   0x0(%rax,%rax,1)
movsd  0x0(%rbp),%xmm1
movhpd 0x3e80(%rbp),%xmm1
movsd  0x7d00(%rbp),%xmm2
movhpd 0xbb80(%rbp),%xmm2
movupd -0x10(%r10,%rbx,1),%xmm3
movupd (%r10,%rbx,1),%xmm4
mulpd  %xmm0,%xmm1
addpd  %xmm3,%xmm1
mulpd  %xmm0,%xmm2
addpd  %xmm4,%xmm2
movupd %xmm1,-0x10(%r10,%rbx,1)
movupd %xmm2,(%r10,%rbx,1)
add    $0xfa00,%rbp
add    $0x20,%rbx
cmp    %rbx,%rsi
jne    1580 <init_array+0x450>
mov    0x48(%rsp),%rax
mov    %rax,%rbx
cmp    %r13,%rax
je     1450 <init_array+0x320>
jmp    1485 <init_array+0x355>
xor    %ebx,%ebx
mov    0x18(%rsp),%rcx
mov    (%rsp),%rdx
jmp    1485 <init_array+0x355>
test   %r14d,%r14d
jle    17c5 <init_array+0x695>
mov    %r13d,%r11d
and    $0xfffffffc,%r11d
lea    -0x4(%r11),%r10
mov    %r10,0x8(%rsp)
shr    $0x2,%r10
add    $0x1,%r10
mov    %r10,%rax
and    $0xfffffffffffffffe,%rax
mov    %rax,0x10(%rsp)
mov    %r13d,%r15d
and    $0x3,%r15d
lea    0x30(%rdx),%rsi
mov    %rcx,%rdi
add    $0x30,%rcx
xor    %r9d,%r9d
mov    %rdx,%rax
jmp    1678 <init_array+0x548>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%r9
add    $0x3e80,%rsi
add    $0x3e80,%rcx
add    $0x3e80,%rdi
add    $0x3e80,%rax
cmp    %r13,%r9
je     17c5 <init_array+0x695>
cmp    $0x4,%r14d
jb     16a8 <init_array+0x578>
imul   $0x3e80,%r9,%rbx
lea    (%rdx,%rbx,1),%r12
lea    (%r12,%r13,8),%rdx
add    0x18(%rsp),%rbx
cmp    %rdx,%rbx
jae    1730 <init_array+0x600>
lea    (%rbx,%r13,8),%rdx
cmp    %rdx,%r12
jae    1730 <init_array+0x600>
xor    %ebx,%ebx
mov    %rbx,%rbp
not    %rbp
add    %r13,%rbp
test   %r15,%r15
je     16d4 <init_array+0x5a4>
mov    %r15,%rdx
nopl   0x0(%rax,%rax,1)
movsd  (%rax,%rbx,8),%xmm0
movsd  %xmm0,(%rdi,%rbx,8)
add    $0x1,%rbx
add    $0xffffffffffffffff,%rdx
jne    16c0 <init_array+0x590>
cmp    $0x3,%rbp
mov    (%rsp),%rdx
jb     1650 <init_array+0x520>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rax,%rbx,8),%xmm0
movsd  %xmm0,(%rdi,%rbx,8)
movsd  0x8(%rax,%rbx,8),%xmm0
movsd  %xmm0,0x8(%rdi,%rbx,8)
movsd  0x10(%rax,%rbx,8),%xmm0
movsd  %xmm0,0x10(%rdi,%rbx,8)
movsd  0x18(%rax,%rbx,8),%xmm0
movsd  %xmm0,0x18(%rdi,%rbx,8)
add    $0x4,%rbx
cmp    %rbx,%r13
jne    16f0 <init_array+0x5c0>
jmp    1650 <init_array+0x520>
nopl   0x0(%rax)
cmpq   $0x0,0x8(%rsp)
je     17b3 <init_array+0x683>
mov    0x10(%rsp),%r8
xor    %ebp,%ebp
mov    (%rsp),%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups -0x30(%rsi,%rbp,8),%xmm0
movups -0x20(%rsi,%rbp,8),%xmm1
movups %xmm0,-0x30(%rcx,%rbp,8)
movups %xmm1,-0x20(%rcx,%rbp,8)
movupd -0x10(%rsi,%rbp,8),%xmm0
movupd (%rsi,%rbp,8),%xmm1
movupd %xmm0,-0x10(%rcx,%rbp,8)
movupd %xmm1,(%rcx,%rbp,8)
add    $0x8,%rbp
add    $0xfffffffffffffffe,%r8
jne    1750 <init_array+0x620>
test   $0x1,%r10b
je     17a2 <init_array+0x672>
movupd (%r12,%rbp,8),%xmm0
movupd 0x10(%r12,%rbp,8),%xmm1
movupd %xmm0,(%rbx,%rbp,8)
movupd %xmm1,0x10(%rbx,%rbp,8)
mov    %r11,%rbx
cmp    %r13,%r11
je     1650 <init_array+0x520>
jmp    16aa <init_array+0x57a>
xor    %ebp,%ebp
mov    (%rsp),%rdx
test   $0x1,%r10b
jne    178a <init_array+0x65a>
jmp    17a2 <init_array+0x672>
mov    (%rsp),%rdx
mov    %rdx,%rdi
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @init_array(i32 %0, [2000 x double]* %1) {
%3 = alloca i32
%4 = alloca [2000 x double]*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca [2000 x [2000 x double]]*
store i32 %0, i32* %3
store [2000 x double]* %1, [2000 x double]** %4
store i32 0, i32* %5
br label %11
11: ; preds = %66, %2
%12 = load i32, i32* %5
%13 = load i32, i32* %3
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %69
15: ; preds = %11
store i32 0, i32* %6
br label %16
16: ; preds = %37, %15
%17 = load i32, i32* %6
%18 = load i32, i32* %5
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %40
20: ; preds = %16
%21 = load i32, i32* %6
%22 = sub nsw i32 0, %21
%23 = load i32, i32* %3
%24 = srem i32 %22, %23
%25 = sitofp i32 %24 to double
%26 = load i32, i32* %3
%27 = sitofp i32 %26 to double
%28 = fdiv double %25, %27
%29 = fadd double %28, 1.000000e+00
%30 = load [2000 x double]*, [2000 x double]** %4
%31 = load i32, i32* %5
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [2000 x double], [2000 x double]* %30, i64 %32
%34 = load i32, i32* %6
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [2000 x double], [2000 x double]* %33, i64 0, i64 %35
store double %29, double* %36
br label %37
37: ; preds = %20
%38 = load i32, i32* %6
%39 = add nsw i32 %38, 1
store i32 %39, i32* %6
br label %16
40: ; preds = %16
%41 = load i32, i32* %5
%42 = add nsw i32 %41, 1
store i32 %42, i32* %6
br label %43
43: ; preds = %55, %40
%44 = load i32, i32* %6
%45 = load i32, i32* %3
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %58
47: ; preds = %43
%48 = load [2000 x double]*, [2000 x double]** %4
%49 = load i32, i32* %5
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [2000 x double], [2000 x double]* %48, i64 %50
%52 = load i32, i32* %6
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [2000 x double], [2000 x double]* %51, i64 0, i64 %53
store double 0.000000e+00, double* %54
br label %55
55: ; preds = %47
%56 = load i32, i32* %6
%57 = add nsw i32 %56, 1
store i32 %57, i32* %6
br label %43
58: ; preds = %43
%59 = load [2000 x double]*, [2000 x double]** %4
%60 = load i32, i32* %5
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [2000 x double], [2000 x double]* %59, i64 %61
%63 = load i32, i32* %5
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [2000 x double], [2000 x double]* %62, i64 0, i64 %64
store double 1.000000e+00, double* %65
br label %66
66: ; preds = %58
%67 = load i32, i32* %5
%68 = add nsw i32 %67, 1
store i32 %68, i32* %5
br label %11
69: ; preds = %11
%70 = call i64 @polybench_alloc_data(i32 4000000, i32 8)
%71 = inttoptr i64 %70 to [2000 x [2000 x double]]*
store [2000 x [2000 x double]]* %71, [2000 x [2000 x double]]** %10
store i32 0, i32* %7
br label %72
72: ; preds = %93, %69
%73 = load i32, i32* %7
%74 = load i32, i32* %3
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %96
76: ; preds = %72
store i32 0, i32* %8
br label %77
77: ; preds = %89, %76
%78 = load i32, i32* %8
%79 = load i32, i32* %3
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %92
81: ; preds = %77
%82 = load [2000 x [2000 x double]]*, [2000 x [2000 x double]]** %10
%83 = load i32, i32* %7
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %82, i64 0, i64 %84
%86 = load i32, i32* %8
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [2000 x double], [2000 x double]* %85, i64 0, i64 %87
store double 0.000000e+00, double* %88
br label %89
89: ; preds = %81
%90 = load i32, i32* %8
%91 = add nsw i32 %90, 1
store i32 %91, i32* %8
br label %77
92: ; preds = %77
br label %93
93: ; preds = %92
%94 = load i32, i32* %7
%95 = add nsw i32 %94, 1
store i32 %95, i32* %7
br label %72
96: ; preds = %72
store i32 0, i32* %9
br label %97
97: ; preds = %145, %96
%98 = load i32, i32* %9
%99 = load i32, i32* %3
%100 = icmp slt i32 %98, %99
br i1 %100, label %101, label %148
101: ; preds = %97
store i32 0, i32* %7
br label %102
102: ; preds = %141, %101
%103 = load i32, i32* %7
%104 = load i32, i32* %3
%105 = icmp slt i32 %103, %104
br i1 %105, label %106, label %144
106: ; preds = %102
store i32 0, i32* %8
br label %107
107: ; preds = %137, %106
%108 = load i32, i32* %8
%109 = load i32, i32* %3
%110 = icmp slt i32 %108, %109
br i1 %110, label %111, label %140
111: ; preds = %107
%112 = load [2000 x double]*, [2000 x double]** %4
%113 = load i32, i32* %7
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [2000 x double], [2000 x double]* %112, i64 %114
%116 = load i32, i32* %9
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [2000 x double], [2000 x double]* %115, i64 0, i64 %117
%119 = load double, double* %118
%120 = load [2000 x double]*, [2000 x double]** %4
%121 = load i32, i32* %8
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [2000 x double], [2000 x double]* %120, i64 %122
%124 = load i32, i32* %9
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [2000 x double], [2000 x double]* %123, i64 0, i64 %125
%127 = load double, double* %126
%128 = load [2000 x [2000 x double]]*, [2000 x [2000 x double]]** %10
%129 = load i32, i32* %7
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %128, i64 0, i64 %130
%132 = load i32, i32* %8
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [2000 x double], [2000 x double]* %131, i64 0, i64 %133
%135 = load double, double* %134
%136 = call double @llvm.fmuladd.f64(double %119, double %127, double %135)
store double %136, double* %134
br label %137
137: ; preds = %111
%138 = load i32, i32* %8
%139 = add nsw i32 %138, 1
store i32 %139, i32* %8
br label %107
140: ; preds = %107
br label %141
141: ; preds = %140
%142 = load i32, i32* %7
%143 = add nsw i32 %142, 1
store i32 %143, i32* %7
br label %102
144: ; preds = %102
br label %145
145: ; preds = %144
%146 = load i32, i32* %9
%147 = add nsw i32 %146, 1
store i32 %147, i32* %9
br label %97
148: ; preds = %97
store i32 0, i32* %7
br label %149
149: ; preds = %178, %148
%150 = load i32, i32* %7
%151 = load i32, i32* %3
%152 = icmp slt i32 %150, %151
br i1 %152, label %153, label %181
153: ; preds = %149
store i32 0, i32* %8
br label %154
154: ; preds = %174, %153
%155 = load i32, i32* %8
%156 = load i32, i32* %3
%157 = icmp slt i32 %155, %156
br i1 %157, label %158, label %177
158: ; preds = %154
%159 = load [2000 x [2000 x double]]*, [2000 x [2000 x double]]** %10
%160 = load i32, i32* %7
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %159, i64 0, i64 %161
%163 = load i32, i32* %8
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [2000 x double], [2000 x double]* %162, i64 0, i64 %164
%166 = load double, double* %165
%167 = load [2000 x double]*, [2000 x double]** %4
%168 = load i32, i32* %7
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [2000 x double], [2000 x double]* %167, i64 %169
%171 = load i32, i32* %8
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [2000 x double], [2000 x double]* %170, i64 0, i64 %172
store double %166, double* %173
br label %174
174: ; preds = %158
%175 = load i32, i32* %8
%176 = add nsw i32 %175, 1
store i32 %176, i32* %8
br label %154
177: ; preds = %154
br label %178
178: ; preds = %177
%179 = load i32, i32* %7
%180 = add nsw i32 %179, 1
store i32 %180, i32* %7
br label %149
181: ; preds = %149
%182 = load [2000 x [2000 x double]]*, [2000 x [2000 x double]]** %10
%183 = bitcast [2000 x [2000 x double]]* %182 to i8*
%184 = call i32 @free(i8* %183)
ret void
}

LLVM IR (-O2):
define void @init_array(i32 %0, [2000 x double]* nocapture %1) {
%3 = icmp sgt i32 %0, 0
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i64 @polybench_alloc_data(i32 4000000, i32 8)
br label %302
6: ; preds = %2
%7 = sitofp i32 %0 to double
%8 = add nsw i32 %0, -2
%9 = zext i32 %0 to i64
%10 = zext i32 %0 to i64
br label %11
11: ; preds = %6, %38
%12 = phi i64 [ 1, %6 ], [ %40, %38 ]
%13 = phi i64 [ 0, %6 ], [ %35, %38 ]
%14 = mul nuw nsw i64 %13, 2001
%15 = add nuw nsw i64 %14, 1
%16 = getelementptr [2000 x double], [2000 x double]* %1, i64 0, i64 %15
%17 = bitcast double* %16 to i8*
%18 = trunc i64 %13 to i32
%19 = sub i32 %8, %18
%20 = zext i32 %19 to i64
%21 = shl nuw nsw i64 %20, 3
%22 = add nuw nsw i64 %21, 8
br label %23
23: ; preds = %11, %23
%24 = phi i64 [ 0, %11 ], [ %32, %23 ]
%25 = trunc i64 %24 to i32
%26 = srem i32 %25, %0
%27 = sub nsw i32 0, %26
%28 = sitofp i32 %27 to double
%29 = fdiv double %28, %7
%30 = fadd double %29, 1.000000e+00
%31 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %13, i64 %24
store double %30, double* %31
%32 = add nuw nsw i64 %24, 1
%33 = icmp eq i64 %32, %12
br i1 %33, label %34, label %23
34: ; preds = %23
%35 = add nuw nsw i64 %13, 1
%36 = icmp ult i64 %35, %9
br i1 %36, label %37, label %38
37: ; preds = %34
br label %38
38: ; preds = %37, %34
%39 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %13, i64 %13
store double 1.000000e+00, double* %39
%40 = add nuw nsw i64 %12, 1
%41 = icmp eq i64 %35, %10
br i1 %41, label %42, label %11
42: ; preds = %38
%43 = tail call i64 @polybench_alloc_data(i32 4000000, i32 8)
%44 = inttoptr i64 %43 to [2000 x [2000 x double]]*
br i1 %3, label %45, label %302
45: ; preds = %42
%46 = zext i32 %0 to i64
%47 = shl nuw nsw i64 %46, 3
%48 = add nsw i64 %10, -1
%49 = and i64 %10, 7
%50 = icmp ult i64 %48, 7
br i1 %50, label %53, label %51
51: ; preds = %45
%52 = and i64 %10, 4294967288
br label %73
53: ; preds = %73, %45
%54 = phi i64 [ 0, %45 ], [ %99, %73 ]
%55 = icmp eq i64 %49, 0
br i1 %55, label %64, label %56
56: ; preds = %53, %56
%57 = phi i64 [ %61, %56 ], [ %54, %53 ]
%58 = phi i64 [ %62, %56 ], [ 0, %53 ]
%59 = getelementptr [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %57, i64 0
%60 = bitcast double* %59 to i8*
%61 = add nuw nsw i64 %57, 1
%62 = add i64 %58, 1
%63 = icmp eq i64 %62, %49
br i1 %63, label %64, label %56
64: ; preds = %56, %53
br i1 %3, label %65, label %302
65: ; preds = %64
%66 = zext i32 %0 to i64
%67 = icmp ult i32 %0, 4
%68 = and i64 %10, 4294967292
%69 = icmp eq i64 %68, %10
%70 = and i64 %10, 1
%71 = icmp eq i64 %70, 0
%72 = sub nsw i64 0, %10
br label %102
73: ; preds = %73, %51
%74 = phi i64 [ 0, %51 ], [ %99, %73 ]
%75 = phi i64 [ 0, %51 ], [ %100, %73 ]
%76 = getelementptr [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %74, i64 0
%77 = bitcast double* %76 to i8*
%78 = or i64 %74, 1
%79 = getelementptr [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %78, i64 0
%80 = bitcast double* %79 to i8*
%81 = or i64 %74, 2
%82 = getelementptr [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %81, i64 0
%83 = bitcast double* %82 to i8*
%84 = or i64 %74, 3
%85 = getelementptr [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %84, i64 0
%86 = bitcast double* %85 to i8*
%87 = or i64 %74, 4
%88 = getelementptr [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %87, i64 0
%89 = bitcast double* %88 to i8*
%90 = or i64 %74, 5
%91 = getelementptr [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %90, i64 0
%92 = bitcast double* %91 to i8*
%93 = or i64 %74, 6
%94 = getelementptr [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %93, i64 0
%95 = bitcast double* %94 to i8*
%96 = or i64 %74, 7
%97 = getelementptr [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %96, i64 0
%98 = bitcast double* %97 to i8*
%99 = add nuw nsw i64 %74, 8
%100 = add i64 %75, 8
%101 = icmp eq i64 %100, %52
br i1 %101, label %53, label %73
102: ; preds = %209, %65
%103 = phi i64 [ 0, %65 ], [ %210, %209 ]
%104 = getelementptr [2000 x double], [2000 x double]* %1, i64 0, i64 %103
%105 = add nsw i64 %103, -1999
%106 = getelementptr [2000 x double], [2000 x double]* %1, i64 %10, i64 %105
%107 = add nuw i64 %103, 1
br label %124
108: ; preds = %209
br i1 %3, label %109, label %302
109: ; preds = %108
%110 = zext i32 %0 to i64
%111 = and i64 %10, 4294967292
%112 = add nsw i64 %111, -4
%113 = lshr exact i64 %112, 2
%114 = add nuw nsw i64 %113, 1
%115 = icmp ult i32 %0, 4
%116 = and i64 %10, 4294967292
%117 = and i64 %114, 1
%118 = icmp eq i64 %112, 0
%119 = and i64 %114, 9223372036854775806
%120 = icmp eq i64 %117, 0
%121 = icmp eq i64 %116, %10
%122 = and i64 %10, 3
%123 = icmp eq i64 %122, 0
br label %212
124: ; preds = %206, %102
%125 = phi i64 [ 0, %102 ], [ %207, %206 ]
%126 = getelementptr [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %125, i64 0
%127 = getelementptr [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %125, i64 %10
%128 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %125, i64 %103
br i1 %67, label %175, label %129
129: ; preds = %124
%130 = getelementptr [2000 x double], [2000 x double]* %1, i64 %125, i64 %107
%131 = getelementptr [2000 x double], [2000 x double]* %1, i64 %125, i64 %103
%132 = icmp ult double* %126, %106
%133 = icmp ult double* %104, %127
%134 = and i1 %132, %133
%135 = icmp ult double* %126, %130
%136 = icmp ult double* %131, %127
%137 = and i1 %135, %136
%138 = or i1 %134, %137
br i1 %138, label %175, label %139
139: ; preds = %129
%140 = load double, double* %128
%141 = insertelement <2 x double> poison, double %140, i64 0
%142 = shufflevector <2 x double> %141, <2 x double> poison, <2 x i32> zeroinitializer
%143 = insertelement <2 x double> poison, double %140, i64 0
%144 = shufflevector <2 x double> %143, <2 x double> poison, <2 x i32> zeroinitializer
br label %145
145: ; preds = %145, %139
%146 = phi i64 [ 0, %139 ], [ %172, %145 ]
%147 = or i64 %146, 1
%148 = or i64 %146, 2
%149 = or i64 %146, 3
%150 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %146, i64 %103
%151 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %147, i64 %103
%152 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %148, i64 %103
%153 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %149, i64 %103
%154 = load double, double* %150
%155 = load double, double* %151
%156 = insertelement <2 x double> poison, double %154, i64 0
%157 = insertelement <2 x double> %156, double %155, i64 1
%158 = load double, double* %152
%159 = load double, double* %153
%160 = insertelement <2 x double> poison, double %158, i64 0
%161 = insertelement <2 x double> %160, double %159, i64 1
%162 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %125, i64 %146
%163 = bitcast double* %162 to <2 x double>*
%164 = load <2 x double>, <2 x double>* %163
%165 = getelementptr inbounds double, double* %162, i64 2
%166 = bitcast double* %165 to <2 x double>*
%167 = load <2 x double>, <2 x double>* %166
%168 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %142, <2 x double> %157, <2 x double> %164)
%169 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %144, <2 x double> %161, <2 x double> %167)
%170 = bitcast double* %162 to <2 x double>*
store <2 x double> %168, <2 x double>* %170
%171 = bitcast double* %165 to <2 x double>*
store <2 x double> %169, <2 x double>* %171
%172 = add nuw i64 %146, 4
%173 = icmp eq i64 %172, %68
br i1 %173, label %174, label %145
174: ; preds = %145
br i1 %69, label %206, label %175
175: ; preds = %129, %124, %174
%176 = phi i64 [ 0, %129 ], [ 0, %124 ], [ %68, %174 ]
%177 = xor i64 %176, -1
br i1 %71, label %186, label %178
178: ; preds = %175
%179 = load double, double* %128
%180 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %176, i64 %103
%181 = load double, double* %180
%182 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %125, i64 %176
%183 = load double, double* %182
%184 = tail call double @llvm.fmuladd.f64(double %179, double %181, double %183)
store double %184, double* %182
%185 = or i64 %176, 1
br label %186
186: ; preds = %178, %175
%187 = phi i64 [ %176, %175 ], [ %185, %178 ]
%188 = icmp eq i64 %177, %72
br i1 %188, label %206, label %189
189: ; preds = %186, %189
%190 = phi i64 [ %204, %189 ], [ %187, %186 ]
%191 = load double, double* %128
%192 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %190, i64 %103
%193 = load double, double* %192
%194 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %125, i64 %190
%195 = load double, double* %194
%196 = tail call double @llvm.fmuladd.f64(double %191, double %193, double %195)
store double %196, double* %194
%197 = add nuw nsw i64 %190, 1
%198 = load double, double* %128
%199 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %197, i64 %103
%200 = load double, double* %199
%201 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %125, i64 %197
%202 = load double, double* %201
%203 = tail call double @llvm.fmuladd.f64(double %198, double %200, double %202)
store double %203, double* %201
%204 = add nuw nsw i64 %190, 2
%205 = icmp eq i64 %204, %66
br i1 %205, label %206, label %189
206: ; preds = %186, %189, %174
%207 = add nuw nsw i64 %125, 1
%208 = icmp eq i64 %207, %66
br i1 %208, label %209, label %124
209: ; preds = %206
%210 = add nuw nsw i64 %103, 1
%211 = icmp eq i64 %210, %66
br i1 %211, label %108, label %102
212: ; preds = %299, %109
%213 = phi i64 [ 0, %109 ], [ %300, %299 ]
br i1 %115, label %264, label %214
214: ; preds = %212
%215 = getelementptr [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %213, i64 %10
%216 = getelementptr [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %213, i64 0
%217 = getelementptr [2000 x double], [2000 x double]* %1, i64 %213, i64 %10
%218 = getelementptr [2000 x double], [2000 x double]* %1, i64 %213, i64 0
%219 = icmp ult double* %218, %215
%220 = icmp ult double* %216, %217
%221 = and i1 %219, %220
br i1 %221, label %264, label %222
222: ; preds = %214
br i1 %118, label %250, label %223
223: ; preds = %222, %223
%224 = phi i64 [ %247, %223 ], [ 0, %222 ]
%225 = phi i64 [ %248, %223 ], [ 0, %222 ]
%226 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %213, i64 %224
%227 = bitcast double* %226 to <2 x double>*
%228 = load <2 x double>, <2 x double>* %227
%229 = getelementptr inbounds double, double* %226, i64 2
%230 = bitcast double* %229 to <2 x double>*
%231 = load <2 x double>, <2 x double>* %230
%232 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %213, i64 %224
%233 = bitcast double* %232 to <2 x double>*
store <2 x double> %228, <2 x double>* %233
%234 = getelementptr inbounds double, double* %232, i64 2
%235 = bitcast double* %234 to <2 x double>*
store <2 x double> %231, <2 x double>* %235
%236 = or i64 %224, 4
%237 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %213, i64 %236
%238 = bitcast double* %237 to <2 x double>*
%239 = load <2 x double>, <2 x double>* %238
%240 = getelementptr inbounds double, double* %237, i64 2
%241 = bitcast double* %240 to <2 x double>*
%242 = load <2 x double>, <2 x double>* %241
%243 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %213, i64 %236
%244 = bitcast double* %243 to <2 x double>*
store <2 x double> %239, <2 x double>* %244
%245 = getelementptr inbounds double, double* %243, i64 2
%246 = bitcast double* %245 to <2 x double>*
store <2 x double> %242, <2 x double>* %246
%247 = add nuw i64 %224, 8
%248 = add i64 %225, 2
%249 = icmp eq i64 %248, %119
br i1 %249, label %250, label %223
250: ; preds = %223, %222
%251 = phi i64 [ 0, %222 ], [ %247, %223 ]
br i1 %120, label %263, label %252
252: ; preds = %250
%253 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %213, i64 %251
%254 = bitcast double* %253 to <2 x double>*
%255 = load <2 x double>, <2 x double>* %254
%256 = getelementptr inbounds double, double* %253, i64 2
%257 = bitcast double* %256 to <2 x double>*
%258 = load <2 x double>, <2 x double>* %257
%259 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %213, i64 %251
%260 = bitcast double* %259 to <2 x double>*
store <2 x double> %255, <2 x double>* %260
%261 = getelementptr inbounds double, double* %259, i64 2
%262 = bitcast double* %261 to <2 x double>*
store <2 x double> %258, <2 x double>* %262
br label %263
263: ; preds = %250, %252
br i1 %121, label %299, label %264
264: ; preds = %214, %212, %263
%265 = phi i64 [ 0, %214 ], [ 0, %212 ], [ %116, %263 ]
%266 = xor i64 %265, -1
%267 = add nsw i64 %266, %10
br i1 %123, label %277, label %268
268: ; preds = %264, %268
%269 = phi i64 [ %274, %268 ], [ %265, %264 ]
%270 = phi i64 [ %275, %268 ], [ 0, %264 ]
%271 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %213, i64 %269
%272 = load double, double* %271
%273 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %213, i64 %269
store double %272, double* %273
%274 = add nuw nsw i64 %269, 1
%275 = add i64 %270, 1
%276 = icmp eq i64 %275, %122
br i1 %276, label %277, label %268
277: ; preds = %268, %264
%278 = phi i64 [ %265, %264 ], [ %274, %268 ]
%279 = icmp ult i64 %267, 3
br i1 %279, label %299, label %280
280: ; preds = %277, %280
%281 = phi i64 [ %297, %280 ], [ %278, %277 ]
%282 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %213, i64 %281
%283 = load double, double* %282
%284 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %213, i64 %281
store double %283, double* %284
%285 = add nuw nsw i64 %281, 1
%286 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %213, i64 %285
%287 = load double, double* %286
%288 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %213, i64 %285
store double %287, double* %288
%289 = add nuw nsw i64 %281, 2
%290 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %213, i64 %289
%291 = load double, double* %290
%292 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %213, i64 %289
store double %291, double* %292
%293 = add nuw nsw i64 %281, 3
%294 = getelementptr inbounds [2000 x [2000 x double]], [2000 x [2000 x double]]* %44, i64 0, i64 %213, i64 %293
%295 = load double, double* %294
%296 = getelementptr inbounds [2000 x double], [2000 x double]* %1, i64 %213, i64 %293
store double %295, double* %296
%297 = add nuw nsw i64 %281, 4
%298 = icmp eq i64 %297, %110
br i1 %298, label %299, label %280
299: ; preds = %277, %280, %263
%300 = add nuw nsw i64 %213, 1
%301 = icmp eq i64 %300, %110
br i1 %301, label %302, label %212
302: ; preds = %299, %42, %4, %64, %108
%303 = phi i64 [ %43, %108 ], [ %43, %64 ], [ %43, %42 ], [ %5, %4 ], [ %43, %299 ]
%304 = inttoptr i64 %303 to i8*
%305 = tail call i32 @free(i8* %304)
ret void
}