#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 */
double sqrt(double);
void kernel_gramschmidt(int m, int n, double A[1000 + 0][1200 + 0],
                        double R[1200 + 0][1200 + 0],
                        double Q[1000 + 0][1200 + 0]) {
  int i, j, k;
  double nrm;
#pragma scop
  for (k = 0; k < n; k++) {
    nrm = 0.0;
    for (i = 0; i < m; i++)
      nrm += A[i][k] * A[i][k];
    R[k][k] = sqrt(nrm);
    for (i = 0; i < m; i++)
      Q[i][k] = A[i][k] / R[k][k];
    for (j = k + 1; j < n; j++) {
      R[k][j] = 0.0;
      for (i = 0; i < m; i++)
        R[k][j] += Q[i][k] * A[i][j];
      for (i = 0; i < m; i++)
        A[i][j] = A[i][j] - Q[i][k] * R[k][j];
    }
  }
#pragma endscop
}


x86 assembly (clang, -O0):
<kernel_gramschmidt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13c9 <kernel_gramschmidt+0x2b9>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11ae <kernel_gramschmidt+0x9e>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    114c <kernel_gramschmidt+0x3c>
movsd  -0x38(%rbp),%xmm0
call   1030 <sqrt@plt>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1245 <kernel_gramschmidt+0x135>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11da <kernel_gramschmidt+0xca>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13b6 <kernel_gramschmidt+0x2a6>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12f7 <kernel_gramschmidt+0x1e7>
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    127f <kernel_gramschmidt+0x16f>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13a3 <kernel_gramschmidt+0x293>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
imul   $0x2580,%rcx,%rcx
add    %rcx,%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12fe <kernel_gramschmidt+0x1ee>
jmp    13a8 <kernel_gramschmidt+0x298>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    124e <kernel_gramschmidt+0x13e>
jmp    13bb <kernel_gramschmidt+0x2ab>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1131 <kernel_gramschmidt+0x21>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_gramschmidt>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
mov    %r8,0x10(%rsp)
mov    %rcx,0x30(%rsp)
test   %esi,%esi
jle    1844 <kernel_gramschmidt+0x734>
mov    %rdx,%r10
mov    %esi,%ecx
mov    %edi,%r9d
lea    -0x1(%r9),%rbx
mov    %r9d,%esi
and    $0x3,%esi
mov    %r9d,%ebp
and    $0xfffffffc,%ebp
mov    %rbx,%rax
and    $0xfffffffffffffffe,%rax
mov    %rax,0x38(%rsp)
mov    %rbx,0x20(%rsp)
or     $0x1,%rbx
mov    %rbx,0x48(%rsp)
mov    %r9,%rax
neg    %rax
mov    %rax,0x80(%rsp)
mov    %r9d,%r13d
and    $0xfffffffe,%r13d
mov    %rsi,0x90(%rsp)
imul   $0x2580,%rsi,%rax
mov    %rax,0x88(%rsp)
lea    0x8(%rdx),%rax
mov    %rax,0x58(%rsp)
mov    $0x1,%eax
mov    %rax,0x50(%rsp)
xor    %r15d,%r15d
xorpd  %xmm3,%xmm3
mov    0x10(%rsp),%r14
mov    %rdx,%rbx
mov    %rdx,0x40(%rsp)
mov    %edi,0xc(%rsp)
mov    %rcx,0x28(%rsp)
mov    %r9,0x18(%rsp)
mov    %rbp,0x98(%rsp)
jmp    1202 <kernel_gramschmidt+0xf2>
addq   $0x1,0x50(%rsp)
mov    0x60(%rsp),%rbx
add    $0x8,%rbx
add    $0x8,%r14
addq   $0x8,0x58(%rsp)
mov    0xa0(%rsp),%r15
cmp    %rcx,%r15
mov    0x98(%rsp),%rbp
je     1844 <kernel_gramschmidt+0x734>
imul   $0x2580,%r9,%rdx
mov    0x10(%rsp),%rsi
lea    (%rsi,%rdx,1),%rax
imul   $0x4b1,%r15,%r12
add    %r10,%rdx
mov    %rdx,0x78(%rsp)
lea    (%rsi,%r15,8),%rdx
add    $0x2580,%rdx
mov    %rdx,0x70(%rsp)
lea    (%rax,%r15,8),%rax
add    $0xffffffffffffda88,%rax
mov    %rax,0x68(%rsp)
test   %edi,%edi
jle    1260 <kernel_gramschmidt+0x150>
cmpq   $0x3,0x20(%rsp)
jae    1280 <kernel_gramschmidt+0x170>
xorpd  %xmm0,%xmm0
xor    %eax,%eax
jmp    12dc <kernel_gramschmidt+0x1cc>
nopw   0x0(%rax,%rax,1)
imul   $0x2580,%r15,%rax
add    0x30(%rsp),%rax
movq   $0x0,(%rax,%r15,8)
jmp    1500 <kernel_gramschmidt+0x3f0>
nopl   0x0(%rax)
xorpd  %xmm0,%xmm0
mov    %rbx,%rsi
xor    %eax,%eax
nopl   0x0(%rax)
movsd  (%rsi),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0x2580(%rsi),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0x4b00(%rsi),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
movsd  0x7080(%rsi),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
add    $0x4,%rax
add    $0x9600,%rsi
cmp    %rax,%rbp
jne    1290 <kernel_gramschmidt+0x180>
cmpq   $0x0,0x90(%rsp)
mov    0x88(%rsp),%rbp
je     1319 <kernel_gramschmidt+0x209>
imul   $0x2580,%rax,%rax
add    %rbx,%rax
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
movsd  (%rax,%rsi,1),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm1,%xmm0
add    $0x2580,%rsi
cmp    %rsi,%rbp
jne    1300 <kernel_gramschmidt+0x1f0>
ucomisd %xmm3,%xmm0
jb     1330 <kernel_gramschmidt+0x220>
sqrtsd %xmm0,%xmm0
jmp    134c <kernel_gramschmidt+0x23c>
cs nopw 0x0(%rax,%rax,1)
nop
call   1030 <sqrt@plt>
xorpd  %xmm3,%xmm3
mov    0x18(%rsp),%r9
mov    0x28(%rsp),%rcx
mov    0xc(%rsp),%edi
mov    0x40(%rsp),%r10
imul   $0x2580,%r15,%rax
add    0x30(%rsp),%rax
movsd  %xmm0,(%rax,%r15,8)
test   %edi,%edi
jle    1500 <kernel_gramschmidt+0x3f0>
movsd  (%r10,%r15,8),%xmm1
divsd  %xmm0,%xmm1
mov    0x10(%rsp),%rsi
movsd  %xmm1,(%rsi,%r15,8)
cmp    $0x1,%edi
je     1500 <kernel_gramschmidt+0x3f0>
lea    (%rax,%r15,8),%rax
mov    $0x1,%ebp
cmpq   $0x2,0x20(%rsp)
jb     1473 <kernel_gramschmidt+0x363>
mov    0x30(%rsp),%rcx
mov    %r12,%rdx
lea    (%rcx,%r12,8),%r9
lea    (%rcx,%r12,8),%rsi
add    $0x8,%rsi
lea    0x2580(%r10,%r15,8),%rcx
mov    0x78(%rsp),%rdx
lea    (%rdx,%r15,8),%rdi
add    $0xffffffffffffda88,%rdi
mov    0x70(%rsp),%rdx
cmp    %rsi,%rdx
setb   %r8b
mov    0x68(%rsp),%rsi
cmp    %rsi,%r9
setb   %r9b
cmp    %rdi,%rdx
setb   %dil
cmp    %rsi,%rcx
setb   %sil
test   %r9b,%r8b
jne    1465 <kernel_gramschmidt+0x355>
and    %sil,%dil
mov    0xc(%rsp),%edi
mov    0x28(%rsp),%rcx
mov    0x18(%rsp),%r9
jne    1473 <kernel_gramschmidt+0x363>
movsd  (%rax),%xmm0
unpcklpd %xmm0,%xmm0
mov    $0x4b00,%esi
mov    0x38(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nop
movsd  -0x2580(%rbx,%rsi,1),%xmm1
ff ff
movhpd (%rbx,%rsi,1),%xmm1
divpd  %xmm0,%xmm1
movlpd %xmm1,-0x2580(%r14,%rsi,1)
da ff ff
movhpd %xmm1,(%r14,%rsi,1)
add    $0x4b00,%rsi
add    $0xfffffffffffffffe,%rbp
jne    1420 <kernel_gramschmidt+0x310>
mov    0x48(%rsp),%rbp
mov    0x38(%rsp),%rsi
cmp    %rsi,0x20(%rsp)
jne    1473 <kernel_gramschmidt+0x363>
jmp    1500 <kernel_gramschmidt+0x3f0>
mov    0xc(%rsp),%edi
mov    0x28(%rsp),%rcx
mov    0x18(%rsp),%r9
mov    %rbp,%rsi
test   $0x1,%r9b
jne    14a0 <kernel_gramschmidt+0x390>
imul   $0x2580,%rbp,%r8
lea    (%r10,%r8,1),%rsi
movsd  (%rsi,%r15,8),%xmm0
divsd  (%rax),%xmm0
add    0x10(%rsp),%r8
movsd  %xmm0,(%r8,%r15,8)
lea    0x1(%rbp),%rsi
not    %rbp
cmp    0x80(%rsp),%rbp
je     1500 <kernel_gramschmidt+0x3f0>
mov    %r9,%rbp
sub    %rsi,%rbp
imul   $0x2580,%rsi,%rsi
nopw   0x0(%rax,%rax,1)
movsd  (%rbx,%rsi,1),%xmm0
divsd  (%rax),%xmm0
movsd  %xmm0,(%r14,%rsi,1)
movsd  0x2580(%rbx,%rsi,1),%xmm0
divsd  (%rax),%xmm0
movsd  %xmm0,0x2580(%r14,%rsi,1)
add    $0x4b00,%rsi
add    $0xfffffffffffffffe,%rbp
jne    14c0 <kernel_gramschmidt+0x3b0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,0x60(%rsp)
lea    0x1(%r15),%rax
mov    %rax,0xa0(%rsp)
cmp    %rcx,%rax
jae    11d0 <kernel_gramschmidt+0xc0>
mov    %r15,%rdx
lea    0x1(%r12),%rax
mov    %rax,0xb0(%rsp)
lea    -0x4ae(%r15),%rax
mov    %rax,0xa8(%rsp)
add    $0x2,%r12
mov    %r12,0xb8(%rsp)
mov    0x60(%rsp),%rsi
mov    0x58(%rsp),%r8
xor    %r12d,%r12d
mov    0x50(%rsp),%r15
jmp    1579 <kernel_gramschmidt+0x469>
nopl   0x0(%rax)
add    $0x1,%r15
add    $0x1,%r12
add    $0x8,%r8
add    $0x8,%rsi
cmp    %rcx,%r15
je     11d0 <kernel_gramschmidt+0xc0>
imul   $0x2580,%rdx,%rax
add    0x30(%rsp),%rax
movq   $0x0,(%rax,%r15,8)
test   %edi,%edi
jle    1560 <kernel_gramschmidt+0x450>
lea    (%rax,%r15,8),%rax
cmpq   $0x0,0x20(%rsp)
je     1710 <kernel_gramschmidt+0x600>
xorpd  %xmm0,%xmm0
mov    $0x2580,%ebp
xor    %ebx,%ebx
nopl   0x0(%rax)
movsd  -0x2580(%r14,%rbp,1),%xmm1
da ff ff
mulsd  -0x2580(%r8,%rbp,1),%xmm1
da ff ff
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rax)
movsd  (%r14,%rbp,1),%xmm0
mulsd  (%r8,%rbp,1),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
add    $0x2,%rbx
add    $0x4b00,%rbp
cmp    %rbx,%r13
jne    15b0 <kernel_gramschmidt+0x4a0>
test   $0x1,%r9b
je     161c <kernel_gramschmidt+0x50c>
imul   $0x2580,%rbx,%rbp
mov    0x10(%rsp),%rbx
add    %rbp,%rbx
movsd  (%rbx,%rdx,8),%xmm1
add    %r10,%rbp
mulsd  0x0(%rbp,%r15,8),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
test   %edi,%edi
jle    1560 <kernel_gramschmidt+0x450>
mov    0x10(%rsp),%rbp
mulsd  0x0(%rbp,%rdx,8),%xmm0
movsd  (%r10,%r15,8),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%r10,%r15,8)
cmp    $0x1,%edi
je     1560 <kernel_gramschmidt+0x450>
mov    $0x1,%ebx
cmpq   $0x2,0x20(%rsp)
jae    1725 <kernel_gramschmidt+0x615>
mov    %rbx,%r11
test   $0x1,%r9b
jne    1695 <kernel_gramschmidt+0x585>
imul   $0x2580,%rbx,%rbp
lea    (%r10,%rbp,1),%r9
add    0x10(%rsp),%rbp
movsd  0x0(%rbp,%rdx,8),%xmm0
mulsd  (%rax),%xmm0
movsd  (%r9,%r15,8),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%r9,%r15,8)
mov    0x18(%rsp),%r9
lea    0x1(%rbx),%r11
not    %rbx
cmp    0x80(%rsp),%rbx
je     1560 <kernel_gramschmidt+0x450>
mov    %r9,%rbp
sub    %r11,%rbp
imul   $0x2580,%r11,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x8(%rsi,%rbx,1),%xmm0
movsd  (%r14,%rbx,1),%xmm1
mulsd  (%rax),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsi,%rbx,1)
movsd  0x2588(%rsi,%rbx,1),%xmm0
movsd  0x2580(%r14,%rbx,1),%xmm1
mulsd  (%rax),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x2588(%rsi,%rbx,1)
add    $0x4b00,%rbx
add    $0xfffffffffffffffe,%rbp
jne    16c0 <kernel_gramschmidt+0x5b0>
jmp    1560 <kernel_gramschmidt+0x450>
xorpd  %xmm0,%xmm0
xor    %ebx,%ebx
test   $0x1,%r9b
jne    15f6 <kernel_gramschmidt+0x4e6>
jmp    161c <kernel_gramschmidt+0x50c>
mov    0xa8(%rsp),%rcx
lea    (%rcx,%r12,1),%rbp
mov    0xb0(%rsp),%rcx
lea    (%rcx,%r12,1),%r11
mov    0xb8(%rsp),%rcx
add    %r12,%rcx
mov    %rcx,0xc0(%rsp)
mov    0x30(%rsp),%rcx
lea    0x2580(%r10,%r15,8),%r9
mov    0x78(%rsp),%rdi
lea    (%rdi,%rbp,8),%r10
lea    (%rcx,%r11,8),%r11
mov    0xc0(%rsp),%rdi
lea    (%rcx,%rdi,8),%rbp
cmp    %rbp,%r9
setb   %dil
cmp    %r10,%r11
setb   %cl
cmp    0x68(%rsp),%r9
setb   %r11b
cmp    %r10,0x70(%rsp)
setb   %bpl
test   %cl,%dil
jne    182c <kernel_gramschmidt+0x71c>
and    %bpl,%r11b
mov    0x40(%rsp),%r10
mov    0xc(%rsp),%edi
mov    0x28(%rsp),%rcx
mov    0x18(%rsp),%r9
jne    1659 <kernel_gramschmidt+0x549>
movsd  (%rax),%xmm0
unpcklpd %xmm0,%xmm0
mov    $0x2588,%ebp
mov    0x38(%rsp),%rbx
nopl   0x0(%rax)
movsd  (%rsi,%rbp,1),%xmm1
movhpd 0x2580(%rsi,%rbp,1),%xmm1
movsd  -0x8(%r14,%rbp,1),%xmm2
movhpd 0x2578(%r14,%rbp,1),%xmm2
mulpd  %xmm0,%xmm2
subpd  %xmm2,%xmm1
movlpd %xmm1,(%rsi,%rbp,1)
movhpd %xmm1,0x2580(%rsi,%rbp,1)
add    $0x4b00,%rbp
add    $0xfffffffffffffffe,%rbx
jne    17d0 <kernel_gramschmidt+0x6c0>
mov    0x48(%rsp),%rbx
mov    0x38(%rsp),%rbp
cmp    %rbp,0x20(%rsp)
je     1560 <kernel_gramschmidt+0x450>
jmp    1659 <kernel_gramschmidt+0x549>
mov    0x40(%rsp),%r10
mov    0xc(%rsp),%edi
mov    0x28(%rsp),%rcx
mov    0x18(%rsp),%r9
jmp    1659 <kernel_gramschmidt+0x549>
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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