; LLVM IR from GGiecold-zz/Cluster_Ensembles :: src/Cluster_Ensembles/Hypergraph_Partitioning/metis-5.1.0/programs (smbfactor)

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

%struct.graph_t = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @ComputeFillIn(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  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 ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.graph_t, ptr %23, i32 0, i32 0
  %25 = load i32, ptr %24, align 8, !tbaa !9
  store i32 %25, ptr %14, align 4, !tbaa !12
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.graph_t, ptr %26, i32 0, i32 3
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  store ptr %28, ptr %17, align 8, !tbaa !5
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.graph_t, ptr %29, i32 0, i32 6
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  store ptr %31, ptr %18, align 8, !tbaa !5
  %32 = load i32, ptr %14, align 4, !tbaa !12
  %33 = load ptr, ptr %17, align 8, !tbaa !5
  %34 = load i32, ptr %14, align 4, !tbaa !12
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds i32, ptr %33, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !12
  %38 = add nsw i32 %32, %37
  %39 = mul nsw i32 8, %38
  store i32 %39, ptr %16, align 4, !tbaa !12
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %40

40:                                               ; preds = %55, %5
  %41 = load i32, ptr %11, align 4, !tbaa !12
  %42 = load ptr, ptr %17, align 8, !tbaa !5
  %43 = load i32, ptr %14, align 4, !tbaa !12
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds i32, ptr %42, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !12
  %47 = icmp slt i32 %41, %46
  br i1 %47, label %48, label %58

48:                                               ; preds = %40
  %49 = load ptr, ptr %18, align 8, !tbaa !5
  %50 = load i32, ptr %11, align 4, !tbaa !12
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i32, ptr %49, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !12
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %52, align 4, !tbaa !12
  br label %55

55:                                               ; preds = %48
  %56 = load i32, ptr %11, align 4, !tbaa !12
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %11, align 4, !tbaa !12
  br label %40, !llvm.loop !15

58:                                               ; preds = %40
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %59

59:                                               ; preds = %71, %58
  %60 = load i32, ptr %11, align 4, !tbaa !12
  %61 = load i32, ptr %14, align 4, !tbaa !12
  %62 = add nsw i32 %61, 1
  %63 = icmp slt i32 %60, %62
  br i1 %63, label %64, label %74

64:                                               ; preds = %59
  %65 = load ptr, ptr %17, align 8, !tbaa !5
  %66 = load i32, ptr %11, align 4, !tbaa !12
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i32, ptr %65, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !12
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %68, align 4, !tbaa !12
  br label %71

71:                                               ; preds = %64
  %72 = load i32, ptr %11, align 4, !tbaa !12
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %11, align 4, !tbaa !12
  br label %59, !llvm.loop !17

74:                                               ; preds = %59
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %75

75:                                               ; preds = %92, %74
  %76 = load i32, ptr %11, align 4, !tbaa !12
  %77 = load i32, ptr %14, align 4, !tbaa !12
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %79, label %95

79:                                               ; preds = %75
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = load i32, ptr %11, align 4, !tbaa !12
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i32, ptr %80, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !12
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %83, align 4, !tbaa !12
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = load i32, ptr %11, align 4, !tbaa !12
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i32, ptr %86, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !12
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %89, align 4, !tbaa !12
  br label %92

92:                                               ; preds = %79
  %93 = load i32, ptr %11, align 4, !tbaa !12
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %11, align 4, !tbaa !12
  br label %75, !llvm.loop !18

95:                                               ; preds = %75
  %96 = load i32, ptr %14, align 4, !tbaa !12
  %97 = add nsw i32 %96, 2
  %98 = sext i32 %97 to i64
  %99 = call ptr @libmetis__imalloc(i64 noundef %98, ptr noundef @.str)
  store ptr %99, ptr %19, align 8, !tbaa !5
  %100 = load i32, ptr %14, align 4, !tbaa !12
  %101 = add nsw i32 %100, 2
  %102 = sext i32 %101 to i64
  %103 = call ptr @libmetis__imalloc(i64 noundef %102, ptr noundef @.str.1)
  store ptr %103, ptr %20, align 8, !tbaa !5
  %104 = load i32, ptr %16, align 4, !tbaa !12
  %105 = add nsw i32 %104, 1
  %106 = sext i32 %105 to i64
  %107 = call ptr @libmetis__imalloc(i64 noundef %106, ptr noundef @.str.2)
  store ptr %107, ptr %21, align 8, !tbaa !5
  %108 = load i32, ptr %14, align 4, !tbaa !12
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  %110 = load ptr, ptr %18, align 8, !tbaa !5
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = load ptr, ptr %19, align 8, !tbaa !5
  %114 = load ptr, ptr %20, align 8, !tbaa !5
  %115 = load ptr, ptr %21, align 8, !tbaa !5
  %116 = call i32 @smbfct(i32 noundef %108, ptr noundef %109, ptr noundef %110, ptr noundef %111, ptr noundef %112, ptr noundef %113, ptr noundef %15, ptr noundef %114, ptr noundef %115, ptr noundef %16)
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %138

118:                                              ; preds = %95
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  call void (ptr, ...) @gk_free(ptr noundef %21, ptr noundef null)
  %120 = load i32, ptr %16, align 4, !tbaa !12
  %121 = mul nsw i32 %120, 2
  store i32 %121, ptr %16, align 4, !tbaa !12
  %122 = load i32, ptr %16, align 4, !tbaa !12
  %123 = add nsw i32 %122, 1
  %124 = sext i32 %123 to i64
  %125 = call ptr @libmetis__imalloc(i64 noundef %124, ptr noundef @.str.2)
  store ptr %125, ptr %21, align 8, !tbaa !5
  %126 = load i32, ptr %14, align 4, !tbaa !12
  %127 = load ptr, ptr %17, align 8, !tbaa !5
  %128 = load ptr, ptr %18, align 8, !tbaa !5
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = load ptr, ptr %19, align 8, !tbaa !5
  %132 = load ptr, ptr %20, align 8, !tbaa !5
  %133 = load ptr, ptr %21, align 8, !tbaa !5
  %134 = call i32 @smbfct(i32 noundef %126, ptr noundef %127, ptr noundef %128, ptr noundef %129, ptr noundef %130, ptr noundef %131, ptr noundef %15, ptr noundef %132, ptr noundef %133, ptr noundef %16)
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %137

136:                                              ; preds = %118
  call void (ptr, ...) @errexit(ptr noundef @.str.4)
  br label %137

137:                                              ; preds = %136, %118
  br label %138

138:                                              ; preds = %137, %95
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %139

139:                                              ; preds = %150, %138
  %140 = load i32, ptr %11, align 4, !tbaa !12
  %141 = load i32, ptr %14, align 4, !tbaa !12
  %142 = icmp slt i32 %140, %141
  br i1 %142, label %143, label %153

143:                                              ; preds = %139
  %144 = load ptr, ptr %19, align 8, !tbaa !5
  %145 = load i32, ptr %11, align 4, !tbaa !12
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds i32, ptr %144, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !12
  %149 = add nsw i32 %148, -1
  store i32 %149, ptr %147, align 4, !tbaa !12
  br label %150

150:                                              ; preds = %143
  %151 = load i32, ptr %11, align 4, !tbaa !12
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %11, align 4, !tbaa !12
  br label %139, !llvm.loop !19

153:                                              ; preds = %139
  store i64 0, ptr %22, align 8, !tbaa !20
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %154

154:                                              ; preds = %200, %153
  %155 = load i32, ptr %11, align 4, !tbaa !12
  %156 = load i32, ptr %14, align 4, !tbaa !12
  %157 = icmp slt i32 %155, %156
  br i1 %157, label %158, label %203

158:                                              ; preds = %154
  %159 = load ptr, ptr %19, align 8, !tbaa !5
  %160 = load i32, ptr %11, align 4, !tbaa !12
  %161 = add nsw i32 %160, 1
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds i32, ptr %159, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !12
  %165 = load ptr, ptr %19, align 8, !tbaa !5
  %166 = load i32, ptr %11, align 4, !tbaa !12
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds i32, ptr %165, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !12
  %170 = sub nsw i32 %164, %169
  %171 = load ptr, ptr %19, align 8, !tbaa !5
  %172 = load i32, ptr %11, align 4, !tbaa !12
  %173 = add nsw i32 %172, 1
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds i32, ptr %171, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !12
  %177 = load ptr, ptr %19, align 8, !tbaa !5
  %178 = load i32, ptr %11, align 4, !tbaa !12
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds i32, ptr %177, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !12
  %182 = sub nsw i32 %176, %181
  %183 = mul nsw i32 %170, %182
  %184 = load ptr, ptr %19, align 8, !tbaa !5
  %185 = load i32, ptr %11, align 4, !tbaa !12
  %186 = add nsw i32 %185, 1
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds i32, ptr %184, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !12
  %190 = load ptr, ptr %19, align 8, !tbaa !5
  %191 = load i32, ptr %11, align 4, !tbaa !12
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds i32, ptr %190, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !12
  %195 = sub nsw i32 %189, %194
  %196 = sub nsw i32 %183, %195
  %197 = sext i32 %196 to i64
  %198 = load i64, ptr %22, align 8, !tbaa !20
  %199 = add i64 %198, %197
  store i64 %199, ptr %22, align 8, !tbaa !20
  br label %200

200:                                              ; preds = %158
  %201 = load i32, ptr %11, align 4, !tbaa !12
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %11, align 4, !tbaa !12
  br label %154, !llvm.loop !22

203:                                              ; preds = %154
  %204 = load i32, ptr %15, align 4, !tbaa !12
  %205 = sext i32 %204 to i64
  %206 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 %205, ptr %206, align 8, !tbaa !20
  %207 = load i64, ptr %22, align 8, !tbaa !20
  %208 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 %207, ptr %208, align 8, !tbaa !20
  call void (ptr, ...) @gk_free(ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef null)
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %209

209:                                              ; preds = %226, %203
  %210 = load i32, ptr %11, align 4, !tbaa !12
  %211 = load i32, ptr %14, align 4, !tbaa !12
  %212 = icmp slt i32 %210, %211
  br i1 %212, label %213, label %229

213:                                              ; preds = %209
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = load i32, ptr %11, align 4, !tbaa !12
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds i32, ptr %214, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !12
  %219 = add nsw i32 %218, -1
  store i32 %219, ptr %217, align 4, !tbaa !12
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = load i32, ptr %11, align 4, !tbaa !12
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds i32, ptr %220, i64 %222
  %224 = load i32, ptr %223, align 4, !tbaa !12
  %225 = add nsw i32 %224, -1
  store i32 %225, ptr %223, align 4, !tbaa !12
  br label %226

226:                                              ; preds = %213
  %227 = load i32, ptr %11, align 4, !tbaa !12
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %11, align 4, !tbaa !12
  br label %209, !llvm.loop !23

229:                                              ; preds = %209
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %230

230:                                              ; preds = %242, %229
  %231 = load i32, ptr %11, align 4, !tbaa !12
  %232 = load i32, ptr %14, align 4, !tbaa !12
  %233 = add nsw i32 %232, 1
  %234 = icmp slt i32 %231, %233
  br i1 %234, label %235, label %245

235:                                              ; preds = %230
  %236 = load ptr, ptr %17, align 8, !tbaa !5
  %237 = load i32, ptr %11, align 4, !tbaa !12
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds i32, ptr %236, i64 %238
  %240 = load i32, ptr %239, align 4, !tbaa !12
  %241 = add nsw i32 %240, -1
  store i32 %241, ptr %239, align 4, !tbaa !12
  br label %242

242:                                              ; preds = %235
  %243 = load i32, ptr %11, align 4, !tbaa !12
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %11, align 4, !tbaa !12
  br label %230, !llvm.loop !24

245:                                              ; preds = %230
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %246

246:                                              ; preds = %261, %245
  %247 = load i32, ptr %11, align 4, !tbaa !12
  %248 = load ptr, ptr %17, align 8, !tbaa !5
  %249 = load i32, ptr %14, align 4, !tbaa !12
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds i32, ptr %248, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !12
  %253 = icmp slt i32 %247, %252
  br i1 %253, label %254, label %264

254:                                              ; preds = %246
  %255 = load ptr, ptr %18, align 8, !tbaa !5
  %256 = load i32, ptr %11, align 4, !tbaa !12
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds i32, ptr %255, i64 %257
  %259 = load i32, ptr %258, align 4, !tbaa !12
  %260 = add nsw i32 %259, -1
  store i32 %260, ptr %258, align 4, !tbaa !12
  br label %261

261:                                              ; preds = %254
  %262 = load i32, ptr %11, align 4, !tbaa !12
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %11, align 4, !tbaa !12
  br label %246, !llvm.loop !25

264:                                              ; preds = %246
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  ret void
}

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

declare ptr @libmetis__imalloc(i64 noundef, ptr noundef) #2

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

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

declare void @gk_free(ptr noundef, ...) #2

declare void @errexit(ptr noundef, ...) #2

; 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 = { "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 }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"graph_t", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96, !6, i64 104, !11, i64 112, !11, i64 116, !6, i64 120, !6, i64 128, !11, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !6, i64 40}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = !{!21, !21, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}


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

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @ComputeFillIn(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #0 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %11 = load i32, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  %15 = load ptr, ptr %14, align 8, !tbaa !12
  %16 = sext i32 %11 to i64
  %17 = getelementptr inbounds i32, ptr %13, i64 %16
  %18 = load i32, ptr %17, align 4, !tbaa !13
  %19 = add nsw i32 %18, %11
  %20 = shl nsw i32 %19, 3
  store i32 %20, ptr %7, align 4, !tbaa !13
  %21 = icmp sgt i32 %18, 0
  br i1 %21, label %.lr.ph, label %.preheader79

.preheader79:                                     ; preds = %.lr.ph, %5
  %.not81 = icmp slt i32 %11, 0
  br i1 %.not81, label %._crit_edge, label %.lr.ph83.preheader

.lr.ph83.preheader:                               ; preds = %.preheader79
  %22 = add nuw i32 %11, 1
  %wide.trip.count = zext i32 %22 to i64
  %min.iters.check = icmp ult i32 %11, 7
  br i1 %min.iters.check, label %.lr.ph83.preheader201, label %vector.ph

.lr.ph83.preheader201:                            ; preds = %middle.block, %.lr.ph83.preheader
  %indvars.iv103.ph = phi i64 [ 0, %.lr.ph83.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph83

vector.ph:                                        ; preds = %.lr.ph83.preheader
  %n.vec = and i64 %wide.trip.count, 4294967288
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %23 = getelementptr inbounds i32, ptr %13, i64 %index
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %wide.load = load <4 x i32>, ptr %23, align 4, !tbaa !13
  %wide.load134 = load <4 x i32>, ptr %24, align 4, !tbaa !13
  %25 = add nsw <4 x i32> %wide.load, <i32 1, i32 1, i32 1, i32 1>
  %26 = add nsw <4 x i32> %wide.load134, <i32 1, i32 1, i32 1, i32 1>
  store <4 x i32> %25, ptr %23, align 4, !tbaa !13
  store <4 x i32> %26, ptr %24, align 4, !tbaa !13
  %index.next = add nuw i64 %index, 8
  %27 = icmp eq i64 %index.next, %n.vec
  br i1 %27, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader78, label %.lr.ph83.preheader201

.lr.ph:                                           ; preds = %5, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %5 ]
  %28 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv
  %29 = load i32, ptr %28, align 4, !tbaa !13
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %28, align 4, !tbaa !13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %31 = load i32, ptr %17, align 4, !tbaa !13
  %32 = sext i32 %31 to i64
  %33 = icmp slt i64 %indvars.iv.next, %32
  br i1 %33, label %.lr.ph, label %.preheader79, !llvm.loop !18

.preheader78:                                     ; preds = %.lr.ph83, %middle.block
  %34 = icmp ne i32 %11, 0
  br i1 %34, label %.lr.ph85.preheader, label %._crit_edge

.lr.ph85.preheader:                               ; preds = %.preheader78
  %wide.trip.count109 = zext nneg i32 %11 to i64
  %min.iters.check138 = icmp ult i32 %11, 8
  br i1 %min.iters.check138, label %.lr.ph85.preheader200, label %vector.memcheck

.lr.ph85.preheader200:                            ; preds = %middle.block136, %vector.memcheck, %.lr.ph85.preheader
  %indvars.iv106.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph85.preheader ], [ %n.vec141, %middle.block136 ]
  %xtraiter = and i64 %wide.trip.count109, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph85.prol.loopexit, label %.lr.ph85.prol

.lr.ph85.prol:                                    ; preds = %.lr.ph85.preheader200
  %35 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv106.ph
  %36 = load i32, ptr %35, align 4, !tbaa !13
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %35, align 4, !tbaa !13
  %38 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv106.ph
  %39 = load i32, ptr %38, align 4, !tbaa !13
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %38, align 4, !tbaa !13
  %indvars.iv.next107.prol = or disjoint i64 %indvars.iv106.ph, 1
  br label %.lr.ph85.prol.loopexit

.lr.ph85.prol.loopexit:                           ; preds = %.lr.ph85.prol, %.lr.ph85.preheader200
  %indvars.iv106.unr = phi i64 [ %indvars.iv106.ph, %.lr.ph85.preheader200 ], [ %indvars.iv.next107.prol, %.lr.ph85.prol ]
  %41 = add nsw i64 %wide.trip.count109, -1
  %42 = icmp eq i64 %indvars.iv106.ph, %41
  br i1 %42, label %._crit_edge, label %.lr.ph85

vector.memcheck:                                  ; preds = %.lr.ph85.preheader
  %43 = shl nuw nsw i64 %wide.trip.count109, 2
  %scevgep = getelementptr i8, ptr %2, i64 %43
  %scevgep135 = getelementptr i8, ptr %1, i64 %43
  %bound0 = icmp ugt ptr %scevgep135, %2
  %bound1 = icmp ugt ptr %scevgep, %1
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph85.preheader200, label %vector.ph139

vector.ph139:                                     ; preds = %vector.memcheck
  %n.vec141 = and i64 %wide.trip.count109, 2147483640
  br label %vector.body143

vector.body143:                                   ; preds = %vector.body143, %vector.ph139
  %index144 = phi i64 [ 0, %vector.ph139 ], [ %index.next149, %vector.body143 ]
  %44 = getelementptr inbounds i32, ptr %2, i64 %index144
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %wide.load145 = load <4 x i32>, ptr %44, align 4, !tbaa !13, !alias.scope !19, !noalias !22
  %wide.load146 = load <4 x i32>, ptr %45, align 4, !tbaa !13, !alias.scope !19, !noalias !22
  %46 = add nsw <4 x i32> %wide.load145, <i32 1, i32 1, i32 1, i32 1>
  %47 = add nsw <4 x i32> %wide.load146, <i32 1, i32 1, i32 1, i32 1>
  store <4 x i32> %46, ptr %44, align 4, !tbaa !13, !alias.scope !19, !noalias !22
  store <4 x i32> %47, ptr %45, align 4, !tbaa !13, !alias.scope !19, !noalias !22
  %48 = getelementptr inbounds i32, ptr %1, i64 %index144
  %49 = getelementptr inbounds i8, ptr %48, i64 16
  %wide.load147 = load <4 x i32>, ptr %48, align 4, !tbaa !13, !alias.scope !22
  %wide.load148 = load <4 x i32>, ptr %49, align 4, !tbaa !13, !alias.scope !22
  %50 = add nsw <4 x i32> %wide.load147, <i32 1, i32 1, i32 1, i32 1>
  %51 = add nsw <4 x i32> %wide.load148, <i32 1, i32 1, i32 1, i32 1>
  store <4 x i32> %50, ptr %48, align 4, !tbaa !13, !alias.scope !22
  store <4 x i32> %51, ptr %49, align 4, !tbaa !13, !alias.scope !22
  %index.next149 = add nuw i64 %index144, 8
  %52 = icmp eq i64 %index.next149, %n.vec141
  br i1 %52, label %middle.block136, label %vector.body143, !llvm.loop !24

middle.block136:                                  ; preds = %vector.body143
  %cmp.n150 = icmp eq i64 %n.vec141, %wide.trip.count109
  br i1 %cmp.n150, label %._crit_edge, label %.lr.ph85.preheader200

.lr.ph83:                                         ; preds = %.lr.ph83.preheader201, %.lr.ph83
  %indvars.iv103 = phi i64 [ %indvars.iv.next104, %.lr.ph83 ], [ %indvars.iv103.ph, %.lr.ph83.preheader201 ]
  %53 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv103
  %54 = load i32, ptr %53, align 4, !tbaa !13
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %53, align 4, !tbaa !13
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next104, %wide.trip.count
  br i1 %exitcond.not, label %.preheader78, label %.lr.ph83, !llvm.loop !25

.lr.ph85:                                         ; preds = %.lr.ph85.prol.loopexit, %.lr.ph85
  %indvars.iv106 = phi i64 [ %indvars.iv.next107.1, %.lr.ph85 ], [ %indvars.iv106.unr, %.lr.ph85.prol.loopexit ]
  %56 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv106
  %57 = load i32, ptr %56, align 4, !tbaa !13
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %56, align 4, !tbaa !13
  %59 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv106
  %60 = load i32, ptr %59, align 4, !tbaa !13
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %59, align 4, !tbaa !13
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %62 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv.next107
  %63 = load i32, ptr %62, align 4, !tbaa !13
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %62, align 4, !tbaa !13
  %65 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv.next107
  %66 = load i32, ptr %65, align 4, !tbaa !13
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %65, align 4, !tbaa !13
  %indvars.iv.next107.1 = add nuw nsw i64 %indvars.iv106, 2
  %exitcond110.not.1 = icmp eq i64 %indvars.iv.next107.1, %wide.trip.count109
  br i1 %exitcond110.not.1, label %._crit_edge, label %.lr.ph85, !llvm.loop !26

._crit_edge:                                      ; preds = %.lr.ph85.prol.loopexit, %.lr.ph85, %middle.block136, %.preheader79, %.preheader78
  %68 = phi i1 [ false, %.preheader78 ], [ false, %.preheader79 ], [ %34, %middle.block136 ], [ %34, %.lr.ph85 ], [ %34, %.lr.ph85.prol.loopexit ]
  %69 = add nsw i32 %11, 2
  %70 = sext i32 %69 to i64
  %71 = tail call ptr @libmetis__imalloc(i64 noundef %70, ptr noundef nonnull @.str) #4
  store ptr %71, ptr %8, align 8, !tbaa !27
  %72 = tail call ptr @libmetis__imalloc(i64 noundef %70, ptr noundef nonnull @.str.1) #4
  store ptr %72, ptr %9, align 8, !tbaa !27
  %73 = or disjoint i32 %20, 1
  %74 = sext i32 %73 to i64
  %75 = tail call ptr @libmetis__imalloc(i64 noundef %74, ptr noundef nonnull @.str.2) #4
  store ptr %75, ptr %10, align 8, !tbaa !27
  %76 = call i32 @smbfct(i32 noundef %11, ptr noundef %13, ptr noundef %15, ptr noundef %1, ptr noundef %2, ptr noundef %71, ptr noundef nonnull %6, ptr noundef %72, ptr noundef %75, ptr noundef nonnull %7)
  %.not73 = icmp eq i32 %76, 0
  br i1 %.not73, label %86, label %77

77:                                               ; preds = %._crit_edge
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  call void (ptr, ...) @gk_free(ptr noundef nonnull %10, ptr noundef null) #4
  %79 = load i32, ptr %7, align 4, !tbaa !13
  %80 = shl nsw i32 %79, 1
  store i32 %80, ptr %7, align 4, !tbaa !13
  %81 = or disjoint i32 %80, 1
  %82 = sext i32 %81 to i64
  %83 = call ptr @libmetis__imalloc(i64 noundef %82, ptr noundef nonnull @.str.2) #4
  store ptr %83, ptr %10, align 8, !tbaa !27
  %84 = call i32 @smbfct(i32 noundef %11, ptr noundef %13, ptr noundef %15, ptr noundef %1, ptr noundef %2, ptr noundef %71, ptr noundef nonnull %6, ptr noundef %72, ptr noundef %83, ptr noundef nonnull %7)
  %.not74 = icmp eq i32 %84, 0
  br i1 %.not74, label %86, label %85

85:                                               ; preds = %77
  call void (ptr, ...) @errexit(ptr noundef nonnull @.str.4) #4
  br label %86

86:                                               ; preds = %77, %85, %._crit_edge
  br i1 %68, label %.lr.ph88, label %.preheader76.critedge

.lr.ph88:                                         ; preds = %86
  %wide.trip.count114 = zext i32 %11 to i64
  %min.iters.check153 = icmp ult i32 %11, 8
  br i1 %min.iters.check153, label %scalar.ph152.preheader, label %vector.ph154

scalar.ph152.preheader:                           ; preds = %middle.block151, %.lr.ph88
  %indvars.iv111.ph = phi i64 [ 0, %.lr.ph88 ], [ %n.vec156, %middle.block151 ]
  br label %scalar.ph152

vector.ph154:                                     ; preds = %.lr.ph88
  %n.vec156 = and i64 %wide.trip.count114, 2147483640
  br label %vector.body158

vector.body158:                                   ; preds = %vector.body158, %vector.ph154
  %index159 = phi i64 [ 0, %vector.ph154 ], [ %index.next162, %vector.body158 ]
  %87 = getelementptr inbounds i32, ptr %71, i64 %index159
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  %wide.load160 = load <4 x i32>, ptr %87, align 4, !tbaa !13
  %wide.load161 = load <4 x i32>, ptr %88, align 4, !tbaa !13
  %89 = add nsw <4 x i32> %wide.load160, <i32 -1, i32 -1, i32 -1, i32 -1>
  %90 = add nsw <4 x i32> %wide.load161, <i32 -1, i32 -1, i32 -1, i32 -1>
  store <4 x i32> %89, ptr %87, align 4, !tbaa !13
  store <4 x i32> %90, ptr %88, align 4, !tbaa !13
  %index.next162 = add nuw i64 %index159, 8
  %91 = icmp eq i64 %index.next162, %n.vec156
  br i1 %91, label %middle.block151, label %vector.body158, !llvm.loop !28

middle.block151:                                  ; preds = %vector.body158
  %cmp.n163 = icmp eq i64 %n.vec156, %wide.trip.count114
  br i1 %cmp.n163, label %.preheader77, label %scalar.ph152.preheader

.preheader77:                                     ; preds = %scalar.ph152, %middle.block151
  br i1 %68, label %.lr.ph91, label %.preheader76.critedge

.lr.ph91:                                         ; preds = %.preheader77
  %.pre = load i32, ptr %71, align 4, !tbaa !13
  %xtraiter202 = and i64 %wide.trip.count114, 1
  %92 = icmp eq i32 %11, 1
  br i1 %92, label %._crit_edge92.unr-lcssa, label %.lr.ph91.new

.lr.ph91.new:                                     ; preds = %.lr.ph91
  %unroll_iter = and i64 %wide.trip.count114, 4294967294
  br label %96

scalar.ph152:                                     ; preds = %scalar.ph152.preheader, %scalar.ph152
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %scalar.ph152 ], [ %indvars.iv111.ph, %scalar.ph152.preheader ]
  %93 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv111
  %94 = load i32, ptr %93, align 4, !tbaa !13
  %95 = add nsw i32 %94, -1
  store i32 %95, ptr %93, align 4, !tbaa !13
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond115.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count114
  br i1 %exitcond115.not, label %.preheader77, label %scalar.ph152, !llvm.loop !29

96:                                               ; preds = %96, %.lr.ph91.new
  %97 = phi i32 [ %.pre, %.lr.ph91.new ], [ %106, %96 ]
  %indvars.iv116 = phi i64 [ 0, %.lr.ph91.new ], [ %indvars.iv.next117.1, %96 ]
  %.090 = phi i64 [ 0, %.lr.ph91.new ], [ %111, %96 ]
  %niter = phi i64 [ 0, %.lr.ph91.new ], [ %niter.next.1, %96 ]
  %indvars.iv.next117 = or disjoint i64 %indvars.iv116, 1
  %98 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv.next117
  %99 = load i32, ptr %98, align 4, !tbaa !13
  %100 = sub nsw i32 %99, %97
  %101 = add i32 %100, -1
  %102 = mul i32 %101, %100
  %103 = sext i32 %102 to i64
  %104 = add i64 %.090, %103
  %indvars.iv.next117.1 = add nuw nsw i64 %indvars.iv116, 2
  %105 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv.next117.1
  %106 = load i32, ptr %105, align 4, !tbaa !13
  %107 = sub nsw i32 %106, %99
  %108 = add i32 %107, -1
  %109 = mul i32 %108, %107
  %110 = sext i32 %109 to i64
  %111 = add i64 %104, %110
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge92.unr-lcssa.loopexit, label %96, !llvm.loop !30

._crit_edge92.unr-lcssa.loopexit:                 ; preds = %96
  %112 = add nuw nsw i64 %indvars.iv116, 3
  br label %._crit_edge92.unr-lcssa

._crit_edge92.unr-lcssa:                          ; preds = %._crit_edge92.unr-lcssa.loopexit, %.lr.ph91
  %.lcssa.ph = phi i64 [ poison, %.lr.ph91 ], [ %111, %._crit_edge92.unr-lcssa.loopexit ]
  %.unr = phi i32 [ %.pre, %.lr.ph91 ], [ %106, %._crit_edge92.unr-lcssa.loopexit ]
  %indvars.iv116.unr = phi i64 [ 1, %.lr.ph91 ], [ %112, %._crit_edge92.unr-lcssa.loopexit ]
  %.090.unr = phi i64 [ 0, %.lr.ph91 ], [ %111, %._crit_edge92.unr-lcssa.loopexit ]
  %lcmp.mod203.not = icmp eq i64 %xtraiter202, 0
  br i1 %lcmp.mod203.not, label %._crit_edge92, label %._crit_edge92.epilog-lcssa

._crit_edge92.epilog-lcssa:                       ; preds = %._crit_edge92.unr-lcssa
  %113 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv116.unr
  %114 = load i32, ptr %113, align 4, !tbaa !13
  %115 = sub nsw i32 %114, %.unr
  %116 = add i32 %115, -1
  %117 = mul i32 %116, %115
  %118 = sext i32 %117 to i64
  %119 = add i64 %.090.unr, %118
  br label %._crit_edge92

._crit_edge92:                                    ; preds = %._crit_edge92.unr-lcssa, %._crit_edge92.epilog-lcssa
  %.lcssa = phi i64 [ %.lcssa.ph, %._crit_edge92.unr-lcssa ], [ %119, %._crit_edge92.epilog-lcssa ]
  %120 = load i32, ptr %6, align 4, !tbaa !13
  %121 = sext i32 %120 to i64
  store i64 %121, ptr %3, align 8, !tbaa !31
  store i64 %.lcssa, ptr %4, align 8, !tbaa !31
  call void (ptr, ...) @gk_free(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef null) #4
  br i1 %68, label %.lr.ph95.preheader, label %.preheader76

.lr.ph95.preheader:                               ; preds = %._crit_edge92
  %wide.trip.count124 = zext nneg i32 %11 to i64
  %min.iters.check172 = icmp ult i32 %11, 8
  br i1 %min.iters.check172, label %.lr.ph95.preheader199, label %vector.memcheck164

.lr.ph95.preheader199:                            ; preds = %middle.block170, %vector.memcheck164, %.lr.ph95.preheader
  %indvars.iv121.ph = phi i64 [ 0, %vector.memcheck164 ], [ 0, %.lr.ph95.preheader ], [ %n.vec175, %middle.block170 ]
  %xtraiter205 = and i64 %wide.trip.count114, 1
  %lcmp.mod206.not = icmp eq i64 %xtraiter205, 0
  br i1 %lcmp.mod206.not, label %.lr.ph95.prol.loopexit, label %.lr.ph95.prol

.lr.ph95.prol:                                    ; preds = %.lr.ph95.preheader199
  %122 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv121.ph
  %123 = load i32, ptr %122, align 4, !tbaa !13
  %124 = add nsw i32 %123, -1
  store i32 %124, ptr %122, align 4, !tbaa !13
  %125 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv121.ph
  %126 = load i32, ptr %125, align 4, !tbaa !13
  %127 = add nsw i32 %126, -1
  store i32 %127, ptr %125, align 4, !tbaa !13
  %indvars.iv.next122.prol = or disjoint i64 %indvars.iv121.ph, 1
  br label %.lr.ph95.prol.loopexit

.lr.ph95.prol.loopexit:                           ; preds = %.lr.ph95.prol, %.lr.ph95.preheader199
  %indvars.iv121.unr = phi i64 [ %indvars.iv121.ph, %.lr.ph95.preheader199 ], [ %indvars.iv.next122.prol, %.lr.ph95.prol ]
  %128 = add nsw i64 %wide.trip.count114, -1
  %129 = icmp eq i64 %indvars.iv121.ph, %128
  br i1 %129, label %.preheader76, label %.lr.ph95

vector.memcheck164:                               ; preds = %.lr.ph95.preheader
  %130 = shl nuw nsw i64 %wide.trip.count114, 2
  %scevgep165 = getelementptr i8, ptr %2, i64 %130
  %scevgep166 = getelementptr i8, ptr %1, i64 %130
  %bound0167 = icmp ugt ptr %scevgep166, %2
  %bound1168 = icmp ugt ptr %scevgep165, %1
  %found.conflict169 = and i1 %bound0167, %bound1168
  br i1 %found.conflict169, label %.lr.ph95.preheader199, label %vector.ph173

vector.ph173:                                     ; preds = %vector.memcheck164
  %n.vec175 = and i64 %wide.trip.count114, 2147483640
  br label %vector.body177

vector.body177:                                   ; preds = %vector.body177, %vector.ph173
  %index178 = phi i64 [ 0, %vector.ph173 ], [ %index.next183, %vector.body177 ]
  %131 = getelementptr inbounds i32, ptr %2, i64 %index178
  %132 = getelementptr inbounds i8, ptr %131, i64 16
  %wide.load179 = load <4 x i32>, ptr %131, align 4, !tbaa !13, !alias.scope !33, !noalias !36
  %wide.load180 = load <4 x i32>, ptr %132, align 4, !tbaa !13, !alias.scope !33, !noalias !36
  %133 = add nsw <4 x i32> %wide.load179, <i32 -1, i32 -1, i32 -1, i32 -1>
  %134 = add nsw <4 x i32> %wide.load180, <i32 -1, i32 -1, i32 -1, i32 -1>
  store <4 x i32> %133, ptr %131, align 4, !tbaa !13, !alias.scope !33, !noalias !36
  store <4 x i32> %134, ptr %132, align 4, !tbaa !13, !alias.scope !33, !noalias !36
  %135 = getelementptr inbounds i32, ptr %1, i64 %index178
  %136 = getelementptr inbounds i8, ptr %135, i64 16
  %wide.load181 = load <4 x i32>, ptr %135, align 4, !tbaa !13, !alias.scope !36
  %wide.load182 = load <4 x i32>, ptr %136, align 4, !tbaa !13, !alias.scope !36
  %137 = add nsw <4 x i32> %wide.load181, <i32 -1, i32 -1, i32 -1, i32 -1>
  %138 = add nsw <4 x i32> %wide.load182, <i32 -1, i32 -1, i32 -1, i32 -1>
  store <4 x i32> %137, ptr %135, align 4, !tbaa !13, !alias.scope !36
  store <4 x i32> %138, ptr %136, align 4, !tbaa !13, !alias.scope !36
  %index.next183 = add nuw i64 %index178, 8
  %139 = icmp eq i64 %index.next183, %n.vec175
  br i1 %139, label %middle.block170, label %vector.body177, !llvm.loop !38

middle.block170:                                  ; preds = %vector.body177
  %cmp.n184 = icmp eq i64 %n.vec175, %wide.trip.count114
  br i1 %cmp.n184, label %.preheader76, label %.lr.ph95.preheader199

.preheader76.critedge:                            ; preds = %.preheader77, %86
  %140 = load i32, ptr %6, align 4, !tbaa !13
  %141 = sext i32 %140 to i64
  store i64 %141, ptr %3, align 8, !tbaa !31
  store i64 0, ptr %4, align 8, !tbaa !31
  call void (ptr, ...) @gk_free(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef null) #4
  br label %.preheader76

.preheader76:                                     ; preds = %.lr.ph95.prol.loopexit, %.lr.ph95, %middle.block170, %.preheader76.critedge, %._crit_edge92
  br i1 %.not81, label %.preheader, label %.lr.ph98.preheader

.lr.ph98.preheader:                               ; preds = %.preheader76
  %142 = add nuw i32 %11, 1
  %wide.trip.count129 = zext i32 %142 to i64
  %min.iters.check187 = icmp ult i32 %11, 7
  br i1 %min.iters.check187, label %.lr.ph98.preheader198, label %vector.ph188

.lr.ph98.preheader198:                            ; preds = %middle.block185, %.lr.ph98.preheader
  %indvars.iv126.ph = phi i64 [ 0, %.lr.ph98.preheader ], [ %n.vec190, %middle.block185 ]
  br label %.lr.ph98

vector.ph188:                                     ; preds = %.lr.ph98.preheader
  %n.vec190 = and i64 %wide.trip.count129, 4294967288
  br label %vector.body192

vector.body192:                                   ; preds = %vector.body192, %vector.ph188
  %index193 = phi i64 [ 0, %vector.ph188 ], [ %index.next196, %vector.body192 ]
  %143 = getelementptr inbounds i32, ptr %13, i64 %index193
  %144 = getelementptr inbounds i8, ptr %143, i64 16
  %wide.load194 = load <4 x i32>, ptr %143, align 4, !tbaa !13
  %wide.load195 = load <4 x i32>, ptr %144, align 4, !tbaa !13
  %145 = add nsw <4 x i32> %wide.load194, <i32 -1, i32 -1, i32 -1, i32 -1>
  %146 = add nsw <4 x i32> %wide.load195, <i32 -1, i32 -1, i32 -1, i32 -1>
  store <4 x i32> %145, ptr %143, align 4, !tbaa !13
  store <4 x i32> %146, ptr %144, align 4, !tbaa !13
  %index.next196 = add nuw i64 %index193, 8
  %147 = icmp eq i64 %index.next196, %n.vec190
  br i1 %147, label %middle.block185, label %vector.body192, !llvm.loop !39

middle.block185:                                  ; preds = %vector.body192
  %cmp.n197 = icmp eq i64 %n.vec190, %wide.trip.count129
  br i1 %cmp.n197, label %.preheader, label %.lr.ph98.preheader198

.lr.ph95:                                         ; preds = %.lr.ph95.prol.loopexit, %.lr.ph95
  %indvars.iv121 = phi i64 [ %indvars.iv.next122.1, %.lr.ph95 ], [ %indvars.iv121.unr, %.lr.ph95.prol.loopexit ]
  %148 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv121
  %149 = load i32, ptr %148, align 4, !tbaa !13
  %150 = add nsw i32 %149, -1
  store i32 %150, ptr %148, align 4, !tbaa !13
  %151 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv121
  %152 = load i32, ptr %151, align 4, !tbaa !13
  %153 = add nsw i32 %152, -1
  store i32 %153, ptr %151, align 4, !tbaa !13
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %154 = getelementptr inbounds i32, ptr %2, i64 %indvars.iv.next122
  %155 = load i32, ptr %154, align 4, !tbaa !13
  %156 = add nsw i32 %155, -1
  store i32 %156, ptr %154, align 4, !tbaa !13
  %157 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv.next122
  %158 = load i32, ptr %157, align 4, !tbaa !13
  %159 = add nsw i32 %158, -1
  store i32 %159, ptr %157, align 4, !tbaa !13
  %indvars.iv.next122.1 = add nuw nsw i64 %indvars.iv121, 2
  %exitcond125.not.1 = icmp eq i64 %indvars.iv.next122.1, %wide.trip.count124
  br i1 %exitcond125.not.1, label %.preheader76, label %.lr.ph95, !llvm.loop !40

.preheader:                                       ; preds = %.lr.ph98, %middle.block185, %.preheader76
  %160 = load i32, ptr %17, align 4, !tbaa !13
  %161 = icmp sgt i32 %160, 0
  br i1 %161, label %.lr.ph100, label %._crit_edge101

.lr.ph98:                                         ; preds = %.lr.ph98.preheader198, %.lr.ph98
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %.lr.ph98 ], [ %indvars.iv126.ph, %.lr.ph98.preheader198 ]
  %162 = getelementptr inbounds i32, ptr %13, i64 %indvars.iv126
  %163 = load i32, ptr %162, align 4, !tbaa !13
  %164 = add nsw i32 %163, -1
  store i32 %164, ptr %162, align 4, !tbaa !13
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %exitcond130.not = icmp eq i64 %indvars.iv.next127, %wide.trip.count129
  br i1 %exitcond130.not, label %.preheader, label %.lr.ph98, !llvm.loop !41

.lr.ph100:                                        ; preds = %.preheader, %.lr.ph100
  %indvars.iv131 = phi i64 [ %indvars.iv.next132, %.lr.ph100 ], [ 0, %.preheader ]
  %165 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv131
  %166 = load i32, ptr %165, align 4, !tbaa !13
  %167 = add nsw i32 %166, -1
  store i32 %167, ptr %165, align 4, !tbaa !13
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %168 = load i32, ptr %17, align 4, !tbaa !13
  %169 = sext i32 %168 to i64
  %170 = icmp slt i64 %indvars.iv.next132, %169
  br i1 %170, label %.lr.ph100, label %._crit_edge101, !llvm.loop !42

._crit_edge101:                                   ; preds = %.lr.ph100, %.preheader
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  ret void
}

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

declare ptr @libmetis__imalloc(i64 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare void @gk_free(ptr noundef, ...) local_unnamed_addr #2

declare void @errexit(ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree 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 }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"graph_t", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 116, !10, i64 120, !10, i64 128, !7, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!6, !10, i64 40}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15, !16, !17}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.isvectorized", i32 1}
!17 = !{!"llvm.loop.unroll.runtime.disable"}
!18 = distinct !{!18, !15}
!19 = !{!20}
!20 = distinct !{!20, !21}
!21 = distinct !{!21, !"LVerDomain"}
!22 = !{!23}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !15, !16, !17}
!25 = distinct !{!25, !15, !17, !16}
!26 = distinct !{!26, !15, !16}
!27 = !{!10, !10, i64 0}
!28 = distinct !{!28, !15, !16, !17}
!29 = distinct !{!29, !15, !17, !16}
!30 = distinct !{!30, !15}
!31 = !{!32, !32, i64 0}
!32 = !{!"long", !8, i64 0}
!33 = !{!34}
!34 = distinct !{!34, !35}
!35 = distinct !{!35, !"LVerDomain"}
!36 = !{!37}
!37 = distinct !{!37, !35}
!38 = distinct !{!38, !15, !16, !17}
!39 = distinct !{!39, !15, !16, !17}
!40 = distinct !{!40, !15, !16}
!41 = distinct !{!41, !15, !17, !16}
!42 = distinct !{!42, !15}


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