#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(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ qrdecomp_hh(double *, int, double *, int /*<<< orphan*/ *,
                               int /*<<< orphan*/, int /*<<< orphan*/ *, int,
                               int);
int /*<<< orphan*/ qrsolve_hh(double *, int, double *, double *, int, int, int,
                              int);
void polyfit(const double *_x, const double *_y, int _n, double *_c, int _deg) {
  int m;
  double *x;
  int j;
  int i;
  m = _deg + 1;
  x = (double *)malloc(sizeof(*x) * _n * m);
  for (j = 0; j < _n; j++) {
    x[j * m + 0] = 1;
    for (i = 1; i < m; i++) {
      x[j * m + i] = x[j * m + i - 1] * _x[j];
    }
  }
  {
    double *qrt;
    double *d;
    double *b;
    qrt = (double *)malloc(sizeof(*qrt) * _n * m);
    d = (double *)malloc(sizeof(*d) * ((m) > (_n) ? (_n) : (m)));
    for (j = 0; j < _n; j++) {
      for (i = 0; i < m; i++) {
        qrt[i * _n + j] = x[j * m + i];
      }
    }
    qrdecomp_hh(qrt, _n, d, NULL, 0, NULL, m, _n);
    b = (double *)malloc(sizeof(*b) * _n);
    for (j = 0; j < _n; j++) {
      b[j] = _y[j];
    }
    qrsolve_hh(qrt, _n, d, b, _n, m, _n, 1);
    for (j = 0; j < m; j++) {
      _c[j] = b[j];
    }
    free(qrt);
    free(d);
    free(b);
  }
  free(x);
}


x86 assembly (clang, -O0):
<polyfit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
movslq -0x28(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1220 <polyfit+0xe0>
mov    -0x30(%rbp),%rax
mov    -0x34(%rbp),%ecx
imul   -0x28(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  0xe55(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    120d <polyfit+0xcd>
mov    -0x30(%rbp),%rax
mov    -0x34(%rbp),%ecx
imul   -0x28(%rbp),%ecx
add    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x34(%rbp),%ecx
imul   -0x28(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11b7 <polyfit+0x77>
jmp    1212 <polyfit+0xd2>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1186 <polyfit+0x46>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
movslq -0x28(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x14(%rbp),%eax
jle    1252 <polyfit+0x112>
mov    -0x14(%rbp),%eax
mov    %eax,-0x54(%rbp)
jmp    1258 <polyfit+0x118>
mov    -0x28(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12df <polyfit+0x19f>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    12cc <polyfit+0x18c>
mov    -0x30(%rbp),%rax
mov    -0x34(%rbp),%ecx
imul   -0x28(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1286 <polyfit+0x146>
jmp    12d1 <polyfit+0x191>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1273 <polyfit+0x133>
mov    -0x40(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x48(%rbp),%rdx
mov    -0x28(%rbp),%r10d
mov    -0x14(%rbp),%eax
xor    %ecx,%ecx
mov    %ecx,%r9d
xor    %r8d,%r8d
mov    %r9,%rcx
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1060 <qrdecomp_hh@plt>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1357 <polyfit+0x217>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1323 <polyfit+0x1e3>
mov    -0x40(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x48(%rbp),%rdx
mov    -0x50(%rbp),%rcx
mov    -0x14(%rbp),%r8d
mov    -0x28(%rbp),%r9d
mov    -0x14(%rbp),%eax
mov    %eax,(%rsp)
movl   $0x1,0x8(%rsp)
call   1040 <qrsolve_hh@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    13bc <polyfit+0x27c>
mov    -0x50(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1388 <polyfit+0x248>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<polyfit>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rcx,0x40(%rsp)
mov    %edx,%ebp
mov    %rsi,%r13
mov    %rdi,%r15
mov    %r8,0x18(%rsp)
lea    0x1(%r8),%ebx
lea    0x0(,%rbp,8),%eax
mov    %ebx,%edi
mov    %eax,0x24(%rsp)
imul   %eax,%edi
mov    %edi,0x8(%rsp)
call   1050 <malloc@plt>
movslq %ebx,%r14
mov    %ebp,%r12d
mov    %rbx,0x30(%rsp)
mov    %ebx,%ecx
mov    %rcx,0x10(%rsp)
mov    %rbp,0x28(%rsp)
test   %ebp,%ebp
jle    127a <polyfit+0x13a>
lea    0x0(,%r14,8),%r10
mov    0x10(%rsp),%rdx
lea    -0x1(%rdx),%rcx
lea    -0x2(%rdx),%r8
mov    %ecx,%esi
and    $0x3,%esi
and    $0xfffffffffffffffc,%rcx
lea    0x20(%rax),%rdi
xor    %ebx,%ebx
movabs $0x3ff0000000000000,%r9
mov    %rax,%r11
jmp    11e3 <polyfit+0xa3>
nop
add    $0x1,%rbx
add    %r10,%rdi
add    %r10,%r11
cmp    %r12,%rbx
je     127a <polyfit+0x13a>
mov    %rbx,%rdx
imul   %r14,%rdx
mov    %r9,(%rax,%rdx,8)
cmpl   $0x0,0x18(%rsp)
jle    11d0 <polyfit+0x90>
mov    %r10,%rdx
imul   %rbx,%rdx
movsd  (%rax,%rdx,1),%xmm0
mov    $0x1,%ebp
cmp    $0x3,%r8
jb     124c <polyfit+0x10c>
xor    %ebp,%ebp
xchg   %ax,%ax
mulsd  (%r15,%rbx,8),%xmm0
movsd  %xmm0,-0x18(%rdi,%rbp,8)
mulsd  (%r15,%rbx,8),%xmm0
movsd  %xmm0,-0x10(%rdi,%rbp,8)
mulsd  (%r15,%rbx,8),%xmm0
movsd  %xmm0,-0x8(%rdi,%rbp,8)
mulsd  (%r15,%rbx,8),%xmm0
movsd  %xmm0,(%rdi,%rbp,8)
add    $0x4,%rbp
cmp    %rbp,%rcx
jne    1210 <polyfit+0xd0>
add    $0x1,%rbp
test   %rsi,%rsi
je     11d0 <polyfit+0x90>
lea    (%r11,%rbp,8),%rbp
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
mulsd  (%r15,%rbx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rdx,8)
add    $0x1,%rdx
cmp    %rdx,%rsi
jne    1260 <polyfit+0x120>
jmp    11d0 <polyfit+0x90>
mov    0x8(%rsp),%edi
mov    %rax,0x38(%rsp)
call   1050 <malloc@plt>
mov    %rax,%r15
mov    0x30(%rsp),%rax
mov    0x28(%rsp),%rbx
cmp    %ebx,%eax
mov    %eax,%edi
cmovg  %ebx,%edi
shl    $0x3,%edi
call   1050 <malloc@plt>
mov    0x38(%rsp),%r10
mov    %rax,0x8(%rsp)
test   %ebx,%ebx
mov    0x10(%rsp),%r11
jle    1357 <polyfit+0x217>
mov    %r11d,%eax
and    $0xfffffffe,%eax
mov    %r10,%rcx
add    $0x8,%rcx
lea    0x0(,%r14,8),%r8
mov    %r12,%rsi
shl    $0x4,%rsi
xor    %edx,%edx
mov    %r15,%r9
jmp    12f0 <polyfit+0x1b0>
xchg   %ax,%ax
add    $0x1,%rdx
add    %r8,%rcx
add    $0x8,%r9
cmp    %r12,%rdx
je     1357 <polyfit+0x217>
cmpl   $0x0,0x18(%rsp)
js     12e0 <polyfit+0x1a0>
je     1330 <polyfit+0x1f0>
mov    %r9,%rbx
xor    %ebp,%ebp
xchg   %ax,%ax
movsd  -0x8(%rcx,%rbp,8),%xmm0
movsd  %xmm0,(%rbx)
movsd  (%rcx,%rbp,8),%xmm0
movsd  %xmm0,(%rbx,%r12,8)
add    $0x2,%rbp
add    %rsi,%rbx
cmp    %rbp,%rax
jne    1300 <polyfit+0x1c0>
test   $0x1,%r11b
je     12e0 <polyfit+0x1a0>
jmp    1338 <polyfit+0x1f8>
nopl   0x0(%rax)
xor    %ebp,%ebp
test   $0x1,%r11b
je     12e0 <polyfit+0x1a0>
mov    %rdx,%rdi
imul   %r14,%rdi
add    %rbp,%rdi
movsd  (%r10,%rdi,8),%xmm0
imul   %r12,%rbp
add    %rdx,%rbp
movsd  %xmm0,(%r15,%rbp,8)
jmp    12e0 <polyfit+0x1a0>
mov    %r15,%r14
mov    %r15,%rdi
mov    0x28(%rsp),%rbp
mov    %ebp,%esi
mov    0x8(%rsp),%rdx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   %rbp
mov    0x38(%rsp),%rbx
push   %rbx
call   1060 <qrdecomp_hh@plt>
add    $0x10,%rsp
mov    0x24(%rsp),%edi
call   1050 <malloc@plt>
mov    %rax,%r15
test   %ebp,%ebp
jle    1526 <polyfit+0x3e6>
cmp    $0x4,%ebp
jb     13bb <polyfit+0x27b>
lea    0x0(,%r12,8),%rax
add    %r13,%rax
cmp    %rax,%r15
jae    1445 <polyfit+0x305>
lea    (%r15,%r12,8),%rax
cmp    %r13,%rax
jbe    1445 <polyfit+0x305>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
add    %r12,%rcx
mov    %r12,%rdx
and    $0x3,%rdx
je     13e7 <polyfit+0x2a7>
nop
movsd  0x0(%r13,%rax,8),%xmm0
movsd  %xmm0,(%r15,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rdx
jne    13d0 <polyfit+0x290>
cmp    $0x3,%rcx
jb     1526 <polyfit+0x3e6>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0x0(%r13,%rax,8),%xmm0
movsd  %xmm0,(%r15,%rax,8)
movsd  0x8(%r13,%rax,8),%xmm0
movsd  %xmm0,0x8(%r15,%rax,8)
movsd  0x10(%r13,%rax,8),%xmm0
movsd  %xmm0,0x10(%r15,%rax,8)
movsd  0x18(%r13,%rax,8),%xmm0
movsd  %xmm0,0x18(%r15,%rax,8)
add    $0x4,%rax
cmp    %rax,%r12
jne    1400 <polyfit+0x2c0>
jmp    1526 <polyfit+0x3e6>
mov    %r12d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %edx,%ecx
and    $0x3,%ecx
cmp    $0xc,%rsi
jae    1469 <polyfit+0x329>
xor    %esi,%esi
jmp    14db <polyfit+0x39b>
and    $0xfffffffffffffffc,%rdx
xor    %esi,%esi
nop
movups 0x0(%r13,%rsi,8),%xmm0
movups 0x10(%r13,%rsi,8),%xmm1
movups %xmm0,(%r15,%rsi,8)
movups %xmm1,0x10(%r15,%rsi,8)
movups 0x20(%r13,%rsi,8),%xmm0
movups 0x30(%r13,%rsi,8),%xmm1
movups %xmm0,0x20(%r15,%rsi,8)
movups %xmm1,0x30(%r15,%rsi,8)
movups 0x40(%r13,%rsi,8),%xmm0
movups 0x50(%r13,%rsi,8),%xmm1
movups %xmm0,0x40(%r15,%rsi,8)
movups %xmm1,0x50(%r15,%rsi,8)
movupd 0x60(%r13,%rsi,8),%xmm0
movups 0x70(%r13,%rsi,8),%xmm1
movupd %xmm0,0x60(%r15,%rsi,8)
movups %xmm1,0x70(%r15,%rsi,8)
add    $0x10,%rsi
add    $0xfffffffffffffffc,%rdx
jne    1470 <polyfit+0x330>
test   %rcx,%rcx
je     151d <polyfit+0x3dd>
lea    (%r15,%rsi,8),%rdx
add    $0x10,%rdx
lea    0x10(,%rsi,8),%rsi
add    %r13,%rsi
shl    $0x5,%rcx
xor    %edi,%edi
nopl   0x0(%rax)
movupd -0x10(%rsi,%rdi,1),%xmm0
movups (%rsi,%rdi,1),%xmm1
movupd %xmm0,-0x10(%rdx,%rdi,1)
movups %xmm1,(%rdx,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rcx
jne    1500 <polyfit+0x3c0>
cmp    %r12,%rax
jne    13bd <polyfit+0x27d>
mov    %r14,%rdi
mov    %ebp,%esi
mov    0x8(%rsp),%rdx
mov    %r15,%rcx
mov    %ebp,%r8d
mov    %ebx,%r9d
push   $0x1
push   %rbp
call   1040 <qrsolve_hh@plt>
add    $0x10,%rsp
cmpl   $0x0,0x18(%rsp)
mov    %rbx,%rax
mov    0x40(%rsp),%rbp
mov    0x10(%rsp),%rbx
js     16e6 <polyfit+0x5a6>
cmp    $0x4,%eax
jb     1583 <polyfit+0x443>
lea    (%r15,%rbx,8),%rax
cmp    %rbp,%rax
jbe    1601 <polyfit+0x4c1>
lea    0x0(,%rbx,8),%rax
add    %rbp,%rax
cmp    %rax,%r15
jae    1601 <polyfit+0x4c1>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
add    %rbx,%rcx
mov    %rbx,%rdx
and    $0x3,%rdx
je     15b6 <polyfit+0x476>
nopw   0x0(%rax,%rax,1)
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rdx
jne    15a0 <polyfit+0x460>
cmp    $0x3,%rcx
jb     16e6 <polyfit+0x5a6>
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
movsd  0x8(%r15,%rax,8),%xmm0
movsd  %xmm0,0x8(%rbp,%rax,8)
movsd  0x10(%r15,%rax,8),%xmm0
movsd  %xmm0,0x10(%rbp,%rax,8)
movsd  0x18(%r15,%rax,8),%xmm0
movsd  %xmm0,0x18(%rbp,%rax,8)
add    $0x4,%rax
cmp    %rax,%rbx
jne    15c0 <polyfit+0x480>
jmp    16e6 <polyfit+0x5a6>
mov    %ebx,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %edx,%ecx
and    $0x3,%ecx
cmp    $0xc,%rsi
jae    1624 <polyfit+0x4e4>
xor    %esi,%esi
jmp    1693 <polyfit+0x553>
and    $0xfffffffffffffffc,%rdx
xor    %esi,%esi
nopw   0x0(%rax,%rax,1)
movups (%r15,%rsi,8),%xmm0
movups 0x10(%r15,%rsi,8),%xmm1
movups %xmm0,0x0(%rbp,%rsi,8)
movups %xmm1,0x10(%rbp,%rsi,8)
movups 0x20(%r15,%rsi,8),%xmm0
movups 0x30(%r15,%rsi,8),%xmm1
movups %xmm0,0x20(%rbp,%rsi,8)
movups %xmm1,0x30(%rbp,%rsi,8)
movups 0x40(%r15,%rsi,8),%xmm0
movups 0x50(%r15,%rsi,8),%xmm1
movups %xmm0,0x40(%rbp,%rsi,8)
movups %xmm1,0x50(%rbp,%rsi,8)
movupd 0x60(%r15,%rsi,8),%xmm0
movups 0x70(%r15,%rsi,8),%xmm1
movupd %xmm0,0x60(%rbp,%rsi,8)
movups %xmm1,0x70(%rbp,%rsi,8)
add    $0x10,%rsi
add    $0xfffffffffffffffc,%rdx
jne    1630 <polyfit+0x4f0>
test   %rcx,%rcx
je     16dd <polyfit+0x59d>
lea    0x10(,%rsi,8),%rdx
add    %rbp,%rdx
lea    (%r15,%rsi,8),%rsi
add    $0x10,%rsi
shl    $0x5,%rcx
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd -0x10(%rsi,%rdi,1),%xmm0
movups (%rsi,%rdi,1),%xmm1
movupd %xmm0,-0x10(%rdx,%rdi,1)
movups %xmm1,(%rdx,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rcx
jne    16c0 <polyfit+0x580>
cmp    %rbx,%rax
jne    1585 <polyfit+0x445>
mov    %r14,%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    0x38(%rsp),%rdi
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

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

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