; LLVM IR from ljm941004/HYPERCV_PUBLIC :: modules/process/src/c_src (matrixprocess)

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

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @cal_eigen_vector_float(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #4 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  %22 = alloca i32, align 4
  %23 = alloca float, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = load i32, ptr %10, align 4, !tbaa !9
  %28 = mul nsw i32 %26, %27
  %29 = sext i32 %28 to i64
  %30 = mul i64 %29, 4
  %31 = call noalias ptr @malloc(i64 noundef %30) #7
  store ptr %31, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %267, %5
  %33 = load i32, ptr %13, align 4, !tbaa !9
  %34 = load i32, ptr %10, align 4, !tbaa !9
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %270

37:                                               ; preds = %32
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = load i32, ptr %13, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds float, ptr %38, i64 %40
  %42 = load float, ptr %41, align 4, !tbaa !11
  store float %42, ptr %12, align 4, !tbaa !11
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = load i32, ptr %10, align 4, !tbaa !9
  %47 = mul nsw i32 %45, %46
  %48 = sext i32 %47 to i64
  %49 = mul i64 %48, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %44, i64 %49, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %67, %37
  %51 = load i32, ptr %15, align 4, !tbaa !9
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %70

55:                                               ; preds = %50
  %56 = load float, ptr %12, align 4, !tbaa !11
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = load i32, ptr %15, align 4, !tbaa !9
  %59 = load i32, ptr %10, align 4, !tbaa !9
  %60 = mul nsw i32 %58, %59
  %61 = load i32, ptr %15, align 4, !tbaa !9
  %62 = add nsw i32 %60, %61
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %57, i64 %63
  %65 = load float, ptr %64, align 4, !tbaa !11
  %66 = fsub float %65, %56
  store float %66, ptr %64, align 4, !tbaa !11
  br label %67

67:                                               ; preds = %55
  %68 = load i32, ptr %15, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %15, align 4, !tbaa !9
  br label %50, !llvm.loop !13

70:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %161, %70
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = sub nsw i32 %73, 1
  %75 = icmp slt i32 %72, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %71
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %164

77:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = load i32, ptr %16, align 4, !tbaa !9
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = mul nsw i32 %79, %80
  %82 = load i32, ptr %16, align 4, !tbaa !9
  %83 = add nsw i32 %81, %82
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %78, i64 %84
  %86 = load float, ptr %85, align 4, !tbaa !11
  store float %86, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 1, ptr %18, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %104, %77
  %88 = load i32, ptr %18, align 4, !tbaa !9
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %107

92:                                               ; preds = %87
  %93 = load float, ptr %17, align 4, !tbaa !11
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = load i32, ptr %16, align 4, !tbaa !9
  %96 = load i32, ptr %10, align 4, !tbaa !9
  %97 = mul nsw i32 %95, %96
  %98 = load i32, ptr %18, align 4, !tbaa !9
  %99 = add nsw i32 %97, %98
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds float, ptr %94, i64 %100
  %102 = load float, ptr %101, align 4, !tbaa !11
  %103 = fdiv float %102, %93
  store float %103, ptr %101, align 4, !tbaa !11
  br label %104

104:                                              ; preds = %92
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %18, align 4, !tbaa !9
  br label %87, !llvm.loop !15

107:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %108 = load i32, ptr %16, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %19, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %157, %107
  %111 = load i32, ptr %19, align 4, !tbaa !9
  %112 = load i32, ptr %9, align 4, !tbaa !9
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  store i32 14, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %160

115:                                              ; preds = %110
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = load i32, ptr %19, align 4, !tbaa !9
  %118 = load i32, ptr %10, align 4, !tbaa !9
  %119 = mul nsw i32 %117, %118
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = add nsw i32 %119, %120
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds float, ptr %116, i64 %122
  %124 = load float, ptr %123, align 4, !tbaa !11
  store float %124, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %125 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %125, ptr %20, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %153, %115
  %127 = load i32, ptr %20, align 4, !tbaa !9
  %128 = load i32, ptr %10, align 4, !tbaa !9
  %129 = icmp slt i32 %127, %128
  br i1 %129, label %131, label %130

130:                                              ; preds = %126
  store i32 17, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %156

131:                                              ; preds = %126
  %132 = load float, ptr %17, align 4, !tbaa !11
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = load i32, ptr %16, align 4, !tbaa !9
  %135 = load i32, ptr %10, align 4, !tbaa !9
  %136 = mul nsw i32 %134, %135
  %137 = load i32, ptr %20, align 4, !tbaa !9
  %138 = add nsw i32 %136, %137
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds float, ptr %133, i64 %139
  %141 = load float, ptr %140, align 4, !tbaa !11
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = load i32, ptr %19, align 4, !tbaa !9
  %144 = load i32, ptr %10, align 4, !tbaa !9
  %145 = mul nsw i32 %143, %144
  %146 = load i32, ptr %20, align 4, !tbaa !9
  %147 = add nsw i32 %145, %146
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds float, ptr %142, i64 %148
  %150 = load float, ptr %149, align 4, !tbaa !11
  %151 = fneg float %132
  %152 = call float @llvm.fmuladd.f32(float %151, float %141, float %150)
  store float %152, ptr %149, align 4, !tbaa !11
  br label %153

153:                                              ; preds = %131
  %154 = load i32, ptr %20, align 4, !tbaa !9
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %20, align 4, !tbaa !9
  br label %126, !llvm.loop !16

156:                                              ; preds = %130
  br label %157

157:                                              ; preds = %156
  %158 = load i32, ptr %19, align 4, !tbaa !9
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %19, align 4, !tbaa !9
  br label %110, !llvm.loop !17

160:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %16, align 4, !tbaa !9
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %16, align 4, !tbaa !9
  br label %71, !llvm.loop !18

164:                                              ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store float 1.000000e+00, ptr %21, align 4, !tbaa !11
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = load i32, ptr %9, align 4, !tbaa !9
  %167 = sub nsw i32 %166, 1
  %168 = load i32, ptr %10, align 4, !tbaa !9
  %169 = mul nsw i32 %167, %168
  %170 = load i32, ptr %13, align 4, !tbaa !9
  %171 = add nsw i32 %169, %170
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds float, ptr %165, i64 %172
  store float 1.000000e+00, ptr %173, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %174 = load i32, ptr %9, align 4, !tbaa !9
  %175 = sub nsw i32 %174, 2
  store i32 %175, ptr %22, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %238, %164
  %177 = load i32, ptr %22, align 4, !tbaa !9
  %178 = icmp sge i32 %177, 0
  br i1 %178, label %180, label %179

179:                                              ; preds = %176
  store i32 20, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %241

180:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store float 0.000000e+00, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %181 = load i32, ptr %22, align 4, !tbaa !9
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %24, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %209, %180
  %184 = load i32, ptr %24, align 4, !tbaa !9
  %185 = load i32, ptr %10, align 4, !tbaa !9
  %186 = icmp slt i32 %184, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %183
  store i32 23, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %212

188:                                              ; preds = %183
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = load i32, ptr %22, align 4, !tbaa !9
  %191 = load i32, ptr %10, align 4, !tbaa !9
  %192 = mul nsw i32 %190, %191
  %193 = load i32, ptr %24, align 4, !tbaa !9
  %194 = add nsw i32 %192, %193
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds float, ptr %189, i64 %195
  %197 = load float, ptr %196, align 4, !tbaa !11
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = load i32, ptr %24, align 4, !tbaa !9
  %200 = load i32, ptr %10, align 4, !tbaa !9
  %201 = mul nsw i32 %199, %200
  %202 = load i32, ptr %13, align 4, !tbaa !9
  %203 = add nsw i32 %201, %202
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds float, ptr %198, i64 %204
  %206 = load float, ptr %205, align 4, !tbaa !11
  %207 = load float, ptr %23, align 4, !tbaa !11
  %208 = call float @llvm.fmuladd.f32(float %197, float %206, float %207)
  store float %208, ptr %23, align 4, !tbaa !11
  br label %209

209:                                              ; preds = %188
  %210 = load i32, ptr %24, align 4, !tbaa !9
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %24, align 4, !tbaa !9
  br label %183, !llvm.loop !19

212:                                              ; preds = %187
  %213 = load float, ptr %23, align 4, !tbaa !11
  %214 = fneg float %213
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  %216 = load i32, ptr %22, align 4, !tbaa !9
  %217 = load i32, ptr %10, align 4, !tbaa !9
  %218 = mul nsw i32 %216, %217
  %219 = load i32, ptr %22, align 4, !tbaa !9
  %220 = add nsw i32 %218, %219
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds float, ptr %215, i64 %221
  %223 = load float, ptr %222, align 4, !tbaa !11
  %224 = fdiv float %214, %223
  store float %224, ptr %23, align 4, !tbaa !11
  %225 = load float, ptr %23, align 4, !tbaa !11
  %226 = load float, ptr %23, align 4, !tbaa !11
  %227 = load float, ptr %21, align 4, !tbaa !11
  %228 = call float @llvm.fmuladd.f32(float %225, float %226, float %227)
  store float %228, ptr %21, align 4, !tbaa !11
  %229 = load float, ptr %23, align 4, !tbaa !11
  %230 = load ptr, ptr %7, align 8, !tbaa !5
  %231 = load i32, ptr %22, align 4, !tbaa !9
  %232 = load i32, ptr %10, align 4, !tbaa !9
  %233 = mul nsw i32 %231, %232
  %234 = load i32, ptr %13, align 4, !tbaa !9
  %235 = add nsw i32 %233, %234
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds float, ptr %230, i64 %236
  store float %229, ptr %237, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %238

238:                                              ; preds = %212
  %239 = load i32, ptr %22, align 4, !tbaa !9
  %240 = add nsw i32 %239, -1
  store i32 %240, ptr %22, align 4, !tbaa !9
  br label %176, !llvm.loop !20

241:                                              ; preds = %179
  %242 = load float, ptr %21, align 4, !tbaa !11
  %243 = fpext float %242 to double
  %244 = call double @sqrt(double noundef %243) #6
  %245 = fptrunc double %244 to float
  store float %245, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %246

246:                                              ; preds = %263, %241
  %247 = load i32, ptr %25, align 4, !tbaa !9
  %248 = load i32, ptr %9, align 4, !tbaa !9
  %249 = icmp slt i32 %247, %248
  br i1 %249, label %251, label %250

250:                                              ; preds = %246
  store i32 26, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %266

251:                                              ; preds = %246
  %252 = load float, ptr %21, align 4, !tbaa !11
  %253 = load ptr, ptr %7, align 8, !tbaa !5
  %254 = load i32, ptr %25, align 4, !tbaa !9
  %255 = load i32, ptr %10, align 4, !tbaa !9
  %256 = mul nsw i32 %254, %255
  %257 = load i32, ptr %13, align 4, !tbaa !9
  %258 = add nsw i32 %256, %257
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds float, ptr %253, i64 %259
  %261 = load float, ptr %260, align 4, !tbaa !11
  %262 = fdiv float %261, %252
  store float %262, ptr %260, align 4, !tbaa !11
  br label %263

263:                                              ; preds = %251
  %264 = load i32, ptr %25, align 4, !tbaa !9
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %25, align 4, !tbaa !9
  br label %246, !llvm.loop !21

266:                                              ; preds = %250
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %267

267:                                              ; preds = %266
  %268 = load i32, ptr %13, align 4, !tbaa !9
  %269 = add nsw i32 %268, 1
  store i32 %269, ptr %13, align 4, !tbaa !9
  br label %32, !llvm.loop !22

270:                                              ; preds = %36
  %271 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %271) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  ret void
}

; 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) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}


; 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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
define dso_local void @cal_eigen_vector_float(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = mul nsw i32 %4, %3
  %7 = sext i32 %6 to i64
  %8 = shl nsw i64 %7, 2
  %9 = tail call noalias ptr @malloc(i64 noundef %8) #6
  %10 = icmp sgt i32 %4, 0
  br i1 %10, label %.lr.ph141, label %._crit_edge142

.lr.ph141:                                        ; preds = %5
  %11 = icmp sgt i32 %3, 0
  %.0105110 = add nuw i32 %4, 1
  %12 = add i32 %3, -1
  %13 = icmp sgt i32 %3, 1
  %.not = icmp eq i32 %4, 1
  %14 = mul nsw i32 %12, %4
  %15 = add i32 %3, -2
  %16 = zext nneg i32 %4 to i64
  %17 = zext nneg i32 %4 to i64
  %18 = sext i32 %3 to i64
  %19 = sext i32 %15 to i64
  %20 = sext i32 %14 to i64
  %wide.trip.count = zext i32 %3 to i64
  %invariant.gep203 = getelementptr float, ptr %1, i64 %20
  %wide.trip.count166 = zext nneg i32 %12 to i64
  %wide.trip.count163 = zext nneg i32 %3 to i64
  %invariant.gep205 = getelementptr float, ptr %1, i64 %20
  %invariant.op = add nsw i64 %17, -1
  %wide.trip.count181 = zext nneg i32 %3 to i64
  %21 = shl nuw nsw i64 %16, 2
  %22 = add nuw nsw i64 %21, 4
  %23 = mul nuw nsw i64 %16, %wide.trip.count
  %24 = shl i64 %23, 2
  %scevgep208 = getelementptr i8, ptr %9, i64 %24
  %25 = shl nuw nsw i64 %16, 2
  %xtraiter = and i64 %wide.trip.count, 1
  %26 = icmp eq i32 %3, 1
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %27 = getelementptr i8, ptr %9, i64 %21
  %28 = getelementptr i8, ptr %9, i64 %21
  %min.iters.check230 = icmp ult i32 %4, 5
  %n.vec233 = and i64 %invariant.op, -4
  %ind.end234 = or disjoint i64 %n.vec233, 1
  %cmp.n243 = icmp eq i64 %invariant.op, %n.vec233
  %29 = add nsw i64 %17, -1
  %min.iters.check = icmp ugt i32 %3, 3
  %ident.check.not = icmp eq i32 %4, 1
  %or.cond = and i1 %min.iters.check, %ident.check.not
  %n.vec = and i64 %wide.trip.count, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %xtraiter249 = and i64 %wide.trip.count, 3
  %lcmp.mod250.not = icmp eq i64 %xtraiter249, 0
  br label %30

._crit_edge142:                                   ; preds = %._crit_edge138, %5
  tail call void @free(ptr noundef %9) #7
  ret void

30:                                               ; preds = %.lr.ph141, %._crit_edge138
  %indvars.iv183 = phi i64 [ 0, %.lr.ph141 ], [ %indvars.iv.next184, %._crit_edge138 ]
  %31 = getelementptr inbounds float, ptr %2, i64 %indvars.iv183
  %32 = load float, ptr %31, align 4, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %0, i64 %8, i1 false)
  br i1 %11, label %.lr.ph.preheader, label %._crit_edge124.thread

.lr.ph.preheader:                                 ; preds = %30
  br i1 %26, label %.preheader111.unr-lcssa, label %.lr.ph

.preheader111.unr-lcssa:                          ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  br i1 %lcmp.mod.not, label %.preheader111, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader111.unr-lcssa
  %33 = trunc nuw nsw i64 %indvars.iv.unr to i32
  %34 = mul i32 %.0105110, %33
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds float, ptr %9, i64 %35
  %37 = load float, ptr %36, align 4, !tbaa !5
  %38 = fsub float %37, %32
  store float %38, ptr %36, align 4, !tbaa !5
  br label %.preheader111

.preheader111:                                    ; preds = %.preheader111.unr-lcssa, %.lr.ph.epil
  br i1 %13, label %.lr.ph123, label %._crit_edge124.thread

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %39 = trunc nuw nsw i64 %indvars.iv to i32
  %40 = mul i32 %.0105110, %39
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds float, ptr %9, i64 %41
  %43 = load float, ptr %42, align 4, !tbaa !5
  %44 = fsub float %43, %32
  store float %44, ptr %42, align 4, !tbaa !5
  %45 = trunc i64 %indvars.iv to i32
  %46 = or disjoint i32 %45, 1
  %47 = mul i32 %.0105110, %46
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds float, ptr %9, i64 %48
  %50 = load float, ptr %49, align 4, !tbaa !5
  %51 = fsub float %50, %32
  store float %51, ptr %49, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader111.unr-lcssa, label %.lr.ph, !llvm.loop !9

.loopexit:                                        ; preds = %._crit_edge118.us, %.lr.ph121
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %exitcond167.not = icmp eq i64 %indvars.iv.next152, %wide.trip.count166
  br i1 %exitcond167.not, label %._crit_edge124, label %.lr.ph123, !llvm.loop !11

._crit_edge124.thread:                            ; preds = %.preheader111, %30
  %gep204 = getelementptr float, ptr %invariant.gep203, i64 %indvars.iv183
  store float 1.000000e+00, ptr %gep204, align 4, !tbaa !5
  br label %._crit_edge133

._crit_edge124:                                   ; preds = %.loopexit
  %gep206 = getelementptr float, ptr %invariant.gep205, i64 %indvars.iv183
  store float 1.000000e+00, ptr %gep206, align 4, !tbaa !5
  br i1 %13, label %.preheader.preheader, label %._crit_edge133

.preheader.preheader:                             ; preds = %._crit_edge124
  %invariant.gep197 = getelementptr float, ptr %1, i64 %indvars.iv183
  %invariant.gep199 = getelementptr float, ptr %1, i64 %indvars.iv183
  br label %.preheader

.lr.ph123:                                        ; preds = %.preheader111, %.loopexit
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %.loopexit ], [ 1, %.preheader111 ]
  %indvars.iv151 = phi i64 [ %indvars.iv.next152, %.loopexit ], [ 0, %.preheader111 ]
  %52 = sub nsw i64 %16, %indvars.iv151
  %53 = mul i64 %22, %indvars.iv151
  %scevgep = getelementptr i8, ptr %27, i64 %53
  %scevgep209 = getelementptr i8, ptr %9, i64 %53
  %54 = mul i64 %25, %indvars.iv151
  %scevgep210 = getelementptr i8, ptr %28, i64 %54
  %indvars165 = trunc i64 %indvars.iv151 to i32
  %55 = mul nuw nsw i64 %indvars.iv151, %16
  %56 = mul nuw nsw i32 %indvars165, %4
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds float, ptr %9, i64 %indvars.iv151
  %59 = getelementptr inbounds float, ptr %58, i64 %57
  %60 = load float, ptr %59, align 4, !tbaa !5
  br i1 %.not, label %.lr.ph121, label %.lr.ph114.preheader

.lr.ph114.preheader:                              ; preds = %.lr.ph123
  %invariant.gep = getelementptr inbounds float, ptr %9, i64 %55
  br i1 %min.iters.check230, label %.lr.ph114.preheader244, label %vector.ph231

.lr.ph114.preheader244:                           ; preds = %middle.block228, %.lr.ph114.preheader
  %indvars.iv146.ph = phi i64 [ 1, %.lr.ph114.preheader ], [ %ind.end234, %middle.block228 ]
  br label %.lr.ph114

vector.ph231:                                     ; preds = %.lr.ph114.preheader
  %broadcast.splatinsert240 = insertelement <4 x float> poison, float %60, i64 0
  %broadcast.splat241 = shufflevector <4 x float> %broadcast.splatinsert240, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body236

vector.body236:                                   ; preds = %vector.body236, %vector.ph231
  %index237 = phi i64 [ 0, %vector.ph231 ], [ %index.next242, %vector.body236 ]
  %offset.idx238 = or disjoint i64 %index237, 1
  %61 = getelementptr inbounds float, ptr %invariant.gep, i64 %offset.idx238
  %wide.load239 = load <4 x float>, ptr %61, align 4, !tbaa !5
  %62 = fdiv <4 x float> %wide.load239, %broadcast.splat241
  store <4 x float> %62, ptr %61, align 4, !tbaa !5
  %index.next242 = add nuw i64 %index237, 4
  %63 = icmp eq i64 %index.next242, %n.vec233
  br i1 %63, label %middle.block228, label %vector.body236, !llvm.loop !12

middle.block228:                                  ; preds = %vector.body236
  br i1 %cmp.n243, label %.lr.ph121, label %.lr.ph114.preheader244

.lr.ph121:                                        ; preds = %.lr.ph114, %middle.block228, %.lr.ph123
  %indvars.iv.next152 = add nuw nsw i64 %indvars.iv151, 1
  %64 = icmp ult i64 %indvars.iv151, %17
  br i1 %64, label %.lr.ph117.us.preheader, label %.loopexit

.lr.ph117.us.preheader:                           ; preds = %.lr.ph121
  %invariant.gep193 = getelementptr inbounds float, ptr %9, i64 %indvars.iv151
  %invariant.gep189 = getelementptr inbounds float, ptr %9, i64 %55
  %min.iters.check213 = icmp ult i64 %52, 8
  %bound0 = icmp ult ptr %scevgep, %scevgep210
  %bound1 = icmp ult ptr %scevgep209, %scevgep208
  %found.conflict = and i1 %bound0, %bound1
  %n.vec216 = and i64 %52, -8
  %ind.end = add i64 %indvars.iv151, %n.vec216
  %cmp.n227 = icmp eq i64 %52, %n.vec216
  br label %.lr.ph117.us

.lr.ph117.us:                                     ; preds = %.lr.ph117.us.preheader, %._crit_edge118.us
  %indvars.iv160 = phi i64 [ %indvars.iv158, %.lr.ph117.us.preheader ], [ %indvars.iv.next161, %._crit_edge118.us ]
  %65 = mul nuw nsw i64 %indvars.iv160, %16
  %gep194 = getelementptr inbounds float, ptr %invariant.gep193, i64 %65
  %66 = load float, ptr %gep194, align 4, !tbaa !5
  %67 = fneg float %66
  %invariant.gep191 = getelementptr inbounds float, ptr %9, i64 %65
  %brmerge = select i1 %min.iters.check213, i1 true, i1 %found.conflict
  br i1 %brmerge, label %scalar.ph212.preheader, label %vector.ph214

vector.ph214:                                     ; preds = %.lr.ph117.us
  %broadcast.splatinsert224 = insertelement <4 x float> poison, float %67, i64 0
  %broadcast.splat225 = shufflevector <4 x float> %broadcast.splatinsert224, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body218

vector.body218:                                   ; preds = %vector.body218, %vector.ph214
  %index219 = phi i64 [ 0, %vector.ph214 ], [ %index.next226, %vector.body218 ]
  %offset.idx = add i64 %indvars.iv151, %index219
  %68 = getelementptr inbounds float, ptr %invariant.gep189, i64 %offset.idx
  %69 = getelementptr inbounds i8, ptr %68, i64 16
  %wide.load220 = load <4 x float>, ptr %68, align 4, !tbaa !5, !alias.scope !15
  %wide.load221 = load <4 x float>, ptr %69, align 4, !tbaa !5, !alias.scope !15
  %70 = getelementptr inbounds float, ptr %invariant.gep191, i64 %offset.idx
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  %wide.load222 = load <4 x float>, ptr %70, align 4, !tbaa !5, !alias.scope !18, !noalias !15
  %wide.load223 = load <4 x float>, ptr %71, align 4, !tbaa !5, !alias.scope !18, !noalias !15
  %72 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat225, <4 x float> %wide.load220, <4 x float> %wide.load222)
  %73 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat225, <4 x float> %wide.load221, <4 x float> %wide.load223)
  store <4 x float> %72, ptr %70, align 4, !tbaa !5, !alias.scope !18, !noalias !15
  store <4 x float> %73, ptr %71, align 4, !tbaa !5, !alias.scope !18, !noalias !15
  %index.next226 = add nuw i64 %index219, 8
  %74 = icmp eq i64 %index.next226, %n.vec216
  br i1 %74, label %middle.block211, label %vector.body218, !llvm.loop !20

middle.block211:                                  ; preds = %vector.body218
  br i1 %cmp.n227, label %._crit_edge118.us, label %scalar.ph212.preheader

scalar.ph212.preheader:                           ; preds = %.lr.ph117.us, %middle.block211
  %indvars.iv153.ph = phi i64 [ %indvars.iv151, %.lr.ph117.us ], [ %ind.end, %middle.block211 ]
  %75 = sub i64 %17, %indvars.iv153.ph
  %xtraiter247 = and i64 %75, 1
  %lcmp.mod248.not = icmp eq i64 %xtraiter247, 0
  br i1 %lcmp.mod248.not, label %scalar.ph212.prol.loopexit, label %scalar.ph212.prol

scalar.ph212.prol:                                ; preds = %scalar.ph212.preheader
  %gep190.prol = getelementptr inbounds float, ptr %invariant.gep189, i64 %indvars.iv153.ph
  %76 = load float, ptr %gep190.prol, align 4, !tbaa !5
  %gep192.prol = getelementptr inbounds float, ptr %invariant.gep191, i64 %indvars.iv153.ph
  %77 = load float, ptr %gep192.prol, align 4, !tbaa !5
  %78 = tail call float @llvm.fmuladd.f32(float %67, float %76, float %77)
  store float %78, ptr %gep192.prol, align 4, !tbaa !5
  %indvars.iv.next154.prol = add nuw nsw i64 %indvars.iv153.ph, 1
  br label %scalar.ph212.prol.loopexit

scalar.ph212.prol.loopexit:                       ; preds = %scalar.ph212.prol, %scalar.ph212.preheader
  %indvars.iv153.unr = phi i64 [ %indvars.iv153.ph, %scalar.ph212.preheader ], [ %indvars.iv.next154.prol, %scalar.ph212.prol ]
  %79 = icmp eq i64 %indvars.iv153.ph, %29
  br i1 %79, label %._crit_edge118.us, label %scalar.ph212

scalar.ph212:                                     ; preds = %scalar.ph212.prol.loopexit, %scalar.ph212
  %indvars.iv153 = phi i64 [ %indvars.iv.next154.1, %scalar.ph212 ], [ %indvars.iv153.unr, %scalar.ph212.prol.loopexit ]
  %gep190 = getelementptr inbounds float, ptr %invariant.gep189, i64 %indvars.iv153
  %80 = load float, ptr %gep190, align 4, !tbaa !5
  %gep192 = getelementptr inbounds float, ptr %invariant.gep191, i64 %indvars.iv153
  %81 = load float, ptr %gep192, align 4, !tbaa !5
  %82 = tail call float @llvm.fmuladd.f32(float %67, float %80, float %81)
  store float %82, ptr %gep192, align 4, !tbaa !5
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %gep190.1 = getelementptr inbounds float, ptr %invariant.gep189, i64 %indvars.iv.next154
  %83 = load float, ptr %gep190.1, align 4, !tbaa !5
  %gep192.1 = getelementptr inbounds float, ptr %invariant.gep191, i64 %indvars.iv.next154
  %84 = load float, ptr %gep192.1, align 4, !tbaa !5
  %85 = tail call float @llvm.fmuladd.f32(float %67, float %83, float %84)
  store float %85, ptr %gep192.1, align 4, !tbaa !5
  %indvars.iv.next154.1 = add nuw nsw i64 %indvars.iv153, 2
  %exitcond157.not.1 = icmp eq i64 %indvars.iv.next154.1, %16
  br i1 %exitcond157.not.1, label %._crit_edge118.us, label %scalar.ph212, !llvm.loop !21

._crit_edge118.us:                                ; preds = %scalar.ph212.prol.loopexit, %scalar.ph212, %middle.block211
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %exitcond164.not = icmp eq i64 %indvars.iv.next161, %wide.trip.count163
  br i1 %exitcond164.not, label %.loopexit, label %.lr.ph117.us, !llvm.loop !22

.lr.ph114:                                        ; preds = %.lr.ph114.preheader244, %.lr.ph114
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %.lr.ph114 ], [ %indvars.iv146.ph, %.lr.ph114.preheader244 ]
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv146
  %86 = load float, ptr %gep, align 4, !tbaa !5
  %87 = fdiv float %86, %60
  store float %87, ptr %gep, align 4, !tbaa !5
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %exitcond150.not = icmp eq i64 %indvars.iv.next147, %16
  br i1 %exitcond150.not, label %.lr.ph121, label %.lr.ph114, !llvm.loop !23

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge129
  %indvars.iv174 = phi i64 [ %19, %.preheader.preheader ], [ %indvars.iv.next175, %._crit_edge129 ]
  %indvars.iv168.in = phi i64 [ %18, %.preheader.preheader ], [ %indvars.iv168, %._crit_edge129 ]
  %.0100131 = phi float [ 1.000000e+00, %.preheader.preheader ], [ %105, %._crit_edge129 ]
  %indvars.iv168 = add nsw i64 %indvars.iv168.in, -1
  %indvars177 = trunc i64 %indvars.iv174 to i32
  %88 = icmp slt i64 %indvars.iv174, %invariant.op
  %89 = mul nsw i64 %indvars.iv174, %17
  br i1 %88, label %.lr.ph128, label %._crit_edge129

.lr.ph128:                                        ; preds = %.preheader
  %invariant.gep195 = getelementptr float, ptr %9, i64 %89
  br label %107

._crit_edge133:                                   ; preds = %._crit_edge129, %._crit_edge124.thread, %._crit_edge124
  %.0100.lcssa = phi float [ 1.000000e+00, %._crit_edge124 ], [ 1.000000e+00, %._crit_edge124.thread ], [ %105, %._crit_edge129 ]
  %sqrtf = tail call float @sqrtf(float noundef %.0100.lcssa) #8
  br i1 %11, label %.lr.ph137.preheader, label %._crit_edge138

.lr.ph137.preheader:                              ; preds = %._crit_edge133
  %invariant.gep201 = getelementptr inbounds float, ptr %1, i64 %indvars.iv183
  br i1 %or.cond, label %vector.ph, label %.lr.ph137.preheader245

.lr.ph137.preheader245:                           ; preds = %middle.block, %.lr.ph137.preheader
  %indvars.iv178.ph = phi i64 [ 0, %.lr.ph137.preheader ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod250.not, label %.lr.ph137.prol.loopexit, label %.lr.ph137.prol

.lr.ph137.prol:                                   ; preds = %.lr.ph137.preheader245, %.lr.ph137.prol
  %indvars.iv178.prol = phi i64 [ %indvars.iv.next179.prol, %.lr.ph137.prol ], [ %indvars.iv178.ph, %.lr.ph137.preheader245 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph137.prol ], [ 0, %.lr.ph137.preheader245 ]
  %90 = mul nuw nsw i64 %indvars.iv178.prol, %16
  %gep202.prol = getelementptr inbounds float, ptr %invariant.gep201, i64 %90
  %91 = load float, ptr %gep202.prol, align 4, !tbaa !5
  %92 = fdiv float %91, %sqrtf
  store float %92, ptr %gep202.prol, align 4, !tbaa !5
  %indvars.iv.next179.prol = add nuw nsw i64 %indvars.iv178.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter249
  br i1 %prol.iter.cmp.not, label %.lr.ph137.prol.loopexit, label %.lr.ph137.prol, !llvm.loop !24

.lr.ph137.prol.loopexit:                          ; preds = %.lr.ph137.prol, %.lr.ph137.preheader245
  %indvars.iv178.unr = phi i64 [ %indvars.iv178.ph, %.lr.ph137.preheader245 ], [ %indvars.iv.next179.prol, %.lr.ph137.prol ]
  %93 = sub nsw i64 %indvars.iv178.ph, %wide.trip.count
  %94 = icmp ugt i64 %93, -4
  br i1 %94, label %._crit_edge138, label %.lr.ph137

vector.ph:                                        ; preds = %.lr.ph137.preheader
  %broadcast.splatinsert = insertelement <4 x float> poison, float %sqrtf, 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 ]
  %95 = getelementptr inbounds float, ptr %invariant.gep201, i64 %index
  %wide.load = load <4 x float>, ptr %95, align 4, !tbaa !5
  %96 = fdiv <4 x float> %wide.load, %broadcast.splat
  store <4 x float> %96, ptr %95, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %97 = icmp eq i64 %index.next, %n.vec
  br i1 %97, label %middle.block, label %vector.body, !llvm.loop !26

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge138, label %.lr.ph137.preheader245

._crit_edge129:                                   ; preds = %107, %.preheader
  %.098.lcssa = phi float [ 0.000000e+00, %.preheader ], [ %111, %107 ]
  %98 = fneg float %.098.lcssa
  %99 = mul nsw i32 %indvars177, %4
  %100 = sext i32 %99 to i64
  %101 = getelementptr float, ptr %9, i64 %indvars.iv174
  %102 = getelementptr float, ptr %101, i64 %100
  %103 = load float, ptr %102, align 4, !tbaa !5
  %104 = fdiv float %98, %103
  %105 = tail call float @llvm.fmuladd.f32(float %104, float %104, float %.0100131)
  %gep200 = getelementptr float, ptr %invariant.gep199, i64 %89
  store float %104, ptr %gep200, align 4, !tbaa !5
  %indvars.iv.next175 = add nsw i64 %indvars.iv174, -1
  %106 = icmp sgt i64 %indvars.iv174, 0
  br i1 %106, label %.preheader, label %._crit_edge133, !llvm.loop !27

107:                                              ; preds = %.lr.ph128, %107
  %indvars.iv170 = phi i64 [ %indvars.iv168, %.lr.ph128 ], [ %indvars.iv.next171, %107 ]
  %.098126 = phi float [ 0.000000e+00, %.lr.ph128 ], [ %111, %107 ]
  %gep196 = getelementptr float, ptr %invariant.gep195, i64 %indvars.iv170
  %108 = load float, ptr %gep196, align 4, !tbaa !5
  %109 = mul nsw i64 %indvars.iv170, %17
  %gep198 = getelementptr float, ptr %invariant.gep197, i64 %109
  %110 = load float, ptr %gep198, align 4, !tbaa !5
  %111 = tail call float @llvm.fmuladd.f32(float %108, float %110, float %.098126)
  %indvars.iv.next171 = add nsw i64 %indvars.iv170, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next171 to i32
  %exitcond173.not = icmp eq i32 %lftr.wideiv, %4
  br i1 %exitcond173.not, label %._crit_edge129, label %107, !llvm.loop !28

._crit_edge138:                                   ; preds = %.lr.ph137.prol.loopexit, %.lr.ph137, %middle.block, %._crit_edge133
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %exitcond187.not = icmp eq i64 %indvars.iv.next184, %16
  br i1 %exitcond187.not, label %._crit_edge142, label %30, !llvm.loop !29

.lr.ph137:                                        ; preds = %.lr.ph137.prol.loopexit, %.lr.ph137
  %indvars.iv178 = phi i64 [ %indvars.iv.next179.3, %.lr.ph137 ], [ %indvars.iv178.unr, %.lr.ph137.prol.loopexit ]
  %112 = mul nuw nsw i64 %indvars.iv178, %16
  %gep202 = getelementptr inbounds float, ptr %invariant.gep201, i64 %112
  %113 = load float, ptr %gep202, align 4, !tbaa !5
  %114 = fdiv float %113, %sqrtf
  store float %114, ptr %gep202, align 4, !tbaa !5
  %indvars.iv.next179 = add nuw nsw i64 %indvars.iv178, 1
  %115 = mul nuw nsw i64 %indvars.iv.next179, %16
  %gep202.1 = getelementptr inbounds float, ptr %invariant.gep201, i64 %115
  %116 = load float, ptr %gep202.1, align 4, !tbaa !5
  %117 = fdiv float %116, %sqrtf
  store float %117, ptr %gep202.1, align 4, !tbaa !5
  %indvars.iv.next179.1 = add nuw nsw i64 %indvars.iv178, 2
  %118 = mul nuw nsw i64 %indvars.iv.next179.1, %16
  %gep202.2 = getelementptr inbounds float, ptr %invariant.gep201, i64 %118
  %119 = load float, ptr %gep202.2, align 4, !tbaa !5
  %120 = fdiv float %119, %sqrtf
  store float %120, ptr %gep202.2, align 4, !tbaa !5
  %indvars.iv.next179.2 = add nuw nsw i64 %indvars.iv178, 3
  %121 = mul nuw nsw i64 %indvars.iv.next179.2, %16
  %gep202.3 = getelementptr inbounds float, ptr %invariant.gep201, i64 %121
  %122 = load float, ptr %gep202.3, align 4, !tbaa !5
  %123 = fdiv float %122, %sqrtf
  store float %123, ptr %gep202.3, align 4, !tbaa !5
  %indvars.iv.next179.3 = add nuw nsw i64 %indvars.iv178, 4
  %exitcond182.not.3 = icmp eq i64 %indvars.iv.next179.3, %wide.trip.count181
  br i1 %exitcond182.not.3, label %._crit_edge138, label %.lr.ph137, !llvm.loop !30
}

; Function Attrs: mustprogress 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) #3

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

declare float @sqrtf(float) local_unnamed_addr

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

!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, !10}
!12 = distinct !{!12, !10, !13, !14}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = !{!16}
!16 = distinct !{!16, !17}
!17 = distinct !{!17, !"LVerDomain"}
!18 = !{!19}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !10, !13, !14}
!21 = distinct !{!21, !10, !13}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10, !14, !13}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.unroll.disable"}
!26 = distinct !{!26, !10, !13, !14}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}
!29 = distinct !{!29, !10}
!30 = distinct !{!30, !10, !13}


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