#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 *);
int /*<<< orphan*/ linsolve(double *, int, double *, int *, double *);
scalar_t__ malloc(int);
void minverse(double *A, int N, int *ipiv, double *inv) {
  int i, j, stride;
  double *col, *x;
  col = (double *)malloc(sizeof(double) * N);
  x = (double *)malloc(sizeof(double) * N);
  for (i = 0; i < N; ++i) {
    col[i] = 0.;
    x[i] = 0.;
  }
  for (i = 0; i < N; ++i) {
    col[i] = 1.;
    linsolve(A, N, col, ipiv, x);
    stride = i;
    for (j = 0; j < N; ++j) {
      inv[stride] = x[j];
      stride += N;
    }
    col[i] = 0.;
  }
  free(x);
  free(col);
}


x86 assembly (clang, -O0):
<minverse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11ae <minverse+0x7e>
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
movslq -0x24(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1174 <minverse+0x44>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1256 <minverse+0x126>
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  0xe2f(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x38(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x40(%rbp),%r8
call   1040 <linsolve@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0x2c(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1238 <minverse+0x108>
mov    -0x40(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xc(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    11fb <minverse+0xcb>
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11b5 <minverse+0x85>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<minverse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rcx,%r14
mov    %rdx,0x40(%rsp)
mov    %esi,%ebx
mov    %rdi,0x38(%rsp)
lea    0x0(,%rbx,8),%ebp
mov    %ebp,%edi
call   1050 <malloc@plt>
mov    %rax,%r15
mov    %ebp,%edi
call   1050 <malloc@plt>
mov    %r15,%rdx
mov    %rax,%rbp
mov    %rbx,(%rsp)
test   %ebx,%ebx
jle    14aa <minverse+0x37a>
mov    %r14,%r9
mov    (%rsp),%rax
mov    %eax,%r14d
cmp    $0x4,%eax
jb     11a7 <minverse+0x77>
lea    0x0(,%r14,8),%rax
add    %rbp,%rax
cmp    %rax,%rdx
jae    1245 <minverse+0x115>
lea    (%rdx,%r14,8),%rax
cmp    %rax,%rbp
jae    1245 <minverse+0x115>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
add    %r14,%rcx
mov    %r14,%rdi
and    $0x3,%rdi
je     11db <minverse+0xab>
nopl   0x0(%rax,%rax,1)
movq   $0x0,(%rdx,%rax,8)
movq   $0x0,0x0(%rbp,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rdi
jne    11c0 <minverse+0x90>
cmp    $0x3,%rcx
jb     1324 <minverse+0x1f4>
cs nopw 0x0(%rax,%rax,1)
nop
movq   $0x0,(%rdx,%rax,8)
movq   $0x0,0x0(%rbp,%rax,8)
movq   $0x0,0x8(%rdx,%rax,8)
movq   $0x0,0x8(%rbp,%rax,8)
movq   $0x0,0x10(%rdx,%rax,8)
movq   $0x0,0x10(%rbp,%rax,8)
movq   $0x0,0x18(%rdx,%rax,8)
movq   $0x0,0x18(%rbp,%rax,8)
add    $0x4,%rax
cmp    %rax,%r14
jne    11f0 <minverse+0xc0>
jmp    1324 <minverse+0x1f4>
mov    %r14d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rdi
mov    %rdi,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %ecx,%r8d
and    $0x3,%r8d
cmp    $0xc,%rdi
jae    126b <minverse+0x13b>
xor    %edi,%edi
jmp    12d9 <minverse+0x1a9>
and    $0xfffffffffffffffc,%rcx
xor    %edi,%edi
xorps  %xmm0,%xmm0
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movups %xmm0,(%rdx,%rdi,8)
movups %xmm0,0x10(%rdx,%rdi,8)
movups %xmm0,0x0(%rbp,%rdi,8)
movups %xmm0,0x10(%rbp,%rdi,8)
movups %xmm0,0x20(%rdx,%rdi,8)
movups %xmm0,0x30(%rdx,%rdi,8)
movups %xmm0,0x20(%rbp,%rdi,8)
movups %xmm0,0x30(%rbp,%rdi,8)
movups %xmm0,0x40(%rdx,%rdi,8)
movups %xmm0,0x50(%rdx,%rdi,8)
movups %xmm0,0x40(%rbp,%rdi,8)
movups %xmm0,0x50(%rbp,%rdi,8)
movups %xmm0,0x60(%rdx,%rdi,8)
movups %xmm0,0x70(%rdx,%rdi,8)
movups %xmm0,0x60(%rbp,%rdi,8)
movups %xmm0,0x70(%rbp,%rdi,8)
add    $0x10,%rdi
add    $0xfffffffffffffffc,%rcx
jne    1280 <minverse+0x150>
test   %r8,%r8
je     131b <minverse+0x1eb>
lea    0x10(,%rdi,8),%rcx
add    %rbp,%rcx
lea    (%rdx,%rdi,8),%rbx
add    $0x10,%rbx
shl    $0x5,%r8
xor    %edi,%edi
xorps  %xmm0,%xmm0
nopw   0x0(%rax,%rax,1)
movups %xmm0,-0x10(%rbx,%rdi,1)
movups %xmm0,(%rbx,%rdi,1)
movups %xmm0,-0x10(%rcx,%rdi,1)
movups %xmm0,(%rcx,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%r8
jne    1300 <minverse+0x1d0>
cmp    %r14,%rax
jne    11a9 <minverse+0x79>
cmpl   $0x0,(%rsp)
jle    14aa <minverse+0x37a>
lea    -0x1(%r14),%rax
mov    %rax,0x30(%rsp)
mov    %r14d,%r15d
and    $0x3,%r15d
mov    %r14d,%r8d
and    $0xfffffffc,%r8d
lea    (%r14,%r14,2),%rax
lea    (%r9,%rax,8),%rbx
mov    %r14,%rsi
shl    $0x4,%rsi
add    %r9,%rsi
lea    (%r9,%r14,8),%r12
lea    0x0(,%r14,8),%r13
xor    %r10d,%r10d
mov    %r9,0x10(%rsp)
mov    %rdx,0x8(%rsp)
mov    %r8,0x28(%rsp)
mov    %rsi,0x20(%rsp)
mov    %rbx,0x18(%rsp)
jmp    13a5 <minverse+0x275>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movq   $0x0,(%rdx,%r10,8)
add    $0x1,%r10
cmp    %r14,%r10
je     14aa <minverse+0x37a>
movabs $0x3ff0000000000000,%rax
mov    %rax,(%rdx,%r10,8)
mov    0x38(%rsp),%rdi
mov    (%rsp),%rsi
mov    0x40(%rsp),%rcx
mov    %rbp,%r8
mov    %r10,%rbx
call   1040 <linsolve@plt>
cmpq   $0x3,0x30(%rsp)
jae    13f0 <minverse+0x2c0>
mov    %rbx,%r10
mov    %rbx,%rcx
xor    %eax,%eax
mov    0x10(%rsp),%r9
mov    0x8(%rsp),%rdx
jmp    1467 <minverse+0x337>
nopl   0x0(%rax,%rax,1)
mov    %rbx,%r10
mov    %rbx,%rdi
xor    %eax,%eax
mov    0x10(%rsp),%r9
mov    0x8(%rsp),%rdx
mov    0x28(%rsp),%r8
mov    0x18(%rsp),%rbx
mov    0x20(%rsp),%rsi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0x0(%rbp,%rax,8),%xmm0
movsd  %xmm0,(%r9,%rdi,8)
lea    (%rdi,%r14,1),%rcx
movsd  0x8(%rbp,%rax,8),%xmm0
movsd  %xmm0,(%r12,%rdi,8)
add    %r14,%rcx
movsd  0x10(%rbp,%rax,8),%xmm0
movsd  %xmm0,(%rsi,%rdi,8)
add    %r14,%rcx
movsd  0x18(%rbp,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rdi,8)
add    %r14,%rcx
add    $0x4,%rax
mov    %rcx,%rdi
cmp    %rax,%r8
jne    1420 <minverse+0x2f0>
test   %r15,%r15
je     1390 <minverse+0x260>
lea    (%r9,%rcx,8),%rcx
lea    0x0(,%rax,8),%rax
add    %rbp,%rax
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rax,%rdi,8),%xmm0
movsd  %xmm0,(%rcx)
add    $0x1,%rdi
add    %r13,%rcx
cmp    %rdi,%r15
jne    1490 <minverse+0x360>
jmp    1390 <minverse+0x260>
mov    %rbp,%rdi
mov    %rdx,%rbx
call   1030 <free@plt>
mov    %rbx,%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 @minverse(double* %0, i32 %1, i32* %2, double* %3) {
%5 = alloca double*
%6 = alloca i32
%7 = alloca i32*
%8 = alloca double*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca double*
%13 = alloca double*
store double* %0, double** %5
store i32 %1, i32* %6
store i32* %2, i32** %7
store double* %3, double** %8
%14 = load i32, i32* %6
%15 = sext i32 %14 to i64
%16 = mul i64 8, %15
%17 = trunc i64 %16 to i32
%18 = call i64 @malloc(i32 %17)
%19 = inttoptr i64 %18 to double*
store double* %19, double** %12
%20 = load i32, i32* %6
%21 = sext i32 %20 to i64
%22 = mul i64 8, %21
%23 = trunc i64 %22 to i32
%24 = call i64 @malloc(i32 %23)
%25 = inttoptr i64 %24 to double*
store double* %25, double** %13
store i32 0, i32* %9
br label %26
26: ; preds = %39, %4
%27 = load i32, i32* %9
%28 = load i32, i32* %6
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %42
30: ; preds = %26
%31 = load double*, double** %12
%32 = load i32, i32* %9
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, double* %31, i64 %33
store double 0.000000e+00, double* %34
%35 = load double*, double** %13
%36 = load i32, i32* %9
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, double* %35, i64 %37
store double 0.000000e+00, double* %38
br label %39
39: ; preds = %30
%40 = load i32, i32* %9
%41 = add nsw i32 %40, 1
store i32 %41, i32* %9
br label %26
42: ; preds = %26
store i32 0, i32* %9
br label %43
43: ; preds = %84, %42
%44 = load i32, i32* %9
%45 = load i32, i32* %6
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %87
47: ; preds = %43
%48 = load double*, double** %12
%49 = load i32, i32* %9
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, double* %48, i64 %50
store double 1.000000e+00, double* %51
%52 = load double*, double** %5
%53 = load i32, i32* %6
%54 = load double*, double** %12
%55 = load i32*, i32** %7
%56 = load double*, double** %13
%57 = call i32 @linsolve(double* %52, i32 %53, double* %54, i32* %55, double* %56)
%58 = load i32, i32* %9
store i32 %58, i32* %11
store i32 0, i32* %10
br label %59
59: ; preds = %76, %47
%60 = load i32, i32* %10
%61 = load i32, i32* %6
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %79
63: ; preds = %59
%64 = load double*, double** %13
%65 = load i32, i32* %10
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, double* %64, i64 %66
%68 = load double, double* %67
%69 = load double*, double** %8
%70 = load i32, i32* %11
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, double* %69, i64 %71
store double %68, double* %72
%73 = load i32, i32* %6
%74 = load i32, i32* %11
%75 = add nsw i32 %74, %73
store i32 %75, i32* %11
br label %76
76: ; preds = %63
%77 = load i32, i32* %10
%78 = add nsw i32 %77, 1
store i32 %78, i32* %10
br label %59
79: ; preds = %59
%80 = load double*, double** %12
%81 = load i32, i32* %9
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %80, i64 %82
store double 0.000000e+00, double* %83
br label %84
84: ; preds = %79
%85 = load i32, i32* %9
%86 = add nsw i32 %85, 1
store i32 %86, i32* %9
br label %43
87: ; preds = %43
%88 = load double*, double** %13
%89 = call i32 @free(double* %88)
%90 = load double*, double** %12
%91 = call i32 @free(double* %90)
ret void
}

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