#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 *);
double *malloc(int);
int /*<<< orphan*/ sla_svdsol_(int *, int *, int *, int *, double *, double *,
                               double *, double *, double *, double *);
void slaSvdsol(int m, int n, int mp, int np, double *b, double *u, double *w,
               double *v, double *work, double *x) {
  int M;
  int N;
  int MP;
  int NP;
  double *B;
  double *U;
  double *W;
  double *V;
  double *WORK;
  double *X;
  int i;
  int j;
  B = malloc(sizeof(double) * (size_t)(m));
  U = malloc(sizeof(double) * (size_t)(mp * np));
  W = malloc(sizeof(double) * (size_t)n);
  V = malloc(sizeof(double) * (size_t)(np * np));
  WORK = malloc(sizeof(double) * (size_t)n);
  X = malloc(sizeof(double) * (size_t)n);
  if (X) {
    M = m;
    N = n;
    MP = mp;
    NP = np;
    for (i = 0; i < m; i++) {
      B[i] = b[i];
      for (j = 0; j < n; j++)
        U[i + mp * j] = u[np * i + j];
    }
    for (i = 0; i < n; i++) {
      W[i] = w[i];
      for (j = 0; j < n; j++)
        V[i + np * j] = v[np * i + j];
    }
    sla_svdsol_(&M, &N, &MP, &NP, (double *)B, (double *)U, (double *)W,
                (double *)V, (double *)WORK, (double *)X);
    for (i = 0; i < n; i++) {
      x[i] = X[i];
      work[i] = WORK[i];
    }
  }
  free(B);
  free(U);
  free(W);
  free(V);
  free(WORK);
  free(X);
}


x86 assembly (clang, -O0):
<slaSvdsol>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x88,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x48(%rbp)
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%eax
imul   -0x18(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x58(%rbp)
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x60(%rbp)
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc@plt>
mov    %rax,-0x68(%rbp)
cmpq   $0x0,-0x68(%rbp)
je     13b7 <slaSvdsol+0x287>
mov    -0xc(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x38(%rbp)
movl   $0x0,-0x6c(%rbp)
mov    -0x6c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    128e <slaSvdsol+0x15e>
mov    -0x20(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x70(%rbp)
mov    -0x70(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    127b <slaSvdsol+0x14b>
mov    -0x28(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x6c(%rbp),%ecx
add    -0x70(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
mov    -0x6c(%rbp),%ecx
mov    -0x14(%rbp),%edx
imul   -0x70(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x70(%rbp)
jmp    1233 <slaSvdsol+0x103>
jmp    1280 <slaSvdsol+0x150>
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    1206 <slaSvdsol+0xd6>
movl   $0x0,-0x6c(%rbp)
mov    -0x6c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    131d <slaSvdsol+0x1ed>
mov    0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x70(%rbp)
mov    -0x70(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    130a <slaSvdsol+0x1da>
mov    0x18(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x6c(%rbp),%ecx
add    -0x70(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
mov    -0x6c(%rbp),%ecx
mov    -0x18(%rbp),%edx
imul   -0x70(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x70(%rbp)
jmp    12c2 <slaSvdsol+0x192>
jmp    130f <slaSvdsol+0x1df>
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    1295 <slaSvdsol+0x165>
mov    -0x40(%rbp),%r8
mov    -0x48(%rbp),%r9
mov    -0x50(%rbp),%rbx
mov    -0x58(%rbp),%r11
mov    -0x60(%rbp),%r10
mov    -0x68(%rbp),%rax
lea    -0x2c(%rbp),%rdi
lea    -0x30(%rbp),%rsi
lea    -0x34(%rbp),%rdx
lea    -0x38(%rbp),%rcx
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1050 <sla_svdsol_@plt>
movl   $0x0,-0x6c(%rbp)
mov    -0x6c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    13b2 <slaSvdsol+0x282>
mov    -0x68(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    1364 <slaSvdsol+0x234>
jmp    13b7 <slaSvdsol+0x287>
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    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    -0x68(%rbp),%rdi
call   1030 <free@plt>
add    $0x88,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<slaSvdsol>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %r9,0x48(%rsp)
mov    %r8,0x58(%rsp)
mov    %ecx,%r13d
mov    %edx,%r15d
mov    %esi,%r14d
mov    %edi,%r12d
lea    0x0(,%r12,8),%edi
call   1050 <malloc@plt>
mov    %rax,0x30(%rsp)
mov    %r15d,%edi
imul   %r13d,%edi
shl    $0x3,%edi
call   1050 <malloc@plt>
mov    %rax,0x8(%rsp)
lea    0x0(,%r14,8),%ebp
mov    %ebp,%edi
call   1050 <malloc@plt>
mov    %rax,0x28(%rsp)
mov    %r13d,%edi
imul   %r13d,%edi
shl    $0x3,%edi
call   1050 <malloc@plt>
mov    %rax,0x40(%rsp)
mov    %ebp,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    %ebp,%edi
call   1050 <malloc@plt>
test   %rax,%rax
je     1678 <slaSvdsol+0x538>
mov    %rax,0x60(%rsp)
mov    %rbx,0x68(%rsp)
mov    %r12d,0x24(%rsp)
mov    %r14d,0x20(%rsp)
mov    %r15d,0x1c(%rsp)
mov    %r13d,0x18(%rsp)
movslq %r13d,%rax
mov    %rax,0x38(%rsp)
mov    %r14,0x10(%rsp)
mov    %r14d,%r13d
test   %r12d,%r12d
jle    146d <slaSvdsol+0x32d>
movslq %r15d,%rbx
mov    %r12d,%eax
mov    %rax,0xa0(%rsp)
lea    0x0(,%rax,8),%rdx
mov    0x30(%rsp),%rdi
mov    0x58(%rsp),%rsi
call   1040 <memcpy@plt>
mov    %r13d,%eax
and    $0xfffffffc,%eax
mov    %rax,0x90(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,0x88(%rsp)
mov    %rax,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
cmpl   $0x4,0x10(%rsp)
setae  %al
cmp    $0x1,%r15d
sete   %dl
and    %al,%dl
mov    %dl,0x58(%rsp)
mov    %rcx,%rax
mov    %rcx,0x80(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0x70(%rsp)
mov    %r13,%rax
neg    %rax
mov    %rax,0x98(%rsp)
mov    0x48(%rsp),%rcx
lea    0x30(%rcx),%rsi
mov    0x38(%rsp),%rax
lea    0x0(,%rax,8),%r14
mov    %rbx,%rdi
shl    $0x5,%rdi
mov    0x8(%rsp),%rbp
add    $0x10,%rbp
mov    %rbx,%r15
shl    $0x6,%r15
mov    %rbx,%r12
shl    $0x4,%r12
lea    0x8(%rcx),%r9
mov    %rbx,0x50(%rsp)
lea    0x0(,%rbx,8),%rax
mov    %rax,0x78(%rsp)
xor    %r10d,%r10d
xor    %r11d,%r11d
jmp    1300 <slaSvdsol+0x1c0>
nopl   0x0(%rax)
add    $0x1,%r11
add    %r14,%rsi
add    $0x8,%rbp
add    %r14,%r9
add    $0x8,%r10
cmp    0xa0(%rsp),%r11
je     146d <slaSvdsol+0x32d>
cmpl   $0x0,0x10(%rsp)
jle    12e0 <slaSvdsol+0x1a0>
mov    %r11,%r8
imul   0x38(%rsp),%r8
cmpb   $0x0,0x58(%rsp)
je     13c0 <slaSvdsol+0x280>
cmpq   $0x0,0x88(%rsp)
je     1458 <slaSvdsol+0x318>
mov    0x70(%rsp),%rbx
mov    %rbp,%rax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movups -0x30(%rsi,%rcx,8),%xmm0
movups -0x20(%rsi,%rcx,8),%xmm1
movups %xmm0,-0x10(%rax)
movups %xmm1,(%rax)
movups -0x10(%rsi,%rcx,8),%xmm0
movups (%rsi,%rcx,8),%xmm1
movups %xmm0,-0x10(%rax,%rdi,1)
movups %xmm1,(%rax,%rdi,1)
add    $0x8,%rcx
add    %r15,%rax
add    $0xfffffffffffffffe,%rbx
jne    1340 <slaSvdsol+0x200>
testb  $0x1,0x80(%rsp)
01
je     13a3 <slaSvdsol+0x263>
lea    (%rcx,%r8,1),%rax
mov    0x48(%rsp),%rdx
movups (%rdx,%rax,8),%xmm0
movups 0x10(%rdx,%rax,8),%xmm1
imul   0x50(%rsp),%rcx
add    %r11,%rcx
mov    0x8(%rsp),%rax
movups %xmm0,(%rax,%rcx,8)
movups %xmm1,0x10(%rax,%rcx,8)
mov    0x90(%rsp),%rax
mov    %rax,%rbx
cmp    %r13,%rax
je     12e0 <slaSvdsol+0x1a0>
jmp    13c2 <slaSvdsol+0x282>
nopl   0x0(%rax)
xor    %ebx,%ebx
mov    %rbx,%rcx
test   $0x1,%r13b
je     13f6 <slaSvdsol+0x2b6>
add    %rbx,%r8
mov    0x48(%rsp),%rax
movsd  (%rax,%r8,8),%xmm0
mov    %rbx,%rax
imul   0x50(%rsp),%rax
add    %r11,%rax
mov    0x8(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
mov    %rbx,%rcx
or     $0x1,%rcx
not    %rbx
cmp    0x98(%rsp),%rbx
je     12e0 <slaSvdsol+0x1a0>
mov    0x50(%rsp),%rbx
imul   %rcx,%rbx
add    %r11,%rbx
lea    0x1(%rcx),%rax
imul   0x78(%rsp),%rax
add    %r10,%rax
mov    0x8(%rsp),%rdx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  -0x8(%r9,%rcx,8),%xmm0
movsd  %xmm0,(%rdx,%rbx,8)
movsd  (%r9,%rcx,8),%xmm0
movsd  %xmm0,(%rdx,%rax,1)
add    $0x2,%rcx
add    %r12,%rdx
cmp    %rcx,%r13
jne    1430 <slaSvdsol+0x2f0>
jmp    12e0 <slaSvdsol+0x1a0>
xor    %ecx,%ecx
testb  $0x1,0x80(%rsp)
01
jne    137a <slaSvdsol+0x23a>
jmp    13a3 <slaSvdsol+0x263>
cmpl   $0x0,0x10(%rsp)
jle    163a <slaSvdsol+0x4fa>
mov    0xf0(%rsp),%r12
mov    0xe8(%rsp),%r15
mov    0xe0(%rsp),%rsi
lea    0x0(,%r13,8),%rdx
mov    0x28(%rsp),%rdi
call   1040 <memcpy@plt>
mov    0x10(%rsp),%r11
mov    %r13d,%eax
and    $0xfffffffe,%eax
lea    0x8(%r15),%rcx
mov    0x38(%rsp),%rsi
lea    0x0(,%rsi,8),%rdx
shl    $0x4,%rsi
xor    %r9d,%r9d
mov    0x40(%rsp),%r10
mov    %r10,%r14
mov    0x30(%rsp),%r8
jmp    14f0 <slaSvdsol+0x3b0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%r9
add    %rdx,%rcx
add    $0x8,%r14
cmp    %r13,%r9
je     155c <slaSvdsol+0x41c>
cmp    $0x1,%r11d
jne    1500 <slaSvdsol+0x3c0>
xor    %ebx,%ebx
jmp    1532 <slaSvdsol+0x3f2>
nopw   0x0(%rax,%rax,1)
mov    %r14,%rbp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  -0x8(%rcx,%rbx,8),%xmm0
movsd  %xmm0,0x0(%rbp)
movsd  (%rcx,%rbx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rdx,1)
add    $0x2,%rbx
add    %rsi,%rbp
cmp    %rbx,%rax
jne    1510 <slaSvdsol+0x3d0>
test   $0x1,%r13b
je     14e0 <slaSvdsol+0x3a0>
mov    %r9,%rdi
mov    0x38(%rsp),%rbp
imul   %rbp,%rdi
add    %rbx,%rdi
movsd  (%r15,%rdi,8),%xmm0
imul   %rbp,%rbx
add    %r9,%rbx
movsd  %xmm0,(%r10,%rbx,8)
jmp    14e0 <slaSvdsol+0x3a0>
lea    0x24(%rsp),%rdi
lea    0x20(%rsp),%rsi
lea    0x1c(%rsp),%rdx
lea    0x18(%rsp),%rcx
mov    0x8(%rsp),%r9
mov    0x60(%rsp),%rbp
push   %rbp
mov    0x70(%rsp),%rbx
push   %rbx
push   %r10
push   0x40(%rsp)
call   1060 <sla_svdsol_@plt>
mov    0x30(%rsp),%rcx
mov    %rbp,%rax
add    $0x20,%rsp
test   %ecx,%ecx
mov    0xf8(%rsp),%rbp
jle    1678 <slaSvdsol+0x538>
cmp    $0x4,%ecx
jb     15ce <slaSvdsol+0x48e>
lea    (%r12,%r13,8),%rcx
cmp    %rbp,%rcx
jbe    16c5 <slaSvdsol+0x585>
lea    0x0(,%r13,8),%rcx
add    %rbp,%rcx
cmp    %r12,%rcx
jbe    16c5 <slaSvdsol+0x585>
xor    %edi,%edi
mov    %rdi,%rcx
not    %rcx
test   $0x1,%r13b
je     15f6 <slaSvdsol+0x4b6>
movsd  (%rax,%rdi,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rdi,8)
movsd  (%rbx,%rdi,8),%xmm0
movsd  %xmm0,(%r12,%rdi,8)
or     $0x1,%rdi
add    %r13,%rcx
je     1678 <slaSvdsol+0x538>
nopl   0x0(%rax,%rax,1)
movsd  (%rax,%rdi,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rdi,8)
movsd  (%rbx,%rdi,8),%xmm0
movsd  %xmm0,(%r12,%rdi,8)
movsd  0x8(%rax,%rdi,8),%xmm0
movsd  %xmm0,0x8(%rbp,%rdi,8)
movsd  0x8(%rbx,%rdi,8),%xmm0
movsd  %xmm0,0x8(%r12,%rdi,8)
add    $0x2,%rdi
cmp    %rdi,%r13
jne    1600 <slaSvdsol+0x4c0>
jmp    1678 <slaSvdsol+0x538>
lea    0x24(%rsp),%rdi
lea    0x20(%rsp),%rsi
lea    0x1c(%rsp),%rdx
lea    0x18(%rsp),%rcx
mov    0x30(%rsp),%r8
mov    0x8(%rsp),%r9
mov    0x60(%rsp),%rbp
push   %rbp
mov    0x70(%rsp),%rbx
push   %rbx
push   0x50(%rsp)
push   0x40(%rsp)
call   1060 <sla_svdsol_@plt>
mov    %rbp,%rax
add    $0x20,%rsp
mov    %rax,%rbp
mov    0x30(%rsp),%rdi
call   1030 <free@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    0x28(%rsp),%rdi
call   1030 <free@plt>
mov    0x40(%rsp),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r13d,%edi
and    $0xfffffffc,%edi
lea    -0x4(%rdi),%rcx
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rcx,%rcx
je     1785 <slaSvdsol+0x645>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %ecx,%ecx
nopl   0x0(%rax)
movups (%rax,%rcx,8),%xmm0
movups 0x10(%rax,%rcx,8),%xmm1
movups %xmm0,0x0(%rbp,%rcx,8)
movups %xmm1,0x10(%rbp,%rcx,8)
movups (%rbx,%rcx,8),%xmm0
movups 0x10(%rbx,%rcx,8),%xmm1
movups %xmm0,(%r12,%rcx,8)
movups %xmm1,0x10(%r12,%rcx,8)
movups 0x20(%rax,%rcx,8),%xmm0
movups 0x30(%rax,%rcx,8),%xmm1
movups %xmm0,0x20(%rbp,%rcx,8)
movups %xmm1,0x30(%rbp,%rcx,8)
movups 0x20(%rbx,%rcx,8),%xmm0
movups 0x30(%rbx,%rcx,8),%xmm1
movups %xmm0,0x20(%r12,%rcx,8)
movups %xmm1,0x30(%r12,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rsi
jne    16f0 <slaSvdsol+0x5b0>
test   $0x1,%dl
je     1777 <slaSvdsol+0x637>
movups (%rax,%rcx,8),%xmm0
movups 0x10(%rax,%rcx,8),%xmm1
movups %xmm0,0x0(%rbp,%rcx,8)
movups %xmm1,0x10(%rbp,%rcx,8)
movups (%rbx,%rcx,8),%xmm0
movups 0x10(%rbx,%rcx,8),%xmm1
movups %xmm0,(%r12,%rcx,8)
movups %xmm1,0x10(%r12,%rcx,8)
cmp    %r13,%rdi
je     1678 <slaSvdsol+0x538>
jmp    15d0 <slaSvdsol+0x490>
xor    %ecx,%ecx
test   $0x1,%dl
jne    1750 <slaSvdsol+0x610>
jmp    1777 <slaSvdsol+0x637>

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

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