#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 *dvector(int /*<<< orphan*/, int);
int /*<<< orphan*/ free_dvector(double *, int /*<<< orphan*/, int);
int /*<<< orphan*/ lu_backsub(double **, int, int *, double *);
void lu_polish(double **a, double **lua, int n, double *b, double *x,
               int *pivx) {
  int i, j;
  double *r, R[10];
  if (n <= 10)
    r = R;
  else
    r = dvector(0, n - 1);
  for (i = 0; i < n; i++) {
    double sum;
    sum = -b[i];
    for (j = 0; j < n; j++)
      sum += a[i][j] * x[j];
    r[i] = sum;
  }
  lu_backsub(lua, n, pivx, r);
  for (i = 0; i < n; i++)
    x[i] -= r[i];
  if (r != R)
    free_dvector(r, 0, n - 1);
}


x86 assembly (clang, -O0):
<lu_polish>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
cmpl   $0xa,-0x14(%rbp)
jg     116c <lu_polish+0x3c>
lea    -0x90(%rbp),%rax
mov    %rax,-0x40(%rbp)
jmp    117d <lu_polish+0x4d>
mov    -0x14(%rbp),%esi
sub    $0x1,%esi
xor    %edi,%edi
call   1040 <dvector@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    123a <lu_polish+0x10a>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1217 <lu_polish+0xe7>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11c3 <lu_polish+0x93>
movsd  -0x98(%rbp),%xmm0
ff
mov    -0x40(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1184 <lu_polish+0x54>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x30(%rbp),%rdx
mov    -0x40(%rbp),%rcx
call   1030 <lu_backsub@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1292 <lu_polish+0x162>
mov    -0x40(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1255 <lu_polish+0x125>
mov    -0x40(%rbp),%rax
lea    -0x90(%rbp),%rcx
cmp    %rcx,%rax
je     12b7 <lu_polish+0x187>
mov    -0x40(%rbp),%rdi
mov    -0x14(%rbp),%edx
sub    $0x1,%edx
xor    %esi,%esi
call   1050 <free_dvector@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lu_polish>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r8,%rbx
mov    %rcx,%r14
mov    %edx,%ebp
mov    %rsi,%r11
mov    %rdi,%r12
cmp    $0xb,%edx
jge    115e <lu_polish+0x2e>
test   %ebp,%ebp
jle    1405 <lu_polish+0x2d5>
mov    %rsp,%r15
jmp    1177 <lu_polish+0x47>
lea    -0x1(%rbp),%esi
xor    %edi,%edi
mov    %r9,%r15
mov    %r11,%r13
call   1040 <dvector@plt>
mov    %r13,%r11
mov    %r15,%r9
mov    %rax,%r15
mov    %rbp,%r10
mov    %ebp,%r13d
lea    -0x1(%r13),%r8
mov    %r13d,%ecx
and    $0x3,%ecx
mov    %r13d,%edx
and    $0xfffffffc,%edx
xor    %esi,%esi
movapd 0xe69(%rip),%xmm0
jmp    11b3 <lu_polish+0x83>
nopl   0x0(%rax)
movsd  %xmm1,(%r15,%rsi,8)
add    $0x1,%rsi
cmp    %r13,%rsi
je     124c <lu_polish+0x11c>
movsd  (%r14,%rsi,8),%xmm1
xorpd  %xmm0,%xmm1
mov    (%r12,%rsi,8),%rdi
xor    %ebp,%ebp
cmp    $0x3,%r8
jb     1217 <lu_polish+0xe7>
nopl   0x0(%rax)
movsd  (%rdi,%rbp,8),%xmm2
movsd  0x8(%rdi,%rbp,8),%xmm3
mulsd  (%rbx,%rbp,8),%xmm2
mulsd  0x8(%rbx,%rbp,8),%xmm3
addsd  %xmm1,%xmm2
movsd  0x10(%rdi,%rbp,8),%xmm4
mulsd  0x10(%rbx,%rbp,8),%xmm4
addsd  %xmm2,%xmm3
movsd  0x18(%rdi,%rbp,8),%xmm1
mulsd  0x18(%rbx,%rbp,8),%xmm1
addsd  %xmm3,%xmm4
addsd  %xmm4,%xmm1
add    $0x4,%rbp
cmp    %rbp,%rdx
jne    11d0 <lu_polish+0xa0>
test   %rcx,%rcx
je     11a0 <lu_polish+0x70>
lea    (%rbx,%rbp,8),%rax
lea    (%rdi,%rbp,8),%rdi
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
movsd  (%rdi,%rbp,8),%xmm2
mulsd  (%rax,%rbp,8),%xmm2
addsd  %xmm2,%xmm1
add    $0x1,%rbp
cmp    %rbp,%rcx
jne    1230 <lu_polish+0x100>
jmp    11a0 <lu_polish+0x70>
mov    %r11,%rdi
mov    %r10,%rbp
mov    %ebp,%esi
mov    %r9,%rdx
mov    %r15,%rcx
call   1030 <lu_backsub@plt>
cmp    $0x4,%ebp
jb     127e <lu_polish+0x14e>
lea    (%r15,%r13,8),%rax
cmp    %rbx,%rax
jbe    1327 <lu_polish+0x1f7>
lea    (%rbx,%r13,8),%rax
cmp    %rax,%r15
jae    1327 <lu_polish+0x1f7>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
add    %r13,%rcx
mov    %r13,%rdx
and    $0x3,%rdx
je     12ba <lu_polish+0x18a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rbx,%rax,8),%xmm0
subsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rdx
jne    12a0 <lu_polish+0x170>
cmp    $0x3,%rcx
jb     13ec <lu_polish+0x2bc>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%rbx,%rax,8),%xmm0
subsd  (%r15,%rax,8),%xmm0
movsd  0x8(%rbx,%rax,8),%xmm1
movsd  %xmm0,(%rbx,%rax,8)
subsd  0x8(%r15,%rax,8),%xmm1
movsd  %xmm1,0x8(%rbx,%rax,8)
movsd  0x10(%rbx,%rax,8),%xmm0
subsd  0x10(%r15,%rax,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rax,8)
movsd  0x18(%rbx,%rax,8),%xmm0
subsd  0x18(%r15,%rax,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rax,8)
add    $0x4,%rax
cmp    %rax,%r13
jne    12d0 <lu_polish+0x1a0>
jmp    13ec <lu_polish+0x2bc>
mov    %r13d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rcx
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rcx,%rcx
je     1424 <lu_polish+0x2f4>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %ecx,%ecx
xchg   %ax,%ax
movupd (%r15,%rcx,8),%xmm0
movupd 0x10(%r15,%rcx,8),%xmm1
movupd (%rbx,%rcx,8),%xmm2
subpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rcx,8),%xmm0
subpd  %xmm1,%xmm0
movupd 0x20(%rbx,%rcx,8),%xmm1
movupd 0x30(%rbx,%rcx,8),%xmm3
movupd %xmm2,(%rbx,%rcx,8)
movupd %xmm0,0x10(%rbx,%rcx,8)
movupd 0x20(%r15,%rcx,8),%xmm0
subpd  %xmm0,%xmm1
movupd 0x30(%r15,%rcx,8),%xmm0
subpd  %xmm0,%xmm3
movupd %xmm1,0x20(%rbx,%rcx,8)
movupd %xmm3,0x30(%rbx,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rsi
jne    1350 <lu_polish+0x220>
test   $0x1,%dl
je     13e3 <lu_polish+0x2b3>
movupd (%r15,%rcx,8),%xmm0
movupd 0x10(%r15,%rcx,8),%xmm1
movupd (%rbx,%rcx,8),%xmm2
subpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rcx,8),%xmm0
subpd  %xmm1,%xmm0
movupd %xmm2,(%rbx,%rcx,8)
movupd %xmm0,0x10(%rbx,%rcx,8)
cmp    %r13,%rax
jne    1280 <lu_polish+0x150>
mov    %rsp,%rax
cmp    %rax,%r15
je     1415 <lu_polish+0x2e5>
add    $0xffffffff,%ebp
mov    %r15,%rdi
xor    %esi,%esi
mov    %ebp,%edx
call   1050 <free_dvector@plt>
jmp    1415 <lu_polish+0x2e5>
mov    %rsp,%rcx
mov    %r11,%rdi
mov    %ebp,%esi
mov    %r9,%rdx
call   1030 <lu_backsub@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ecx,%ecx
test   $0x1,%dl
jne    13b8 <lu_polish+0x288>
jmp    13e3 <lu_polish+0x2b3>

LLVM IR (-O0):
define void @lu_polish(double** %0, double** %1, i32 %2, double* %3, double* %4, i32* %5) {
%7 = alloca double**
%8 = alloca double**
%9 = alloca i32
%10 = alloca double*
%11 = alloca double*
%12 = alloca i32*
%13 = alloca i32
%14 = alloca i32
%15 = alloca double*
%16 = alloca [10 x double]
%17 = alloca double
store double** %0, double*** %7
store double** %1, double*** %8
store i32 %2, i32* %9
store double* %3, double** %10
store double* %4, double** %11
store i32* %5, i32** %12
%18 = load i32, i32* %9
%19 = icmp sle i32 %18, 10
br i1 %19, label %20, label %22
20: ; preds = %6
%21 = getelementptr inbounds [10 x double], [10 x double]* %16, i64 0, i64 0
store double* %21, double** %15
br label %26
22: ; preds = %6
%23 = load i32, i32* %9
%24 = sub nsw i32 %23, 1
%25 = call double* @dvector(i32 0, i32 %24)
store double* %25, double** %15
br label %26
26: ; preds = %22, %20
store i32 0, i32* %13
br label %27
27: ; preds = %68, %26
%28 = load i32, i32* %13
%29 = load i32, i32* %9
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %71
31: ; preds = %27
%32 = load double*, double** %10
%33 = load i32, i32* %13
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double, double* %32, i64 %34
%36 = load double, double* %35
%37 = fneg double %36
store double %37, double* %17
store i32 0, i32* %14
br label %38
38: ; preds = %59, %31
%39 = load i32, i32* %14
%40 = load i32, i32* %9
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %62
42: ; preds = %38
%43 = load double**, double*** %7
%44 = load i32, i32* %13
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double*, double** %43, i64 %45
%47 = load double*, double** %46
%48 = load i32, i32* %14
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, double* %47, i64 %49
%51 = load double, double* %50
%52 = load double*, double** %11
%53 = load i32, i32* %14
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, double* %52, i64 %54
%56 = load double, double* %55
%57 = load double, double* %17
%58 = call double @llvm.fmuladd.f64(double %51, double %56, double %57)
store double %58, double* %17
br label %59
59: ; preds = %42
%60 = load i32, i32* %14
%61 = add nsw i32 %60, 1
store i32 %61, i32* %14
br label %38
62: ; preds = %38
%63 = load double, double* %17
%64 = load double*, double** %15
%65 = load i32, i32* %13
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, double* %64, i64 %66
store double %63, double* %67
br label %68
68: ; preds = %62
%69 = load i32, i32* %13
%70 = add nsw i32 %69, 1
store i32 %70, i32* %13
br label %27
71: ; preds = %27
%72 = load double**, double*** %8
%73 = load i32, i32* %9
%74 = load i32*, i32** %12
%75 = load double*, double** %15
%76 = call i32 @lu_backsub(double** %72, i32 %73, i32* %74, double* %75)
store i32 0, i32* %13
br label %77
77: ; preds = %93, %71
%78 = load i32, i32* %13
%79 = load i32, i32* %9
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %96
81: ; preds = %77
%82 = load double*, double** %15
%83 = load i32, i32* %13
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds double, double* %82, i64 %84
%86 = load double, double* %85
%87 = load double*, double** %11
%88 = load i32, i32* %13
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %87, i64 %89
%91 = load double, double* %90
%92 = fsub double %91, %86
store double %92, double* %90
br label %93
93: ; preds = %81
%94 = load i32, i32* %13
%95 = add nsw i32 %94, 1
store i32 %95, i32* %13
br label %77
96: ; preds = %77
%97 = load double*, double** %15
%98 = getelementptr inbounds [10 x double], [10 x double]* %16, i64 0, i64 0
%99 = icmp ne double* %97, %98
br i1 %99, label %100, label %105
100: ; preds = %96
%101 = load double*, double** %15
%102 = load i32, i32* %9
%103 = sub nsw i32 %102, 1
%104 = call i32 @free_dvector(double* %101, i32 0, i32 %103)
br label %105
105: ; preds = %100, %96
ret void
}

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