; LLVM IR from serban/kmeans :: seq_kmeans (seq_kmeans)

; 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 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@__PRETTY_FUNCTION__.seq_kmeans = external hidden unnamed_addr constant [65 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1

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

29:                                               ; preds = %7
  br label %31

30:                                               ; preds = %7
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 110, ptr noundef @__PRETTY_FUNCTION__.seq_kmeans) #9
  unreachable

31:                                               ; preds = %29
  %32 = load i32, ptr %11, align 4, !tbaa !9
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = mul nsw i32 %32, %33
  %35 = sext i32 %34 to i64
  %36 = mul i64 %35, 4
  %37 = call noalias ptr @malloc(i64 noundef %36) #8
  %38 = load ptr, ptr %21, align 8, !tbaa !5
  %39 = getelementptr inbounds ptr, ptr %38, i64 0
  store ptr %37, ptr %39, align 8, !tbaa !5
  %40 = load ptr, ptr %21, align 8, !tbaa !5
  %41 = getelementptr inbounds ptr, ptr %40, i64 0
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %45

44:                                               ; preds = %31
  br label %46

45:                                               ; preds = %31
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 112, ptr noundef @__PRETTY_FUNCTION__.seq_kmeans) #9
  unreachable

46:                                               ; preds = %44
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %65, %46
  %48 = load i32, ptr %15, align 4, !tbaa !9
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %51, label %68

51:                                               ; preds = %47
  %52 = load ptr, ptr %21, align 8, !tbaa !5
  %53 = load i32, ptr %15, align 4, !tbaa !9
  %54 = sub nsw i32 %53, 1
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds ptr, ptr %52, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds float, ptr %57, i64 %59
  %61 = load ptr, ptr %21, align 8, !tbaa !5
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds ptr, ptr %61, i64 %63
  store ptr %60, ptr %64, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %51
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %15, align 4, !tbaa !9
  br label %47, !llvm.loop !13

68:                                               ; preds = %47
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %100, %68
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %73, label %103

73:                                               ; preds = %69
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %96, %73
  %75 = load i32, ptr %16, align 4, !tbaa !9
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = icmp slt i32 %75, %76
  br i1 %77, label %78, label %99

78:                                               ; preds = %74
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = load i32, ptr %15, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds ptr, ptr %79, i64 %81
  %83 = load ptr, ptr %82, align 8, !tbaa !5
  %84 = load i32, ptr %16, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds float, ptr %83, i64 %85
  %87 = load float, ptr %86, align 4, !tbaa !11
  %88 = load ptr, ptr %21, align 8, !tbaa !5
  %89 = load i32, ptr %15, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds ptr, ptr %88, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = load i32, ptr %16, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds float, ptr %92, i64 %94
  store float %87, ptr %95, align 4, !tbaa !11
  br label %96

96:                                               ; preds = %78
  %97 = load i32, ptr %16, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %16, align 4, !tbaa !9
  br label %74, !llvm.loop !15

99:                                               ; preds = %74
  br label %100

100:                                              ; preds = %99
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %15, align 4, !tbaa !9
  br label %69, !llvm.loop !16

103:                                              ; preds = %69
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %113, %103
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %108, label %116

108:                                              ; preds = %104
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = load i32, ptr %15, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i32, ptr %109, i64 %111
  store i32 -1, ptr %112, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %108
  %114 = load i32, ptr %15, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %15, align 4, !tbaa !9
  br label %104, !llvm.loop !17

116:                                              ; preds = %104
  %117 = load i32, ptr %11, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = call noalias ptr @calloc(i64 noundef %118, i64 noundef 4) #10
  store ptr %119, ptr %19, align 8, !tbaa !5
  %120 = load ptr, ptr %19, align 8, !tbaa !5
  %121 = icmp ne ptr %120, null
  br i1 %121, label %122, label %123

122:                                              ; preds = %116
  br label %124

123:                                              ; preds = %116
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 126, ptr noundef @__PRETTY_FUNCTION__.seq_kmeans) #9
  unreachable

124:                                              ; preds = %122
  %125 = load i32, ptr %11, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = mul i64 %126, 8
  %128 = call noalias ptr @malloc(i64 noundef %127) #8
  store ptr %128, ptr %22, align 8, !tbaa !5
  %129 = load ptr, ptr %22, align 8, !tbaa !5
  %130 = icmp ne ptr %129, null
  br i1 %130, label %131, label %132

131:                                              ; preds = %124
  br label %133

132:                                              ; preds = %124
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 129, ptr noundef @__PRETTY_FUNCTION__.seq_kmeans) #9
  unreachable

133:                                              ; preds = %131
  %134 = load i32, ptr %11, align 4, !tbaa !9
  %135 = load i32, ptr %9, align 4, !tbaa !9
  %136 = mul nsw i32 %134, %135
  %137 = sext i32 %136 to i64
  %138 = call noalias ptr @calloc(i64 noundef %137, i64 noundef 4) #10
  %139 = load ptr, ptr %22, align 8, !tbaa !5
  %140 = getelementptr inbounds ptr, ptr %139, i64 0
  store ptr %138, ptr %140, align 8, !tbaa !5
  %141 = load ptr, ptr %22, align 8, !tbaa !5
  %142 = getelementptr inbounds ptr, ptr %141, i64 0
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = icmp ne ptr %143, null
  br i1 %144, label %145, label %146

145:                                              ; preds = %133
  br label %147

146:                                              ; preds = %133
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 131, ptr noundef @__PRETTY_FUNCTION__.seq_kmeans) #9
  unreachable

147:                                              ; preds = %145
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %148

148:                                              ; preds = %166, %147
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = load i32, ptr %11, align 4, !tbaa !9
  %151 = icmp slt i32 %149, %150
  br i1 %151, label %152, label %169

152:                                              ; preds = %148
  %153 = load ptr, ptr %22, align 8, !tbaa !5
  %154 = load i32, ptr %15, align 4, !tbaa !9
  %155 = sub nsw i32 %154, 1
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds ptr, ptr %153, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = load i32, ptr %9, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds float, ptr %158, i64 %160
  %162 = load ptr, ptr %22, align 8, !tbaa !5
  %163 = load i32, ptr %15, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds ptr, ptr %162, i64 %164
  store ptr %161, ptr %165, align 8, !tbaa !5
  br label %166

166:                                              ; preds = %152
  %167 = load i32, ptr %15, align 4, !tbaa !9
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %15, align 4, !tbaa !9
  br label %148, !llvm.loop !18

169:                                              ; preds = %148
  br label %170

170:                                              ; preds = %315, %169
  store float 0.000000e+00, ptr %20, align 4, !tbaa !11
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %171

171:                                              ; preds = %237, %170
  %172 = load i32, ptr %15, align 4, !tbaa !9
  %173 = load i32, ptr %10, align 4, !tbaa !9
  %174 = icmp slt i32 %172, %173
  br i1 %174, label %175, label %240

175:                                              ; preds = %171
  %176 = load i32, ptr %11, align 4, !tbaa !9
  %177 = load i32, ptr %9, align 4, !tbaa !9
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = load i32, ptr %15, align 4, !tbaa !9
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds ptr, ptr %178, i64 %180
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  %183 = load ptr, ptr %21, align 8, !tbaa !5
  %184 = call i32 @find_nearest_cluster(i32 noundef %176, i32 noundef %177, ptr noundef %182, ptr noundef %183)
  store i32 %184, ptr %17, align 4, !tbaa !9
  %185 = load ptr, ptr %13, align 8, !tbaa !5
  %186 = load i32, ptr %15, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds i32, ptr %185, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !9
  %190 = load i32, ptr %17, align 4, !tbaa !9
  %191 = icmp ne i32 %189, %190
  br i1 %191, label %192, label %197

192:                                              ; preds = %175
  %193 = load float, ptr %20, align 4, !tbaa !11
  %194 = fpext float %193 to double
  %195 = fadd double %194, 1.000000e+00
  %196 = fptrunc double %195 to float
  store float %196, ptr %20, align 4, !tbaa !11
  br label %197

197:                                              ; preds = %192, %175
  %198 = load i32, ptr %17, align 4, !tbaa !9
  %199 = load ptr, ptr %13, align 8, !tbaa !5
  %200 = load i32, ptr %15, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds i32, ptr %199, i64 %201
  store i32 %198, ptr %202, align 4, !tbaa !9
  %203 = load ptr, ptr %19, align 8, !tbaa !5
  %204 = load i32, ptr %17, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds i32, ptr %203, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !9
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %206, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %209

209:                                              ; preds = %233, %197
  %210 = load i32, ptr %16, align 4, !tbaa !9
  %211 = load i32, ptr %9, align 4, !tbaa !9
  %212 = icmp slt i32 %210, %211
  br i1 %212, label %213, label %236

213:                                              ; preds = %209
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = load i32, ptr %15, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds ptr, ptr %214, i64 %216
  %218 = load ptr, ptr %217, align 8, !tbaa !5
  %219 = load i32, ptr %16, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds float, ptr %218, i64 %220
  %222 = load float, ptr %221, align 4, !tbaa !11
  %223 = load ptr, ptr %22, align 8, !tbaa !5
  %224 = load i32, ptr %17, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds ptr, ptr %223, i64 %225
  %227 = load ptr, ptr %226, align 8, !tbaa !5
  %228 = load i32, ptr %16, align 4, !tbaa !9
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds float, ptr %227, i64 %229
  %231 = load float, ptr %230, align 4, !tbaa !11
  %232 = fadd float %231, %222
  store float %232, ptr %230, align 4, !tbaa !11
  br label %233

233:                                              ; preds = %213
  %234 = load i32, ptr %16, align 4, !tbaa !9
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %16, align 4, !tbaa !9
  br label %209, !llvm.loop !19

236:                                              ; preds = %209
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %15, align 4, !tbaa !9
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %15, align 4, !tbaa !9
  br label %171, !llvm.loop !20

240:                                              ; preds = %171
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %241

241:                                              ; preds = %299, %240
  %242 = load i32, ptr %15, align 4, !tbaa !9
  %243 = load i32, ptr %11, align 4, !tbaa !9
  %244 = icmp slt i32 %242, %243
  br i1 %244, label %245, label %302

245:                                              ; preds = %241
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %246

246:                                              ; preds = %291, %245
  %247 = load i32, ptr %16, align 4, !tbaa !9
  %248 = load i32, ptr %9, align 4, !tbaa !9
  %249 = icmp slt i32 %247, %248
  br i1 %249, label %250, label %294

250:                                              ; preds = %246
  %251 = load ptr, ptr %19, align 8, !tbaa !5
  %252 = load i32, ptr %15, align 4, !tbaa !9
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds i32, ptr %251, i64 %253
  %255 = load i32, ptr %254, align 4, !tbaa !9
  %256 = icmp sgt i32 %255, 0
  br i1 %256, label %257, label %282

257:                                              ; preds = %250
  %258 = load ptr, ptr %22, align 8, !tbaa !5
  %259 = load i32, ptr %15, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds ptr, ptr %258, i64 %260
  %262 = load ptr, ptr %261, align 8, !tbaa !5
  %263 = load i32, ptr %16, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds float, ptr %262, i64 %264
  %266 = load float, ptr %265, align 4, !tbaa !11
  %267 = load ptr, ptr %19, align 8, !tbaa !5
  %268 = load i32, ptr %15, align 4, !tbaa !9
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds i32, ptr %267, i64 %269
  %271 = load i32, ptr %270, align 4, !tbaa !9
  %272 = sitofp i32 %271 to float
  %273 = fdiv float %266, %272
  %274 = load ptr, ptr %21, align 8, !tbaa !5
  %275 = load i32, ptr %15, align 4, !tbaa !9
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds ptr, ptr %274, i64 %276
  %278 = load ptr, ptr %277, align 8, !tbaa !5
  %279 = load i32, ptr %16, align 4, !tbaa !9
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds float, ptr %278, i64 %280
  store float %273, ptr %281, align 4, !tbaa !11
  br label %282

282:                                              ; preds = %257, %250
  %283 = load ptr, ptr %22, align 8, !tbaa !5
  %284 = load i32, ptr %15, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds ptr, ptr %283, i64 %285
  %287 = load ptr, ptr %286, align 8, !tbaa !5
  %288 = load i32, ptr %16, align 4, !tbaa !9
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds float, ptr %287, i64 %289
  store float 0.000000e+00, ptr %290, align 4, !tbaa !11
  br label %291

291:                                              ; preds = %282
  %292 = load i32, ptr %16, align 4, !tbaa !9
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %16, align 4, !tbaa !9
  br label %246, !llvm.loop !21

294:                                              ; preds = %246
  %295 = load ptr, ptr %19, align 8, !tbaa !5
  %296 = load i32, ptr %15, align 4, !tbaa !9
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds i32, ptr %295, i64 %297
  store i32 0, ptr %298, align 4, !tbaa !9
  br label %299

299:                                              ; preds = %294
  %300 = load i32, ptr %15, align 4, !tbaa !9
  %301 = add nsw i32 %300, 1
  store i32 %301, ptr %15, align 4, !tbaa !9
  br label %241, !llvm.loop !22

302:                                              ; preds = %241
  %303 = load i32, ptr %10, align 4, !tbaa !9
  %304 = sitofp i32 %303 to float
  %305 = load float, ptr %20, align 4, !tbaa !11
  %306 = fdiv float %305, %304
  store float %306, ptr %20, align 4, !tbaa !11
  br label %307

307:                                              ; preds = %302
  %308 = load float, ptr %20, align 4, !tbaa !11
  %309 = load float, ptr %12, align 4, !tbaa !11
  %310 = fcmp ogt float %308, %309
  br i1 %310, label %311, label %315

311:                                              ; preds = %307
  %312 = load i32, ptr %18, align 4, !tbaa !9
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %18, align 4, !tbaa !9
  %314 = icmp slt i32 %312, 500
  br label %315

315:                                              ; preds = %311, %307
  %316 = phi i1 [ false, %307 ], [ %314, %311 ]
  br i1 %316, label %170, label %317, !llvm.loop !23

317:                                              ; preds = %315
  %318 = load i32, ptr %18, align 4, !tbaa !9
  %319 = add nsw i32 %318, 1
  %320 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %319, ptr %320, align 4, !tbaa !9
  %321 = load ptr, ptr %22, align 8, !tbaa !5
  %322 = getelementptr inbounds ptr, ptr %321, i64 0
  %323 = load ptr, ptr %322, align 8, !tbaa !5
  call void @free(ptr noundef %323) #7
  %324 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free(ptr noundef %324) #7
  %325 = load ptr, ptr %19, align 8, !tbaa !5
  call void @free(ptr noundef %325) #7
  %326 = load ptr, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  ret ptr %326
}

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @find_nearest_cluster(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #5

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind allocsize(0,1) "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 = { inlinehint 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 #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 }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind allocsize(0,1) }

!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}
!23 = distinct !{!23, !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"

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@__PRETTY_FUNCTION__.seq_kmeans = external hidden unnamed_addr constant [65 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @seq_kmeans(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, float noundef %4, ptr nocapture noundef %5, ptr nocapture noundef writeonly %6) local_unnamed_addr #0 {
  %8 = sext i32 %3 to i64
  %9 = shl nsw i64 %8, 3
  %10 = tail call noalias ptr @malloc(i64 noundef %9) #7
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %11, label %12

11:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 110, ptr noundef nonnull @__PRETTY_FUNCTION__.seq_kmeans) #8
  unreachable

12:                                               ; preds = %7
  %13 = mul nsw i32 %3, %1
  %14 = sext i32 %13 to i64
  %15 = shl nsw i64 %14, 2
  %16 = tail call noalias ptr @malloc(i64 noundef %15) #7
  store ptr %16, ptr %10, align 8, !tbaa !5
  %.not117 = icmp eq ptr %16, null
  br i1 %.not117, label %22, label %.preheader128

.preheader128:                                    ; preds = %12
  %17 = icmp sgt i32 %3, 1
  br i1 %17, label %.lr.ph, label %.preheader127

.lr.ph:                                           ; preds = %.preheader128
  %18 = sext i32 %1 to i64
  %wide.trip.count = zext nneg i32 %3 to i64
  %load_initial246 = load ptr, ptr %10, align 8
  %19 = add nsw i64 %wide.trip.count, -1
  %20 = add nsw i64 %wide.trip.count, -2
  %xtraiter = and i64 %19, 7
  %21 = icmp ult i64 %20, 7
  br i1 %21, label %.preheader127.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %19, -8
  %invariant.gep = getelementptr i8, ptr %10, i64 8
  %invariant.gep267 = getelementptr i8, ptr %10, i64 16
  %invariant.gep269 = getelementptr i8, ptr %10, i64 24
  %invariant.gep271 = getelementptr i8, ptr %10, i64 32
  %invariant.gep273 = getelementptr i8, ptr %10, i64 40
  %invariant.gep275 = getelementptr i8, ptr %10, i64 48
  %invariant.gep277 = getelementptr i8, ptr %10, i64 56
  br label %56

22:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 112, ptr noundef nonnull @__PRETTY_FUNCTION__.seq_kmeans) #8
  unreachable

.preheader127.loopexit.unr-lcssa:                 ; preds = %56, %.lr.ph
  %store_forwarded247.unr = phi ptr [ %load_initial246, %.lr.ph ], [ %65, %56 ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next.7, %56 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader127, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader127.loopexit.unr-lcssa, %.epil.preheader
  %store_forwarded247.epil = phi ptr [ %24, %.epil.preheader ], [ %store_forwarded247.unr, %.preheader127.loopexit.unr-lcssa ]
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %.preheader127.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader127.loopexit.unr-lcssa ]
  %23 = getelementptr ptr, ptr %10, i64 %indvars.iv.epil
  %24 = getelementptr inbounds float, ptr %store_forwarded247.epil, i64 %18
  store ptr %24, ptr %23, align 8, !tbaa !5
  %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 %.preheader127, label %.epil.preheader, !llvm.loop !9

.preheader127:                                    ; preds = %.preheader127.loopexit.unr-lcssa, %.epil.preheader, %.preheader128
  %25 = icmp sgt i32 %3, 0
  %26 = icmp sgt i32 %1, 0
  %or.cond = and i1 %25, %26
  br i1 %or.cond, label %.preheader126.us.preheader, label %.preheader125

.preheader126.us.preheader:                       ; preds = %.preheader127
  %wide.trip.count166 = zext nneg i32 %3 to i64
  %wide.trip.count161 = zext nneg i32 %1 to i64
  %min.iters.check = icmp ult i32 %1, 8
  %n.vec = and i64 %wide.trip.count161, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count161
  %xtraiter252 = and i64 %wide.trip.count161, 3
  %lcmp.mod253.not = icmp eq i64 %xtraiter252, 0
  br label %.preheader126.us

.preheader126.us:                                 ; preds = %.preheader126.us.preheader, %._crit_edge.us
  %indvars.iv163 = phi i64 [ 0, %.preheader126.us.preheader ], [ %indvars.iv.next164, %._crit_edge.us ]
  %27 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv163
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  %29 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv163
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = ptrtoint ptr %30 to i64
  %32 = ptrtoint ptr %28 to i64
  %33 = sub i64 %31, %32
  %diff.check = icmp ult i64 %33, 32
  %or.cond250 = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond250, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader126.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader126.us ]
  %34 = getelementptr inbounds float, ptr %28, i64 %index
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  %wide.load = load <4 x float>, ptr %34, align 4, !tbaa !11
  %wide.load210 = load <4 x float>, ptr %35, align 4, !tbaa !11
  %36 = getelementptr inbounds float, ptr %30, i64 %index
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  store <4 x float> %wide.load, ptr %36, align 4, !tbaa !11
  store <4 x float> %wide.load210, ptr %37, align 4, !tbaa !11
  %index.next = add nuw i64 %index, 8
  %38 = icmp eq i64 %index.next, %n.vec
  br i1 %38, label %middle.block, label %vector.body, !llvm.loop !13

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

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader126.us
  %indvars.iv158.ph = phi i64 [ 0, %.preheader126.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod253.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv158.prol = phi i64 [ %indvars.iv.next159.prol, %scalar.ph.prol ], [ %indvars.iv158.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %39 = getelementptr inbounds float, ptr %28, i64 %indvars.iv158.prol
  %40 = load float, ptr %39, align 4, !tbaa !11
  %41 = getelementptr inbounds float, ptr %30, i64 %indvars.iv158.prol
  store float %40, ptr %41, align 4, !tbaa !11
  %indvars.iv.next159.prol = add nuw nsw i64 %indvars.iv158.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter252
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !17

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv158.unr = phi i64 [ %indvars.iv158.ph, %scalar.ph.preheader ], [ %indvars.iv.next159.prol, %scalar.ph.prol ]
  %42 = sub nsw i64 %indvars.iv158.ph, %wide.trip.count161
  %43 = icmp ugt i64 %42, -4
  br i1 %43, label %._crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv158 = phi i64 [ %indvars.iv.next159.3, %scalar.ph ], [ %indvars.iv158.unr, %scalar.ph.prol.loopexit ]
  %44 = getelementptr inbounds float, ptr %28, i64 %indvars.iv158
  %45 = load float, ptr %44, align 4, !tbaa !11
  %46 = getelementptr inbounds float, ptr %30, i64 %indvars.iv158
  store float %45, ptr %46, align 4, !tbaa !11
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %47 = getelementptr inbounds float, ptr %28, i64 %indvars.iv.next159
  %48 = load float, ptr %47, align 4, !tbaa !11
  %49 = getelementptr inbounds float, ptr %30, i64 %indvars.iv.next159
  store float %48, ptr %49, align 4, !tbaa !11
  %indvars.iv.next159.1 = add nuw nsw i64 %indvars.iv158, 2
  %50 = getelementptr inbounds float, ptr %28, i64 %indvars.iv.next159.1
  %51 = load float, ptr %50, align 4, !tbaa !11
  %52 = getelementptr inbounds float, ptr %30, i64 %indvars.iv.next159.1
  store float %51, ptr %52, align 4, !tbaa !11
  %indvars.iv.next159.2 = add nuw nsw i64 %indvars.iv158, 3
  %53 = getelementptr inbounds float, ptr %28, i64 %indvars.iv.next159.2
  %54 = load float, ptr %53, align 4, !tbaa !11
  %55 = getelementptr inbounds float, ptr %30, i64 %indvars.iv.next159.2
  store float %54, ptr %55, align 4, !tbaa !11
  %indvars.iv.next159.3 = add nuw nsw i64 %indvars.iv158, 4
  %exitcond162.not.3 = icmp eq i64 %indvars.iv.next159.3, %wide.trip.count161
  br i1 %exitcond162.not.3, label %._crit_edge.us, label %scalar.ph, !llvm.loop !18

._crit_edge.us:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %exitcond167.not = icmp eq i64 %indvars.iv.next164, %wide.trip.count166
  br i1 %exitcond167.not, label %.preheader125, label %.preheader126.us, !llvm.loop !19

56:                                               ; preds = %56, %.lr.ph.new
  %store_forwarded247 = phi ptr [ %load_initial246, %.lr.ph.new ], [ %65, %56 ]
  %indvars.iv = phi i64 [ 1, %.lr.ph.new ], [ %indvars.iv.next.7, %56 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.7, %56 ]
  %57 = getelementptr ptr, ptr %10, i64 %indvars.iv
  %58 = getelementptr inbounds float, ptr %store_forwarded247, i64 %18
  store ptr %58, ptr %57, align 8, !tbaa !5
  %gep = getelementptr ptr, ptr %invariant.gep, i64 %indvars.iv
  %59 = getelementptr inbounds float, ptr %58, i64 %18
  store ptr %59, ptr %gep, align 8, !tbaa !5
  %gep268 = getelementptr ptr, ptr %invariant.gep267, i64 %indvars.iv
  %60 = getelementptr inbounds float, ptr %59, i64 %18
  store ptr %60, ptr %gep268, align 8, !tbaa !5
  %gep270 = getelementptr ptr, ptr %invariant.gep269, i64 %indvars.iv
  %61 = getelementptr inbounds float, ptr %60, i64 %18
  store ptr %61, ptr %gep270, align 8, !tbaa !5
  %gep272 = getelementptr ptr, ptr %invariant.gep271, i64 %indvars.iv
  %62 = getelementptr inbounds float, ptr %61, i64 %18
  store ptr %62, ptr %gep272, align 8, !tbaa !5
  %gep274 = getelementptr ptr, ptr %invariant.gep273, i64 %indvars.iv
  %63 = getelementptr inbounds float, ptr %62, i64 %18
  store ptr %63, ptr %gep274, align 8, !tbaa !5
  %gep276 = getelementptr ptr, ptr %invariant.gep275, i64 %indvars.iv
  %64 = getelementptr inbounds float, ptr %63, i64 %18
  store ptr %64, ptr %gep276, align 8, !tbaa !5
  %gep278 = getelementptr ptr, ptr %invariant.gep277, i64 %indvars.iv
  %65 = getelementptr inbounds float, ptr %64, i64 %18
  store ptr %65, ptr %gep278, align 8, !tbaa !5
  %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.preheader127.loopexit.unr-lcssa, label %56, !llvm.loop !20

.preheader125:                                    ; preds = %._crit_edge.us, %.preheader127
  %66 = icmp sgt i32 %2, 0
  br i1 %66, label %.lr.ph134.preheader, label %._crit_edge

.lr.ph134.preheader:                              ; preds = %.preheader125
  %67 = zext nneg i32 %2 to i64
  %68 = shl nuw nsw i64 %67, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %5, i8 -1, i64 %68, i1 false), !tbaa !21
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph134.preheader, %.preheader125
  %69 = tail call noalias ptr @calloc(i64 noundef %8, i64 noundef 4) #9
  %.not118 = icmp eq ptr %69, null
  br i1 %.not118, label %70, label %71

70:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 126, ptr noundef nonnull @__PRETTY_FUNCTION__.seq_kmeans) #8
  unreachable

71:                                               ; preds = %._crit_edge
  %72 = tail call noalias ptr @malloc(i64 noundef %9) #7
  %.not119 = icmp eq ptr %72, null
  br i1 %.not119, label %73, label %74

73:                                               ; preds = %71
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 129, ptr noundef nonnull @__PRETTY_FUNCTION__.seq_kmeans) #8
  unreachable

74:                                               ; preds = %71
  %75 = tail call noalias ptr @calloc(i64 noundef %14, i64 noundef 4) #9
  store ptr %75, ptr %72, align 8, !tbaa !5
  %.not120 = icmp eq ptr %75, null
  br i1 %.not120, label %80, label %.preheader124

.preheader124:                                    ; preds = %74
  br i1 %17, label %.lr.ph136, label %.preheader124..preheader123_crit_edge

.preheader124..preheader123_crit_edge:            ; preds = %.preheader124
  %.pre = zext i32 %3 to i64
  br label %.preheader123

.lr.ph136:                                        ; preds = %.preheader124
  %76 = sext i32 %1 to i64
  %wide.trip.count174 = zext nneg i32 %3 to i64
  %load_initial = load ptr, ptr %72, align 8
  %77 = add nsw i64 %wide.trip.count174, -1
  %78 = add nsw i64 %wide.trip.count174, -2
  %xtraiter255 = and i64 %77, 7
  %79 = icmp ult i64 %78, 7
  br i1 %79, label %.preheader123.loopexit.unr-lcssa, label %.lr.ph136.new

.lr.ph136.new:                                    ; preds = %.lr.ph136
  %unroll_iter258 = and i64 %77, -8
  %invariant.gep279 = getelementptr i8, ptr %72, i64 8
  %invariant.gep281 = getelementptr i8, ptr %72, i64 16
  %invariant.gep283 = getelementptr i8, ptr %72, i64 24
  %invariant.gep285 = getelementptr i8, ptr %72, i64 32
  %invariant.gep287 = getelementptr i8, ptr %72, i64 40
  %invariant.gep289 = getelementptr i8, ptr %72, i64 48
  %invariant.gep291 = getelementptr i8, ptr %72, i64 56
  br label %91

80:                                               ; preds = %74
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 131, ptr noundef nonnull @__PRETTY_FUNCTION__.seq_kmeans) #8
  unreachable

.preheader123.loopexit.unr-lcssa:                 ; preds = %91, %.lr.ph136
  %store_forwarded.unr = phi ptr [ %load_initial, %.lr.ph136 ], [ %100, %91 ]
  %indvars.iv171.unr = phi i64 [ 1, %.lr.ph136 ], [ %indvars.iv.next172.7, %91 ]
  %lcmp.mod257.not = icmp eq i64 %xtraiter255, 0
  br i1 %lcmp.mod257.not, label %.preheader123, label %.epil.preheader254

.epil.preheader254:                               ; preds = %.preheader123.loopexit.unr-lcssa, %.epil.preheader254
  %store_forwarded.epil = phi ptr [ %82, %.epil.preheader254 ], [ %store_forwarded.unr, %.preheader123.loopexit.unr-lcssa ]
  %indvars.iv171.epil = phi i64 [ %indvars.iv.next172.epil, %.epil.preheader254 ], [ %indvars.iv171.unr, %.preheader123.loopexit.unr-lcssa ]
  %epil.iter256 = phi i64 [ %epil.iter256.next, %.epil.preheader254 ], [ 0, %.preheader123.loopexit.unr-lcssa ]
  %81 = getelementptr ptr, ptr %72, i64 %indvars.iv171.epil
  %82 = getelementptr inbounds float, ptr %store_forwarded.epil, i64 %76
  store ptr %82, ptr %81, align 8, !tbaa !5
  %indvars.iv.next172.epil = add nuw nsw i64 %indvars.iv171.epil, 1
  %epil.iter256.next = add i64 %epil.iter256, 1
  %epil.iter256.cmp.not = icmp eq i64 %epil.iter256.next, %xtraiter255
  br i1 %epil.iter256.cmp.not, label %.preheader123, label %.epil.preheader254, !llvm.loop !23

.preheader123:                                    ; preds = %.preheader123.loopexit.unr-lcssa, %.epil.preheader254, %.preheader124..preheader123_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.preheader124..preheader123_crit_edge ], [ %wide.trip.count174, %.epil.preheader254 ], [ %wide.trip.count174, %.preheader123.loopexit.unr-lcssa ]
  %83 = sitofp i32 %2 to float
  %84 = icmp sgt i32 %1, 0
  %85 = shl nuw nsw i64 %.pre-phi, 2
  %86 = zext i32 %1 to i64
  %87 = shl nuw nsw i64 %86, 2
  %wide.trip.count179 = zext nneg i32 %2 to i64
  %wide.trip.count189 = zext nneg i32 %2 to i64
  %88 = shl nuw nsw i64 %86, 2
  %89 = shl nuw nsw i64 %86, 2
  %min.iters.check233 = icmp ult i32 %1, 8
  %n.vec236 = and i64 %86, 2147483640
  %cmp.n245 = icmp eq i64 %n.vec236, %86
  %xtraiter260 = and i64 %86, 3
  %lcmp.mod261.not = icmp eq i64 %xtraiter260, 0
  %min.iters.check215 = icmp ult i32 %1, 4
  %n.vec218 = and i64 %86, 2147483644
  %cmp.n224 = icmp eq i64 %n.vec218, %86
  %xtraiter263 = and i64 %86, 1
  %lcmp.mod264.not = icmp eq i64 %xtraiter263, 0
  %90 = add nsw i64 %86, -1
  br label %101

91:                                               ; preds = %91, %.lr.ph136.new
  %store_forwarded = phi ptr [ %load_initial, %.lr.ph136.new ], [ %100, %91 ]
  %indvars.iv171 = phi i64 [ 1, %.lr.ph136.new ], [ %indvars.iv.next172.7, %91 ]
  %niter259 = phi i64 [ 0, %.lr.ph136.new ], [ %niter259.next.7, %91 ]
  %92 = getelementptr ptr, ptr %72, i64 %indvars.iv171
  %93 = getelementptr inbounds float, ptr %store_forwarded, i64 %76
  store ptr %93, ptr %92, align 8, !tbaa !5
  %gep280 = getelementptr ptr, ptr %invariant.gep279, i64 %indvars.iv171
  %94 = getelementptr inbounds float, ptr %93, i64 %76
  store ptr %94, ptr %gep280, align 8, !tbaa !5
  %gep282 = getelementptr ptr, ptr %invariant.gep281, i64 %indvars.iv171
  %95 = getelementptr inbounds float, ptr %94, i64 %76
  store ptr %95, ptr %gep282, align 8, !tbaa !5
  %gep284 = getelementptr ptr, ptr %invariant.gep283, i64 %indvars.iv171
  %96 = getelementptr inbounds float, ptr %95, i64 %76
  store ptr %96, ptr %gep284, align 8, !tbaa !5
  %gep286 = getelementptr ptr, ptr %invariant.gep285, i64 %indvars.iv171
  %97 = getelementptr inbounds float, ptr %96, i64 %76
  store ptr %97, ptr %gep286, align 8, !tbaa !5
  %gep288 = getelementptr ptr, ptr %invariant.gep287, i64 %indvars.iv171
  %98 = getelementptr inbounds float, ptr %97, i64 %76
  store ptr %98, ptr %gep288, align 8, !tbaa !5
  %gep290 = getelementptr ptr, ptr %invariant.gep289, i64 %indvars.iv171
  %99 = getelementptr inbounds float, ptr %98, i64 %76
  store ptr %99, ptr %gep290, align 8, !tbaa !5
  %gep292 = getelementptr ptr, ptr %invariant.gep291, i64 %indvars.iv171
  %100 = getelementptr inbounds float, ptr %99, i64 %76
  store ptr %100, ptr %gep292, align 8, !tbaa !5
  %indvars.iv.next172.7 = add nuw nsw i64 %indvars.iv171, 8
  %niter259.next.7 = add i64 %niter259, 8
  %niter259.ncmp.7 = icmp eq i64 %niter259.next.7, %unroll_iter258
  br i1 %niter259.ncmp.7, label %.preheader123.loopexit.unr-lcssa, label %91, !llvm.loop !24

101:                                              ; preds = %.preheader123, %186
  %.0109 = phi i32 [ %187, %186 ], [ 0, %.preheader123 ]
  br i1 %66, label %.lr.ph144, label %.preheader122

.lr.ph144:                                        ; preds = %101
  br i1 %84, label %.lr.ph139.us, label %.lr.ph144.split

.lr.ph139.us:                                     ; preds = %.lr.ph144, %._crit_edge140.us
  %indvars.iv186 = phi i64 [ %indvars.iv.next187, %._crit_edge140.us ], [ 0, %.lr.ph144 ]
  %.0107141.us = phi float [ %.1108.us, %._crit_edge140.us ], [ 0.000000e+00, %.lr.ph144 ]
  %102 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv186
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = tail call i32 @find_nearest_cluster(i32 noundef %3, i32 noundef %1, ptr noundef %103, ptr noundef nonnull %10)
  %105 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv186
  %106 = load i32, ptr %105, align 4, !tbaa !21
  %107 = fadd float %.0107141.us, 1.000000e+00
  store i32 %104, ptr %105, align 4, !tbaa !21
  %108 = sext i32 %104 to i64
  %109 = getelementptr inbounds i32, ptr %69, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !21
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %109, align 4, !tbaa !21
  %112 = load ptr, ptr %102, align 8, !tbaa !5
  %113 = getelementptr inbounds ptr, ptr %72, i64 %108
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  br i1 %min.iters.check233, label %scalar.ph232.preheader, label %vector.memcheck225

vector.memcheck225:                               ; preds = %.lr.ph139.us
  %scevgep226 = getelementptr i8, ptr %114, i64 %89
  %scevgep227 = getelementptr i8, ptr %112, i64 %89
  %bound0228 = icmp ult ptr %114, %scevgep227
  %bound1229 = icmp ult ptr %112, %scevgep226
  %found.conflict230 = and i1 %bound0228, %bound1229
  br i1 %found.conflict230, label %scalar.ph232.preheader, label %vector.body238

vector.body238:                                   ; preds = %vector.memcheck225, %vector.body238
  %index239 = phi i64 [ %index.next244, %vector.body238 ], [ 0, %vector.memcheck225 ]
  %115 = getelementptr inbounds float, ptr %112, i64 %index239
  %116 = getelementptr inbounds i8, ptr %115, i64 16
  %wide.load240 = load <4 x float>, ptr %115, align 4, !tbaa !11, !alias.scope !25
  %wide.load241 = load <4 x float>, ptr %116, align 4, !tbaa !11, !alias.scope !25
  %117 = getelementptr inbounds float, ptr %114, i64 %index239
  %118 = getelementptr inbounds i8, ptr %117, i64 16
  %wide.load242 = load <4 x float>, ptr %117, align 4, !tbaa !11, !alias.scope !28, !noalias !25
  %wide.load243 = load <4 x float>, ptr %118, align 4, !tbaa !11, !alias.scope !28, !noalias !25
  %119 = fadd <4 x float> %wide.load240, %wide.load242
  %120 = fadd <4 x float> %wide.load241, %wide.load243
  store <4 x float> %119, ptr %117, align 4, !tbaa !11, !alias.scope !28, !noalias !25
  store <4 x float> %120, ptr %118, align 4, !tbaa !11, !alias.scope !28, !noalias !25
  %index.next244 = add nuw i64 %index239, 8
  %121 = icmp eq i64 %index.next244, %n.vec236
  br i1 %121, label %middle.block231, label %vector.body238, !llvm.loop !30

middle.block231:                                  ; preds = %vector.body238
  br i1 %cmp.n245, label %._crit_edge140.us, label %scalar.ph232.preheader

scalar.ph232.preheader:                           ; preds = %middle.block231, %vector.memcheck225, %.lr.ph139.us
  %indvars.iv181.ph = phi i64 [ 0, %vector.memcheck225 ], [ 0, %.lr.ph139.us ], [ %n.vec236, %middle.block231 ]
  br i1 %lcmp.mod261.not, label %scalar.ph232.prol.loopexit, label %scalar.ph232.prol

scalar.ph232.prol:                                ; preds = %scalar.ph232.preheader, %scalar.ph232.prol
  %indvars.iv181.prol = phi i64 [ %indvars.iv.next182.prol, %scalar.ph232.prol ], [ %indvars.iv181.ph, %scalar.ph232.preheader ]
  %prol.iter262 = phi i64 [ %prol.iter262.next, %scalar.ph232.prol ], [ 0, %scalar.ph232.preheader ]
  %122 = getelementptr inbounds float, ptr %112, i64 %indvars.iv181.prol
  %123 = load float, ptr %122, align 4, !tbaa !11
  %124 = getelementptr inbounds float, ptr %114, i64 %indvars.iv181.prol
  %125 = load float, ptr %124, align 4, !tbaa !11
  %126 = fadd float %123, %125
  store float %126, ptr %124, align 4, !tbaa !11
  %indvars.iv.next182.prol = add nuw nsw i64 %indvars.iv181.prol, 1
  %prol.iter262.next = add i64 %prol.iter262, 1
  %prol.iter262.cmp.not = icmp eq i64 %prol.iter262.next, %xtraiter260
  br i1 %prol.iter262.cmp.not, label %scalar.ph232.prol.loopexit, label %scalar.ph232.prol, !llvm.loop !31

scalar.ph232.prol.loopexit:                       ; preds = %scalar.ph232.prol, %scalar.ph232.preheader
  %indvars.iv181.unr = phi i64 [ %indvars.iv181.ph, %scalar.ph232.preheader ], [ %indvars.iv.next182.prol, %scalar.ph232.prol ]
  %127 = sub nsw i64 %indvars.iv181.ph, %86
  %128 = icmp ugt i64 %127, -4
  br i1 %128, label %._crit_edge140.us, label %scalar.ph232

scalar.ph232:                                     ; preds = %scalar.ph232.prol.loopexit, %scalar.ph232
  %indvars.iv181 = phi i64 [ %indvars.iv.next182.3, %scalar.ph232 ], [ %indvars.iv181.unr, %scalar.ph232.prol.loopexit ]
  %129 = getelementptr inbounds float, ptr %112, i64 %indvars.iv181
  %130 = load float, ptr %129, align 4, !tbaa !11
  %131 = getelementptr inbounds float, ptr %114, i64 %indvars.iv181
  %132 = load float, ptr %131, align 4, !tbaa !11
  %133 = fadd float %130, %132
  store float %133, ptr %131, align 4, !tbaa !11
  %indvars.iv.next182 = add nuw nsw i64 %indvars.iv181, 1
  %134 = getelementptr inbounds float, ptr %112, i64 %indvars.iv.next182
  %135 = load float, ptr %134, align 4, !tbaa !11
  %136 = getelementptr inbounds float, ptr %114, i64 %indvars.iv.next182
  %137 = load float, ptr %136, align 4, !tbaa !11
  %138 = fadd float %135, %137
  store float %138, ptr %136, align 4, !tbaa !11
  %indvars.iv.next182.1 = add nuw nsw i64 %indvars.iv181, 2
  %139 = getelementptr inbounds float, ptr %112, i64 %indvars.iv.next182.1
  %140 = load float, ptr %139, align 4, !tbaa !11
  %141 = getelementptr inbounds float, ptr %114, i64 %indvars.iv.next182.1
  %142 = load float, ptr %141, align 4, !tbaa !11
  %143 = fadd float %140, %142
  store float %143, ptr %141, align 4, !tbaa !11
  %indvars.iv.next182.2 = add nuw nsw i64 %indvars.iv181, 3
  %144 = getelementptr inbounds float, ptr %112, i64 %indvars.iv.next182.2
  %145 = load float, ptr %144, align 4, !tbaa !11
  %146 = getelementptr inbounds float, ptr %114, i64 %indvars.iv.next182.2
  %147 = load float, ptr %146, align 4, !tbaa !11
  %148 = fadd float %145, %147
  store float %148, ptr %146, align 4, !tbaa !11
  %indvars.iv.next182.3 = add nuw nsw i64 %indvars.iv181, 4
  %exitcond185.not.3 = icmp eq i64 %indvars.iv.next182.3, %86
  br i1 %exitcond185.not.3, label %._crit_edge140.us, label %scalar.ph232, !llvm.loop !32

._crit_edge140.us:                                ; preds = %scalar.ph232.prol.loopexit, %scalar.ph232, %middle.block231
  %.not121.us = icmp eq i32 %106, %104
  %.1108.us = select i1 %.not121.us, float %.0107141.us, float %107
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %exitcond190.not = icmp eq i64 %indvars.iv.next187, %wide.trip.count189
  br i1 %exitcond190.not, label %.preheader122, label %.lr.ph139.us, !llvm.loop !33

.preheader122:                                    ; preds = %.lr.ph144.split, %._crit_edge140.us, %101
  %.0107.lcssa = phi float [ 0.000000e+00, %101 ], [ %.1108.us, %._crit_edge140.us ], [ %.1108, %.lr.ph144.split ]
  br i1 %25, label %.preheader.lr.ph, label %._crit_edge149

.preheader.lr.ph:                                 ; preds = %.preheader122
  br i1 %84, label %.preheader.us, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %69, i8 0, i64 %85, i1 false), !tbaa !21
  br label %._crit_edge149

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge147.us
  %indvars.iv202 = phi i64 [ %indvars.iv.next203, %._crit_edge147.us ], [ 0, %.preheader.lr.ph ]
  %149 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv202
  %150 = load i32, ptr %149, align 4, !tbaa !21
  %151 = icmp sgt i32 %150, 0
  %152 = uitofp nneg i32 %150 to float
  %153 = getelementptr inbounds ptr, ptr %72, i64 %indvars.iv202
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  br i1 %151, label %.lr.ph146.split.us.us, label %.lr.ph146.split.us152.preheader

.lr.ph146.split.us152.preheader:                  ; preds = %.preheader.us
  tail call void @llvm.memset.p0.i64(ptr align 4 %154, i8 0, i64 %87, i1 false), !tbaa !11
  br label %._crit_edge147.us

._crit_edge147.us:                                ; preds = %scalar.ph214.prol.loopexit, %scalar.ph214, %middle.block213, %.lr.ph146.split.us152.preheader
  store i32 0, ptr %149, align 4, !tbaa !21
  %indvars.iv.next203 = add nuw nsw i64 %indvars.iv202, 1
  %exitcond206.not = icmp eq i64 %indvars.iv.next203, %.pre-phi
  br i1 %exitcond206.not, label %._crit_edge149, label %.preheader.us, !llvm.loop !34

.lr.ph146.split.us.us:                            ; preds = %.preheader.us
  %155 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv202
  %156 = load ptr, ptr %155, align 8, !tbaa !5
  br i1 %min.iters.check215, label %scalar.ph214.preheader, label %vector.memcheck211

vector.memcheck211:                               ; preds = %.lr.ph146.split.us.us
  %scevgep = getelementptr i8, ptr %156, i64 %88
  %scevgep212 = getelementptr i8, ptr %154, i64 %88
  %bound0 = icmp ult ptr %156, %scevgep212
  %bound1 = icmp ult ptr %154, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph214.preheader, label %vector.ph216

vector.ph216:                                     ; preds = %vector.memcheck211
  %broadcast.splatinsert = insertelement <4 x float> poison, float %152, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body220

vector.body220:                                   ; preds = %vector.body220, %vector.ph216
  %index221 = phi i64 [ 0, %vector.ph216 ], [ %index.next223, %vector.body220 ]
  %157 = getelementptr inbounds float, ptr %154, i64 %index221
  %wide.load222 = load <4 x float>, ptr %157, align 4, !tbaa !11, !alias.scope !35
  %158 = fdiv <4 x float> %wide.load222, %broadcast.splat
  %159 = getelementptr inbounds float, ptr %156, i64 %index221
  store <4 x float> %158, ptr %159, align 4, !tbaa !11, !alias.scope !38, !noalias !35
  store <4 x float> zeroinitializer, ptr %157, align 4, !tbaa !11, !alias.scope !35
  %index.next223 = add nuw i64 %index221, 4
  %160 = icmp eq i64 %index.next223, %n.vec218
  br i1 %160, label %middle.block213, label %vector.body220, !llvm.loop !40

middle.block213:                                  ; preds = %vector.body220
  br i1 %cmp.n224, label %._crit_edge147.us, label %scalar.ph214.preheader

scalar.ph214.preheader:                           ; preds = %middle.block213, %vector.memcheck211, %.lr.ph146.split.us.us
  %indvars.iv197.ph = phi i64 [ 0, %vector.memcheck211 ], [ 0, %.lr.ph146.split.us.us ], [ %n.vec218, %middle.block213 ]
  br i1 %lcmp.mod264.not, label %scalar.ph214.prol.loopexit, label %scalar.ph214.prol

scalar.ph214.prol:                                ; preds = %scalar.ph214.preheader
  %161 = getelementptr inbounds float, ptr %154, i64 %indvars.iv197.ph
  %162 = load float, ptr %161, align 4, !tbaa !11
  %163 = fdiv float %162, %152
  %164 = getelementptr inbounds float, ptr %156, i64 %indvars.iv197.ph
  store float %163, ptr %164, align 4, !tbaa !11
  store float 0.000000e+00, ptr %161, align 4, !tbaa !11
  %indvars.iv.next198.prol = or disjoint i64 %indvars.iv197.ph, 1
  br label %scalar.ph214.prol.loopexit

scalar.ph214.prol.loopexit:                       ; preds = %scalar.ph214.prol, %scalar.ph214.preheader
  %indvars.iv197.unr = phi i64 [ %indvars.iv197.ph, %scalar.ph214.preheader ], [ %indvars.iv.next198.prol, %scalar.ph214.prol ]
  %165 = icmp eq i64 %indvars.iv197.ph, %90
  br i1 %165, label %._crit_edge147.us, label %scalar.ph214

scalar.ph214:                                     ; preds = %scalar.ph214.prol.loopexit, %scalar.ph214
  %indvars.iv197 = phi i64 [ %indvars.iv.next198.1, %scalar.ph214 ], [ %indvars.iv197.unr, %scalar.ph214.prol.loopexit ]
  %166 = getelementptr inbounds float, ptr %154, i64 %indvars.iv197
  %167 = load float, ptr %166, align 4, !tbaa !11
  %168 = fdiv float %167, %152
  %169 = getelementptr inbounds float, ptr %156, i64 %indvars.iv197
  store float %168, ptr %169, align 4, !tbaa !11
  store float 0.000000e+00, ptr %166, align 4, !tbaa !11
  %indvars.iv.next198 = add nuw nsw i64 %indvars.iv197, 1
  %170 = getelementptr inbounds float, ptr %154, i64 %indvars.iv.next198
  %171 = load float, ptr %170, align 4, !tbaa !11
  %172 = fdiv float %171, %152
  %173 = getelementptr inbounds float, ptr %156, i64 %indvars.iv.next198
  store float %172, ptr %173, align 4, !tbaa !11
  store float 0.000000e+00, ptr %170, align 4, !tbaa !11
  %indvars.iv.next198.1 = add nuw nsw i64 %indvars.iv197, 2
  %exitcond201.not.1 = icmp eq i64 %indvars.iv.next198.1, %86
  br i1 %exitcond201.not.1, label %._crit_edge147.us, label %scalar.ph214, !llvm.loop !41

.lr.ph144.split:                                  ; preds = %.lr.ph144, %.lr.ph144.split
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %.lr.ph144.split ], [ 0, %.lr.ph144 ]
  %.0107141 = phi float [ %.1108, %.lr.ph144.split ], [ 0.000000e+00, %.lr.ph144 ]
  %174 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv176
  %175 = load ptr, ptr %174, align 8, !tbaa !5
  %176 = tail call i32 @find_nearest_cluster(i32 noundef %3, i32 noundef %1, ptr noundef %175, ptr noundef nonnull %10)
  %177 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv176
  %178 = load i32, ptr %177, align 4, !tbaa !21
  %.not121 = icmp eq i32 %178, %176
  %179 = fadd float %.0107141, 1.000000e+00
  %.1108 = select i1 %.not121, float %.0107141, float %179
  store i32 %176, ptr %177, align 4, !tbaa !21
  %180 = sext i32 %176 to i64
  %181 = getelementptr inbounds i32, ptr %69, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !21
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %181, align 4, !tbaa !21
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %exitcond180.not = icmp eq i64 %indvars.iv.next177, %wide.trip.count179
  br i1 %exitcond180.not, label %.preheader122, label %.lr.ph144.split, !llvm.loop !33

._crit_edge149:                                   ; preds = %._crit_edge147.us, %.preheader.preheader, %.preheader122
  %184 = fdiv float %.0107.lcssa, %83
  %185 = fcmp ogt float %184, %4
  br i1 %185, label %186, label %.critedge

186:                                              ; preds = %._crit_edge149
  %187 = add nuw nsw i32 %.0109, 1
  %exitcond207.not = icmp eq i32 %187, 501
  br i1 %exitcond207.not, label %.critedge, label %101, !llvm.loop !42

.critedge:                                        ; preds = %._crit_edge149, %186
  %.1110 = phi i32 [ 501, %186 ], [ %.0109, %._crit_edge149 ]
  %188 = add nuw nsw i32 %.1110, 1
  store i32 %188, ptr %6, align 4, !tbaa !21
  %189 = load ptr, ptr %72, align 8, !tbaa !5
  tail call void @free(ptr noundef %189) #10
  tail call void @free(ptr noundef %72) #10
  tail call void @free(ptr noundef %69) #10
  ret ptr %10
}

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @find_nearest_cluster(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn 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 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #4 = { inlinehint 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 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind allocsize(0,1) }
attributes #10 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.unroll.disable"}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14, !15, !16}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !14, !15}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !14}
!25 = !{!26}
!26 = distinct !{!26, !27}
!27 = distinct !{!27, !"LVerDomain"}
!28 = !{!29}
!29 = distinct !{!29, !27}
!30 = distinct !{!30, !14, !15, !16}
!31 = distinct !{!31, !10}
!32 = distinct !{!32, !14, !15}
!33 = distinct !{!33, !14}
!34 = distinct !{!34, !14}
!35 = !{!36}
!36 = distinct !{!36, !37}
!37 = distinct !{!37, !"LVerDomain"}
!38 = !{!39}
!39 = distinct !{!39, !37}
!40 = distinct !{!40, !14, !15, !16}
!41 = distinct !{!41, !14, !15}
!42 = distinct !{!42, !14}


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