; LLVM IR from jgaeddert/liquid-dsp :: src/matrix/src (matrixf)

; 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"

@.str.3 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [50 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @matrixf_cgsolve(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #1 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca i32, align 4
  %33 = alloca float, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %38

36:                                               ; preds = %5
  %37 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef @.str.3, i32 noundef 53, ptr noundef @.str.4)
  store i32 %37, ptr %6, align 4
  br label %299

38:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = mul i32 4, %39
  store i32 %40, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store double 0x3EB0C6F7A0B5ED8D, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %41 = load i32, ptr %8, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = call ptr @llvm.stacksave.p0()
  store ptr %43, ptr %15, align 8
  %44 = alloca float, i64 %42, align 16
  store i64 %42, ptr %16, align 8
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = alloca float, i64 %46, align 16
  store i64 %46, ptr %17, align 8
  %48 = load i32, ptr %8, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = alloca float, i64 %49, align 16
  store i64 %49, ptr %18, align 8
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = alloca float, i64 %52, align 16
  store i64 %52, ptr %19, align 8
  %54 = load i32, ptr %8, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = alloca float, i64 %55, align 16
  store i64 %55, ptr %20, align 8
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = alloca float, i64 %58, align 16
  store i64 %58, ptr %21, align 8
  %60 = load i32, ptr %8, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = alloca float, i64 %61, align 16
  store i64 %61, ptr %22, align 8
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = alloca float, i64 %64, align 16
  store i64 %64, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  store double 0.000000e+00, ptr %31, align 8, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %74, %38
  %67 = load i32, ptr %14, align 4, !tbaa !9
  %68 = load i32, ptr %8, align 4, !tbaa !9
  %69 = icmp ult i32 %67, %68
  br i1 %69, label %70, label %77

70:                                               ; preds = %66
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds float, ptr %44, i64 %72
  store float 0.000000e+00, ptr %73, align 4, !tbaa !13
  br label %74

74:                                               ; preds = %70
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = add i32 %75, 1
  store i32 %76, ptr %14, align 4, !tbaa !9
  br label %66, !llvm.loop !15

77:                                               ; preds = %66
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %91, %77
  %79 = load i32, ptr %14, align 4, !tbaa !9
  %80 = load i32, ptr %8, align 4, !tbaa !9
  %81 = icmp ult i32 %79, %80
  br i1 %81, label %82, label %94

82:                                               ; preds = %78
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = zext i32 %84 to i64
  %86 = getelementptr inbounds float, ptr %83, i64 %85
  %87 = load float, ptr %86, align 4, !tbaa !13
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %50, i64 %89
  store float %87, ptr %90, align 4, !tbaa !13
  br label %91

91:                                               ; preds = %82
  %92 = load i32, ptr %14, align 4, !tbaa !9
  %93 = add i32 %92, 1
  store i32 %93, ptr %14, align 4, !tbaa !9
  br label %78, !llvm.loop !17

94:                                               ; preds = %78
  %95 = load i32, ptr %8, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = mul i64 %96, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 16 %56, ptr align 16 %50, i64 %97, i1 false)
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = load i32, ptr %8, align 4, !tbaa !9
  %100 = call i32 @matrixf_transpose_mul(ptr noundef %98, i32 noundef %99, i32 noundef 1, ptr noundef %24)
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = call i32 @matrixf_transpose_mul(ptr noundef %56, i32 noundef %101, i32 noundef 1, ptr noundef %25)
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = mul i64 %105, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %103, ptr align 16 %44, i64 %106, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %284, %94
  %108 = load i32, ptr %32, align 4, !tbaa !9
  %109 = load i32, ptr %12, align 4, !tbaa !9
  %110 = icmp ult i32 %108, %109
  br i1 %110, label %111, label %121

111:                                              ; preds = %107
  %112 = load float, ptr %25, align 4, !tbaa !13
  %113 = fpext float %112 to double
  %114 = load double, ptr %13, align 8, !tbaa !11
  %115 = load double, ptr %13, align 8, !tbaa !11
  %116 = fmul double %114, %115
  %117 = load float, ptr %24, align 4, !tbaa !13
  %118 = fpext float %117 to double
  %119 = fmul double %116, %118
  %120 = fcmp ogt double %113, %119
  br label %121

121:                                              ; preds = %111, %107
  %122 = phi i1 [ false, %107 ], [ %120, %111 ]
  br i1 %122, label %123, label %297

123:                                              ; preds = %121
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = load i32, ptr %8, align 4, !tbaa !9
  %126 = load i32, ptr %8, align 4, !tbaa !9
  %127 = load i32, ptr %8, align 4, !tbaa !9
  %128 = load i32, ptr %8, align 4, !tbaa !9
  %129 = call i32 @matrixf_mul(ptr noundef %124, i32 noundef %125, i32 noundef %126, ptr noundef %50, i32 noundef %127, i32 noundef 1, ptr noundef %62, i32 noundef %128, i32 noundef 1)
  store float 0.000000e+00, ptr %27, align 4, !tbaa !13
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %151, %123
  %131 = load i32, ptr %14, align 4, !tbaa !9
  %132 = load i32, ptr %8, align 4, !tbaa !9
  %133 = icmp ult i32 %131, %132
  br i1 %133, label %134, label %154

134:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds float, ptr %50, i64 %136
  %138 = load float, ptr %137, align 4, !tbaa !13
  %139 = fpext float %138 to double
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds float, ptr %62, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !13
  %144 = fpext float %143 to double
  %145 = fmul double %139, %144
  %146 = fmul double -0.000000e+00, %144
  %147 = fptrunc double %145 to float
  store float %147, ptr %33, align 4, !tbaa !13
  %148 = load float, ptr %33, align 4, !tbaa !13
  %149 = load float, ptr %27, align 4, !tbaa !13
  %150 = fadd float %149, %148
  store float %150, ptr %27, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %151

151:                                              ; preds = %134
  %152 = load i32, ptr %14, align 4, !tbaa !9
  %153 = add i32 %152, 1
  store i32 %153, ptr %14, align 4, !tbaa !9
  br label %130, !llvm.loop !18

154:                                              ; preds = %130
  %155 = load float, ptr %25, align 4, !tbaa !13
  %156 = load float, ptr %27, align 4, !tbaa !13
  %157 = fdiv float %155, %156
  store float %157, ptr %28, align 4, !tbaa !13
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %176, %154
  %159 = load i32, ptr %14, align 4, !tbaa !9
  %160 = load i32, ptr %8, align 4, !tbaa !9
  %161 = icmp ult i32 %159, %160
  br i1 %161, label %162, label %179

162:                                              ; preds = %158
  %163 = load i32, ptr %14, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds float, ptr %44, i64 %164
  %166 = load float, ptr %165, align 4, !tbaa !13
  %167 = load float, ptr %28, align 4, !tbaa !13
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds float, ptr %50, i64 %169
  %171 = load float, ptr %170, align 4, !tbaa !13
  %172 = call float @llvm.fmuladd.f32(float %167, float %171, float %166)
  %173 = load i32, ptr %14, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = getelementptr inbounds float, ptr %47, i64 %174
  store float %172, ptr %175, align 4, !tbaa !13
  br label %176

176:                                              ; preds = %162
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = add i32 %177, 1
  store i32 %178, ptr %14, align 4, !tbaa !9
  br label %158, !llvm.loop !19

179:                                              ; preds = %158
  %180 = load i32, ptr %32, align 4, !tbaa !9
  %181 = add i32 %180, 1
  %182 = urem i32 %181, 50
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %184, label %213

184:                                              ; preds = %179
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = load i32, ptr %8, align 4, !tbaa !9
  %187 = load i32, ptr %8, align 4, !tbaa !9
  %188 = load i32, ptr %8, align 4, !tbaa !9
  %189 = load i32, ptr %8, align 4, !tbaa !9
  %190 = call i32 @matrixf_mul(ptr noundef %185, i32 noundef %186, i32 noundef %187, ptr noundef %47, i32 noundef %188, i32 noundef 1, ptr noundef %65, i32 noundef %189, i32 noundef 1)
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %209, %184
  %192 = load i32, ptr %14, align 4, !tbaa !9
  %193 = load i32, ptr %8, align 4, !tbaa !9
  %194 = icmp ult i32 %192, %193
  br i1 %194, label %195, label %212

195:                                              ; preds = %191
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = load i32, ptr %14, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds float, ptr %196, i64 %198
  %200 = load float, ptr %199, align 4, !tbaa !13
  %201 = load i32, ptr %14, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = getelementptr inbounds float, ptr %65, i64 %202
  %204 = load float, ptr %203, align 4, !tbaa !13
  %205 = fsub float %200, %204
  %206 = load i32, ptr %14, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = getelementptr inbounds float, ptr %59, i64 %207
  store float %205, ptr %208, align 4, !tbaa !13
  br label %209

209:                                              ; preds = %195
  %210 = load i32, ptr %14, align 4, !tbaa !9
  %211 = add i32 %210, 1
  store i32 %211, ptr %14, align 4, !tbaa !9
  br label %191, !llvm.loop !20

212:                                              ; preds = %191
  br label %237

213:                                              ; preds = %179
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %214

214:                                              ; preds = %233, %213
  %215 = load i32, ptr %14, align 4, !tbaa !9
  %216 = load i32, ptr %8, align 4, !tbaa !9
  %217 = icmp ult i32 %215, %216
  br i1 %217, label %218, label %236

218:                                              ; preds = %214
  %219 = load i32, ptr %14, align 4, !tbaa !9
  %220 = zext i32 %219 to i64
  %221 = getelementptr inbounds float, ptr %56, i64 %220
  %222 = load float, ptr %221, align 4, !tbaa !13
  %223 = load float, ptr %28, align 4, !tbaa !13
  %224 = load i32, ptr %14, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = getelementptr inbounds float, ptr %62, i64 %225
  %227 = load float, ptr %226, align 4, !tbaa !13
  %228 = fneg float %223
  %229 = call float @llvm.fmuladd.f32(float %228, float %227, float %222)
  %230 = load i32, ptr %14, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = getelementptr inbounds float, ptr %59, i64 %231
  store float %229, ptr %232, align 4, !tbaa !13
  br label %233

233:                                              ; preds = %218
  %234 = load i32, ptr %14, align 4, !tbaa !9
  %235 = add i32 %234, 1
  store i32 %235, ptr %14, align 4, !tbaa !9
  br label %214, !llvm.loop !21

236:                                              ; preds = %214
  br label %237

237:                                              ; preds = %236, %212
  %238 = load i32, ptr %8, align 4, !tbaa !9
  %239 = call i32 @matrixf_transpose_mul(ptr noundef %59, i32 noundef %238, i32 noundef 1, ptr noundef %26)
  %240 = load float, ptr %26, align 4, !tbaa !13
  %241 = load float, ptr %25, align 4, !tbaa !13
  %242 = fdiv float %240, %241
  store float %242, ptr %29, align 4, !tbaa !13
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %243

243:                                              ; preds = %261, %237
  %244 = load i32, ptr %14, align 4, !tbaa !9
  %245 = load i32, ptr %8, align 4, !tbaa !9
  %246 = icmp ult i32 %244, %245
  br i1 %246, label %247, label %264

247:                                              ; preds = %243
  %248 = load i32, ptr %14, align 4, !tbaa !9
  %249 = zext i32 %248 to i64
  %250 = getelementptr inbounds float, ptr %59, i64 %249
  %251 = load float, ptr %250, align 4, !tbaa !13
  %252 = load float, ptr %29, align 4, !tbaa !13
  %253 = load i32, ptr %14, align 4, !tbaa !9
  %254 = zext i32 %253 to i64
  %255 = getelementptr inbounds float, ptr %50, i64 %254
  %256 = load float, ptr %255, align 4, !tbaa !13
  %257 = call float @llvm.fmuladd.f32(float %252, float %256, float %251)
  %258 = load i32, ptr %14, align 4, !tbaa !9
  %259 = zext i32 %258 to i64
  %260 = getelementptr inbounds float, ptr %53, i64 %259
  store float %257, ptr %260, align 4, !tbaa !13
  br label %261

261:                                              ; preds = %247
  %262 = load i32, ptr %14, align 4, !tbaa !9
  %263 = add i32 %262, 1
  store i32 %263, ptr %14, align 4, !tbaa !9
  br label %243, !llvm.loop !22

264:                                              ; preds = %243
  %265 = load float, ptr %26, align 4, !tbaa !13
  %266 = call float @llvm.fabs.f32(float %265)
  %267 = load float, ptr %24, align 4, !tbaa !13
  %268 = call float @llvm.fabs.f32(float %267)
  %269 = fdiv float %266, %268
  %270 = fpext float %269 to double
  %271 = call double @sqrt(double noundef %270) #7
  store double %271, ptr %30, align 8, !tbaa !11
  %272 = load i32, ptr %32, align 4, !tbaa !9
  %273 = icmp eq i32 %272, 0
  br i1 %273, label %278, label %274

274:                                              ; preds = %264
  %275 = load double, ptr %30, align 8, !tbaa !11
  %276 = load double, ptr %31, align 8, !tbaa !11
  %277 = fcmp olt double %275, %276
  br i1 %277, label %278, label %284

278:                                              ; preds = %274, %264
  %279 = load double, ptr %30, align 8, !tbaa !11
  store double %279, ptr %31, align 8, !tbaa !11
  %280 = load ptr, ptr %10, align 8, !tbaa !5
  %281 = load i32, ptr %8, align 4, !tbaa !9
  %282 = zext i32 %281 to i64
  %283 = mul i64 %282, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 4 %280, ptr align 16 %47, i64 %283, i1 false)
  br label %284

284:                                              ; preds = %278, %274
  %285 = load i32, ptr %8, align 4, !tbaa !9
  %286 = zext i32 %285 to i64
  %287 = mul i64 %286, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 16 %44, ptr align 16 %47, i64 %287, i1 false)
  %288 = load i32, ptr %8, align 4, !tbaa !9
  %289 = zext i32 %288 to i64
  %290 = mul i64 %289, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 16 %50, ptr align 16 %53, i64 %290, i1 false)
  %291 = load i32, ptr %8, align 4, !tbaa !9
  %292 = zext i32 %291 to i64
  %293 = mul i64 %292, 4
  call void @llvm.memmove.p0.p0.i64(ptr align 16 %56, ptr align 16 %59, i64 %293, i1 false)
  %294 = load float, ptr %26, align 4, !tbaa !13
  store float %294, ptr %25, align 4, !tbaa !13
  %295 = load i32, ptr %32, align 4, !tbaa !9
  %296 = add i32 %295, 1
  store i32 %296, ptr %32, align 4, !tbaa !9
  br label %107, !llvm.loop !23

297:                                              ; preds = %121
  store i32 0, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  %298 = load ptr, ptr %15, align 8
  call void @llvm.stackrestore.p0(ptr %298)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %299

299:                                              ; preds = %297, %36
  %300 = load i32, ptr %6, align 4
  ret i32 %300
}

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @matrixf_transpose_mul(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @matrixf_mul(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #6

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nounwind }

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}


; 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"

@.str.3 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [50 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @matrixf_cgsolve(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef readnone %4) local_unnamed_addr #1 {
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = icmp eq i32 %1, 0
  br i1 %9, label %10, label %._crit_edge

10:                                               ; preds = %5
  %11 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 3, ptr noundef nonnull @.str.3, i32 noundef 53, ptr noundef nonnull @.str.4) #8
  br label %145

._crit_edge:                                      ; preds = %5
  %12 = zext i32 %1 to i64
  %13 = tail call ptr @llvm.stacksave.p0()
  %14 = alloca float, i64 %12, align 16
  %15 = alloca float, i64 %12, align 16
  %16 = alloca float, i64 %12, align 16
  %17 = alloca float, i64 %12, align 16
  %18 = alloca float, i64 %12, align 16
  %19 = alloca float, i64 %12, align 16
  %20 = alloca float, i64 %12, align 16
  %21 = alloca float, i64 %12, align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  %22 = shl nuw nsw i64 %12, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 %14, i8 0, i64 %22, i1 false), !tbaa !5
  %23 = shl i32 %1, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %16, ptr align 4 %2, i64 %22, i1 false), !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %18, ptr align 4 %2, i64 %22, i1 false)
  %24 = call i32 @matrixf_transpose_mul(ptr noundef %2, i32 noundef %1, i32 noundef 1, ptr noundef nonnull %6)
  %25 = call i32 @matrixf_transpose_mul(ptr noundef nonnull %18, i32 noundef %1, i32 noundef 1, ptr noundef nonnull %7)
  call void @llvm.memset.p0.i64(ptr align 4 %3, i8 0, i64 %22, i1 false)
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %.critedge, label %.lr.ph120

.lr.ph120:                                        ; preds = %._crit_edge
  %.pre = load float, ptr %7, align 4, !tbaa !5
  %.pre151 = load float, ptr %6, align 4, !tbaa !5
  %wide.trip.count = zext i32 %1 to i64
  %wide.trip.count130 = zext i32 %1 to i64
  %wide.trip.count136 = zext i32 %1 to i64
  %wide.trip.count142 = zext i32 %1 to i64
  %wide.trip.count148 = zext i32 %1 to i64
  %26 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %wide.trip.count, 3
  %27 = icmp ult i64 %26, 3
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %min.iters.check191 = icmp ult i32 %1, 8
  %n.vec194 = and i64 %wide.trip.count, 4294967288
  %cmp.n205 = icmp eq i64 %n.vec194, %wide.trip.count
  %min.iters.check159 = icmp ult i32 %1, 8
  %n.vec177 = and i64 %wide.trip.count, 4294967288
  %cmp.n188 = icmp eq i64 %n.vec177, %wide.trip.count
  %n.vec162 = and i64 %wide.trip.count, 4294967288
  %cmp.n171 = icmp eq i64 %n.vec162, %wide.trip.count
  %min.iters.check = icmp ult i32 %1, 8
  %n.vec = and i64 %wide.trip.count, 4294967288
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %28

28:                                               ; preds = %.lr.ph120, %144
  %29 = phi float [ %.pre151, %.lr.ph120 ], [ %137, %144 ]
  %30 = phi float [ %.pre, %.lr.ph120 ], [ %119, %144 ]
  %.089118 = phi i32 [ 0, %.lr.ph120 ], [ %83, %144 ]
  %.090117 = phi double [ 0.000000e+00, %.lr.ph120 ], [ %.1, %144 ]
  %31 = fpext float %30 to double
  %32 = fpext float %29 to double
  %33 = fmul double %32, 0x3D719799812DEA11
  %34 = fcmp olt double %33, %31
  br i1 %34, label %.lr.ph102.preheader, label %.critedge

.lr.ph102.preheader:                              ; preds = %28
  %35 = call i32 @matrixf_mul(ptr noundef %0, i32 noundef %1, i32 noundef %1, ptr noundef nonnull %16, i32 noundef %1, i32 noundef 1, ptr noundef nonnull %20, i32 noundef %1, i32 noundef 1)
  br i1 %27, label %.lr.ph106.preheader.unr-lcssa, label %.lr.ph102

.lr.ph102:                                        ; preds = %.lr.ph102.preheader, %.lr.ph102
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph102 ], [ 0, %.lr.ph102.preheader ]
  %.09399 = phi float [ %59, %.lr.ph102 ], [ 0.000000e+00, %.lr.ph102.preheader ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph102 ], [ 0, %.lr.ph102.preheader ]
  %36 = getelementptr inbounds float, ptr %16, i64 %indvars.iv
  %37 = load float, ptr %36, align 16, !tbaa !5
  %38 = getelementptr inbounds float, ptr %20, i64 %indvars.iv
  %39 = load float, ptr %38, align 16, !tbaa !5
  %40 = fmul float %37, %39
  %41 = fadd float %.09399, %40
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %42 = getelementptr inbounds float, ptr %16, i64 %indvars.iv.next
  %43 = load float, ptr %42, align 4, !tbaa !5
  %44 = getelementptr inbounds float, ptr %20, i64 %indvars.iv.next
  %45 = load float, ptr %44, align 4, !tbaa !5
  %46 = fmul float %43, %45
  %47 = fadd float %41, %46
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %48 = getelementptr inbounds float, ptr %16, i64 %indvars.iv.next.1
  %49 = load float, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds float, ptr %20, i64 %indvars.iv.next.1
  %51 = load float, ptr %50, align 8, !tbaa !5
  %52 = fmul float %49, %51
  %53 = fadd float %47, %52
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %54 = getelementptr inbounds float, ptr %16, i64 %indvars.iv.next.2
  %55 = load float, ptr %54, align 4, !tbaa !5
  %56 = getelementptr inbounds float, ptr %20, i64 %indvars.iv.next.2
  %57 = load float, ptr %56, align 4, !tbaa !5
  %58 = fmul float %55, %57
  %59 = fadd float %53, %58
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add nuw i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.lr.ph106.preheader.unr-lcssa, label %.lr.ph102, !llvm.loop !9

.lr.ph106.preheader.unr-lcssa:                    ; preds = %.lr.ph102, %.lr.ph102.preheader
  %.lcssa.ph = phi float [ poison, %.lr.ph102.preheader ], [ %59, %.lr.ph102 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph102.preheader ], [ %indvars.iv.next.3, %.lr.ph102 ]
  %.09399.unr = phi float [ 0.000000e+00, %.lr.ph102.preheader ], [ %59, %.lr.ph102 ]
  br i1 %lcmp.mod.not, label %.lr.ph106.preheader, label %.lr.ph102.epil

.lr.ph102.epil:                                   ; preds = %.lr.ph106.preheader.unr-lcssa, %.lr.ph102.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph102.epil ], [ %indvars.iv.unr, %.lr.ph106.preheader.unr-lcssa ]
  %.09399.epil = phi float [ %65, %.lr.ph102.epil ], [ %.09399.unr, %.lr.ph106.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph102.epil ], [ 0, %.lr.ph106.preheader.unr-lcssa ]
  %60 = getelementptr inbounds float, ptr %16, i64 %indvars.iv.epil
  %61 = load float, ptr %60, align 4, !tbaa !5
  %62 = getelementptr inbounds float, ptr %20, i64 %indvars.iv.epil
  %63 = load float, ptr %62, align 4, !tbaa !5
  %64 = fmul float %61, %63
  %65 = fadd float %.09399.epil, %64
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.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 %.lr.ph106.preheader, label %.lr.ph102.epil, !llvm.loop !11

.lr.ph106.preheader:                              ; preds = %.lr.ph102.epil, %.lr.ph106.preheader.unr-lcssa
  %.lcssa = phi float [ %.lcssa.ph, %.lr.ph106.preheader.unr-lcssa ], [ %65, %.lr.ph102.epil ]
  %66 = load float, ptr %7, align 4, !tbaa !5
  %67 = fdiv float %66, %.lcssa
  br i1 %min.iters.check191, label %.lr.ph106.preheader209, label %vector.ph192

vector.ph192:                                     ; preds = %.lr.ph106.preheader
  %broadcast.splatinsert202 = insertelement <4 x float> poison, float %67, i64 0
  %broadcast.splat203 = shufflevector <4 x float> %broadcast.splatinsert202, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body196

vector.body196:                                   ; preds = %vector.body196, %vector.ph192
  %index197 = phi i64 [ 0, %vector.ph192 ], [ %index.next204, %vector.body196 ]
  %68 = getelementptr inbounds float, ptr %14, i64 %index197
  %69 = getelementptr inbounds i8, ptr %68, i64 16
  %wide.load198 = load <4 x float>, ptr %68, align 16, !tbaa !5
  %wide.load199 = load <4 x float>, ptr %69, align 16, !tbaa !5
  %70 = getelementptr inbounds float, ptr %16, i64 %index197
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %wide.load200 = load <4 x float>, ptr %70, align 16, !tbaa !5
  %wide.load201 = load <4 x float>, ptr %71, align 16, !tbaa !5
  %72 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat203, <4 x float> %wide.load200, <4 x float> %wide.load198)
  %73 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat203, <4 x float> %wide.load201, <4 x float> %wide.load199)
  %74 = getelementptr inbounds float, ptr %15, i64 %index197
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  store <4 x float> %72, ptr %74, align 16, !tbaa !5
  store <4 x float> %73, ptr %75, align 16, !tbaa !5
  %index.next204 = add nuw i64 %index197, 8
  %76 = icmp eq i64 %index.next204, %n.vec194
  br i1 %76, label %middle.block189, label %vector.body196, !llvm.loop !13

middle.block189:                                  ; preds = %vector.body196
  br i1 %cmp.n205, label %._crit_edge107, label %.lr.ph106.preheader209

.lr.ph106.preheader209:                           ; preds = %middle.block189, %.lr.ph106.preheader
  %indvars.iv126.ph = phi i64 [ 0, %.lr.ph106.preheader ], [ %n.vec194, %middle.block189 ]
  br label %.lr.ph106

.lr.ph106:                                        ; preds = %.lr.ph106.preheader209, %.lr.ph106
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %.lr.ph106 ], [ %indvars.iv126.ph, %.lr.ph106.preheader209 ]
  %77 = getelementptr inbounds float, ptr %14, i64 %indvars.iv126
  %78 = load float, ptr %77, align 4, !tbaa !5
  %79 = getelementptr inbounds float, ptr %16, i64 %indvars.iv126
  %80 = load float, ptr %79, align 4, !tbaa !5
  %81 = call float @llvm.fmuladd.f32(float %67, float %80, float %78)
  %82 = getelementptr inbounds float, ptr %15, i64 %indvars.iv126
  store float %81, ptr %82, align 4, !tbaa !5
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %exitcond131.not = icmp eq i64 %indvars.iv.next127, %wide.trip.count130
  br i1 %exitcond131.not, label %._crit_edge107, label %.lr.ph106, !llvm.loop !16

._crit_edge107:                                   ; preds = %.lr.ph106, %middle.block189
  %83 = add nuw i32 %.089118, 1
  %84 = urem i32 %83, 50
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %.lr.ph112.preheader, label %.lr.ph109

.lr.ph109:                                        ; preds = %._crit_edge107
  %86 = fneg float %67
  br i1 %min.iters.check159, label %scalar.ph173.preheader, label %vector.ph175

scalar.ph173.preheader:                           ; preds = %middle.block172, %.lr.ph109
  %indvars.iv132.ph = phi i64 [ 0, %.lr.ph109 ], [ %n.vec177, %middle.block172 ]
  br label %scalar.ph173

vector.ph175:                                     ; preds = %.lr.ph109
  %broadcast.splatinsert185 = insertelement <4 x float> poison, float %86, i64 0
  %broadcast.splat186 = shufflevector <4 x float> %broadcast.splatinsert185, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body179

vector.body179:                                   ; preds = %vector.body179, %vector.ph175
  %index180 = phi i64 [ 0, %vector.ph175 ], [ %index.next187, %vector.body179 ]
  %87 = getelementptr inbounds float, ptr %18, i64 %index180
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  %wide.load181 = load <4 x float>, ptr %87, align 16, !tbaa !5
  %wide.load182 = load <4 x float>, ptr %88, align 16, !tbaa !5
  %89 = getelementptr inbounds float, ptr %20, i64 %index180
  %90 = getelementptr inbounds i8, ptr %89, i64 16
  %wide.load183 = load <4 x float>, ptr %89, align 16, !tbaa !5
  %wide.load184 = load <4 x float>, ptr %90, align 16, !tbaa !5
  %91 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat186, <4 x float> %wide.load183, <4 x float> %wide.load181)
  %92 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat186, <4 x float> %wide.load184, <4 x float> %wide.load182)
  %93 = getelementptr inbounds float, ptr %19, i64 %index180
  %94 = getelementptr inbounds i8, ptr %93, i64 16
  store <4 x float> %91, ptr %93, align 16, !tbaa !5
  store <4 x float> %92, ptr %94, align 16, !tbaa !5
  %index.next187 = add nuw i64 %index180, 8
  %95 = icmp eq i64 %index.next187, %n.vec177
  br i1 %95, label %middle.block172, label %vector.body179, !llvm.loop !17

middle.block172:                                  ; preds = %vector.body179
  br i1 %cmp.n188, label %.lr.ph115.preheader, label %scalar.ph173.preheader

.lr.ph112.preheader:                              ; preds = %._crit_edge107
  %96 = call i32 @matrixf_mul(ptr noundef %0, i32 noundef %1, i32 noundef %1, ptr noundef nonnull %15, i32 noundef %1, i32 noundef 1, ptr noundef nonnull %21, i32 noundef %1, i32 noundef 1)
  br i1 %min.iters.check159, label %.lr.ph112.preheader207, label %vector.body164

vector.body164:                                   ; preds = %.lr.ph112.preheader, %vector.body164
  %index165 = phi i64 [ %index.next170, %vector.body164 ], [ 0, %.lr.ph112.preheader ]
  %97 = getelementptr inbounds float, ptr %2, i64 %index165
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  %wide.load166 = load <4 x float>, ptr %97, align 4, !tbaa !5
  %wide.load167 = load <4 x float>, ptr %98, align 4, !tbaa !5
  %99 = getelementptr inbounds float, ptr %21, i64 %index165
  %100 = getelementptr inbounds i8, ptr %99, i64 16
  %wide.load168 = load <4 x float>, ptr %99, align 16, !tbaa !5
  %wide.load169 = load <4 x float>, ptr %100, align 16, !tbaa !5
  %101 = fsub <4 x float> %wide.load166, %wide.load168
  %102 = fsub <4 x float> %wide.load167, %wide.load169
  %103 = getelementptr inbounds float, ptr %19, i64 %index165
  %104 = getelementptr inbounds i8, ptr %103, i64 16
  store <4 x float> %101, ptr %103, align 16, !tbaa !5
  store <4 x float> %102, ptr %104, align 16, !tbaa !5
  %index.next170 = add nuw i64 %index165, 8
  %105 = icmp eq i64 %index.next170, %n.vec162
  br i1 %105, label %middle.block157, label %vector.body164, !llvm.loop !18

middle.block157:                                  ; preds = %vector.body164
  br i1 %cmp.n171, label %.lr.ph115.preheader, label %.lr.ph112.preheader207

.lr.ph112.preheader207:                           ; preds = %middle.block157, %.lr.ph112.preheader
  %indvars.iv138.ph = phi i64 [ 0, %.lr.ph112.preheader ], [ %n.vec162, %middle.block157 ]
  br label %.lr.ph112

.lr.ph112:                                        ; preds = %.lr.ph112.preheader207, %.lr.ph112
  %indvars.iv138 = phi i64 [ %indvars.iv.next139, %.lr.ph112 ], [ %indvars.iv138.ph, %.lr.ph112.preheader207 ]
  %106 = getelementptr inbounds float, ptr %2, i64 %indvars.iv138
  %107 = load float, ptr %106, align 4, !tbaa !5
  %108 = getelementptr inbounds float, ptr %21, i64 %indvars.iv138
  %109 = load float, ptr %108, align 4, !tbaa !5
  %110 = fsub float %107, %109
  %111 = getelementptr inbounds float, ptr %19, i64 %indvars.iv138
  store float %110, ptr %111, align 4, !tbaa !5
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %exitcond143.not = icmp eq i64 %indvars.iv.next139, %wide.trip.count142
  br i1 %exitcond143.not, label %.lr.ph115.preheader, label %.lr.ph112, !llvm.loop !19

scalar.ph173:                                     ; preds = %scalar.ph173.preheader, %scalar.ph173
  %indvars.iv132 = phi i64 [ %indvars.iv.next133, %scalar.ph173 ], [ %indvars.iv132.ph, %scalar.ph173.preheader ]
  %112 = getelementptr inbounds float, ptr %18, i64 %indvars.iv132
  %113 = load float, ptr %112, align 4, !tbaa !5
  %114 = getelementptr inbounds float, ptr %20, i64 %indvars.iv132
  %115 = load float, ptr %114, align 4, !tbaa !5
  %116 = call float @llvm.fmuladd.f32(float %86, float %115, float %113)
  %117 = getelementptr inbounds float, ptr %19, i64 %indvars.iv132
  store float %116, ptr %117, align 4, !tbaa !5
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %exitcond137.not = icmp eq i64 %indvars.iv.next133, %wide.trip.count136
  br i1 %exitcond137.not, label %.lr.ph115.preheader, label %scalar.ph173, !llvm.loop !20

.lr.ph115.preheader:                              ; preds = %scalar.ph173, %.lr.ph112, %middle.block172, %middle.block157
  %118 = call i32 @matrixf_transpose_mul(ptr noundef nonnull %19, i32 noundef %1, i32 noundef 1, ptr noundef nonnull %8)
  %119 = load float, ptr %8, align 4, !tbaa !5
  %120 = load float, ptr %7, align 4, !tbaa !5
  %121 = fdiv float %119, %120
  br i1 %min.iters.check, label %.lr.ph115.preheader206, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph115.preheader
  %broadcast.splatinsert = insertelement <4 x float> poison, float %121, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %122 = getelementptr inbounds float, ptr %19, i64 %index
  %123 = getelementptr inbounds i8, ptr %122, i64 16
  %wide.load = load <4 x float>, ptr %122, align 16, !tbaa !5
  %wide.load154 = load <4 x float>, ptr %123, align 16, !tbaa !5
  %124 = getelementptr inbounds float, ptr %16, i64 %index
  %125 = getelementptr inbounds i8, ptr %124, i64 16
  %wide.load155 = load <4 x float>, ptr %124, align 16, !tbaa !5
  %wide.load156 = load <4 x float>, ptr %125, align 16, !tbaa !5
  %126 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat, <4 x float> %wide.load155, <4 x float> %wide.load)
  %127 = call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat, <4 x float> %wide.load156, <4 x float> %wide.load154)
  %128 = getelementptr inbounds float, ptr %17, i64 %index
  %129 = getelementptr inbounds i8, ptr %128, i64 16
  store <4 x float> %126, ptr %128, align 16, !tbaa !5
  store <4 x float> %127, ptr %129, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %130 = icmp eq i64 %index.next, %n.vec
  br i1 %130, label %middle.block, label %vector.body, !llvm.loop !21

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge116, label %.lr.ph115.preheader206

.lr.ph115.preheader206:                           ; preds = %middle.block, %.lr.ph115.preheader
  %indvars.iv144.ph = phi i64 [ 0, %.lr.ph115.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph115

.lr.ph115:                                        ; preds = %.lr.ph115.preheader206, %.lr.ph115
  %indvars.iv144 = phi i64 [ %indvars.iv.next145, %.lr.ph115 ], [ %indvars.iv144.ph, %.lr.ph115.preheader206 ]
  %131 = getelementptr inbounds float, ptr %19, i64 %indvars.iv144
  %132 = load float, ptr %131, align 4, !tbaa !5
  %133 = getelementptr inbounds float, ptr %16, i64 %indvars.iv144
  %134 = load float, ptr %133, align 4, !tbaa !5
  %135 = call float @llvm.fmuladd.f32(float %121, float %134, float %132)
  %136 = getelementptr inbounds float, ptr %17, i64 %indvars.iv144
  store float %135, ptr %136, align 4, !tbaa !5
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %exitcond149.not = icmp eq i64 %indvars.iv.next145, %wide.trip.count148
  br i1 %exitcond149.not, label %._crit_edge116, label %.lr.ph115, !llvm.loop !22

._crit_edge116:                                   ; preds = %.lr.ph115, %middle.block
  %137 = load float, ptr %6, align 4, !tbaa !5
  %138 = fdiv float %119, %137
  %139 = call float @llvm.fabs.f32(float %138)
  %140 = fpext float %139 to double
  %sqrt = call double @llvm.sqrt.f64(double %140)
  %141 = icmp eq i32 %.089118, 0
  %142 = fcmp olt double %sqrt, %.090117
  %or.cond = select i1 %141, i1 true, i1 %142
  br i1 %or.cond, label %143, label %144

143:                                              ; preds = %._crit_edge116
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr nonnull align 16 %15, i64 %22, i1 false)
  br label %144

144:                                              ; preds = %._crit_edge116, %143
  %.1 = phi double [ %sqrt, %143 ], [ %.090117, %._crit_edge116 ]
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %14, ptr nonnull align 16 %15, i64 %22, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %16, ptr nonnull align 16 %17, i64 %22, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %18, ptr nonnull align 16 %19, i64 %22, i1 false)
  store float %119, ptr %7, align 4, !tbaa !5
  %exitcond150.not = icmp eq i32 %83, %23
  br i1 %exitcond150.not, label %.critedge, label %28, !llvm.loop !23

.critedge:                                        ; preds = %28, %144, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.stackrestore.p0(ptr %13)
  br label %145

145:                                              ; preds = %.critedge, %10
  %.0 = phi i32 [ %11, %10 ], [ 0, %.critedge ]
  ret i32 %.0
}

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @matrixf_transpose_mul(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @matrixf_mul(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 nocallback nofree nosync nounwind willreturn }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = distinct !{!13, !10, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !10, !15, !14}
!17 = distinct !{!17, !10, !14, !15}
!18 = distinct !{!18, !10, !14, !15}
!19 = distinct !{!19, !10, !15, !14}
!20 = distinct !{!20, !10, !15, !14}
!21 = distinct !{!21, !10, !14, !15}
!22 = distinct !{!22, !10, !15, !14}
!23 = distinct !{!23, !10}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass