#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*/ lu(double **, int *, double *);
void fast_s_irwls(double **x, double *y, double *weights, int n, int p,
                  double *beta_ref, double **tmp_mat, double *tmp,
                  double *tmp2) {
  void mat_prime_vec(double **a, double *b, double *c, int n, int m);
  void mat_prime_mat_w(double **a, double *w, double **c, int n, int m);
  register int i;
  for (i = 0; i < n; i++)
    tmp[i] = weights[i] * y[i];
  mat_prime_vec(x, tmp, tmp2, n, p);
  mat_prime_mat_w(x, weights, tmp_mat, n, p);
  for (i = 0; i < p; i++)
    tmp_mat[i][p] = tmp2[i];
  lu(tmp_mat, &p, beta_ref);
}


x86 assembly (clang, -O0):
<fast_s_irwls>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    11a3 <fast_s_irwls+0x73>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1162 <fast_s_irwls+0x32>
mov    -0x8(%rbp),%rdi
mov    0x18(%rbp),%rsi
mov    0x20(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
call   1040 <mat_prime_vec@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    0x10(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
call   1030 <mat_prime_mat_w@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1216 <fast_s_irwls+0xe6>
mov    0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11da <fast_s_irwls+0xaa>
mov    0x10(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    -0x20(%rbp),%rsi
call   1050 <lu@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fast_s_irwls>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,0x10(%rsp)
mov    %r8d,%r13d
mov    %ecx,%r12d
mov    %rdx,%rbp
mov    %rsi,%rax
mov    %rdi,%r14
mov    0x60(%rsp),%rbx
mov    0x58(%rsp),%rsi
mov    0x50(%rsp),%r15
mov    %r8d,0xc(%rsp)
test   %ecx,%ecx
jle    1319 <fast_s_irwls+0x1e9>
mov    %r12d,%r9d
cmp    $0x4,%r12d
jae    1214 <fast_s_irwls+0xe4>
xor    %edx,%edx
mov    %rdx,%rcx
not    %rcx
add    %r9,%rcx
mov    %r9,%rdi
and    $0x3,%rdi
je     11aa <fast_s_irwls+0x7a>
nop
movsd  0x0(%rbp,%rdx,8),%xmm0
mulsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,(%rsi,%rdx,8)
add    $0x1,%rdx
add    $0xffffffffffffffff,%rdi
jne    1190 <fast_s_irwls+0x60>
cmp    $0x3,%rcx
jb     1319 <fast_s_irwls+0x1e9>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x0(%rbp,%rdx,8),%xmm0
mulsd  (%rax,%rdx,8),%xmm0
movsd  %xmm0,(%rsi,%rdx,8)
movsd  0x8(%rbp,%rdx,8),%xmm0
mulsd  0x8(%rax,%rdx,8),%xmm0
movsd  %xmm0,0x8(%rsi,%rdx,8)
movsd  0x10(%rbp,%rdx,8),%xmm0
mulsd  0x10(%rax,%rdx,8),%xmm0
movsd  %xmm0,0x10(%rsi,%rdx,8)
movsd  0x18(%rbp,%rdx,8),%xmm0
mulsd  0x18(%rax,%rdx,8),%xmm0
movsd  %xmm0,0x18(%rsi,%rdx,8)
add    $0x4,%rdx
cmp    %rdx,%r9
jne    11c0 <fast_s_irwls+0x90>
jmp    1319 <fast_s_irwls+0x1e9>
lea    (%rsi,%r9,8),%rdx
lea    0x0(,%r9,8),%rcx
add    %rbp,%rcx
cmp    %rsi,%rcx
seta   %r8b
lea    (%rax,%r9,8),%rcx
cmp    %rbp,%rdx
seta   %r10b
cmp    %rsi,%rcx
seta   %cl
cmp    %rax,%rdx
seta   %dil
xor    %edx,%edx
test   %r10b,%r8b
jne    117d <fast_s_irwls+0x4d>
and    %dil,%cl
jne    117d <fast_s_irwls+0x4d>
mov    %r9d,%edx
and    $0xfffffffc,%edx
lea    -0x4(%rdx),%rcx
mov    %rcx,%r8
shr    $0x2,%r8
add    $0x1,%r8
test   %rcx,%rcx
je     1409 <fast_s_irwls+0x2d9>
mov    %r8,%rcx
and    $0xfffffffffffffffe,%rcx
xor    %edi,%edi
nopl   (%rax)
movupd 0x0(%rbp,%rdi,8),%xmm0
movupd 0x10(%rbp,%rdi,8),%xmm1
movupd (%rax,%rdi,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x10(%rax,%rdi,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,(%rsi,%rdi,8)
movupd %xmm0,0x10(%rsi,%rdi,8)
movupd 0x20(%rbp,%rdi,8),%xmm0
movupd 0x30(%rbp,%rdi,8),%xmm1
movupd 0x20(%rax,%rdi,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x30(%rax,%rdi,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,0x20(%rsi,%rdi,8)
movupd %xmm0,0x30(%rsi,%rdi,8)
add    $0x8,%rdi
add    $0xfffffffffffffffe,%rcx
jne    1280 <fast_s_irwls+0x150>
test   $0x1,%r8b
je     1310 <fast_s_irwls+0x1e0>
movupd 0x0(%rbp,%rdi,8),%xmm0
movupd 0x10(%rbp,%rdi,8),%xmm1
movupd (%rax,%rdi,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x10(%rax,%rdi,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,(%rsi,%rdi,8)
movupd %xmm0,0x10(%rsi,%rdi,8)
cmp    %r9,%rdx
jne    117d <fast_s_irwls+0x4d>
mov    %r14,%rdi
mov    %rbx,%rdx
mov    %r12d,%ecx
mov    %r13d,%r8d
call   1040 <mat_prime_vec@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r12d,%ecx
mov    %r13d,%r8d
call   1030 <mat_prime_mat_w@plt>
test   %r13d,%r13d
jle    13e8 <fast_s_irwls+0x2b8>
mov    %r13d,%eax
lea    -0x1(%rax),%rdx
mov    %eax,%ecx
and    $0x3,%ecx
cmp    $0x3,%rdx
jae    135d <fast_s_irwls+0x22d>
xor    %edx,%edx
jmp    13b7 <fast_s_irwls+0x287>
mov    %eax,%esi
and    $0xfffffffc,%esi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%rbx,%rdx,8),%xmm0
mov    (%r15,%rdx,8),%rdi
movsd  %xmm0,(%rdi,%rax,8)
movsd  0x8(%rbx,%rdx,8),%xmm0
mov    0x8(%r15,%rdx,8),%rdi
movsd  %xmm0,(%rdi,%rax,8)
movsd  0x10(%rbx,%rdx,8),%xmm0
mov    0x10(%r15,%rdx,8),%rdi
movsd  %xmm0,(%rdi,%rax,8)
movsd  0x18(%rbx,%rdx,8),%xmm0
mov    0x18(%r15,%rdx,8),%rdi
movsd  %xmm0,(%rdi,%rax,8)
add    $0x4,%rdx
cmp    %rdx,%rsi
jne    1370 <fast_s_irwls+0x240>
test   %rcx,%rcx
je     13e8 <fast_s_irwls+0x2b8>
lea    (%r15,%rdx,8),%rsi
lea    (%rbx,%rdx,8),%rdx
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
movsd  (%rdx,%rdi,8),%xmm0
mov    (%rsi,%rdi,8),%rbp
movsd  %xmm0,0x0(%rbp,%rax,8)
add    $0x1,%rdi
cmp    %rdi,%rcx
jne    13d0 <fast_s_irwls+0x2a0>
lea    0xc(%rsp),%rsi
mov    %r15,%rdi
mov    0x10(%rsp),%rdx
call   1050 <lu@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edi,%edi
test   $0x1,%r8b
jne    12e6 <fast_s_irwls+0x1b6>
jmp    1310 <fast_s_irwls+0x1e0>

LLVM IR (-O0):
define void @fast_s_irwls(double** %0, double* %1, double* %2, i32 %3, i32 %4, double* %5, double** %6, double* %7, double* %8) {
%10 = alloca double**
%11 = alloca double*
%12 = alloca double*
%13 = alloca i32
%14 = alloca i32
%15 = alloca double*
%16 = alloca double**
%17 = alloca double*
%18 = alloca double*
%19 = alloca i32
store double** %0, double*** %10
store double* %1, double** %11
store double* %2, double** %12
store i32 %3, i32* %13
store i32 %4, i32* %14
store double* %5, double** %15
store double** %6, double*** %16
store double* %7, double** %17
store double* %8, double** %18
store i32 0, i32* %19
br label %20
20: ; preds = %40, %9
%21 = load i32, i32* %19
%22 = load i32, i32* %13
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %43
24: ; preds = %20
%25 = load double*, double** %12
%26 = load i32, i32* %19
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, double* %25, i64 %27
%29 = load double, double* %28
%30 = load double*, double** %11
%31 = load i32, i32* %19
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, double* %30, i64 %32
%34 = load double, double* %33
%35 = fmul double %29, %34
%36 = load double*, double** %17
%37 = load i32, i32* %19
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, double* %36, i64 %38
store double %35, double* %39
br label %40
40: ; preds = %24
%41 = load i32, i32* %19
%42 = add nsw i32 %41, 1
store i32 %42, i32* %19
br label %20
43: ; preds = %20
%44 = load double**, double*** %10
%45 = load double*, double** %17
%46 = load double*, double** %18
%47 = load i32, i32* %13
%48 = load i32, i32* %14
%49 = load double**, double*** %10
%50 = load double*, double** %12
%51 = load double**, double*** %16
%52 = load i32, i32* %13
%53 = load i32, i32* %14
store i32 0, i32* %19
br label %54
54: ; preds = %72, %43
%55 = load i32, i32* %19
%56 = load i32, i32* %14
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %75
58: ; preds = %54
%59 = load double*, double** %18
%60 = load i32, i32* %19
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, double* %59, i64 %61
%63 = load double, double* %62
%64 = load double**, double*** %16
%65 = load i32, i32* %19
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double*, double** %64, i64 %66
%68 = load double*, double** %67
%69 = load i32, i32* %14
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %68, i64 %70
store double %63, double* %71
br label %72
72: ; preds = %58
%73 = load i32, i32* %19
%74 = add nsw i32 %73, 1
store i32 %74, i32* %19
br label %54
75: ; preds = %54
%76 = load double**, double*** %16
%77 = load double*, double** %15
%78 = call i32 @lu(double** %76, i32* %14, double* %77)
ret void
}

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