; LLVM IR from ekoontz/graphlab :: src/graphlab/extern/metis/libmetis (kfmetis)

; 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.graphdef = type { i64, i64, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i64, i64, ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr, ptr, ptr, ptr }

@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

declare ptr @libmetis__idxmalloc(i64 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @ExtractPartitionGraph(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #2

declare void @libmetis__FreeGraph(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @ComputePartitionFillIn(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7) #2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca [10 x i64], align 16
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i64 %2, ptr %11, align 8, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store i64 %5, ptr %14, align 8, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  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 80, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  store i64 0, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.graphdef, ptr %38, i32 0, i32 0
  %40 = load i64, ptr %39, align 8, !tbaa !11
  %41 = call ptr @libmetis__idxmalloc(i64 noundef %40, ptr noundef @.str.13)
  store ptr %41, ptr %23, align 8, !tbaa !5
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.graphdef, ptr %42, i32 0, i32 0
  %44 = load i64, ptr %43, align 8, !tbaa !11
  %45 = call ptr @libmetis__idxmalloc(i64 noundef %44, ptr noundef @.str.14)
  store ptr %45, ptr %24, align 8, !tbaa !5
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = load i64, ptr %14, align 8, !tbaa !9
  %49 = load ptr, ptr %23, align 8, !tbaa !5
  %50 = load ptr, ptr %24, align 8, !tbaa !5
  %51 = call ptr @ExtractPartitionGraph(ptr noundef %46, ptr noundef %47, i64 noundef %48, ptr noundef %49, ptr noundef %50)
  store ptr %51, ptr %35, align 8, !tbaa !5
  %52 = load ptr, ptr %35, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.graphdef, ptr %52, i32 0, i32 0
  %54 = load i64, ptr %53, align 8, !tbaa !11
  store i64 %54, ptr %20, align 8, !tbaa !9
  %55 = load i64, ptr %20, align 8, !tbaa !9
  %56 = call ptr @libmetis__idxmalloc(i64 noundef %55, ptr noundef @.str.15)
  store ptr %56, ptr %26, align 8, !tbaa !5
  %57 = load i64, ptr %20, align 8, !tbaa !9
  %58 = call ptr @libmetis__idxmalloc(i64 noundef %57, ptr noundef @.str.16)
  store ptr %58, ptr %25, align 8, !tbaa !5
  %59 = load i64, ptr %20, align 8, !tbaa !9
  %60 = call ptr @libmetis__idxmalloc(i64 noundef %59, ptr noundef @.str.17)
  store ptr %60, ptr %27, align 8, !tbaa !5
  %61 = load i64, ptr %20, align 8, !tbaa !9
  %62 = call ptr @libmetis__idxmalloc(i64 noundef %61, ptr noundef @.str.18)
  store ptr %62, ptr %28, align 8, !tbaa !5
  %63 = load i64, ptr %20, align 8, !tbaa !9
  %64 = call ptr @libmetis__idxmalloc(i64 noundef %63, ptr noundef @.str.19)
  store ptr %64, ptr %29, align 8, !tbaa !5
  %65 = load i64, ptr %20, align 8, !tbaa !9
  %66 = call ptr @libmetis__idxmalloc(i64 noundef %65, ptr noundef @.str.20)
  store ptr %66, ptr %30, align 8, !tbaa !5
  %67 = load i64, ptr %20, align 8, !tbaa !9
  %68 = call ptr @libmetis__idxmalloc(i64 noundef %67, ptr noundef @.str.21)
  store ptr %68, ptr %31, align 8, !tbaa !5
  %69 = load i64, ptr %20, align 8, !tbaa !9
  %70 = call ptr @libmetis__idxmalloc(i64 noundef %69, ptr noundef @.str.21)
  store ptr %70, ptr %32, align 8, !tbaa !5
  %71 = load i64, ptr %20, align 8, !tbaa !9
  %72 = call ptr @libmetis__idxmalloc(i64 noundef %71, ptr noundef @.str.22)
  store ptr %72, ptr %33, align 8, !tbaa !5
  %73 = load i64, ptr %20, align 8, !tbaa !9
  %74 = call ptr @libmetis__idxmalloc(i64 noundef %73, ptr noundef @.str.22)
  store ptr %74, ptr %34, align 8, !tbaa !5
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %90, %8
  %76 = load i64, ptr %17, align 8, !tbaa !9
  %77 = load i64, ptr %20, align 8, !tbaa !9
  %78 = icmp slt i64 %76, %77
  br i1 %78, label %79, label %93

79:                                               ; preds = %75
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = load ptr, ptr %24, align 8, !tbaa !5
  %82 = load i64, ptr %17, align 8, !tbaa !9
  %83 = getelementptr inbounds i64, ptr %81, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds i64, ptr %80, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = load ptr, ptr %25, align 8, !tbaa !5
  %88 = load i64, ptr %17, align 8, !tbaa !9
  %89 = getelementptr inbounds i64, ptr %87, i64 %88
  store i64 %86, ptr %89, align 8, !tbaa !9
  br label %90

90:                                               ; preds = %79
  %91 = load i64, ptr %17, align 8, !tbaa !9
  %92 = add nsw i64 %91, 1
  store i64 %92, ptr %17, align 8, !tbaa !9
  br label %75, !llvm.loop !14

93:                                               ; preds = %75
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %94

94:                                               ; preds = %169, %93
  %95 = load i64, ptr %17, align 8, !tbaa !9
  %96 = load i64, ptr %20, align 8, !tbaa !9
  %97 = icmp slt i64 %95, %96
  br i1 %97, label %98, label %172

98:                                               ; preds = %94
  %99 = load ptr, ptr %35, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.graphdef, ptr %99, i32 0, i32 2
  %101 = load ptr, ptr %100, align 8, !tbaa !16
  %102 = load i64, ptr %17, align 8, !tbaa !9
  %103 = getelementptr inbounds i64, ptr %101, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !9
  store i64 %104, ptr %18, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %165, %98
  %106 = load i64, ptr %18, align 8, !tbaa !9
  %107 = load ptr, ptr %35, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.graphdef, ptr %107, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !16
  %110 = load i64, ptr %17, align 8, !tbaa !9
  %111 = add nsw i64 %110, 1
  %112 = getelementptr inbounds i64, ptr %109, i64 %111
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = icmp slt i64 %106, %113
  br i1 %114, label %115, label %168

115:                                              ; preds = %105
  %116 = load ptr, ptr %25, align 8, !tbaa !5
  %117 = load i64, ptr %17, align 8, !tbaa !9
  %118 = getelementptr inbounds i64, ptr %116, i64 %117
  %119 = load i64, ptr %118, align 8, !tbaa !9
  %120 = load ptr, ptr %25, align 8, !tbaa !5
  %121 = load ptr, ptr %35, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.graphdef, ptr %121, i32 0, i32 5
  %123 = load ptr, ptr %122, align 8, !tbaa !17
  %124 = load i64, ptr %18, align 8, !tbaa !9
  %125 = getelementptr inbounds i64, ptr %123, i64 %124
  %126 = load i64, ptr %125, align 8, !tbaa !9
  %127 = getelementptr inbounds i64, ptr %120, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !9
  %129 = icmp ne i64 %119, %128
  br i1 %129, label %130, label %164

130:                                              ; preds = %115
  %131 = load ptr, ptr %25, align 8, !tbaa !5
  %132 = load i64, ptr %17, align 8, !tbaa !9
  %133 = getelementptr inbounds i64, ptr %131, i64 %132
  %134 = load i64, ptr %133, align 8, !tbaa !9
  %135 = icmp eq i64 %134, 2
  br i1 %135, label %163, label %136

136:                                              ; preds = %130
  %137 = load ptr, ptr %25, align 8, !tbaa !5
  %138 = load ptr, ptr %35, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.graphdef, ptr %138, i32 0, i32 5
  %140 = load ptr, ptr %139, align 8, !tbaa !17
  %141 = load i64, ptr %18, align 8, !tbaa !9
  %142 = getelementptr inbounds i64, ptr %140, i64 %141
  %143 = load i64, ptr %142, align 8, !tbaa !9
  %144 = getelementptr inbounds i64, ptr %137, i64 %143
  %145 = load i64, ptr %144, align 8, !tbaa !9
  %146 = icmp eq i64 %145, 2
  br i1 %146, label %163, label %147

147:                                              ; preds = %136
  %148 = load i64, ptr %17, align 8, !tbaa !9
  %149 = load ptr, ptr %25, align 8, !tbaa !5
  %150 = load i64, ptr %17, align 8, !tbaa !9
  %151 = getelementptr inbounds i64, ptr %149, i64 %150
  %152 = load i64, ptr %151, align 8, !tbaa !9
  %153 = load ptr, ptr %25, align 8, !tbaa !5
  %154 = load ptr, ptr %35, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.graphdef, ptr %154, i32 0, i32 5
  %156 = load ptr, ptr %155, align 8, !tbaa !17
  %157 = load i64, ptr %18, align 8, !tbaa !9
  %158 = getelementptr inbounds i64, ptr %156, i64 %157
  %159 = load i64, ptr %158, align 8, !tbaa !9
  %160 = getelementptr inbounds i64, ptr %153, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !9
  %162 = call i32 (ptr, ...) @mprintf(ptr noundef @.str.23, i64 noundef %148, i64 noundef %152, i64 noundef %161)
  br label %163

163:                                              ; preds = %147, %136, %130
  br label %164

164:                                              ; preds = %163, %115
  br label %165

165:                                              ; preds = %164
  %166 = load i64, ptr %18, align 8, !tbaa !9
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %18, align 8, !tbaa !9
  br label %105, !llvm.loop !18

168:                                              ; preds = %105
  br label %169

169:                                              ; preds = %168
  %170 = load i64, ptr %17, align 8, !tbaa !9
  %171 = add nsw i64 %170, 1
  store i64 %171, ptr %17, align 8, !tbaa !9
  br label %94, !llvm.loop !19

172:                                              ; preds = %94
  %173 = load ptr, ptr %35, align 8, !tbaa !5
  %174 = load ptr, ptr %25, align 8, !tbaa !5
  %175 = load ptr, ptr %27, align 8, !tbaa !5
  %176 = load ptr, ptr %28, align 8, !tbaa !5
  %177 = call ptr @ExtractPartitionGraph(ptr noundef %173, ptr noundef %174, i64 noundef 0, ptr noundef %175, ptr noundef %176)
  store ptr %177, ptr %36, align 8, !tbaa !5
  %178 = load ptr, ptr %35, align 8, !tbaa !5
  %179 = load ptr, ptr %25, align 8, !tbaa !5
  %180 = load ptr, ptr %29, align 8, !tbaa !5
  %181 = load ptr, ptr %30, align 8, !tbaa !5
  %182 = call ptr @ExtractPartitionGraph(ptr noundef %178, ptr noundef %179, i64 noundef 1, ptr noundef %180, ptr noundef %181)
  store ptr %182, ptr %37, align 8, !tbaa !5
  %183 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 0
  store i64 1, ptr %183, align 16, !tbaa !9
  %184 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 1
  store i64 3, ptr %184, align 8, !tbaa !9
  %185 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 2
  store i64 1, ptr %185, align 16, !tbaa !9
  %186 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 3
  store i64 1, ptr %186, align 8, !tbaa !9
  %187 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 4
  store i64 0, ptr %187, align 16, !tbaa !9
  %188 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 5
  store i64 0, ptr %188, align 8, !tbaa !9
  %189 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 6
  store i64 0, ptr %189, align 16, !tbaa !9
  %190 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 7
  store i64 4, ptr %190, align 8, !tbaa !9
  %191 = load ptr, ptr %36, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.graphdef, ptr %191, i32 0, i32 0
  %193 = load ptr, ptr %36, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.graphdef, ptr %193, i32 0, i32 2
  %195 = load ptr, ptr %194, align 8, !tbaa !16
  %196 = load ptr, ptr %36, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.graphdef, ptr %196, i32 0, i32 5
  %198 = load ptr, ptr %197, align 8, !tbaa !17
  %199 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 0
  %200 = load ptr, ptr %31, align 8, !tbaa !5
  %201 = load ptr, ptr %32, align 8, !tbaa !5
  call void @METIS_NodeND(ptr noundef %192, ptr noundef %195, ptr noundef %198, ptr noundef %22, ptr noundef %199, ptr noundef %200, ptr noundef %201)
  %202 = load ptr, ptr %37, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.graphdef, ptr %202, i32 0, i32 0
  %204 = load ptr, ptr %37, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.graphdef, ptr %204, i32 0, i32 2
  %206 = load ptr, ptr %205, align 8, !tbaa !16
  %207 = load ptr, ptr %37, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.graphdef, ptr %207, i32 0, i32 5
  %209 = load ptr, ptr %208, align 8, !tbaa !17
  %210 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 0
  %211 = load ptr, ptr %33, align 8, !tbaa !5
  %212 = load ptr, ptr %34, align 8, !tbaa !5
  call void @METIS_NodeND(ptr noundef %203, ptr noundef %206, ptr noundef %209, ptr noundef %22, ptr noundef %210, ptr noundef %211, ptr noundef %212)
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %213

213:                                              ; preds = %230, %172
  %214 = load i64, ptr %17, align 8, !tbaa !9
  %215 = load ptr, ptr %36, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.graphdef, ptr %215, i32 0, i32 0
  %217 = load i64, ptr %216, align 8, !tbaa !11
  %218 = icmp slt i64 %214, %217
  br i1 %218, label %219, label %233

219:                                              ; preds = %213
  %220 = load ptr, ptr %32, align 8, !tbaa !5
  %221 = load i64, ptr %17, align 8, !tbaa !9
  %222 = getelementptr inbounds i64, ptr %220, i64 %221
  %223 = load i64, ptr %222, align 8, !tbaa !9
  %224 = load ptr, ptr %26, align 8, !tbaa !5
  %225 = load ptr, ptr %28, align 8, !tbaa !5
  %226 = load i64, ptr %17, align 8, !tbaa !9
  %227 = getelementptr inbounds i64, ptr %225, i64 %226
  %228 = load i64, ptr %227, align 8, !tbaa !9
  %229 = getelementptr inbounds i64, ptr %224, i64 %228
  store i64 %223, ptr %229, align 8, !tbaa !9
  br label %230

230:                                              ; preds = %219
  %231 = load i64, ptr %17, align 8, !tbaa !9
  %232 = add nsw i64 %231, 1
  store i64 %232, ptr %17, align 8, !tbaa !9
  br label %213, !llvm.loop !20

233:                                              ; preds = %213
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %234

234:                                              ; preds = %255, %233
  %235 = load i64, ptr %17, align 8, !tbaa !9
  %236 = load ptr, ptr %37, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.graphdef, ptr %236, i32 0, i32 0
  %238 = load i64, ptr %237, align 8, !tbaa !11
  %239 = icmp slt i64 %235, %238
  br i1 %239, label %240, label %258

240:                                              ; preds = %234
  %241 = load ptr, ptr %36, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.graphdef, ptr %241, i32 0, i32 0
  %243 = load i64, ptr %242, align 8, !tbaa !11
  %244 = load ptr, ptr %34, align 8, !tbaa !5
  %245 = load i64, ptr %17, align 8, !tbaa !9
  %246 = getelementptr inbounds i64, ptr %244, i64 %245
  %247 = load i64, ptr %246, align 8, !tbaa !9
  %248 = add nsw i64 %243, %247
  %249 = load ptr, ptr %26, align 8, !tbaa !5
  %250 = load ptr, ptr %30, align 8, !tbaa !5
  %251 = load i64, ptr %17, align 8, !tbaa !9
  %252 = getelementptr inbounds i64, ptr %250, i64 %251
  %253 = load i64, ptr %252, align 8, !tbaa !9
  %254 = getelementptr inbounds i64, ptr %249, i64 %253
  store i64 %248, ptr %254, align 8, !tbaa !9
  br label %255

255:                                              ; preds = %240
  %256 = load i64, ptr %17, align 8, !tbaa !9
  %257 = add nsw i64 %256, 1
  store i64 %257, ptr %17, align 8, !tbaa !9
  br label %234, !llvm.loop !21

258:                                              ; preds = %234
  %259 = load ptr, ptr %36, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.graphdef, ptr %259, i32 0, i32 0
  %261 = load i64, ptr %260, align 8, !tbaa !11
  %262 = load ptr, ptr %37, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.graphdef, ptr %262, i32 0, i32 0
  %264 = load i64, ptr %263, align 8, !tbaa !11
  %265 = add nsw i64 %261, %264
  store i64 %265, ptr %18, align 8, !tbaa !9
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %266

266:                                              ; preds = %283, %258
  %267 = load i64, ptr %17, align 8, !tbaa !9
  %268 = load i64, ptr %20, align 8, !tbaa !9
  %269 = icmp slt i64 %267, %268
  br i1 %269, label %270, label %286

270:                                              ; preds = %266
  %271 = load ptr, ptr %25, align 8, !tbaa !5
  %272 = load i64, ptr %17, align 8, !tbaa !9
  %273 = getelementptr inbounds i64, ptr %271, i64 %272
  %274 = load i64, ptr %273, align 8, !tbaa !9
  %275 = icmp eq i64 %274, 2
  br i1 %275, label %276, label %282

276:                                              ; preds = %270
  %277 = load i64, ptr %18, align 8, !tbaa !9
  %278 = add nsw i64 %277, 1
  store i64 %278, ptr %18, align 8, !tbaa !9
  %279 = load ptr, ptr %26, align 8, !tbaa !5
  %280 = load i64, ptr %17, align 8, !tbaa !9
  %281 = getelementptr inbounds i64, ptr %279, i64 %280
  store i64 %277, ptr %281, align 8, !tbaa !9
  br label %282

282:                                              ; preds = %276, %270
  br label %283

283:                                              ; preds = %282
  %284 = load i64, ptr %17, align 8, !tbaa !9
  %285 = add nsw i64 %284, 1
  store i64 %285, ptr %17, align 8, !tbaa !9
  br label %266, !llvm.loop !22

286:                                              ; preds = %266
  %287 = load ptr, ptr %35, align 8, !tbaa !5
  %288 = load ptr, ptr %26, align 8, !tbaa !5
  %289 = call i64 @ComputeFillIn2(ptr noundef %287, ptr noundef %288)
  %290 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 %289, ptr %290, align 8, !tbaa !9
  %291 = load ptr, ptr %36, align 8, !tbaa !5
  %292 = load ptr, ptr %32, align 8, !tbaa !5
  %293 = call i64 @ComputeFillIn2(ptr noundef %291, ptr noundef %292)
  %294 = load ptr, ptr %16, align 8, !tbaa !5
  %295 = getelementptr inbounds i64, ptr %294, i64 0
  store i64 %293, ptr %295, align 8, !tbaa !9
  %296 = load ptr, ptr %37, align 8, !tbaa !5
  %297 = load ptr, ptr %34, align 8, !tbaa !5
  %298 = call i64 @ComputeFillIn2(ptr noundef %296, ptr noundef %297)
  %299 = load ptr, ptr %16, align 8, !tbaa !5
  %300 = getelementptr inbounds i64, ptr %299, i64 1
  store i64 %298, ptr %300, align 8, !tbaa !9
  %301 = load i64, ptr %14, align 8, !tbaa !9
  %302 = load i64, ptr %20, align 8, !tbaa !9
  %303 = load ptr, ptr %36, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.graphdef, ptr %303, i32 0, i32 0
  %305 = load i64, ptr %304, align 8, !tbaa !11
  %306 = sub nsw i64 %302, %305
  %307 = load ptr, ptr %37, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.graphdef, ptr %307, i32 0, i32 0
  %309 = load i64, ptr %308, align 8, !tbaa !11
  %310 = sub nsw i64 %306, %309
  %311 = load ptr, ptr %36, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.graphdef, ptr %311, i32 0, i32 0
  %313 = load i64, ptr %312, align 8, !tbaa !11
  %314 = load ptr, ptr %37, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.graphdef, ptr %314, i32 0, i32 0
  %316 = load i64, ptr %315, align 8, !tbaa !11
  %317 = load ptr, ptr %16, align 8, !tbaa !5
  %318 = getelementptr inbounds i64, ptr %317, i64 0
  %319 = load i64, ptr %318, align 8, !tbaa !9
  %320 = load ptr, ptr %16, align 8, !tbaa !5
  %321 = getelementptr inbounds i64, ptr %320, i64 1
  %322 = load i64, ptr %321, align 8, !tbaa !9
  %323 = load ptr, ptr %15, align 8, !tbaa !5
  %324 = load i64, ptr %323, align 8, !tbaa !9
  %325 = call i32 (ptr, ...) @mprintf(ptr noundef @.str.24, i64 noundef %301, i64 noundef %310, i64 noundef %313, i64 noundef %316, i64 noundef %319, i64 noundef %322, i64 noundef %324)
  %326 = load ptr, ptr %35, align 8, !tbaa !5
  call void @libmetis__FreeGraph(ptr noundef %326, i32 noundef 1)
  %327 = load ptr, ptr %36, align 8, !tbaa !5
  call void @libmetis__FreeGraph(ptr noundef %327, i32 noundef 1)
  %328 = load ptr, ptr %37, align 8, !tbaa !5
  call void @libmetis__FreeGraph(ptr noundef %328, i32 noundef 1)
  call void (ptr, ...) @gk_free(ptr noundef %23, ptr noundef %24, ptr noundef %26, ptr noundef %25, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %34, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 80, 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
  ret void
}

declare i32 @mprintf(ptr noundef, ...) #1

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

declare void @METIS_NodeND(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i64 @ComputeFillIn2(ptr noundef, ptr noundef) #1

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

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

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


; 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.13 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [32 x i8], align 1

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

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

declare ptr @libmetis__idxmalloc(i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @ExtractPartitionGraph(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @libmetis__FreeGraph(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @ComputePartitionFillIn(ptr nocapture noundef readnone %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr nocapture noundef readonly %4, i64 noundef %5, ptr nocapture noundef %6, ptr nocapture noundef %7) local_unnamed_addr #2 {
  %9 = alloca [10 x i64], align 16
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %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 ptr, align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  store i64 0, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #4
  %23 = load i64, ptr %1, align 8, !tbaa !9
  %24 = tail call ptr @libmetis__idxmalloc(i64 noundef %23, ptr noundef nonnull @.str.13) #4
  store ptr %24, ptr %11, align 8, !tbaa !13
  %25 = load i64, ptr %1, align 8, !tbaa !9
  %26 = tail call ptr @libmetis__idxmalloc(i64 noundef %25, ptr noundef nonnull @.str.14) #4
  store ptr %26, ptr %12, align 8, !tbaa !13
  %27 = tail call ptr @ExtractPartitionGraph(ptr noundef nonnull %1, ptr noundef %3, i64 noundef %5, ptr noundef %24, ptr noundef %26)
  %28 = load i64, ptr %27, align 8, !tbaa !9
  %29 = tail call ptr @libmetis__idxmalloc(i64 noundef %28, ptr noundef nonnull @.str.15) #4
  store ptr %29, ptr %14, align 8, !tbaa !13
  %30 = tail call ptr @libmetis__idxmalloc(i64 noundef %28, ptr noundef nonnull @.str.16) #4
  store ptr %30, ptr %13, align 8, !tbaa !13
  %31 = tail call ptr @libmetis__idxmalloc(i64 noundef %28, ptr noundef nonnull @.str.17) #4
  store ptr %31, ptr %15, align 8, !tbaa !13
  %32 = tail call ptr @libmetis__idxmalloc(i64 noundef %28, ptr noundef nonnull @.str.18) #4
  store ptr %32, ptr %16, align 8, !tbaa !13
  %33 = tail call ptr @libmetis__idxmalloc(i64 noundef %28, ptr noundef nonnull @.str.19) #4
  store ptr %33, ptr %17, align 8, !tbaa !13
  %34 = tail call ptr @libmetis__idxmalloc(i64 noundef %28, ptr noundef nonnull @.str.20) #4
  store ptr %34, ptr %18, align 8, !tbaa !13
  %35 = tail call ptr @libmetis__idxmalloc(i64 noundef %28, ptr noundef nonnull @.str.21) #4
  store ptr %35, ptr %19, align 8, !tbaa !13
  %36 = tail call ptr @libmetis__idxmalloc(i64 noundef %28, ptr noundef nonnull @.str.21) #4
  store ptr %36, ptr %20, align 8, !tbaa !13
  %37 = tail call ptr @libmetis__idxmalloc(i64 noundef %28, ptr noundef nonnull @.str.22) #4
  store ptr %37, ptr %21, align 8, !tbaa !13
  %38 = tail call ptr @libmetis__idxmalloc(i64 noundef %28, ptr noundef nonnull @.str.22) #4
  store ptr %38, ptr %22, align 8, !tbaa !13
  %39 = icmp sgt i64 %28, 0
  br i1 %39, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %8
  %xtraiter = and i64 %28, 3
  %40 = icmp ult i64 %28, 4
  br i1 %40, label %.preheader95.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %28, 9223372036854775804
  br label %.lr.ph

.preheader95.unr-lcssa:                           ; preds = %.lr.ph, %.lr.ph.preheader
  %.097.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %72, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader95, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader95.unr-lcssa, %.lr.ph.epil
  %.097.epil = phi i64 [ %46, %.lr.ph.epil ], [ %.097.unr, %.preheader95.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader95.unr-lcssa ]
  %41 = getelementptr inbounds i64, ptr %26, i64 %.097.epil
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds i64, ptr %4, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds i64, ptr %30, i64 %.097.epil
  store i64 %44, ptr %45, align 8, !tbaa !5
  %46 = add nuw nsw i64 %.097.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 %.preheader95, label %.lr.ph.epil, !llvm.loop !14

.preheader95:                                     ; preds = %.lr.ph.epil, %.preheader95.unr-lcssa
  br i1 %39, label %.lr.ph101, label %._crit_edge

.lr.ph101:                                        ; preds = %.preheader95
  %47 = getelementptr inbounds i8, ptr %27, i64 16
  %48 = getelementptr inbounds i8, ptr %27, i64 40
  %.pre = load ptr, ptr %47, align 8, !tbaa !16
  br label %75

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.097 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %72, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %49 = getelementptr inbounds i64, ptr %26, i64 %.097
  %50 = load i64, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds i64, ptr %4, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !5
  %53 = getelementptr inbounds i64, ptr %30, i64 %.097
  store i64 %52, ptr %53, align 8, !tbaa !5
  %54 = or disjoint i64 %.097, 1
  %55 = getelementptr inbounds i64, ptr %26, i64 %54
  %56 = load i64, ptr %55, align 8, !tbaa !5
  %57 = getelementptr inbounds i64, ptr %4, i64 %56
  %58 = load i64, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds i64, ptr %30, i64 %54
  store i64 %58, ptr %59, align 8, !tbaa !5
  %60 = or disjoint i64 %.097, 2
  %61 = getelementptr inbounds i64, ptr %26, i64 %60
  %62 = load i64, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds i64, ptr %4, i64 %62
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = getelementptr inbounds i64, ptr %30, i64 %60
  store i64 %64, ptr %65, align 8, !tbaa !5
  %66 = or disjoint i64 %.097, 3
  %67 = getelementptr inbounds i64, ptr %26, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !5
  %69 = getelementptr inbounds i64, ptr %4, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !5
  %71 = getelementptr inbounds i64, ptr %30, i64 %66
  store i64 %70, ptr %71, align 8, !tbaa !5
  %72 = add nuw nsw i64 %.097, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader95.unr-lcssa, label %.lr.ph, !llvm.loop !17

.loopexit:                                        ; preds = %97, %75
  %73 = phi ptr [ %76, %75 ], [ %98, %97 ]
  %74 = phi ptr [ %77, %75 ], [ %98, %97 ]
  %exitcond114.not = icmp eq i64 %80, %28
  br i1 %exitcond114.not, label %._crit_edge, label %75, !llvm.loop !19

75:                                               ; preds = %.lr.ph101, %.loopexit
  %76 = phi ptr [ %.pre, %.lr.ph101 ], [ %73, %.loopexit ]
  %77 = phi ptr [ %.pre, %.lr.ph101 ], [ %74, %.loopexit ]
  %.1100 = phi i64 [ 0, %.lr.ph101 ], [ %80, %.loopexit ]
  %78 = getelementptr inbounds i64, ptr %77, i64 %.1100
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %80 = add nuw nsw i64 %.1100, 1
  %81 = getelementptr inbounds i64, ptr %77, i64 %80
  %82 = load i64, ptr %81, align 8, !tbaa !5
  %83 = icmp slt i64 %79, %82
  br i1 %83, label %.lr.ph99, label %.loopexit

.lr.ph99:                                         ; preds = %75
  %84 = getelementptr inbounds i64, ptr %30, i64 %.1100
  br label %85

85:                                               ; preds = %.lr.ph99, %97
  %86 = phi ptr [ %76, %.lr.ph99 ], [ %98, %97 ]
  %.08598 = phi i64 [ %79, %.lr.ph99 ], [ %99, %97 ]
  %87 = load i64, ptr %84, align 8, !tbaa !5
  %88 = load ptr, ptr %48, align 8, !tbaa !20
  %89 = getelementptr inbounds i64, ptr %88, i64 %.08598
  %90 = load i64, ptr %89, align 8, !tbaa !5
  %91 = getelementptr inbounds i64, ptr %30, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !5
  %.not = icmp eq i64 %87, %92
  %93 = icmp eq i64 %87, 2
  %or.cond = or i1 %93, %.not
  %94 = icmp eq i64 %92, 2
  %or.cond92 = or i1 %94, %or.cond
  br i1 %or.cond92, label %97, label %95

95:                                               ; preds = %85
  %96 = tail call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.23, i64 noundef %.1100, i64 noundef %87, i64 noundef %92) #4
  %.pre116 = load ptr, ptr %47, align 8, !tbaa !16
  br label %97

97:                                               ; preds = %85, %95
  %98 = phi ptr [ %86, %85 ], [ %.pre116, %95 ]
  %99 = add nsw i64 %.08598, 1
  %100 = getelementptr inbounds i64, ptr %98, i64 %80
  %101 = load i64, ptr %100, align 8, !tbaa !5
  %102 = icmp slt i64 %99, %101
  br i1 %102, label %85, label %.loopexit, !llvm.loop !21

._crit_edge:                                      ; preds = %.loopexit, %8, %.preheader95
  %103 = tail call ptr @ExtractPartitionGraph(ptr noundef nonnull %27, ptr noundef %30, i64 noundef 0, ptr noundef %31, ptr noundef %32)
  %104 = tail call ptr @ExtractPartitionGraph(ptr noundef nonnull %27, ptr noundef %30, i64 noundef 1, ptr noundef %33, ptr noundef %34)
  store i64 1, ptr %9, align 16, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %9, i64 8
  store i64 3, ptr %105, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %9, i64 16
  store i64 1, ptr %106, align 16, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %9, i64 24
  store i64 1, ptr %107, align 8, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %9, i64 32
  %109 = getelementptr inbounds i8, ptr %9, i64 56
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %108, i8 0, i64 24, i1 false)
  store i64 4, ptr %109, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %103, i64 16
  %111 = load ptr, ptr %110, align 8, !tbaa !16
  %112 = getelementptr inbounds i8, ptr %103, i64 40
  %113 = load ptr, ptr %112, align 8, !tbaa !20
  call void @METIS_NodeND(ptr noundef %103, ptr noundef %111, ptr noundef %113, ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef %35, ptr noundef %36) #4
  %114 = getelementptr inbounds i8, ptr %104, i64 16
  %115 = load ptr, ptr %114, align 8, !tbaa !16
  %116 = getelementptr inbounds i8, ptr %104, i64 40
  %117 = load ptr, ptr %116, align 8, !tbaa !20
  call void @METIS_NodeND(ptr noundef %104, ptr noundef %115, ptr noundef %117, ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef %37, ptr noundef %38) #4
  %118 = load i64, ptr %103, align 8, !tbaa !9
  %119 = icmp sgt i64 %118, 0
  br i1 %119, label %.lr.ph104, label %.preheader

.preheader:                                       ; preds = %.lr.ph104, %._crit_edge
  %120 = load i64, ptr %104, align 8, !tbaa !9
  %121 = icmp sgt i64 %120, 0
  br i1 %121, label %.lr.ph106, label %._crit_edge107

.lr.ph104:                                        ; preds = %._crit_edge, %.lr.ph104
  %.2102 = phi i64 [ %127, %.lr.ph104 ], [ 0, %._crit_edge ]
  %122 = getelementptr inbounds i64, ptr %36, i64 %.2102
  %123 = load i64, ptr %122, align 8, !tbaa !5
  %124 = getelementptr inbounds i64, ptr %32, i64 %.2102
  %125 = load i64, ptr %124, align 8, !tbaa !5
  %126 = getelementptr inbounds i64, ptr %29, i64 %125
  store i64 %123, ptr %126, align 8, !tbaa !5
  %127 = add nuw nsw i64 %.2102, 1
  %128 = load i64, ptr %103, align 8, !tbaa !9
  %129 = icmp slt i64 %127, %128
  br i1 %129, label %.lr.ph104, label %.preheader, !llvm.loop !22

.lr.ph106:                                        ; preds = %.preheader, %.lr.ph106
  %.3105 = phi i64 [ %137, %.lr.ph106 ], [ 0, %.preheader ]
  %130 = load i64, ptr %103, align 8, !tbaa !9
  %131 = getelementptr inbounds i64, ptr %38, i64 %.3105
  %132 = load i64, ptr %131, align 8, !tbaa !5
  %133 = add nsw i64 %132, %130
  %134 = getelementptr inbounds i64, ptr %34, i64 %.3105
  %135 = load i64, ptr %134, align 8, !tbaa !5
  %136 = getelementptr inbounds i64, ptr %29, i64 %135
  store i64 %133, ptr %136, align 8, !tbaa !5
  %137 = add nuw nsw i64 %.3105, 1
  %138 = load i64, ptr %104, align 8, !tbaa !9
  %139 = icmp slt i64 %137, %138
  br i1 %139, label %.lr.ph106, label %._crit_edge107, !llvm.loop !23

._crit_edge107:                                   ; preds = %.lr.ph106, %.preheader
  %.lcssa = phi i64 [ %120, %.preheader ], [ %138, %.lr.ph106 ]
  br i1 %39, label %.lr.ph111, label %._crit_edge112

.lr.ph111:                                        ; preds = %._crit_edge107
  %140 = load i64, ptr %103, align 8, !tbaa !9
  %141 = add nsw i64 %140, %.lcssa
  %xtraiter123 = and i64 %28, 1
  %142 = icmp eq i64 %28, 1
  br i1 %142, label %._crit_edge112.loopexit.unr-lcssa, label %.lr.ph111.new

.lr.ph111.new:                                    ; preds = %.lr.ph111
  %unroll_iter126 = and i64 %28, 9223372036854775806
  br label %143

143:                                              ; preds = %158, %.lr.ph111.new
  %.4109 = phi i64 [ 0, %.lr.ph111.new ], [ %159, %158 ]
  %.186108 = phi i64 [ %141, %.lr.ph111.new ], [ %.287.1, %158 ]
  %niter127 = phi i64 [ 0, %.lr.ph111.new ], [ %niter127.next.1, %158 ]
  %144 = getelementptr inbounds i64, ptr %30, i64 %.4109
  %145 = load i64, ptr %144, align 8, !tbaa !5
  %146 = icmp eq i64 %145, 2
  br i1 %146, label %147, label %150

147:                                              ; preds = %143
  %148 = add nsw i64 %.186108, 1
  %149 = getelementptr inbounds i64, ptr %29, i64 %.4109
  store i64 %.186108, ptr %149, align 8, !tbaa !5
  br label %150

150:                                              ; preds = %143, %147
  %.287 = phi i64 [ %148, %147 ], [ %.186108, %143 ]
  %151 = or disjoint i64 %.4109, 1
  %152 = getelementptr inbounds i64, ptr %30, i64 %151
  %153 = load i64, ptr %152, align 8, !tbaa !5
  %154 = icmp eq i64 %153, 2
  br i1 %154, label %155, label %158

155:                                              ; preds = %150
  %156 = add nsw i64 %.287, 1
  %157 = getelementptr inbounds i64, ptr %29, i64 %151
  store i64 %.287, ptr %157, align 8, !tbaa !5
  br label %158

158:                                              ; preds = %155, %150
  %.287.1 = phi i64 [ %156, %155 ], [ %.287, %150 ]
  %159 = add nuw nsw i64 %.4109, 2
  %niter127.next.1 = add i64 %niter127, 2
  %niter127.ncmp.1 = icmp eq i64 %niter127.next.1, %unroll_iter126
  br i1 %niter127.ncmp.1, label %._crit_edge112.loopexit.unr-lcssa, label %143, !llvm.loop !24

._crit_edge112.loopexit.unr-lcssa:                ; preds = %158, %.lr.ph111
  %.4109.unr = phi i64 [ 0, %.lr.ph111 ], [ %159, %158 ]
  %.186108.unr = phi i64 [ %141, %.lr.ph111 ], [ %.287.1, %158 ]
  %lcmp.mod125.not = icmp eq i64 %xtraiter123, 0
  br i1 %lcmp.mod125.not, label %._crit_edge112, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge112.loopexit.unr-lcssa
  %160 = getelementptr inbounds i64, ptr %30, i64 %.4109.unr
  %161 = load i64, ptr %160, align 8, !tbaa !5
  %162 = icmp eq i64 %161, 2
  br i1 %162, label %163, label %._crit_edge112

163:                                              ; preds = %.epil.preheader
  %164 = getelementptr inbounds i64, ptr %29, i64 %.4109.unr
  store i64 %.186108.unr, ptr %164, align 8, !tbaa !5
  br label %._crit_edge112

._crit_edge112:                                   ; preds = %._crit_edge112.loopexit.unr-lcssa, %163, %.epil.preheader, %._crit_edge107
  %165 = call i64 @ComputeFillIn2(ptr noundef nonnull %27, ptr noundef %29) #4
  store i64 %165, ptr %6, align 8, !tbaa !5
  %166 = call i64 @ComputeFillIn2(ptr noundef nonnull %103, ptr noundef %36) #4
  store i64 %166, ptr %7, align 8, !tbaa !5
  %167 = call i64 @ComputeFillIn2(ptr noundef nonnull %104, ptr noundef %38) #4
  %168 = getelementptr inbounds i8, ptr %7, i64 8
  store i64 %167, ptr %168, align 8, !tbaa !5
  %169 = load i64, ptr %103, align 8, !tbaa !9
  %170 = load i64, ptr %104, align 8, !tbaa !9
  %171 = add i64 %169, %170
  %172 = sub i64 %28, %171
  %173 = load i64, ptr %7, align 8, !tbaa !5
  %174 = load i64, ptr %6, align 8, !tbaa !5
  %175 = call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.24, i64 noundef %5, i64 noundef %172, i64 noundef %169, i64 noundef %170, i64 noundef %173, i64 noundef %167, i64 noundef %174) #4
  call void @libmetis__FreeGraph(ptr noundef nonnull %27, i32 noundef 1) #4
  call void @libmetis__FreeGraph(ptr noundef nonnull %103, i32 noundef 1) #4
  call void @libmetis__FreeGraph(ptr noundef nonnull %104, i32 noundef 1) #4
  call void (ptr, ...) @gk_free(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %14, ptr noundef nonnull %13, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef null) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %9) #4
  ret void
}

declare i32 @mprintf(ptr noundef, ...) local_unnamed_addr #1

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

declare void @METIS_NodeND(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i64 @ComputeFillIn2(ptr noundef, ptr noundef) local_unnamed_addr #1

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"graphdef", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !6, i64 112, !6, i64 120, !11, i64 128, !11, i64 136, !6, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !6, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = !{!10, !11, i64 16}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!10, !11, i64 40}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}


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