; LLVM IR from Water-Melon/Melon :: src (mln_matrix)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.mln_matrix_t = type { i64, i64, ptr, i8 }

; Function Attrs: nounwind uwtable
declare dso_local ptr @mln_matrix_new(i64 noundef, i64 noundef, ptr noundef nonnull, i32 noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @mln_matrix_free(ptr noundef) #0

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: nounwind uwtable
define dso_local ptr @mln_matrix_inverse(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = icmp eq ptr %15, null
  br i1 %16, label %25, label %17

17:                                               ; preds = %1
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.mln_matrix_t, ptr %18, i32 0, i32 0
  %20 = load i64, ptr %19, align 8, !tbaa !9
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.mln_matrix_t, ptr %21, i32 0, i32 1
  %23 = load i64, ptr %22, align 8, !tbaa !13
  %24 = icmp ne i64 %20, %23
  br i1 %24, label %25, label %27

25:                                               ; preds = %17, %1
  %26 = call ptr @__errno_location() #6
  store i32 22, ptr %26, align 4, !tbaa !14
  store ptr null, ptr %2, align 8
  br label %313

27:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.mln_matrix_t, ptr %28, i32 0, i32 2
  %30 = load ptr, ptr %29, align 8, !tbaa !15
  store ptr %30, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.mln_matrix_t, ptr %31, i32 0, i32 0
  %33 = load i64, ptr %32, align 8, !tbaa !9
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.mln_matrix_t, ptr %34, i32 0, i32 1
  %36 = load i64, ptr %35, align 8, !tbaa !13
  %37 = mul i64 %33, %36
  store i64 %37, ptr %12, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.mln_matrix_t, ptr %38, i32 0, i32 0
  %40 = load i64, ptr %39, align 8, !tbaa !9
  store i64 %40, ptr %13, align 8, !tbaa !16
  %41 = load i64, ptr %12, align 8, !tbaa !16
  %42 = mul i64 %41, 8
  %43 = call noalias ptr @malloc(i64 noundef %42) #8
  store ptr %43, ptr %5, align 8, !tbaa !5
  %44 = icmp eq ptr %43, null
  br i1 %44, label %45, label %47

45:                                               ; preds = %27
  %46 = call ptr @__errno_location() #6
  store i32 12, ptr %46, align 4, !tbaa !14
  store ptr null, ptr %2, align 8
  store i32 1, ptr %14, align 4
  br label %312

47:                                               ; preds = %27
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.mln_matrix_t, ptr %48, i32 0, i32 0
  %50 = load i64, ptr %49, align 8, !tbaa !9
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.mln_matrix_t, ptr %51, i32 0, i32 1
  %53 = load i64, ptr %52, align 8, !tbaa !13
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = call ptr @mln_matrix_new(i64 noundef %50, i64 noundef %53, ptr noundef %54, i32 noundef 0)
  store ptr %55, ptr %4, align 8, !tbaa !5
  %56 = icmp eq ptr %55, null
  br i1 %56, label %57, label %60

57:                                               ; preds = %47
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %58) #7
  %59 = call ptr @__errno_location() #6
  store i32 12, ptr %59, align 4, !tbaa !14
  store ptr null, ptr %2, align 8
  store i32 1, ptr %14, align 4
  br label %312

60:                                               ; preds = %47
  store i64 0, ptr %8, align 8, !tbaa !16
  store i64 0, ptr %10, align 8, !tbaa !16
  br label %61

61:                                               ; preds = %88, %60
  %62 = load i64, ptr %8, align 8, !tbaa !16
  %63 = load i64, ptr %12, align 8, !tbaa !16
  %64 = icmp ult i64 %62, %63
  br i1 %64, label %65, label %96

65:                                               ; preds = %61
  store i64 0, ptr %9, align 8, !tbaa !16
  br label %66

66:                                               ; preds = %84, %65
  %67 = load i64, ptr %9, align 8, !tbaa !16
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.mln_matrix_t, ptr %68, i32 0, i32 1
  %70 = load i64, ptr %69, align 8, !tbaa !13
  %71 = icmp ult i64 %67, %70
  br i1 %71, label %72, label %87

72:                                               ; preds = %66
  %73 = load i64, ptr %9, align 8, !tbaa !16
  %74 = load i64, ptr %10, align 8, !tbaa !16
  %75 = icmp eq i64 %73, %74
  %76 = zext i1 %75 to i64
  %77 = select i1 %75, i32 1, i32 0
  %78 = sitofp i32 %77 to double
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = load i64, ptr %8, align 8, !tbaa !16
  %81 = load i64, ptr %9, align 8, !tbaa !16
  %82 = add i64 %80, %81
  %83 = getelementptr inbounds double, ptr %79, i64 %82
  store double %78, ptr %83, align 8, !tbaa !17
  br label %84

84:                                               ; preds = %72
  %85 = load i64, ptr %9, align 8, !tbaa !16
  %86 = add i64 %85, 1
  store i64 %86, ptr %9, align 8, !tbaa !16
  br label %66, !llvm.loop !19

87:                                               ; preds = %66
  br label %88

88:                                               ; preds = %87
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.mln_matrix_t, ptr %89, i32 0, i32 1
  %91 = load i64, ptr %90, align 8, !tbaa !13
  %92 = load i64, ptr %8, align 8, !tbaa !16
  %93 = add i64 %92, %91
  store i64 %93, ptr %8, align 8, !tbaa !16
  %94 = load i64, ptr %10, align 8, !tbaa !16
  %95 = add i64 %94, 1
  store i64 %95, ptr %10, align 8, !tbaa !16
  br label %61, !llvm.loop !21

96:                                               ; preds = %61
  store i64 0, ptr %11, align 8, !tbaa !16
  store i64 0, ptr %8, align 8, !tbaa !16
  br label %97

97:                                               ; preds = %304, %96
  %98 = load i64, ptr %8, align 8, !tbaa !16
  %99 = load i64, ptr %12, align 8, !tbaa !16
  %100 = icmp ult i64 %98, %99
  br i1 %100, label %101, label %310

101:                                              ; preds = %97
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = load i64, ptr %8, align 8, !tbaa !16
  %104 = load i64, ptr %11, align 8, !tbaa !16
  %105 = add i64 %103, %104
  %106 = getelementptr inbounds double, ptr %102, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !17
  store double %107, ptr %7, align 8, !tbaa !17
  %108 = load i64, ptr %8, align 8, !tbaa !16
  store i64 %108, ptr %10, align 8, !tbaa !16
  %109 = load i64, ptr %8, align 8, !tbaa !16
  %110 = load i64, ptr %13, align 8, !tbaa !16
  %111 = add i64 %109, %110
  store i64 %111, ptr %9, align 8, !tbaa !16
  br label %112

112:                                              ; preds = %136, %101
  %113 = load i64, ptr %9, align 8, !tbaa !16
  %114 = load i64, ptr %12, align 8, !tbaa !16
  %115 = icmp ult i64 %113, %114
  br i1 %115, label %116, label %140

116:                                              ; preds = %112
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load i64, ptr %9, align 8, !tbaa !16
  %119 = load i64, ptr %11, align 8, !tbaa !16
  %120 = add i64 %118, %119
  %121 = getelementptr inbounds double, ptr %117, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !17
  %123 = call double @llvm.fabs.f64(double %122)
  %124 = load double, ptr %7, align 8, !tbaa !17
  %125 = call double @llvm.fabs.f64(double %124)
  %126 = fcmp ogt double %123, %125
  br i1 %126, label %127, label %135

127:                                              ; preds = %116
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = load i64, ptr %9, align 8, !tbaa !16
  %130 = load i64, ptr %11, align 8, !tbaa !16
  %131 = add i64 %129, %130
  %132 = getelementptr inbounds double, ptr %128, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !17
  store double %133, ptr %7, align 8, !tbaa !17
  %134 = load i64, ptr %9, align 8, !tbaa !16
  store i64 %134, ptr %10, align 8, !tbaa !16
  br label %135

135:                                              ; preds = %127, %116
  br label %136

136:                                              ; preds = %135
  %137 = load i64, ptr %13, align 8, !tbaa !16
  %138 = load i64, ptr %9, align 8, !tbaa !16
  %139 = add i64 %138, %137
  store i64 %139, ptr %9, align 8, !tbaa !16
  br label %112, !llvm.loop !22

140:                                              ; preds = %112
  %141 = load i64, ptr %10, align 8, !tbaa !16
  %142 = load i64, ptr %8, align 8, !tbaa !16
  %143 = icmp ne i64 %141, %142
  br i1 %143, label %144, label %200

144:                                              ; preds = %140
  store i64 0, ptr %9, align 8, !tbaa !16
  br label %145

145:                                              ; preds = %196, %144
  %146 = load i64, ptr %9, align 8, !tbaa !16
  %147 = load i64, ptr %13, align 8, !tbaa !16
  %148 = icmp ult i64 %146, %147
  br i1 %148, label %149, label %199

149:                                              ; preds = %145
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = load i64, ptr %8, align 8, !tbaa !16
  %152 = load i64, ptr %9, align 8, !tbaa !16
  %153 = add i64 %151, %152
  %154 = getelementptr inbounds double, ptr %150, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !17
  store double %155, ptr %7, align 8, !tbaa !17
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = load i64, ptr %10, align 8, !tbaa !16
  %158 = load i64, ptr %9, align 8, !tbaa !16
  %159 = add i64 %157, %158
  %160 = getelementptr inbounds double, ptr %156, i64 %159
  %161 = load double, ptr %160, align 8, !tbaa !17
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = load i64, ptr %8, align 8, !tbaa !16
  %164 = load i64, ptr %9, align 8, !tbaa !16
  %165 = add i64 %163, %164
  %166 = getelementptr inbounds double, ptr %162, i64 %165
  store double %161, ptr %166, align 8, !tbaa !17
  %167 = load double, ptr %7, align 8, !tbaa !17
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = load i64, ptr %10, align 8, !tbaa !16
  %170 = load i64, ptr %9, align 8, !tbaa !16
  %171 = add i64 %169, %170
  %172 = getelementptr inbounds double, ptr %168, i64 %171
  store double %167, ptr %172, align 8, !tbaa !17
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = load i64, ptr %8, align 8, !tbaa !16
  %175 = load i64, ptr %9, align 8, !tbaa !16
  %176 = add i64 %174, %175
  %177 = getelementptr inbounds double, ptr %173, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !17
  store double %178, ptr %7, align 8, !tbaa !17
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = load i64, ptr %10, align 8, !tbaa !16
  %181 = load i64, ptr %9, align 8, !tbaa !16
  %182 = add i64 %180, %181
  %183 = getelementptr inbounds double, ptr %179, i64 %182
  %184 = load double, ptr %183, align 8, !tbaa !17
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = load i64, ptr %8, align 8, !tbaa !16
  %187 = load i64, ptr %9, align 8, !tbaa !16
  %188 = add i64 %186, %187
  %189 = getelementptr inbounds double, ptr %185, i64 %188
  store double %184, ptr %189, align 8, !tbaa !17
  %190 = load double, ptr %7, align 8, !tbaa !17
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = load i64, ptr %10, align 8, !tbaa !16
  %193 = load i64, ptr %9, align 8, !tbaa !16
  %194 = add i64 %192, %193
  %195 = getelementptr inbounds double, ptr %191, i64 %194
  store double %190, ptr %195, align 8, !tbaa !17
  br label %196

196:                                              ; preds = %149
  %197 = load i64, ptr %9, align 8, !tbaa !16
  %198 = add i64 %197, 1
  store i64 %198, ptr %9, align 8, !tbaa !16
  br label %145, !llvm.loop !23

199:                                              ; preds = %145
  br label %200

200:                                              ; preds = %199, %140
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = load i64, ptr %8, align 8, !tbaa !16
  %203 = load i64, ptr %11, align 8, !tbaa !16
  %204 = add i64 %202, %203
  %205 = getelementptr inbounds double, ptr %201, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !17
  %207 = call double @llvm.fabs.f64(double %206)
  %208 = fcmp olt double %207, 0x3EB0C6F7A0B5ED8D
  br i1 %208, label %209, label %212

209:                                              ; preds = %200
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  call void @mln_matrix_free(ptr noundef %210)
  %211 = call ptr @__errno_location() #6
  store i32 22, ptr %211, align 4, !tbaa !14
  store ptr null, ptr %2, align 8
  store i32 1, ptr %14, align 4
  br label %312

212:                                              ; preds = %200
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = load i64, ptr %8, align 8, !tbaa !16
  %215 = load i64, ptr %11, align 8, !tbaa !16
  %216 = add i64 %214, %215
  %217 = getelementptr inbounds double, ptr %213, i64 %216
  %218 = load double, ptr %217, align 8, !tbaa !17
  store double %218, ptr %7, align 8, !tbaa !17
  store i64 0, ptr %9, align 8, !tbaa !16
  br label %219

219:                                              ; preds = %240, %212
  %220 = load i64, ptr %9, align 8, !tbaa !16
  %221 = load i64, ptr %13, align 8, !tbaa !16
  %222 = icmp ult i64 %220, %221
  br i1 %222, label %223, label %243

223:                                              ; preds = %219
  %224 = load double, ptr %7, align 8, !tbaa !17
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  %226 = load i64, ptr %8, align 8, !tbaa !16
  %227 = load i64, ptr %9, align 8, !tbaa !16
  %228 = add i64 %226, %227
  %229 = getelementptr inbounds double, ptr %225, i64 %228
  %230 = load double, ptr %229, align 8, !tbaa !17
  %231 = fdiv double %230, %224
  store double %231, ptr %229, align 8, !tbaa !17
  %232 = load double, ptr %7, align 8, !tbaa !17
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = load i64, ptr %8, align 8, !tbaa !16
  %235 = load i64, ptr %9, align 8, !tbaa !16
  %236 = add i64 %234, %235
  %237 = getelementptr inbounds double, ptr %233, i64 %236
  %238 = load double, ptr %237, align 8, !tbaa !17
  %239 = fdiv double %238, %232
  store double %239, ptr %237, align 8, !tbaa !17
  br label %240

240:                                              ; preds = %223
  %241 = load i64, ptr %9, align 8, !tbaa !16
  %242 = add i64 %241, 1
  store i64 %242, ptr %9, align 8, !tbaa !16
  br label %219, !llvm.loop !24

243:                                              ; preds = %219
  store i64 0, ptr %9, align 8, !tbaa !16
  br label %244

244:                                              ; preds = %299, %243
  %245 = load i64, ptr %9, align 8, !tbaa !16
  %246 = load i64, ptr %12, align 8, !tbaa !16
  %247 = icmp ult i64 %245, %246
  br i1 %247, label %248, label %303

248:                                              ; preds = %244
  %249 = load i64, ptr %9, align 8, !tbaa !16
  %250 = load i64, ptr %8, align 8, !tbaa !16
  %251 = icmp ne i64 %249, %250
  br i1 %251, label %252, label %298

252:                                              ; preds = %248
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  %254 = load i64, ptr %9, align 8, !tbaa !16
  %255 = load i64, ptr %11, align 8, !tbaa !16
  %256 = add i64 %254, %255
  %257 = getelementptr inbounds double, ptr %253, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !17
  store double %258, ptr %7, align 8, !tbaa !17
  store i64 0, ptr %10, align 8, !tbaa !16
  br label %259

259:                                              ; preds = %294, %252
  %260 = load i64, ptr %10, align 8, !tbaa !16
  %261 = load i64, ptr %13, align 8, !tbaa !16
  %262 = icmp ult i64 %260, %261
  br i1 %262, label %263, label %297

263:                                              ; preds = %259
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = load i64, ptr %8, align 8, !tbaa !16
  %266 = load i64, ptr %10, align 8, !tbaa !16
  %267 = add i64 %265, %266
  %268 = getelementptr inbounds double, ptr %264, i64 %267
  %269 = load double, ptr %268, align 8, !tbaa !17
  %270 = load double, ptr %7, align 8, !tbaa !17
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = load i64, ptr %9, align 8, !tbaa !16
  %273 = load i64, ptr %10, align 8, !tbaa !16
  %274 = add i64 %272, %273
  %275 = getelementptr inbounds double, ptr %271, i64 %274
  %276 = load double, ptr %275, align 8, !tbaa !17
  %277 = fneg double %269
  %278 = call double @llvm.fmuladd.f64(double %277, double %270, double %276)
  store double %278, ptr %275, align 8, !tbaa !17
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = load i64, ptr %8, align 8, !tbaa !16
  %281 = load i64, ptr %10, align 8, !tbaa !16
  %282 = add i64 %280, %281
  %283 = getelementptr inbounds double, ptr %279, i64 %282
  %284 = load double, ptr %283, align 8, !tbaa !17
  %285 = load double, ptr %7, align 8, !tbaa !17
  %286 = load ptr, ptr %5, align 8, !tbaa !5
  %287 = load i64, ptr %9, align 8, !tbaa !16
  %288 = load i64, ptr %10, align 8, !tbaa !16
  %289 = add i64 %287, %288
  %290 = getelementptr inbounds double, ptr %286, i64 %289
  %291 = load double, ptr %290, align 8, !tbaa !17
  %292 = fneg double %284
  %293 = call double @llvm.fmuladd.f64(double %292, double %285, double %291)
  store double %293, ptr %290, align 8, !tbaa !17
  br label %294

294:                                              ; preds = %263
  %295 = load i64, ptr %10, align 8, !tbaa !16
  %296 = add i64 %295, 1
  store i64 %296, ptr %10, align 8, !tbaa !16
  br label %259, !llvm.loop !25

297:                                              ; preds = %259
  br label %298

298:                                              ; preds = %297, %248
  br label %299

299:                                              ; preds = %298
  %300 = load i64, ptr %13, align 8, !tbaa !16
  %301 = load i64, ptr %9, align 8, !tbaa !16
  %302 = add i64 %301, %300
  store i64 %302, ptr %9, align 8, !tbaa !16
  br label %244, !llvm.loop !26

303:                                              ; preds = %244
  br label %304

304:                                              ; preds = %303
  %305 = load i64, ptr %13, align 8, !tbaa !16
  %306 = load i64, ptr %8, align 8, !tbaa !16
  %307 = add i64 %306, %305
  store i64 %307, ptr %8, align 8, !tbaa !16
  %308 = load i64, ptr %11, align 8, !tbaa !16
  %309 = add i64 %308, 1
  store i64 %309, ptr %11, align 8, !tbaa !16
  br label %97, !llvm.loop !27

310:                                              ; preds = %97
  %311 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %311, ptr %2, align 8
  store i32 1, ptr %14, align 4
  br label %312

312:                                              ; preds = %310, %209, %57, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %313

313:                                              ; preds = %312, %25
  %314 = load ptr, ptr %2, align 8
  ret ptr %314
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #5

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 8, !6, i64 16, !12, i64 24}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!12, !12, i64 0}
!15 = !{!10, !6, i64 16}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
declare dso_local ptr @mln_matrix_new(i64 noundef, i64 noundef, ptr noundef nonnull, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @mln_matrix_free(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

; Function Attrs: nounwind uwtable
define dso_local ptr @mln_matrix_inverse(ptr noundef readonly %0) local_unnamed_addr #0 {
  %2 = icmp eq ptr %0, null
  br i1 %2, label %.loopexit148.sink.split, label %3

3:                                                ; preds = %1
  %4 = load i64, ptr %0, align 8, !tbaa !5
  %.fr177 = freeze i64 %4
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load i64, ptr %5, align 8, !tbaa !12
  %.not = icmp eq i64 %.fr177, %6
  br i1 %.not, label %7, label %.loopexit148.sink.split

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = load ptr, ptr %8, align 8, !tbaa !13
  %10 = mul i64 %.fr177, %.fr177
  %11 = shl i64 %10, 3
  %12 = tail call noalias ptr @malloc(i64 noundef %11) #6
  %13 = icmp eq ptr %12, null
  br i1 %13, label %.loopexit148.sink.split, label %14

14:                                               ; preds = %7
  %15 = tail call ptr @mln_matrix_new(i64 noundef %.fr177, i64 noundef %.fr177, ptr noundef %12, i32 noundef 0)
  %16 = icmp eq ptr %15, null
  br i1 %16, label %44, label %.preheader150

.preheader150:                                    ; preds = %14
  %.not172 = icmp eq i64 %10, 0
  br i1 %.not172, label %.loopexit148, label %.preheader149.lr.ph

.preheader149.lr.ph:                              ; preds = %.preheader150
  %17 = getelementptr inbounds i8, ptr %15, i64 8
  %18 = load i64, ptr %17, align 8, !tbaa !12
  %.not173 = icmp eq i64 %18, 0
  br i1 %.not173, label %.lr.ph170, label %.preheader149.us.preheader

.preheader149.us.preheader:                       ; preds = %.preheader149.lr.ph
  %xtraiter = and i64 %18, 3
  %19 = icmp ult i64 %18, 4
  %unroll_iter = and i64 %18, -4
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader149.us

.preheader149.us:                                 ; preds = %.preheader149.us.preheader, %._crit_edge.us
  %.0127153.us = phi i64 [ %42, %._crit_edge.us ], [ 0, %.preheader149.us.preheader ]
  %.0133152.us = phi i64 [ %41, %._crit_edge.us ], [ 0, %.preheader149.us.preheader ]
  %20 = getelementptr double, ptr %12, i64 %.0133152.us
  br i1 %19, label %._crit_edge.us.unr-lcssa, label %.preheader149.us.new

.preheader149.us.new:                             ; preds = %.preheader149.us, %.preheader149.us.new
  %.0129151.us = phi i64 [ %36, %.preheader149.us.new ], [ 0, %.preheader149.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader149.us.new ], [ 0, %.preheader149.us ]
  %21 = icmp eq i64 %.0129151.us, %.0127153.us
  %22 = uitofp i1 %21 to double
  %23 = getelementptr double, ptr %20, i64 %.0129151.us
  store double %22, ptr %23, align 8, !tbaa !14
  %24 = or disjoint i64 %.0129151.us, 1
  %25 = icmp eq i64 %24, %.0127153.us
  %26 = uitofp i1 %25 to double
  %27 = getelementptr double, ptr %20, i64 %24
  store double %26, ptr %27, align 8, !tbaa !14
  %28 = or disjoint i64 %.0129151.us, 2
  %29 = icmp eq i64 %28, %.0127153.us
  %30 = uitofp i1 %29 to double
  %31 = getelementptr double, ptr %20, i64 %28
  store double %30, ptr %31, align 8, !tbaa !14
  %32 = or disjoint i64 %.0129151.us, 3
  %33 = icmp eq i64 %32, %.0127153.us
  %34 = uitofp i1 %33 to double
  %35 = getelementptr double, ptr %20, i64 %32
  store double %34, ptr %35, align 8, !tbaa !14
  %36 = add nuw i64 %.0129151.us, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.preheader149.us.new, !llvm.loop !16

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader149.us.new, %.preheader149.us
  %.0129151.us.unr = phi i64 [ 0, %.preheader149.us ], [ %36, %.preheader149.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %.0129151.us.epil = phi i64 [ %40, %.epil.preheader ], [ %.0129151.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %37 = icmp eq i64 %.0129151.us.epil, %.0127153.us
  %38 = uitofp i1 %37 to double
  %39 = getelementptr double, ptr %20, i64 %.0129151.us.epil
  store double %38, ptr %39, align 8, !tbaa !14
  %40 = add nuw i64 %.0129151.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !18

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %41 = add i64 %18, %.0133152.us
  %42 = add i64 %.0127153.us, 1
  %43 = icmp ult i64 %41, %10
  br i1 %43, label %.preheader149.us, label %.preheader147, !llvm.loop !20

44:                                               ; preds = %14
  tail call void @free(ptr noundef nonnull %12) #7
  br label %.loopexit148.sink.split

.preheader147:                                    ; preds = %._crit_edge.us
  br i1 %.not172, label %.loopexit148, label %.lr.ph170

.lr.ph170:                                        ; preds = %.preheader149.lr.ph, %.preheader147
  %.not175 = icmp eq i64 %.fr177, 0
  %45 = shl i64 %.fr177, 3
  %46 = shl i64 %.fr177, 3
  %47 = shl i64 %.fr177, 3
  %48 = shl i64 %.fr177, 3
  %scevgep241 = getelementptr i8, ptr %9, i64 %48
  %scevgep246 = getelementptr i8, ptr %12, i64 %48
  %min.iters.check273 = icmp ult i64 %.fr177, 10
  %bound0263 = icmp ult ptr %9, %scevgep246
  %bound1264 = icmp ult ptr %12, %scevgep241
  %found.conflict265 = and i1 %bound0263, %bound1264
  %n.vec276 = and i64 %.fr177, -2
  %cmp.n285 = icmp eq i64 %.fr177, %n.vec276
  %min.iters.check224 = icmp eq i64 %.fr177, 1
  %n.vec227 = and i64 %.fr177, -2
  %cmp.n236 = icmp eq i64 %.fr177, %n.vec227
  %xtraiter288 = and i64 %.fr177, 1
  %lcmp.mod289.not = icmp eq i64 %xtraiter288, 0
  %min.iters.check = icmp ult i64 %.fr177, 6
  %n.vec = and i64 %.fr177, -2
  %cmp.n = icmp eq i64 %.fr177, %n.vec
  br label %49

49:                                               ; preds = %.lr.ph170, %.split.us
  %.0126169 = phi i64 [ 0, %.lr.ph170 ], [ %152, %.split.us ]
  %.1134168 = phi i64 [ 0, %.lr.ph170 ], [ %59, %.split.us ]
  %50 = mul i64 %48, %.0126169
  %scevgep238 = getelementptr i8, ptr %9, i64 %50
  %51 = add i64 %48, %50
  %scevgep239 = getelementptr i8, ptr %9, i64 %51
  %scevgep243 = getelementptr i8, ptr %12, i64 %50
  %scevgep244 = getelementptr i8, ptr %12, i64 %51
  %52 = mul i64 %47, %.0126169
  %scevgep215 = getelementptr i8, ptr %9, i64 %52
  %53 = add i64 %47, %52
  %scevgep216 = getelementptr i8, ptr %9, i64 %53
  %scevgep217 = getelementptr i8, ptr %12, i64 %52
  %scevgep218 = getelementptr i8, ptr %12, i64 %53
  %54 = mul i64 %46, %.0126169
  %scevgep192 = getelementptr i8, ptr %9, i64 %54
  %55 = add i64 %45, %54
  %scevgep193 = getelementptr i8, ptr %9, i64 %55
  %scevgep194 = getelementptr i8, ptr %12, i64 %54
  %scevgep195 = getelementptr i8, ptr %12, i64 %55
  %56 = getelementptr double, ptr %9, i64 %.1134168
  %57 = getelementptr double, ptr %56, i64 %.0126169
  %58 = load double, ptr %57, align 8, !tbaa !14
  %59 = add i64 %.1134168, %.fr177
  %invariant.gep = getelementptr double, ptr %9, i64 %.0126169
  %60 = icmp ult i64 %59, %10
  br i1 %60, label %.lr.ph, label %.loopexit146

.lr.ph:                                           ; preds = %49, %.lr.ph
  %.0124156 = phi double [ %.1125, %.lr.ph ], [ %58, %49 ]
  %.1128155 = phi i64 [ %.2, %.lr.ph ], [ %.1134168, %49 ]
  %.1130154 = phi i64 [ %65, %.lr.ph ], [ %59, %49 ]
  %gep = getelementptr double, ptr %invariant.gep, i64 %.1130154
  %61 = load double, ptr %gep, align 8, !tbaa !14
  %62 = tail call double @llvm.fabs.f64(double %61)
  %63 = tail call double @llvm.fabs.f64(double %.0124156)
  %64 = fcmp ogt double %62, %63
  %.2 = select i1 %64, i64 %.1130154, i64 %.1128155
  %.1125 = select i1 %64, double %61, double %.0124156
  %65 = add i64 %.1130154, %.fr177
  %66 = icmp ult i64 %65, %10
  br i1 %66, label %.lr.ph, label %._crit_edge, !llvm.loop !21

._crit_edge:                                      ; preds = %.lr.ph
  %.not142 = icmp eq i64 %.2, %.1134168
  %brmerge = or i1 %.not142, %.not175
  br i1 %brmerge, label %.loopexit146, label %.lr.ph158.preheader

.lr.ph158.preheader:                              ; preds = %._crit_edge
  br i1 %min.iters.check273, label %.lr.ph158.preheader287, label %vector.memcheck237

vector.memcheck237:                               ; preds = %.lr.ph158.preheader
  %67 = shl i64 %.2, 3
  %scevgep240 = getelementptr i8, ptr %9, i64 %67
  %scevgep242 = getelementptr i8, ptr %scevgep241, i64 %67
  %scevgep245 = getelementptr i8, ptr %12, i64 %67
  %scevgep247 = getelementptr i8, ptr %scevgep246, i64 %67
  %bound0248 = icmp ult ptr %scevgep238, %scevgep242
  %bound1249 = icmp ult ptr %scevgep240, %scevgep239
  %found.conflict250 = and i1 %bound0248, %bound1249
  %bound0251 = icmp ult ptr %scevgep238, %scevgep244
  %bound1252 = icmp ult ptr %scevgep243, %scevgep239
  %found.conflict253 = and i1 %bound0251, %bound1252
  %conflict.rdx254 = or i1 %found.conflict250, %found.conflict253
  %bound0255 = icmp ult ptr %scevgep238, %scevgep247
  %bound1256 = icmp ult ptr %scevgep245, %scevgep239
  %found.conflict257 = and i1 %bound0255, %bound1256
  %conflict.rdx258 = or i1 %conflict.rdx254, %found.conflict257
  %bound0259 = icmp ult ptr %scevgep240, %scevgep244
  %bound1260 = icmp ult ptr %scevgep243, %scevgep242
  %found.conflict261 = and i1 %bound0259, %bound1260
  %conflict.rdx262 = or i1 %conflict.rdx258, %found.conflict261
  %conflict.rdx266 = or i1 %conflict.rdx262, %found.conflict265
  %bound0267 = icmp ult ptr %scevgep243, %scevgep247
  %bound1268 = icmp ult ptr %scevgep245, %scevgep244
  %found.conflict269 = and i1 %bound0267, %bound1268
  %conflict.rdx270 = or i1 %conflict.rdx266, %found.conflict269
  br i1 %conflict.rdx270, label %.lr.ph158.preheader287, label %vector.body278

vector.body278:                                   ; preds = %vector.memcheck237, %vector.body278
  %index279 = phi i64 [ %index.next284, %vector.body278 ], [ 0, %vector.memcheck237 ]
  %68 = add i64 %index279, %.1134168
  %69 = getelementptr inbounds double, ptr %9, i64 %68
  %wide.load280 = load <2 x double>, ptr %69, align 8, !tbaa !14, !alias.scope !22, !noalias !25
  %70 = add i64 %index279, %.2
  %71 = getelementptr inbounds double, ptr %9, i64 %70
  %wide.load281 = load <2 x double>, ptr %71, align 8, !tbaa !14, !alias.scope !29, !noalias !30
  store <2 x double> %wide.load281, ptr %69, align 8, !tbaa !14, !alias.scope !22, !noalias !25
  store <2 x double> %wide.load280, ptr %71, align 8, !tbaa !14, !alias.scope !29, !noalias !30
  %72 = getelementptr inbounds double, ptr %12, i64 %68
  %wide.load282 = load <2 x double>, ptr %72, align 8, !tbaa !14, !alias.scope !31, !noalias !32
  %73 = getelementptr inbounds double, ptr %12, i64 %70
  %wide.load283 = load <2 x double>, ptr %73, align 8, !tbaa !14, !alias.scope !32
  store <2 x double> %wide.load283, ptr %72, align 8, !tbaa !14, !alias.scope !31, !noalias !32
  store <2 x double> %wide.load282, ptr %73, align 8, !tbaa !14, !alias.scope !32
  %index.next284 = add nuw i64 %index279, 2
  %74 = icmp eq i64 %index.next284, %n.vec276
  br i1 %74, label %middle.block271, label %vector.body278, !llvm.loop !33

middle.block271:                                  ; preds = %vector.body278
  br i1 %cmp.n285, label %.loopexit146.loopexit, label %.lr.ph158.preheader287

.lr.ph158.preheader287:                           ; preds = %middle.block271, %vector.memcheck237, %.lr.ph158.preheader
  %.2131157.ph = phi i64 [ 0, %vector.memcheck237 ], [ 0, %.lr.ph158.preheader ], [ %n.vec276, %middle.block271 ]
  br label %.lr.ph158

.lr.ph158:                                        ; preds = %.lr.ph158.preheader287, %.lr.ph158
  %.2131157 = phi i64 [ %85, %.lr.ph158 ], [ %.2131157.ph, %.lr.ph158.preheader287 ]
  %75 = add i64 %.2131157, %.1134168
  %76 = getelementptr inbounds double, ptr %9, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !14
  %78 = add i64 %.2131157, %.2
  %79 = getelementptr inbounds double, ptr %9, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !14
  store double %80, ptr %76, align 8, !tbaa !14
  store double %77, ptr %79, align 8, !tbaa !14
  %81 = getelementptr inbounds double, ptr %12, i64 %75
  %82 = load double, ptr %81, align 8, !tbaa !14
  %83 = getelementptr inbounds double, ptr %12, i64 %78
  %84 = load double, ptr %83, align 8, !tbaa !14
  store double %84, ptr %81, align 8, !tbaa !14
  store double %82, ptr %83, align 8, !tbaa !14
  %85 = add nuw i64 %.2131157, 1
  %exitcond181.not = icmp eq i64 %85, %.fr177
  br i1 %exitcond181.not, label %.loopexit146.loopexit, label %.lr.ph158, !llvm.loop !36

.loopexit146.loopexit:                            ; preds = %.lr.ph158, %middle.block271
  %.pre = load double, ptr %57, align 8, !tbaa !14
  br label %.loopexit146

.loopexit146:                                     ; preds = %49, %.loopexit146.loopexit, %._crit_edge
  %86 = phi double [ %.pre, %.loopexit146.loopexit ], [ %58, %._crit_edge ], [ %58, %49 ]
  %87 = tail call double @llvm.fabs.f64(double %86)
  %88 = fcmp olt double %87, 0x3EB0C6F7A0B5ED8D
  br i1 %88, label %104, label %.preheader144

.preheader144:                                    ; preds = %.loopexit146
  br i1 %.not175, label %.split.us, label %.lr.ph160.preheader

.lr.ph160.preheader:                              ; preds = %.preheader144
  br i1 %min.iters.check224, label %.lr.ph160.preheader286, label %vector.memcheck214

.lr.ph160.preheader286:                           ; preds = %middle.block222, %vector.memcheck214, %.lr.ph160.preheader
  %.3132159.ph = phi i64 [ 0, %vector.memcheck214 ], [ 0, %.lr.ph160.preheader ], [ %n.vec227, %middle.block222 ]
  %.neg = or disjoint i64 %.3132159.ph, 1
  br i1 %lcmp.mod289.not, label %.lr.ph160.prol.loopexit, label %.lr.ph160.prol

.lr.ph160.prol:                                   ; preds = %.lr.ph160.preheader286
  %89 = add i64 %.3132159.ph, %.1134168
  %90 = getelementptr inbounds double, ptr %9, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !14
  %92 = fdiv double %91, %86
  store double %92, ptr %90, align 8, !tbaa !14
  %93 = getelementptr inbounds double, ptr %12, i64 %89
  %94 = load double, ptr %93, align 8, !tbaa !14
  %95 = fdiv double %94, %86
  store double %95, ptr %93, align 8, !tbaa !14
  %96 = or disjoint i64 %.3132159.ph, 1
  br label %.lr.ph160.prol.loopexit

.lr.ph160.prol.loopexit:                          ; preds = %.lr.ph160.prol, %.lr.ph160.preheader286
  %.3132159.unr = phi i64 [ %.3132159.ph, %.lr.ph160.preheader286 ], [ %96, %.lr.ph160.prol ]
  %97 = icmp eq i64 %.fr177, %.neg
  br i1 %97, label %.preheader.split.us.preheader, label %.lr.ph160

vector.memcheck214:                               ; preds = %.lr.ph160.preheader
  %bound0219 = icmp ult ptr %scevgep215, %scevgep218
  %bound1220 = icmp ult ptr %scevgep217, %scevgep216
  %found.conflict221 = and i1 %bound0219, %bound1220
  br i1 %found.conflict221, label %.lr.ph160.preheader286, label %vector.ph225

vector.ph225:                                     ; preds = %vector.memcheck214
  %broadcast.splatinsert232 = insertelement <2 x double> poison, double %86, i64 0
  %broadcast.splat233 = shufflevector <2 x double> %broadcast.splatinsert232, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body229

vector.body229:                                   ; preds = %vector.body229, %vector.ph225
  %index230 = phi i64 [ 0, %vector.ph225 ], [ %index.next235, %vector.body229 ]
  %98 = add i64 %index230, %.1134168
  %99 = getelementptr inbounds double, ptr %9, i64 %98
  %wide.load231 = load <2 x double>, ptr %99, align 8, !tbaa !14, !alias.scope !37, !noalias !40
  %100 = fdiv <2 x double> %wide.load231, %broadcast.splat233
  store <2 x double> %100, ptr %99, align 8, !tbaa !14, !alias.scope !37, !noalias !40
  %101 = getelementptr inbounds double, ptr %12, i64 %98
  %wide.load234 = load <2 x double>, ptr %101, align 8, !tbaa !14, !alias.scope !40
  %102 = fdiv <2 x double> %wide.load234, %broadcast.splat233
  store <2 x double> %102, ptr %101, align 8, !tbaa !14, !alias.scope !40
  %index.next235 = add nuw i64 %index230, 2
  %103 = icmp eq i64 %index.next235, %n.vec227
  br i1 %103, label %middle.block222, label %vector.body229, !llvm.loop !42

middle.block222:                                  ; preds = %vector.body229
  br i1 %cmp.n236, label %.preheader.split.us.preheader, label %.lr.ph160.preheader286

.preheader.split.us.preheader:                    ; preds = %.lr.ph160.prol.loopexit, %.lr.ph160, %middle.block222
  br label %.preheader.split.us

104:                                              ; preds = %.loopexit146
  tail call void @mln_matrix_free(ptr noundef nonnull %15)
  br label %.loopexit148.sink.split

.preheader.split.us:                              ; preds = %.preheader.split.us.preheader, %..loopexit_crit_edge.us
  %indvar = phi i64 [ %indvar.next, %..loopexit_crit_edge.us ], [ 0, %.preheader.split.us.preheader ]
  %.4166.us = phi i64 [ %134, %..loopexit_crit_edge.us ], [ 0, %.preheader.split.us.preheader ]
  %105 = mul i64 %45, %indvar
  %scevgep = getelementptr i8, ptr %9, i64 %105
  %106 = add i64 %45, %105
  %scevgep189 = getelementptr i8, ptr %9, i64 %106
  %scevgep190 = getelementptr i8, ptr %12, i64 %105
  %scevgep191 = getelementptr i8, ptr %12, i64 %106
  %.not143.us = icmp eq i64 %.4166.us, %.1134168
  br i1 %.not143.us, label %..loopexit_crit_edge.us, label %.lr.ph163.us

.lr.ph163.us:                                     ; preds = %.preheader.split.us
  %gep165.us = getelementptr double, ptr %invariant.gep, i64 %.4166.us
  %107 = load double, ptr %gep165.us, align 8, !tbaa !14
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph163.us
  %bound0 = icmp ult ptr %scevgep, %scevgep191
  %bound1 = icmp ult ptr %scevgep190, %scevgep189
  %found.conflict = and i1 %bound0, %bound1
  %bound0196 = icmp ult ptr %scevgep, %scevgep193
  %bound1197 = icmp ult ptr %scevgep192, %scevgep189
  %found.conflict198 = and i1 %bound0196, %bound1197
  %conflict.rdx = or i1 %found.conflict, %found.conflict198
  %bound0199 = icmp ult ptr %scevgep, %scevgep195
  %bound1200 = icmp ult ptr %scevgep194, %scevgep189
  %found.conflict201 = and i1 %bound0199, %bound1200
  %conflict.rdx202 = or i1 %conflict.rdx, %found.conflict201
  %bound0203 = icmp ult ptr %scevgep190, %scevgep193
  %bound1204 = icmp ult ptr %scevgep192, %scevgep191
  %found.conflict205 = and i1 %bound0203, %bound1204
  %conflict.rdx206 = or i1 %conflict.rdx202, %found.conflict205
  %bound0207 = icmp ult ptr %scevgep190, %scevgep195
  %bound1208 = icmp ult ptr %scevgep194, %scevgep191
  %found.conflict209 = and i1 %bound0207, %bound1208
  %conflict.rdx210 = or i1 %conflict.rdx206, %found.conflict209
  br i1 %conflict.rdx210, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %broadcast.splatinsert = insertelement <2 x double> poison, double %107, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %108 = add i64 %index, %.1134168
  %109 = getelementptr inbounds double, ptr %9, i64 %108
  %wide.load = load <2 x double>, ptr %109, align 8, !tbaa !14, !alias.scope !43
  %110 = add i64 %index, %.4166.us
  %111 = getelementptr inbounds double, ptr %9, i64 %110
  %wide.load211 = load <2 x double>, ptr %111, align 8, !tbaa !14, !alias.scope !46, !noalias !48
  %112 = fneg <2 x double> %wide.load
  %113 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %112, <2 x double> %broadcast.splat, <2 x double> %wide.load211)
  store <2 x double> %113, ptr %111, align 8, !tbaa !14, !alias.scope !46, !noalias !48
  %114 = getelementptr inbounds double, ptr %12, i64 %108
  %wide.load212 = load <2 x double>, ptr %114, align 8, !tbaa !14, !alias.scope !51
  %115 = getelementptr inbounds double, ptr %12, i64 %110
  %wide.load213 = load <2 x double>, ptr %115, align 8, !tbaa !14, !alias.scope !52, !noalias !53
  %116 = fneg <2 x double> %wide.load212
  %117 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %116, <2 x double> %broadcast.splat, <2 x double> %wide.load213)
  store <2 x double> %117, ptr %115, align 8, !tbaa !14, !alias.scope !52, !noalias !53
  %index.next = add nuw i64 %index, 2
  %118 = icmp eq i64 %index.next, %n.vec
  br i1 %118, label %middle.block, label %vector.body, !llvm.loop !54

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %..loopexit_crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph163.us
  %.3161.us.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph163.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.3161.us = phi i64 [ %133, %scalar.ph ], [ %.3161.us.ph, %scalar.ph.preheader ]
  %119 = add i64 %.3161.us, %.1134168
  %120 = getelementptr inbounds double, ptr %9, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !14
  %122 = add i64 %.3161.us, %.4166.us
  %123 = getelementptr inbounds double, ptr %9, i64 %122
  %124 = load double, ptr %123, align 8, !tbaa !14
  %125 = fneg double %121
  %126 = tail call double @llvm.fmuladd.f64(double %125, double %107, double %124)
  store double %126, ptr %123, align 8, !tbaa !14
  %127 = getelementptr inbounds double, ptr %12, i64 %119
  %128 = load double, ptr %127, align 8, !tbaa !14
  %129 = getelementptr inbounds double, ptr %12, i64 %122
  %130 = load double, ptr %129, align 8, !tbaa !14
  %131 = fneg double %128
  %132 = tail call double @llvm.fmuladd.f64(double %131, double %107, double %130)
  store double %132, ptr %129, align 8, !tbaa !14
  %133 = add nuw i64 %.3161.us, 1
  %exitcond183.not = icmp eq i64 %133, %.fr177
  br i1 %exitcond183.not, label %..loopexit_crit_edge.us, label %scalar.ph, !llvm.loop !55

..loopexit_crit_edge.us:                          ; preds = %scalar.ph, %middle.block, %.preheader.split.us
  %134 = add i64 %.4166.us, %.fr177
  %135 = icmp ult i64 %134, %10
  %indvar.next = add i64 %indvar, 1
  br i1 %135, label %.preheader.split.us, label %.split.us, !llvm.loop !56

.lr.ph160:                                        ; preds = %.lr.ph160.prol.loopexit, %.lr.ph160
  %.3132159 = phi i64 [ %151, %.lr.ph160 ], [ %.3132159.unr, %.lr.ph160.prol.loopexit ]
  %136 = add i64 %.3132159, %.1134168
  %137 = getelementptr inbounds double, ptr %9, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !14
  %139 = fdiv double %138, %86
  store double %139, ptr %137, align 8, !tbaa !14
  %140 = getelementptr inbounds double, ptr %12, i64 %136
  %141 = load double, ptr %140, align 8, !tbaa !14
  %142 = fdiv double %141, %86
  store double %142, ptr %140, align 8, !tbaa !14
  %143 = add nuw i64 %.3132159, 1
  %144 = add i64 %143, %.1134168
  %145 = getelementptr inbounds double, ptr %9, i64 %144
  %146 = load double, ptr %145, align 8, !tbaa !14
  %147 = fdiv double %146, %86
  store double %147, ptr %145, align 8, !tbaa !14
  %148 = getelementptr inbounds double, ptr %12, i64 %144
  %149 = load double, ptr %148, align 8, !tbaa !14
  %150 = fdiv double %149, %86
  store double %150, ptr %148, align 8, !tbaa !14
  %151 = add nuw i64 %.3132159, 2
  %exitcond182.not.1 = icmp eq i64 %151, %.fr177
  br i1 %exitcond182.not.1, label %.preheader.split.us.preheader, label %.lr.ph160, !llvm.loop !57

.split.us:                                        ; preds = %..loopexit_crit_edge.us, %.preheader144
  %152 = add i64 %.0126169, 1
  br i1 %60, label %49, label %.loopexit148, !llvm.loop !58

.loopexit148.sink.split:                          ; preds = %7, %1, %3, %104, %44
  %.sink = phi i32 [ 12, %44 ], [ 22, %104 ], [ 22, %3 ], [ 22, %1 ], [ 12, %7 ]
  %153 = tail call ptr @__errno_location() #8
  store i32 %.sink, ptr %153, align 4, !tbaa !59
  br label %.loopexit148

.loopexit148:                                     ; preds = %.split.us, %.loopexit148.sink.split, %.preheader150, %.preheader147
  %.1 = phi ptr [ %15, %.preheader147 ], [ %15, %.preheader150 ], [ null, %.loopexit148.sink.split ], [ %15, %.split.us ]
  ret ptr %.1
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nosync nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16, !11, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !10, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = !{!23}
!23 = distinct !{!23, !24}
!24 = distinct !{!24, !"LVerDomain"}
!25 = !{!26, !27, !28}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}
!28 = distinct !{!28, !24}
!29 = !{!26}
!30 = !{!27, !28}
!31 = !{!27}
!32 = !{!28}
!33 = distinct !{!33, !17, !34, !35}
!34 = !{!"llvm.loop.isvectorized", i32 1}
!35 = !{!"llvm.loop.unroll.runtime.disable"}
!36 = distinct !{!36, !17, !34}
!37 = !{!38}
!38 = distinct !{!38, !39}
!39 = distinct !{!39, !"LVerDomain"}
!40 = !{!41}
!41 = distinct !{!41, !39}
!42 = distinct !{!42, !17, !34, !35}
!43 = !{!44}
!44 = distinct !{!44, !45}
!45 = distinct !{!45, !"LVerDomain"}
!46 = !{!47}
!47 = distinct !{!47, !45}
!48 = !{!49, !44, !50}
!49 = distinct !{!49, !45}
!50 = distinct !{!50, !45}
!51 = !{!50}
!52 = !{!49}
!53 = !{!44, !50}
!54 = distinct !{!54, !17, !34, !35}
!55 = distinct !{!55, !17, !34}
!56 = distinct !{!56, !17}
!57 = distinct !{!57, !17, !34}
!58 = distinct !{!58, !17}
!59 = !{!11, !11, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass