#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], double b[2000 + 0],
                double x[2000 + 0], double y[2000 + 0]) {
  int i, j;
  double fn = (double)n;
  for (i = 0; i < n; i++) {
    x[i] = 0;
    y[i] = 0;
    b[i] = (i + 1) / fn / 2.0 + 4;
  }
  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    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11ba <init_array+0x9a>
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  0xe81(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xe6d(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    114c <init_array+0x2c>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    129d <init_array+0x17d>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jg     122b <init_array+0x10b>
xor    %eax,%eax
sub    -0x30(%rbp),%eax
cltd
idivl  -0x4(%rbp)
cvtsi2sd %edx,%xmm0
cvtsi2sdl -0x4(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  0xe02(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11d4 <init_array+0xb4>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    126c <init_array+0x14c>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1234 <init_array+0x114>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c(%rbp),%rcx
movsd  0xd76(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11c1 <init_array+0xa1>
mov    $0x3d0900,%edi
mov    $0x8,%esi
call   1040 <polybench_alloc_data@plt>
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1315 <init_array+0x1f5>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1302 <init_array+0x1e2>
mov    -0x50(%rbp),%rax
movslq -0x3c(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x40(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    12ca <init_array+0x1aa>
jmp    1307 <init_array+0x1e7>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12b7 <init_array+0x197>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13e0 <init_array+0x2c0>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13cd <init_array+0x2ad>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13ba <init_array+0x29a>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x50(%rbp),%rax
movslq -0x3c(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1342 <init_array+0x222>
jmp    13bf <init_array+0x29f>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    132f <init_array+0x20f>
jmp    13d2 <init_array+0x2b2>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    131c <init_array+0x1fc>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    145d <init_array+0x33d>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    144a <init_array+0x32a>
mov    -0x50(%rbp),%rax
movslq -0x3c(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
imul   $0x3e80,%rcx,%rcx
add    %rcx,%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    13fa <init_array+0x2da>
jmp    144f <init_array+0x32f>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    13e7 <init_array+0x2c7>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_array>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rsi,0x10(%rsp)
test   %edi,%edi
jle    12a0 <init_array+0x170>
mov    %edi,%r12d
cvtsi2sd %edi,%xmm3
mov    %edi,%r13d
cmp    $0x1,%edi
jne    1307 <init_array+0x1d7>
xor    %eax,%eax
movsd  0xed8(%rip),%xmm0
movsd  0xed8(%rip),%xmm1
movq   $0x0,(%rcx,%rax,8)
movq   $0x0,(%r8,%rax,8)
lea    0x1(%rax),%rsi
xorps  %xmm2,%xmm2
cvtsi2sd %esi,%xmm2
divsd  %xmm3,%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rdx,%rax,8)
mov    %rsi,%rax
cmp    %rsi,%r13
jne    1170 <init_array+0x40>
test   %r12d,%r12d
jle    12a0 <init_array+0x170>
lea    -0x2(%r12),%r9d
mov    $0x1,%ebx
xor    %r14d,%r14d
movsd  0xe8e(%rip),%xmm1
movabs $0x3ff0000000000000,%r10
mov    0x10(%rsp),%rcx
mov    %rcx,%rbp
movapd %xmm3,0x20(%rsp)
mov    %r9d,0x18(%rsp)
jmp    1212 <init_array+0xe2>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
imul   $0x3e80,%r15,%rax
add    %rcx,%rax
mov    %r10,(%rax,%r15,8)
add    $0x1,%rbx
add    $0x3e80,%rbp
cmp    %r13,%r14
je     12c5 <init_array+0x195>
mov    %r14,%r15
imul   $0x3e88,%r14,%rax
lea    (%rax,%rcx,1),%rdi
add    $0x8,%rdi
mov    %r9d,%eax
sub    %r15d,%eax
lea    0x8(,%rax,8),%r8
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %esi,%eax
cltd
idiv   %r12d
neg    %edx
xorps  %xmm0,%xmm0
cvtsi2sd %edx,%xmm0
divsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%rbp,%rsi,8)
add    $0x1,%rsi
cmp    %rsi,%rbx
jne    1240 <init_array+0x110>
lea    0x1(%r15),%r14
cmp    %r13,%r14
jae    11f0 <init_array+0xc0>
xor    %esi,%esi
mov    %r8,%rdx
call   1040 <memset@plt>
movabs $0x3ff0000000000000,%r10
movsd  0xdc5(%rip),%xmm1
mov    0x18(%rsp),%r9d
movapd 0x20(%rsp),%xmm3
mov    0x10(%rsp),%rcx
jmp    11f0 <init_array+0xc0>
mov    $0x3d0900,%edi
mov    $0x8,%esi
call   1050 <polybench_alloc_data@plt>
mov    %rax,%rdi
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
mov    $0x3d0900,%edi
mov    $0x8,%esi
call   1050 <polybench_alloc_data@plt>
test   %r12d,%r12d
jle    12af <init_array+0x17f>
lea    0x0(,%r13,8),%rbx
lea    -0x1(%r13),%rcx
mov    %r13d,%edx
and    $0x7,%edx
mov    %rdx,0x20(%rsp)
cmp    $0x7,%rcx
mov    %rax,0x8(%rsp)
jae    13e5 <init_array+0x2b5>
xor    %r14d,%r14d
jmp    1498 <init_array+0x368>
lea    (%r8,%r13,8),%rax
cmp    %rcx,%rax
seta   %r10b
lea    (%rcx,%r13,8),%rsi
cmp    %r8,%rsi
seta   %r11b
lea    (%rdx,%r13,8),%rbp
cmp    %rcx,%rbp
seta   %bl
cmp    %rdx,%rsi
seta   %dil
cmp    %r8,%rbp
seta   %sil
cmp    %rdx,%rax
seta   %r9b
xor    %eax,%eax
test   %r11b,%r10b
jne    1160 <init_array+0x30>
and    %dil,%bl
jne    1160 <init_array+0x30>
and    %r9b,%sil
jne    1160 <init_array+0x30>
mov    %r13d,%eax
and    $0xfffffffe,%eax
movapd %xmm3,%xmm0
unpcklpd %xmm3,%xmm0
movdqa 0xc91(%rip),%xmm1
xor    %esi,%esi
xorpd  %xmm2,%xmm2
pcmpeqd %xmm8,%xmm8
movapd 0xc8e(%rip),%xmm4
movapd 0xc96(%rip),%xmm5
movdqa 0xc9e(%rip),%xmm6
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movupd %xmm2,(%rcx,%rsi,8)
pshufd $0xe8,%xmm1,%xmm7
psubd  %xmm8,%xmm7
cvtdq2pd %xmm7,%xmm7
movupd %xmm2,(%r8,%rsi,8)
divpd  %xmm0,%xmm7
mulpd  %xmm4,%xmm7
addpd  %xmm5,%xmm7
movupd %xmm7,(%rdx,%rsi,8)
add    $0x2,%rsi
paddq  %xmm6,%xmm1
cmp    %rsi,%rax
jne    13a0 <init_array+0x270>
cmp    %r13,%rax
jne    1160 <init_array+0x30>
jmp    11a4 <init_array+0x74>
mov    %r13d,%r15d
and    $0xfffffff8,%r15d
xor    %r14d,%r14d
mov    %rax,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbp,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
lea    0x3e80(%rbp),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
lea    0x7d00(%rbp),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
lea    0xbb80(%rbp),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
lea    0xfa00(%rbp),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
lea    0x13880(%rbp),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
lea    0x17700(%rbp),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
lea    0x1b580(%rbp),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
add    $0x8,%r14
add    $0x1f400,%rbp
cmp    %r14,%r15
jne    1400 <init_array+0x2d0>
mov    0x20(%rsp),%rax
test   %rax,%rax
je     14da <init_array+0x3aa>
imul   $0x3e80,%r14,%r14
add    0x8(%rsp),%r14
imul   $0x3e80,%rax,%r15
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
lea    (%r14,%rbp,1),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
add    $0x3e80,%rbp
cmp    %rbp,%r15
jne    14c0 <init_array+0x390>
test   %r12d,%r12d
jle    1922 <init_array+0x7f2>
mov    %r13d,%eax
and    $0xfffffffc,%eax
mov    %rax,0x70(%rsp)
mov    %r13,%rax
neg    %rax
mov    %rax,0x20(%rsp)
mov    0x8(%rsp),%rax
lea    0x10(%rax),%rcx
mov    %rcx,0x68(%rsp)
lea    0x0(,%r13,8),%rsi
and    $0xffffffffffffffe0,%rsi
mov    0x10(%rsp),%rcx
lea    0x3e80(%rcx),%rdx
mov    %rdx,0x50(%rsp)
lea    0x8(%rax),%rdx
mov    %rdx,0x60(%rsp)
xor    %edx,%edx
imul   $0x3e80,%r13,%rdi
add    %rcx,%rdi
mov    %rdi,0x58(%rsp)
mov    %rcx,0x48(%rsp)
jmp    156d <init_array+0x43d>
cs nopw 0x0(%rax,%rax,1)
nop
addq   $0x8,0x48(%rsp)
addq   $0x8,0x50(%rsp)
mov    0x18(%rsp),%rdi
mov    %rdi,%rdx
cmp    %r13,%rdi
je     175e <init_array+0x62e>
lea    (%rcx,%rdx,8),%rdi
mov    %rdi,0x40(%rsp)
mov    0x58(%rsp),%rdi
lea    (%rdi,%rdx,8),%rdi
add    $0xffffffffffffc188,%rdi
mov    %rdi,0x38(%rsp)
lea    0x1(%rdx),%rdi
mov    %rdi,0x18(%rsp)
mov    0x60(%rsp),%r9
mov    0x68(%rsp),%r10
xor    %r15d,%r15d
jmp    15c7 <init_array+0x497>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r15
add    $0x3e80,%r10
add    $0x3e80,%r9
cmp    %r13,%r15
je     1550 <init_array+0x420>
imul   $0x3e80,%r15,%rbx
lea    (%rax,%rbx,1),%r14
add    %rcx,%rbx
lea    (%rbx,%rdx,8),%r11
cmp    $0x4,%r12d
jae    1680 <init_array+0x550>
xor    %ebp,%ebp
mov    %rbp,%rbx
test   $0x1,%r13b
je     1615 <init_array+0x4e5>
movsd  (%r11),%xmm0
imul   $0x3e80,%rbp,%rdi
add    %rcx,%rdi
mulsd  (%rdi,%rdx,8),%xmm0
addsd  (%r14,%rbp,8),%xmm0
movsd  %xmm0,(%r14,%rbp,8)
mov    %rbp,%rbx
or     $0x1,%rbx
not    %rbp
cmp    0x20(%rsp),%rbp
je     15b0 <init_array+0x480>
imul   $0x3e80,%rbx,%rbp
add    0x50(%rsp),%rbp
nopl   0x0(%rax,%rax,1)
movsd  (%r11),%xmm0
mulsd  -0x3e80(%rbp),%xmm0
ff
addsd  -0x8(%r9,%rbx,8),%xmm0
movsd  %xmm0,-0x8(%r9,%rbx,8)
movsd  (%r11),%xmm0
mulsd  0x0(%rbp),%xmm0
addsd  (%r9,%rbx,8),%xmm0
movsd  %xmm0,(%r9,%rbx,8)
add    $0x2,%rbx
add    $0x7d00,%rbp
cmp    %rbx,%r13
jne    1630 <init_array+0x500>
jmp    15b0 <init_array+0x480>
cs nopw 0x0(%rax,%rax,1)
lea    (%r14,%r13,8),%rbp
mov    0x18(%rsp),%rax
lea    (%rbx,%rax,8),%rbx
cmp    0x38(%rsp),%r14
setb   %dil
cmp    %rbp,0x40(%rsp)
setb   %al
cmp    %rbx,%r14
setb   %bl
cmp    %rbp,%r11
setb   %r8b
test   %al,%dil
jne    174d <init_array+0x61d>
mov    $0x0,%ebp
and    %r8b,%bl
mov    0x10(%rsp),%rcx
mov    0x8(%rsp),%rax
jne    15e5 <init_array+0x4b5>
movsd  (%r11),%xmm0
unpcklpd %xmm0,%xmm0
xor    %ebx,%ebx
mov    0x48(%rsp),%rbp
nopl   0x0(%rax)
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    16e0 <init_array+0x5b0>
mov    0x70(%rsp),%rdi
mov    %rdi,%rbp
cmp    %r13,%rdi
je     15b0 <init_array+0x480>
jmp    15e5 <init_array+0x4b5>
xor    %ebp,%ebp
mov    0x10(%rsp),%rcx
mov    0x8(%rsp),%rax
jmp    15e5 <init_array+0x4b5>
test   %r12d,%r12d
jle    12af <init_array+0x17f>
mov    %r13d,%edx
and    $0xfffffffc,%edx
mov    %rdx,0x20(%rsp)
add    $0xfffffffffffffffc,%rdx
mov    %rdx,0x18(%rsp)
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %rsi,%rdx
mov    %rsi,0x40(%rsp)
and    $0xfffffffffffffffe,%rsi
mov    %rsi,0x38(%rsp)
mov    %r13d,%r15d
and    $0x3,%r15d
lea    0x30(%rax),%rsi
lea    0x30(%rcx),%r10
xor    %r9d,%r9d
mov    %rax,%r11
mov    %rcx,%rdi
jmp    17e9 <init_array+0x6b9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r9
add    $0x3e80,%rsi
add    $0x3e80,%r10
add    $0x3e80,%rdi
add    $0x3e80,%r11
cmp    %r13,%r9
je     12af <init_array+0x17f>
cmp    $0x4,%r12d
jb     1817 <init_array+0x6e7>
imul   $0x3e80,%r9,%rbx
lea    (%rax,%rbx,1),%r14
lea    (%r14,%r13,8),%rdx
add    %rcx,%rbx
cmp    %rdx,%rbx
jae    1890 <init_array+0x760>
lea    (%rbx,%r13,8),%rdx
cmp    %rdx,%r14
jae    1890 <init_array+0x760>
xor    %ebx,%ebx
mov    %rbx,%rbp
not    %rbp
add    %r13,%rbp
test   %r15,%r15
je     1845 <init_array+0x715>
mov    %r15,%rdx
nopw   0x0(%rax,%rax,1)
movsd  (%r11,%rbx,8),%xmm0
movsd  %xmm0,(%rdi,%rbx,8)
add    $0x1,%rbx
add    $0xffffffffffffffff,%rdx
jne    1830 <init_array+0x700>
cmp    $0x3,%rbp
jb     17c0 <init_array+0x690>
nop
movsd  (%r11,%rbx,8),%xmm0
movsd  %xmm0,(%rdi,%rbx,8)
movsd  0x8(%r11,%rbx,8),%xmm0
movsd  %xmm0,0x8(%rdi,%rbx,8)
movsd  0x10(%r11,%rbx,8),%xmm0
movsd  %xmm0,0x10(%rdi,%rbx,8)
movsd  0x18(%r11,%rbx,8),%xmm0
movsd  %xmm0,0x18(%rdi,%rbx,8)
add    $0x4,%rbx
cmp    %rbx,%r13
jne    1850 <init_array+0x720>
jmp    17c0 <init_array+0x690>
cmpq   $0x0,0x18(%rsp)
je     1917 <init_array+0x7e7>
mov    0x38(%rsp),%r8
xor    %ebp,%ebp
nop
movups -0x30(%rsi,%rbp,8),%xmm0
movups -0x20(%rsi,%rbp,8),%xmm1
movups %xmm0,-0x30(%r10,%rbp,8)
movups %xmm1,-0x20(%r10,%rbp,8)
movupd -0x10(%rsi,%rbp,8),%xmm0
movupd (%rsi,%rbp,8),%xmm1
movupd %xmm0,-0x10(%r10,%rbp,8)
movupd %xmm1,(%r10,%rbp,8)
add    $0x8,%rbp
add    $0xfffffffffffffffe,%r8
jne    18a0 <init_array+0x770>
testb  $0x1,0x40(%rsp)
je     18f7 <init_array+0x7c7>
movupd (%r14,%rbp,8),%xmm0
movupd 0x10(%r14,%rbp,8),%xmm1
movupd %xmm0,(%rbx,%rbp,8)
movupd %xmm1,0x10(%rbx,%rbp,8)
mov    0x20(%rsp),%rax
mov    %rax,%rbx
cmp    %r13,%rax
mov    0x10(%rsp),%rcx
mov    0x8(%rsp),%rax
je     17c0 <init_array+0x690>
jmp    1819 <init_array+0x6e9>
xor    %ebp,%ebp
testb  $0x1,0x40(%rsp)
jne    18df <init_array+0x7af>
jmp    18f7 <init_array+0x7c7>
mov    0x8(%rsp),%rax
jmp    12af <init_array+0x17f>

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

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