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

; 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 }
%struct.ContactInfoType = type { i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.DKeyValueType = type { double, i64 }

@.str = external hidden unnamed_addr constant [33 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [59 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @METIS_PartGraphForContact(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #0 {
  %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 i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca [2 x float], align 4
  %42 = alloca [2 x float], align 4
  %43 = alloca %struct.graphdef, align 8
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca [3 x ptr], align 16
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  store ptr %9, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 248, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #4
  %47 = load ptr, ptr %16, align 8, !tbaa !5
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = icmp eq i64 %48, 1
  br i1 %49, label %50, label %55

50:                                               ; preds = %10
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  call void @libmetis__Change2CNumbering(i64 noundef %52, ptr noundef %53, ptr noundef %54)
  br label %55

55:                                               ; preds = %50, %10
  %56 = call ptr @gk_malloc(i64 noundef 72, ptr noundef @.str)
  store ptr %56, ptr %45, align 8, !tbaa !5
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = load i64, ptr %57, align 8, !tbaa !9
  %59 = add nsw i64 %58, 1
  %60 = call ptr @libmetis__idxsmalloc(i64 noundef %59, i64 noundef 0, ptr noundef @.str.1)
  %61 = load ptr, ptr %45, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ContactInfoType, ptr %61, i32 0, i32 3
  store ptr %60, ptr %62, align 8, !tbaa !11
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = load i64, ptr %63, align 8, !tbaa !9
  %65 = call ptr @libmetis__idxsmalloc(i64 noundef %64, i64 noundef 0, ptr noundef @.str.2)
  %66 = load ptr, ptr %45, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.ContactInfoType, ptr %66, i32 0, i32 4
  store ptr %65, ptr %67, align 8, !tbaa !13
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = load i64, ptr %68, align 8, !tbaa !9
  %70 = call ptr @libmetis__idxsmalloc(i64 noundef %69, i64 noundef 0, ptr noundef @.str.3)
  %71 = load ptr, ptr %45, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ContactInfoType, ptr %71, i32 0, i32 5
  store ptr %70, ptr %72, align 8, !tbaa !14
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = call ptr @libmetis__idxsmalloc(i64 noundef %74, i64 noundef 0, ptr noundef @.str.4)
  %76 = load ptr, ptr %45, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ContactInfoType, ptr %76, i32 0, i32 6
  store ptr %75, ptr %77, align 8, !tbaa !15
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = load i64, ptr %78, align 8, !tbaa !9
  %80 = call ptr @libmetis__idxmalloc(i64 noundef %79, ptr noundef @.str.5)
  %81 = load ptr, ptr %45, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ContactInfoType, ptr %81, i32 0, i32 7
  store ptr %80, ptr %82, align 8, !tbaa !16
  store ptr %80, ptr %39, align 8, !tbaa !5
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = mul i64 64, %84
  %86 = call ptr @gk_malloc(i64 noundef %85, ptr noundef @.str.6)
  %87 = load ptr, ptr %45, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ContactInfoType, ptr %87, i32 0, i32 8
  store ptr %86, ptr %88, align 8, !tbaa !17
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = load i64, ptr %89, align 8, !tbaa !9
  %91 = load ptr, ptr %45, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ContactInfoType, ptr %91, i32 0, i32 0
  store i64 %90, ptr %92, align 8, !tbaa !18
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = mul nsw i64 2, %94
  %96 = call ptr @libmetis__idxsmalloc(i64 noundef %95, i64 noundef 0, ptr noundef @.str.7)
  store ptr %96, ptr %36, align 8, !tbaa !5
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %121, %55
  %98 = load i64, ptr %21, align 8, !tbaa !9
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = icmp slt i64 %98, %100
  br i1 %101, label %102, label %124

102:                                              ; preds = %97
  %103 = load ptr, ptr %36, align 8, !tbaa !5
  %104 = load i64, ptr %21, align 8, !tbaa !9
  %105 = mul nsw i64 2, %104
  %106 = add nsw i64 %105, 0
  %107 = getelementptr inbounds i64, ptr %103, i64 %106
  store i64 1, ptr %107, align 8, !tbaa !9
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = load i64, ptr %21, align 8, !tbaa !9
  %110 = getelementptr inbounds i64, ptr %108, i64 %109
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = icmp eq i64 %111, 0
  %113 = zext i1 %112 to i64
  %114 = select i1 %112, i32 0, i32 1
  %115 = sext i32 %114 to i64
  %116 = load ptr, ptr %36, align 8, !tbaa !5
  %117 = load i64, ptr %21, align 8, !tbaa !9
  %118 = mul nsw i64 2, %117
  %119 = add nsw i64 %118, 1
  %120 = getelementptr inbounds i64, ptr %116, i64 %119
  store i64 %115, ptr %120, align 8, !tbaa !9
  br label %121

121:                                              ; preds = %102
  %122 = load i64, ptr %21, align 8, !tbaa !9
  %123 = add nsw i64 %122, 1
  store i64 %123, ptr %21, align 8, !tbaa !9
  br label %97, !llvm.loop !19

124:                                              ; preds = %97
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = load i64, ptr %126, align 8, !tbaa !9
  %128 = getelementptr inbounds i64, ptr %125, i64 %127
  %129 = load i64, ptr %128, align 8, !tbaa !9
  %130 = call ptr @libmetis__idxmalloc(i64 noundef %129, ptr noundef @.str.8)
  store ptr %130, ptr %40, align 8, !tbaa !5
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %131

131:                                              ; preds = %176, %124
  %132 = load i64, ptr %21, align 8, !tbaa !9
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = load i64, ptr %133, align 8, !tbaa !9
  %135 = icmp slt i64 %132, %134
  br i1 %135, label %136, label %179

136:                                              ; preds = %131
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  %138 = load i64, ptr %21, align 8, !tbaa !9
  %139 = getelementptr inbounds i64, ptr %137, i64 %138
  %140 = load i64, ptr %139, align 8, !tbaa !9
  store i64 %140, ptr %22, align 8, !tbaa !9
  br label %141

141:                                              ; preds = %172, %136
  %142 = load i64, ptr %22, align 8, !tbaa !9
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  %144 = load i64, ptr %21, align 8, !tbaa !9
  %145 = add nsw i64 %144, 1
  %146 = getelementptr inbounds i64, ptr %143, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !9
  %148 = icmp slt i64 %142, %147
  br i1 %148, label %149, label %175

149:                                              ; preds = %141
  %150 = load ptr, ptr %15, align 8, !tbaa !5
  %151 = load i64, ptr %21, align 8, !tbaa !9
  %152 = getelementptr inbounds i64, ptr %150, i64 %151
  %153 = load i64, ptr %152, align 8, !tbaa !9
  %154 = icmp ne i64 %153, 0
  br i1 %154, label %155, label %164

155:                                              ; preds = %149
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = load ptr, ptr %13, align 8, !tbaa !5
  %158 = load i64, ptr %22, align 8, !tbaa !9
  %159 = getelementptr inbounds i64, ptr %157, i64 %158
  %160 = load i64, ptr %159, align 8, !tbaa !9
  %161 = getelementptr inbounds i64, ptr %156, i64 %160
  %162 = load i64, ptr %161, align 8, !tbaa !9
  %163 = icmp ne i64 %162, 0
  br label %164

164:                                              ; preds = %155, %149
  %165 = phi i1 [ false, %149 ], [ %163, %155 ]
  %166 = zext i1 %165 to i64
  %167 = select i1 %165, i32 5, i32 1
  %168 = sext i32 %167 to i64
  %169 = load ptr, ptr %40, align 8, !tbaa !5
  %170 = load i64, ptr %22, align 8, !tbaa !9
  %171 = getelementptr inbounds i64, ptr %169, i64 %170
  store i64 %168, ptr %171, align 8, !tbaa !9
  br label %172

172:                                              ; preds = %164
  %173 = load i64, ptr %22, align 8, !tbaa !9
  %174 = add nsw i64 %173, 1
  store i64 %174, ptr %22, align 8, !tbaa !9
  br label %141, !llvm.loop !21

175:                                              ; preds = %141
  br label %176

176:                                              ; preds = %175
  %177 = load i64, ptr %21, align 8, !tbaa !9
  %178 = add nsw i64 %177, 1
  store i64 %178, ptr %21, align 8, !tbaa !9
  br label %131, !llvm.loop !22

179:                                              ; preds = %131
  %180 = getelementptr inbounds [2 x float], ptr %41, i64 0, i64 0
  store float 0x3FF07AE140000000, ptr %180, align 4, !tbaa !23
  %181 = getelementptr inbounds [2 x float], ptr %41, i64 0, i64 1
  store float 0x3FF0CCCCC0000000, ptr %181, align 4, !tbaa !23
  store i64 2, ptr %25, align 8, !tbaa !9
  store i64 0, ptr %27, align 8, !tbaa !9
  store i64 1, ptr %26, align 8, !tbaa !9
  %182 = load ptr, ptr %11, align 8, !tbaa !5
  %183 = load ptr, ptr %12, align 8, !tbaa !5
  %184 = load ptr, ptr %13, align 8, !tbaa !5
  %185 = load ptr, ptr %36, align 8, !tbaa !5
  %186 = load ptr, ptr %40, align 8, !tbaa !5
  %187 = load ptr, ptr %17, align 8, !tbaa !5
  %188 = getelementptr inbounds [2 x float], ptr %41, i64 0, i64 0
  %189 = load ptr, ptr %18, align 8, !tbaa !5
  %190 = load ptr, ptr %19, align 8, !tbaa !5
  %191 = load ptr, ptr %20, align 8, !tbaa !5
  call void @METIS_mCPartGraphKway(ptr noundef %182, ptr noundef %25, ptr noundef %183, ptr noundef %184, ptr noundef %185, ptr noundef %186, ptr noundef %26, ptr noundef %27, ptr noundef %187, ptr noundef %188, ptr noundef %189, ptr noundef %190, ptr noundef %191)
  %192 = load ptr, ptr %11, align 8, !tbaa !5
  %193 = load i64, ptr %192, align 8, !tbaa !9
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  %195 = load ptr, ptr %13, align 8, !tbaa !5
  %196 = load ptr, ptr %36, align 8, !tbaa !5
  call void @libmetis__SetUpGraph(ptr noundef %43, i64 noundef 2, i64 noundef %193, i64 noundef 2, ptr noundef %194, ptr noundef %195, ptr noundef %196, ptr noundef null, i64 noundef 0)
  %197 = load ptr, ptr %36, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.graphdef, ptr %43, i32 0, i32 3
  store ptr %197, ptr %198, align 8, !tbaa !25
  %199 = load ptr, ptr %17, align 8, !tbaa !5
  %200 = load i64, ptr %199, align 8, !tbaa !9
  %201 = load ptr, ptr %20, align 8, !tbaa !5
  %202 = getelementptr inbounds [2 x float], ptr %42, i64 0, i64 0
  call void @libmetis__ComputePartitionBalance(ptr noundef %43, i64 noundef %200, ptr noundef %201, ptr noundef %202)
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = load i64, ptr %203, align 8, !tbaa !9
  %205 = load ptr, ptr %20, align 8, !tbaa !5
  %206 = call i64 @libmetis__ComputeCut(ptr noundef %43, ptr noundef %205)
  %207 = getelementptr inbounds [2 x float], ptr %42, i64 0, i64 0
  %208 = load float, ptr %207, align 4, !tbaa !23
  %209 = fpext float %208 to double
  %210 = getelementptr inbounds [2 x float], ptr %42, i64 0, i64 1
  %211 = load float, ptr %210, align 4, !tbaa !23
  %212 = fpext float %211 to double
  %213 = call i32 (ptr, ...) @mprintf(ptr noundef @.str.9, i64 noundef %204, i64 noundef %206, double noundef %209, double noundef %212)
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = load i64, ptr %214, align 8, !tbaa !9
  %216 = call ptr @libmetis__idxmalloc(i64 noundef %215, ptr noundef @.str.10)
  store ptr %216, ptr %37, align 8, !tbaa !5
  %217 = load ptr, ptr %11, align 8, !tbaa !5
  %218 = load i64, ptr %217, align 8, !tbaa !9
  %219 = call ptr @libmetis__idxsmalloc(i64 noundef %218, i64 noundef 0, ptr noundef @.str.11)
  store ptr %219, ptr %38, align 8, !tbaa !5
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %220

220:                                              ; preds = %265, %179
  %221 = load i64, ptr %24, align 8, !tbaa !9
  %222 = icmp slt i64 %221, 3
  br i1 %222, label %223, label %268

223:                                              ; preds = %220
  %224 = load ptr, ptr %11, align 8, !tbaa !5
  %225 = load i64, ptr %224, align 8, !tbaa !9
  %226 = mul i64 16, %225
  %227 = call ptr @gk_malloc(i64 noundef %226, ptr noundef @.str.12)
  %228 = load i64, ptr %24, align 8, !tbaa !9
  %229 = getelementptr inbounds [3 x ptr], ptr %46, i64 0, i64 %228
  store ptr %227, ptr %229, align 8, !tbaa !5
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %230

230:                                              ; preds = %256, %223
  %231 = load i64, ptr %21, align 8, !tbaa !9
  %232 = load ptr, ptr %11, align 8, !tbaa !5
  %233 = load i64, ptr %232, align 8, !tbaa !9
  %234 = icmp slt i64 %231, %233
  br i1 %234, label %235, label %259

235:                                              ; preds = %230
  %236 = load ptr, ptr %14, align 8, !tbaa !5
  %237 = load i64, ptr %21, align 8, !tbaa !9
  %238 = mul nsw i64 3, %237
  %239 = load i64, ptr %24, align 8, !tbaa !9
  %240 = add nsw i64 %238, %239
  %241 = getelementptr inbounds double, ptr %236, i64 %240
  %242 = load double, ptr %241, align 8, !tbaa !28
  %243 = load i64, ptr %24, align 8, !tbaa !9
  %244 = getelementptr inbounds [3 x ptr], ptr %46, i64 0, i64 %243
  %245 = load ptr, ptr %244, align 8, !tbaa !5
  %246 = load i64, ptr %21, align 8, !tbaa !9
  %247 = getelementptr inbounds %struct.DKeyValueType, ptr %245, i64 %246
  %248 = getelementptr inbounds %struct.DKeyValueType, ptr %247, i32 0, i32 0
  store double %242, ptr %248, align 8, !tbaa !30
  %249 = load i64, ptr %21, align 8, !tbaa !9
  %250 = load i64, ptr %24, align 8, !tbaa !9
  %251 = getelementptr inbounds [3 x ptr], ptr %46, i64 0, i64 %250
  %252 = load ptr, ptr %251, align 8, !tbaa !5
  %253 = load i64, ptr %21, align 8, !tbaa !9
  %254 = getelementptr inbounds %struct.DKeyValueType, ptr %252, i64 %253
  %255 = getelementptr inbounds %struct.DKeyValueType, ptr %254, i32 0, i32 1
  store i64 %249, ptr %255, align 8, !tbaa !32
  br label %256

256:                                              ; preds = %235
  %257 = load i64, ptr %21, align 8, !tbaa !9
  %258 = add nsw i64 %257, 1
  store i64 %258, ptr %21, align 8, !tbaa !9
  br label %230, !llvm.loop !33

259:                                              ; preds = %230
  %260 = load ptr, ptr %11, align 8, !tbaa !5
  %261 = load i64, ptr %260, align 8, !tbaa !9
  %262 = load i64, ptr %24, align 8, !tbaa !9
  %263 = getelementptr inbounds [3 x ptr], ptr %46, i64 0, i64 %262
  %264 = load ptr, ptr %263, align 8, !tbaa !5
  call void @libmetis__idkeysort(i64 noundef %261, ptr noundef %264)
  br label %265

265:                                              ; preds = %259
  %266 = load i64, ptr %24, align 8, !tbaa !9
  %267 = add nsw i64 %266, 1
  store i64 %267, ptr %24, align 8, !tbaa !9
  br label %220, !llvm.loop !34

268:                                              ; preds = %220
  store i64 0, ptr %33, align 8, !tbaa !9
  store i64 0, ptr %32, align 8, !tbaa !9
  store i64 0, ptr %31, align 8, !tbaa !9
  store i64 0, ptr %30, align 8, !tbaa !9
  store i64 0, ptr %29, align 8, !tbaa !9
  store i64 0, ptr %28, align 8, !tbaa !9
  %269 = load ptr, ptr %11, align 8, !tbaa !5
  %270 = load i64, ptr %269, align 8, !tbaa !9
  %271 = getelementptr inbounds [3 x ptr], ptr %46, i64 0, i64 0
  %272 = load ptr, ptr %15, align 8, !tbaa !5
  %273 = load ptr, ptr %17, align 8, !tbaa !5
  %274 = load i64, ptr %273, align 8, !tbaa !9
  %275 = load ptr, ptr %20, align 8, !tbaa !5
  %276 = load ptr, ptr %11, align 8, !tbaa !5
  %277 = load i64, ptr %276, align 8, !tbaa !9
  %278 = load ptr, ptr %17, align 8, !tbaa !5
  %279 = load i64, ptr %278, align 8, !tbaa !9
  %280 = mul nsw i64 20, %279
  %281 = sdiv i64 %277, %280
  %282 = load ptr, ptr %11, align 8, !tbaa !5
  %283 = load i64, ptr %282, align 8, !tbaa !9
  %284 = load ptr, ptr %17, align 8, !tbaa !5
  %285 = load i64, ptr %284, align 8, !tbaa !9
  %286 = mul nsw i64 20, %285
  %287 = load ptr, ptr %17, align 8, !tbaa !5
  %288 = load i64, ptr %287, align 8, !tbaa !9
  %289 = mul nsw i64 %286, %288
  %290 = sdiv i64 %283, %289
  %291 = load ptr, ptr %45, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.ContactInfoType, ptr %291, i32 0, i32 8
  %293 = load ptr, ptr %292, align 8, !tbaa !17
  %294 = load ptr, ptr %39, align 8, !tbaa !5
  %295 = load ptr, ptr %37, align 8, !tbaa !5
  %296 = load ptr, ptr %38, align 8, !tbaa !5
  %297 = call i64 @InduceDecissionTree(i64 noundef %270, ptr noundef %271, ptr noundef %272, i64 noundef %274, ptr noundef %275, i64 noundef %281, i64 noundef %290, float noundef 0x3FECCCCCC0000000, ptr noundef %28, ptr noundef %29, ptr noundef %293, ptr noundef %294, ptr noundef %295, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %296)
  %298 = load i64, ptr %28, align 8, !tbaa !9
  %299 = load i64, ptr %29, align 8, !tbaa !9
  %300 = load i64, ptr %30, align 8, !tbaa !9
  %301 = load i64, ptr %31, align 8, !tbaa !9
  %302 = load i64, ptr %32, align 8, !tbaa !9
  %303 = load i64, ptr %33, align 8, !tbaa !9
  %304 = call i32 (ptr, ...) @mprintf(ptr noundef @.str.13, i64 noundef %298, i64 noundef %299, i64 noundef %300, i64 noundef %301, i64 noundef %302, i64 noundef %303)
  %305 = load ptr, ptr %11, align 8, !tbaa !5
  %306 = load i64, ptr %305, align 8, !tbaa !9
  %307 = load ptr, ptr %12, align 8, !tbaa !5
  %308 = load ptr, ptr %13, align 8, !tbaa !5
  %309 = load ptr, ptr %36, align 8, !tbaa !5
  %310 = load ptr, ptr %40, align 8, !tbaa !5
  %311 = load i64, ptr %29, align 8, !tbaa !9
  %312 = load ptr, ptr %39, align 8, !tbaa !5
  %313 = call ptr @CreatePartitionGraphForContact(i64 noundef %306, ptr noundef %307, ptr noundef %308, ptr noundef %309, ptr noundef %310, i64 noundef %311, ptr noundef %312)
  store ptr %313, ptr %44, align 8, !tbaa !5
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %314

314:                                              ; preds = %330, %268
  %315 = load i64, ptr %21, align 8, !tbaa !9
  %316 = load ptr, ptr %11, align 8, !tbaa !5
  %317 = load i64, ptr %316, align 8, !tbaa !9
  %318 = icmp slt i64 %315, %317
  br i1 %318, label %319, label %333

319:                                              ; preds = %314
  %320 = load ptr, ptr %37, align 8, !tbaa !5
  %321 = load i64, ptr %21, align 8, !tbaa !9
  %322 = getelementptr inbounds i64, ptr %320, i64 %321
  %323 = load i64, ptr %322, align 8, !tbaa !9
  %324 = load ptr, ptr %20, align 8, !tbaa !5
  %325 = load ptr, ptr %39, align 8, !tbaa !5
  %326 = load i64, ptr %21, align 8, !tbaa !9
  %327 = getelementptr inbounds i64, ptr %325, i64 %326
  %328 = load i64, ptr %327, align 8, !tbaa !9
  %329 = getelementptr inbounds i64, ptr %324, i64 %328
  store i64 %323, ptr %329, align 8, !tbaa !9
  br label %330

330:                                              ; preds = %319
  %331 = load i64, ptr %21, align 8, !tbaa !9
  %332 = add nsw i64 %331, 1
  store i64 %332, ptr %21, align 8, !tbaa !9
  br label %314, !llvm.loop !35

333:                                              ; preds = %314
  %334 = load ptr, ptr %44, align 8, !tbaa !5
  %335 = load ptr, ptr %17, align 8, !tbaa !5
  %336 = load i64, ptr %335, align 8, !tbaa !9
  %337 = load ptr, ptr %20, align 8, !tbaa !5
  %338 = getelementptr inbounds [2 x float], ptr %42, i64 0, i64 0
  call void @libmetis__ComputePartitionBalance(ptr noundef %334, i64 noundef %336, ptr noundef %337, ptr noundef %338)
  %339 = load ptr, ptr %17, align 8, !tbaa !5
  %340 = load i64, ptr %339, align 8, !tbaa !9
  %341 = load ptr, ptr %44, align 8, !tbaa !5
  %342 = load ptr, ptr %20, align 8, !tbaa !5
  %343 = call i64 @libmetis__ComputeCut(ptr noundef %341, ptr noundef %342)
  %344 = getelementptr inbounds [2 x float], ptr %42, i64 0, i64 0
  %345 = load float, ptr %344, align 4, !tbaa !23
  %346 = fpext float %345 to double
  %347 = getelementptr inbounds [2 x float], ptr %42, i64 0, i64 1
  %348 = load float, ptr %347, align 4, !tbaa !23
  %349 = fpext float %348 to double
  %350 = call i32 (ptr, ...) @mprintf(ptr noundef @.str.9, i64 noundef %340, i64 noundef %343, double noundef %346, double noundef %349)
  store i64 3, ptr %34, align 8, !tbaa !9
  store i64 0, ptr %35, align 8, !tbaa !9
  %351 = load ptr, ptr %44, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.graphdef, ptr %351, i32 0, i32 0
  %353 = load ptr, ptr %44, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.graphdef, ptr %353, i32 0, i32 2
  %355 = load ptr, ptr %354, align 8, !tbaa !36
  %356 = load ptr, ptr %44, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.graphdef, ptr %356, i32 0, i32 5
  %358 = load ptr, ptr %357, align 8, !tbaa !37
  %359 = load ptr, ptr %44, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.graphdef, ptr %359, i32 0, i32 3
  %361 = load ptr, ptr %360, align 8, !tbaa !25
  %362 = load ptr, ptr %44, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.graphdef, ptr %362, i32 0, i32 6
  %364 = load ptr, ptr %363, align 8, !tbaa !38
  %365 = load ptr, ptr %17, align 8, !tbaa !5
  %366 = getelementptr inbounds [2 x float], ptr %41, i64 0, i64 0
  %367 = load ptr, ptr %18, align 8, !tbaa !5
  %368 = load ptr, ptr %19, align 8, !tbaa !5
  %369 = load ptr, ptr %20, align 8, !tbaa !5
  call void @METIS_mCRefineGraphKway(ptr noundef %352, ptr noundef %25, ptr noundef %355, ptr noundef %358, ptr noundef %361, ptr noundef %364, ptr noundef %34, ptr noundef %35, ptr noundef %365, ptr noundef %366, ptr noundef %367, ptr noundef %368, ptr noundef %369)
  %370 = load ptr, ptr %44, align 8, !tbaa !5
  %371 = load ptr, ptr %17, align 8, !tbaa !5
  %372 = load i64, ptr %371, align 8, !tbaa !9
  %373 = load ptr, ptr %20, align 8, !tbaa !5
  %374 = getelementptr inbounds [2 x float], ptr %42, i64 0, i64 0
  call void @libmetis__ComputePartitionBalance(ptr noundef %370, i64 noundef %372, ptr noundef %373, ptr noundef %374)
  %375 = load ptr, ptr %17, align 8, !tbaa !5
  %376 = load i64, ptr %375, align 8, !tbaa !9
  %377 = load ptr, ptr %44, align 8, !tbaa !5
  %378 = load ptr, ptr %20, align 8, !tbaa !5
  %379 = call i64 @libmetis__ComputeCut(ptr noundef %377, ptr noundef %378)
  %380 = getelementptr inbounds [2 x float], ptr %42, i64 0, i64 0
  %381 = load float, ptr %380, align 4, !tbaa !23
  %382 = fpext float %381 to double
  %383 = getelementptr inbounds [2 x float], ptr %42, i64 0, i64 1
  %384 = load float, ptr %383, align 4, !tbaa !23
  %385 = fpext float %384 to double
  %386 = call i32 (ptr, ...) @mprintf(ptr noundef @.str.9, i64 noundef %376, i64 noundef %379, double noundef %382, double noundef %385)
  %387 = load ptr, ptr %37, align 8, !tbaa !5
  %388 = load ptr, ptr %20, align 8, !tbaa !5
  %389 = load ptr, ptr %44, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.graphdef, ptr %389, i32 0, i32 0
  %391 = load i64, ptr %390, align 8, !tbaa !39
  %392 = mul i64 8, %391
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %387, ptr align 1 %388, i64 %392, i1 false)
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %393

393:                                              ; preds = %409, %333
  %394 = load i64, ptr %21, align 8, !tbaa !9
  %395 = load ptr, ptr %11, align 8, !tbaa !5
  %396 = load i64, ptr %395, align 8, !tbaa !9
  %397 = icmp slt i64 %394, %396
  br i1 %397, label %398, label %412

398:                                              ; preds = %393
  %399 = load ptr, ptr %37, align 8, !tbaa !5
  %400 = load ptr, ptr %39, align 8, !tbaa !5
  %401 = load i64, ptr %21, align 8, !tbaa !9
  %402 = getelementptr inbounds i64, ptr %400, i64 %401
  %403 = load i64, ptr %402, align 8, !tbaa !9
  %404 = getelementptr inbounds i64, ptr %399, i64 %403
  %405 = load i64, ptr %404, align 8, !tbaa !9
  %406 = load ptr, ptr %20, align 8, !tbaa !5
  %407 = load i64, ptr %21, align 8, !tbaa !9
  %408 = getelementptr inbounds i64, ptr %406, i64 %407
  store i64 %405, ptr %408, align 8, !tbaa !9
  br label %409

409:                                              ; preds = %398
  %410 = load i64, ptr %21, align 8, !tbaa !9
  %411 = add nsw i64 %410, 1
  store i64 %411, ptr %21, align 8, !tbaa !9
  br label %393, !llvm.loop !40

412:                                              ; preds = %393
  %413 = load ptr, ptr %17, align 8, !tbaa !5
  %414 = load i64, ptr %413, align 8, !tbaa !9
  %415 = load ptr, ptr %20, align 8, !tbaa !5
  %416 = getelementptr inbounds [2 x float], ptr %42, i64 0, i64 0
  call void @libmetis__ComputePartitionBalance(ptr noundef %43, i64 noundef %414, ptr noundef %415, ptr noundef %416)
  %417 = load ptr, ptr %11, align 8, !tbaa !5
  %418 = load i64, ptr %417, align 8, !tbaa !9
  %419 = getelementptr inbounds %struct.graphdef, ptr %43, i32 0, i32 3
  %420 = load ptr, ptr %419, align 8, !tbaa !25
  %421 = call ptr @libmetis__idxset(i64 noundef %418, i64 noundef 1, ptr noundef %420)
  %422 = load ptr, ptr %17, align 8, !tbaa !5
  %423 = load i64, ptr %422, align 8, !tbaa !9
  %424 = load ptr, ptr %20, align 8, !tbaa !5
  %425 = call i64 @libmetis__ComputeCut(ptr noundef %43, ptr noundef %424)
  %426 = load ptr, ptr %20, align 8, !tbaa !5
  %427 = call i64 @libmetis__ComputeVolume(ptr noundef %43, ptr noundef %426)
  %428 = getelementptr inbounds [2 x float], ptr %42, i64 0, i64 0
  %429 = load float, ptr %428, align 4, !tbaa !23
  %430 = fpext float %429 to double
  %431 = getelementptr inbounds [2 x float], ptr %42, i64 0, i64 1
  %432 = load float, ptr %431, align 4, !tbaa !23
  %433 = fpext float %432 to double
  %434 = call i32 (ptr, ...) @mprintf(ptr noundef @.str.14, i64 noundef %423, i64 noundef %425, i64 noundef %427, double noundef %430, double noundef %433)
  store i64 0, ptr %33, align 8, !tbaa !9
  store i64 0, ptr %32, align 8, !tbaa !9
  store i64 0, ptr %31, align 8, !tbaa !9
  store i64 0, ptr %30, align 8, !tbaa !9
  store i64 0, ptr %29, align 8, !tbaa !9
  store i64 0, ptr %28, align 8, !tbaa !9
  %435 = load ptr, ptr %11, align 8, !tbaa !5
  %436 = load i64, ptr %435, align 8, !tbaa !9
  %437 = getelementptr inbounds [3 x ptr], ptr %46, i64 0, i64 0
  %438 = load ptr, ptr %15, align 8, !tbaa !5
  %439 = load ptr, ptr %17, align 8, !tbaa !5
  %440 = load i64, ptr %439, align 8, !tbaa !9
  %441 = load ptr, ptr %20, align 8, !tbaa !5
  %442 = load ptr, ptr %11, align 8, !tbaa !5
  %443 = load i64, ptr %442, align 8, !tbaa !9
  %444 = load ptr, ptr %17, align 8, !tbaa !5
  %445 = load i64, ptr %444, align 8, !tbaa !9
  %446 = mul nsw i64 40, %445
  %447 = sdiv i64 %443, %446
  %448 = load ptr, ptr %45, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.ContactInfoType, ptr %448, i32 0, i32 8
  %450 = load ptr, ptr %449, align 8, !tbaa !17
  %451 = load ptr, ptr %39, align 8, !tbaa !5
  %452 = load ptr, ptr %37, align 8, !tbaa !5
  %453 = load ptr, ptr %38, align 8, !tbaa !5
  %454 = call i64 @InduceDecissionTree(i64 noundef %436, ptr noundef %437, ptr noundef %438, i64 noundef %440, ptr noundef %441, i64 noundef %447, i64 noundef 1, float noundef 1.000000e+00, ptr noundef %28, ptr noundef %29, ptr noundef %450, ptr noundef %451, ptr noundef %452, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %453)
  %455 = load i64, ptr %28, align 8, !tbaa !9
  %456 = load i64, ptr %29, align 8, !tbaa !9
  %457 = load i64, ptr %30, align 8, !tbaa !9
  %458 = load i64, ptr %31, align 8, !tbaa !9
  %459 = load i64, ptr %32, align 8, !tbaa !9
  %460 = load i64, ptr %33, align 8, !tbaa !9
  %461 = call i32 (ptr, ...) @mprintf(ptr noundef @.str.13, i64 noundef %455, i64 noundef %456, i64 noundef %457, i64 noundef %458, i64 noundef %459, i64 noundef %460)
  %462 = load i64, ptr %28, align 8, !tbaa !9
  %463 = load ptr, ptr %45, align 8, !tbaa !5
  %464 = getelementptr inbounds %struct.ContactInfoType, ptr %463, i32 0, i32 1
  store i64 %462, ptr %464, align 8, !tbaa !41
  %465 = load i64, ptr %29, align 8, !tbaa !9
  %466 = load ptr, ptr %45, align 8, !tbaa !5
  %467 = getelementptr inbounds %struct.ContactInfoType, ptr %466, i32 0, i32 2
  store i64 %465, ptr %467, align 8, !tbaa !42
  %468 = load ptr, ptr %45, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.ContactInfoType, ptr %468, i32 0, i32 6
  %470 = load ptr, ptr %469, align 8, !tbaa !15
  %471 = load ptr, ptr %20, align 8, !tbaa !5
  %472 = load ptr, ptr %11, align 8, !tbaa !5
  %473 = load i64, ptr %472, align 8, !tbaa !9
  %474 = mul i64 8, %473
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %470, ptr align 1 %471, i64 %474, i1 false)
  %475 = load ptr, ptr %45, align 8, !tbaa !5
  %476 = load ptr, ptr %15, align 8, !tbaa !5
  call void @BuildDTLeafContents(ptr noundef %475, ptr noundef %476)
  %477 = load ptr, ptr %11, align 8, !tbaa !5
  %478 = load i64, ptr %477, align 8, !tbaa !9
  %479 = load ptr, ptr %14, align 8, !tbaa !5
  %480 = load ptr, ptr %20, align 8, !tbaa !5
  %481 = load ptr, ptr %45, align 8, !tbaa !5
  call void @CheckDTree(i64 noundef %478, ptr noundef %479, ptr noundef %480, ptr noundef %481)
  %482 = getelementptr inbounds [3 x ptr], ptr %46, i64 0, i64 0
  %483 = getelementptr inbounds [3 x ptr], ptr %46, i64 0, i64 1
  %484 = getelementptr inbounds [3 x ptr], ptr %46, i64 0, i64 2
  call void (ptr, ...) @gk_free(ptr noundef %36, ptr noundef %37, ptr noundef %482, ptr noundef %483, ptr noundef %484, ptr noundef %38, ptr noundef %40, ptr noundef null)
  %485 = load ptr, ptr %16, align 8, !tbaa !5
  %486 = load i64, ptr %485, align 8, !tbaa !9
  %487 = icmp eq i64 %486, 1
  br i1 %487, label %488, label %494

488:                                              ; preds = %412
  %489 = load ptr, ptr %11, align 8, !tbaa !5
  %490 = load i64, ptr %489, align 8, !tbaa !9
  %491 = load ptr, ptr %12, align 8, !tbaa !5
  %492 = load ptr, ptr %13, align 8, !tbaa !5
  %493 = load ptr, ptr %20, align 8, !tbaa !5
  call void @libmetis__Change2FNumbering(i64 noundef %490, ptr noundef %491, ptr noundef %492, ptr noundef %493)
  br label %494

494:                                              ; preds = %488, %412
  %495 = load ptr, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 248, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  ret ptr %495
}

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

declare void @libmetis__Change2CNumbering(i64 noundef, ptr noundef, ptr noundef) #2

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

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

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

declare void @METIS_mCPartGraphKway(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @libmetis__SetUpGraph(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

declare void @libmetis__ComputePartitionBalance(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #2

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

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

declare void @libmetis__idkeysort(i64 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @InduceDecissionTree(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, float noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

declare void @METIS_mCRefineGraphKway(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @CheckDTree(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #0

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

declare void @libmetis__Change2FNumbering(i64 noundef, ptr noundef, ptr noundef, 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"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, !6, i64 24}
!12 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}
!13 = !{!12, !6, i64 32}
!14 = !{!12, !6, i64 40}
!15 = !{!12, !6, i64 48}
!16 = !{!12, !6, i64 56}
!17 = !{!12, !6, i64 64}
!18 = !{!12, !10, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = !{!24, !24, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = !{!26, !6, i64 24}
!26 = !{!"graphdef", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !27, i64 56, !27, i64 60, !27, i64 64, !27, i64 68, !27, 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}
!27 = !{!"int", !7, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"double", !7, i64 0}
!30 = !{!31, !29, i64 0}
!31 = !{!"", !29, i64 0, !10, i64 8}
!32 = !{!31, !10, i64 8}
!33 = distinct !{!33, !20}
!34 = distinct !{!34, !20}
!35 = distinct !{!35, !20}
!36 = !{!26, !6, i64 16}
!37 = !{!26, !6, i64 40}
!38 = !{!26, !6, i64 48}
!39 = !{!26, !10, i64 0}
!40 = distinct !{!40, !20}
!41 = !{!12, !10, i64 8}
!42 = !{!12, !10, i64 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"

%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 }
%struct.DKeyValueType = type { double, i64 }

@.str = external hidden unnamed_addr constant [33 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [59 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @METIS_PartGraphForContact(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef readonly %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #0 {
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca [2 x float], align 8
  %27 = alloca [2 x float], align 4
  %28 = alloca %struct.graphdef, align 8
  %29 = alloca [3 x ptr], align 16
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #4
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %28) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %29) #4
  %30 = load i64, ptr %5, align 8, !tbaa !5
  %31 = icmp eq i64 %30, 1
  br i1 %31, label %32, label %34

32:                                               ; preds = %10
  %33 = load i64, ptr %0, align 8, !tbaa !5
  tail call void @libmetis__Change2CNumbering(i64 noundef %33, ptr noundef %1, ptr noundef %2) #4
  br label %34

34:                                               ; preds = %32, %10
  %35 = tail call ptr @gk_malloc(i64 noundef 72, ptr noundef nonnull @.str) #4
  %36 = load i64, ptr %0, align 8, !tbaa !5
  %37 = add nsw i64 %36, 1
  %38 = tail call ptr @libmetis__idxsmalloc(i64 noundef %37, i64 noundef 0, ptr noundef nonnull @.str.1) #4
  %39 = getelementptr inbounds i8, ptr %35, i64 24
  store ptr %38, ptr %39, align 8, !tbaa !9
  %40 = load i64, ptr %0, align 8, !tbaa !5
  %41 = tail call ptr @libmetis__idxsmalloc(i64 noundef %40, i64 noundef 0, ptr noundef nonnull @.str.2) #4
  %42 = getelementptr inbounds i8, ptr %35, i64 32
  store ptr %41, ptr %42, align 8, !tbaa !12
  %43 = load i64, ptr %0, align 8, !tbaa !5
  %44 = tail call ptr @libmetis__idxsmalloc(i64 noundef %43, i64 noundef 0, ptr noundef nonnull @.str.3) #4
  %45 = getelementptr inbounds i8, ptr %35, i64 40
  store ptr %44, ptr %45, align 8, !tbaa !13
  %46 = load i64, ptr %0, align 8, !tbaa !5
  %47 = tail call ptr @libmetis__idxsmalloc(i64 noundef %46, i64 noundef 0, ptr noundef nonnull @.str.4) #4
  %48 = getelementptr inbounds i8, ptr %35, i64 48
  store ptr %47, ptr %48, align 8, !tbaa !14
  %49 = load i64, ptr %0, align 8, !tbaa !5
  %50 = tail call ptr @libmetis__idxmalloc(i64 noundef %49, ptr noundef nonnull @.str.5) #4
  %51 = getelementptr inbounds i8, ptr %35, i64 56
  store ptr %50, ptr %51, align 8, !tbaa !15
  %52 = load i64, ptr %0, align 8, !tbaa !5
  %53 = shl i64 %52, 6
  %54 = tail call ptr @gk_malloc(i64 noundef %53, ptr noundef nonnull @.str.6) #4
  %55 = getelementptr inbounds i8, ptr %35, i64 64
  store ptr %54, ptr %55, align 8, !tbaa !16
  %56 = load i64, ptr %0, align 8, !tbaa !5
  store i64 %56, ptr %35, align 8, !tbaa !17
  %57 = shl nsw i64 %56, 1
  %58 = tail call ptr @libmetis__idxsmalloc(i64 noundef %57, i64 noundef 0, ptr noundef nonnull @.str.7) #4
  store ptr %58, ptr %22, align 8, !tbaa !18
  %59 = load i64, ptr %0, align 8, !tbaa !5
  %60 = icmp sgt i64 %59, 0
  br i1 %60, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %34, %.lr.ph
  %.0166 = phi i64 [ %69, %.lr.ph ], [ 0, %34 ]
  %61 = shl nuw nsw i64 %.0166, 1
  %62 = getelementptr inbounds i64, ptr %58, i64 %61
  store i64 1, ptr %62, align 8, !tbaa !5
  %63 = getelementptr inbounds i64, ptr %4, i64 %.0166
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = icmp ne i64 %64, 0
  %66 = zext i1 %65 to i64
  %67 = or disjoint i64 %61, 1
  %68 = getelementptr inbounds i64, ptr %58, i64 %67
  store i64 %66, ptr %68, align 8, !tbaa !5
  %69 = add nuw nsw i64 %.0166, 1
  %70 = load i64, ptr %0, align 8, !tbaa !5
  %71 = icmp slt i64 %69, %70
  br i1 %71, label %.lr.ph, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph, %34
  %.lcssa165 = phi i64 [ %59, %34 ], [ %70, %.lr.ph ]
  %72 = getelementptr inbounds i64, ptr %1, i64 %.lcssa165
  %73 = load i64, ptr %72, align 8, !tbaa !5
  %74 = tail call ptr @libmetis__idxmalloc(i64 noundef %73, ptr noundef nonnull @.str.8) #4
  store ptr %74, ptr %25, align 8, !tbaa !18
  %75 = load i64, ptr %0, align 8, !tbaa !5
  %76 = icmp sgt i64 %75, 0
  br i1 %76, label %.lr.ph173.preheader, label %._crit_edge174

.lr.ph173.preheader:                              ; preds = %._crit_edge
  %.pre = load i64, ptr %1, align 8, !tbaa !5
  br label %.lr.ph173

.loopexit.loopexit:                               ; preds = %.thread
  %.pre191 = load i64, ptr %0, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %.lr.ph173
  %77 = phi i64 [ %.pre191, %.loopexit.loopexit ], [ %80, %.lr.ph173 ]
  %78 = phi i64 [ %97, %.loopexit.loopexit ], [ %84, %.lr.ph173 ]
  %79 = icmp slt i64 %82, %77
  br i1 %79, label %.lr.ph173, label %._crit_edge174, !llvm.loop !21

.lr.ph173:                                        ; preds = %.lr.ph173.preheader, %.loopexit
  %80 = phi i64 [ %77, %.loopexit ], [ %75, %.lr.ph173.preheader ]
  %81 = phi i64 [ %78, %.loopexit ], [ %.pre, %.lr.ph173.preheader ]
  %.1171 = phi i64 [ %82, %.loopexit ], [ 0, %.lr.ph173.preheader ]
  %82 = add nuw nsw i64 %.1171, 1
  %83 = getelementptr inbounds i64, ptr %1, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !5
  %85 = icmp slt i64 %81, %84
  br i1 %85, label %.lr.ph169, label %.loopexit

.lr.ph169:                                        ; preds = %.lr.ph173
  %86 = getelementptr inbounds i64, ptr %4, i64 %.1171
  br label %87

87:                                               ; preds = %.lr.ph169, %.thread
  %.0158167 = phi i64 [ %81, %.lr.ph169 ], [ %96, %.thread ]
  %88 = load i64, ptr %86, align 8, !tbaa !5
  %.not = icmp eq i64 %88, 0
  br i1 %.not, label %.thread, label %89

89:                                               ; preds = %87
  %90 = getelementptr inbounds i64, ptr %2, i64 %.0158167
  %91 = load i64, ptr %90, align 8, !tbaa !5
  %92 = getelementptr inbounds i64, ptr %4, i64 %91
  %93 = load i64, ptr %92, align 8, !tbaa !5
  %.fr = freeze i64 %93
  %.not163 = icmp eq i64 %.fr, 0
  %spec.select = select i1 %.not163, i64 1, i64 5
  br label %.thread

.thread:                                          ; preds = %89, %87
  %94 = phi i64 [ 1, %87 ], [ %spec.select, %89 ]
  %95 = getelementptr inbounds i64, ptr %74, i64 %.0158167
  store i64 %94, ptr %95, align 8, !tbaa !5
  %96 = add nsw i64 %.0158167, 1
  %97 = load i64, ptr %83, align 8, !tbaa !5
  %98 = icmp slt i64 %96, %97
  br i1 %98, label %87, label %.loopexit.loopexit, !llvm.loop !22

._crit_edge174:                                   ; preds = %.loopexit, %._crit_edge
  store <2 x float> <float 0x3FF07AE140000000, float 0x3FF0CCCCC0000000>, ptr %26, align 8, !tbaa !23
  store i64 2, ptr %11, align 8, !tbaa !5
  store i64 0, ptr %13, align 8, !tbaa !5
  store i64 1, ptr %12, align 8, !tbaa !5
  call void @METIS_mCPartGraphKway(ptr noundef nonnull %0, ptr noundef nonnull %11, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %58, ptr noundef %74, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef %6, ptr noundef nonnull %26, ptr noundef %7, ptr noundef %8, ptr noundef %9) #4
  %99 = load i64, ptr %0, align 8, !tbaa !5
  call void @libmetis__SetUpGraph(ptr noundef nonnull %28, i64 noundef 2, i64 noundef %99, i64 noundef 2, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %58, ptr noundef null, i64 noundef 0) #4
  %100 = getelementptr inbounds i8, ptr %28, i64 24
  store ptr %58, ptr %100, align 8, !tbaa !25
  %101 = load i64, ptr %6, align 8, !tbaa !5
  call void @libmetis__ComputePartitionBalance(ptr noundef nonnull %28, i64 noundef %101, ptr noundef %9, ptr noundef nonnull %27) #4
  %102 = load i64, ptr %6, align 8, !tbaa !5
  %103 = call i64 @libmetis__ComputeCut(ptr noundef nonnull %28, ptr noundef %9) #4
  %104 = load float, ptr %27, align 4, !tbaa !23
  %105 = fpext float %104 to double
  %106 = getelementptr inbounds i8, ptr %27, i64 4
  %107 = load float, ptr %106, align 4, !tbaa !23
  %108 = fpext float %107 to double
  %109 = call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.9, i64 noundef %102, i64 noundef %103, double noundef %105, double noundef %108) #4
  %110 = load i64, ptr %0, align 8, !tbaa !5
  %111 = call ptr @libmetis__idxmalloc(i64 noundef %110, ptr noundef nonnull @.str.10) #4
  store ptr %111, ptr %23, align 8, !tbaa !18
  %112 = load i64, ptr %0, align 8, !tbaa !5
  %113 = call ptr @libmetis__idxsmalloc(i64 noundef %112, i64 noundef 0, ptr noundef nonnull @.str.11) #4
  store ptr %113, ptr %24, align 8, !tbaa !18
  %114 = load i64, ptr %0, align 8, !tbaa !5
  %115 = shl i64 %114, 4
  %116 = call ptr @gk_malloc(i64 noundef %115, ptr noundef nonnull @.str.12) #4
  store ptr %116, ptr %29, align 16, !tbaa !18
  %117 = load i64, ptr %0, align 8, !tbaa !5
  %118 = icmp sgt i64 %117, 0
  br i1 %118, label %.lr.ph177, label %._crit_edge178

.lr.ph177:                                        ; preds = %._crit_edge174, %.lr.ph177
  %.2175 = phi i64 [ %122, %.lr.ph177 ], [ 0, %._crit_edge174 ]
  %.idx = mul i64 %.2175, 24
  %gep = getelementptr i8, ptr %3, i64 %.idx
  %119 = load double, ptr %gep, align 8, !tbaa !28
  %120 = getelementptr inbounds %struct.DKeyValueType, ptr %116, i64 %.2175
  store double %119, ptr %120, align 8, !tbaa !30
  %121 = getelementptr inbounds %struct.DKeyValueType, ptr %116, i64 %.2175, i32 1
  store i64 %.2175, ptr %121, align 8, !tbaa !32
  %122 = add nuw nsw i64 %.2175, 1
  %123 = load i64, ptr %0, align 8, !tbaa !5
  %124 = icmp slt i64 %122, %123
  br i1 %124, label %.lr.ph177, label %._crit_edge178, !llvm.loop !33

._crit_edge178:                                   ; preds = %.lr.ph177, %._crit_edge174
  %.lcssa = phi i64 [ %117, %._crit_edge174 ], [ %123, %.lr.ph177 ]
  call void @libmetis__idkeysort(i64 noundef %.lcssa, ptr noundef %116) #4
  %125 = load i64, ptr %0, align 8, !tbaa !5
  %126 = shl i64 %125, 4
  %127 = call ptr @gk_malloc(i64 noundef %126, ptr noundef nonnull @.str.12) #4
  %128 = getelementptr inbounds i8, ptr %29, i64 8
  store ptr %127, ptr %128, align 8, !tbaa !18
  %invariant.gep.1 = getelementptr i8, ptr %3, i64 8
  %129 = load i64, ptr %0, align 8, !tbaa !5
  %130 = icmp sgt i64 %129, 0
  br i1 %130, label %.lr.ph177.1, label %._crit_edge178.1

.lr.ph177.1:                                      ; preds = %._crit_edge178, %.lr.ph177.1
  %.2175.1 = phi i64 [ %134, %.lr.ph177.1 ], [ 0, %._crit_edge178 ]
  %.idx.1 = mul i64 %.2175.1, 24
  %gep.1 = getelementptr i8, ptr %invariant.gep.1, i64 %.idx.1
  %131 = load double, ptr %gep.1, align 8, !tbaa !28
  %132 = getelementptr inbounds %struct.DKeyValueType, ptr %127, i64 %.2175.1
  store double %131, ptr %132, align 8, !tbaa !30
  %133 = getelementptr inbounds %struct.DKeyValueType, ptr %127, i64 %.2175.1, i32 1
  store i64 %.2175.1, ptr %133, align 8, !tbaa !32
  %134 = add nuw nsw i64 %.2175.1, 1
  %135 = load i64, ptr %0, align 8, !tbaa !5
  %136 = icmp slt i64 %134, %135
  br i1 %136, label %.lr.ph177.1, label %._crit_edge178.1, !llvm.loop !33

._crit_edge178.1:                                 ; preds = %.lr.ph177.1, %._crit_edge178
  %.lcssa.1 = phi i64 [ %129, %._crit_edge178 ], [ %135, %.lr.ph177.1 ]
  call void @libmetis__idkeysort(i64 noundef %.lcssa.1, ptr noundef %127) #4
  %137 = load i64, ptr %0, align 8, !tbaa !5
  %138 = shl i64 %137, 4
  %139 = call ptr @gk_malloc(i64 noundef %138, ptr noundef nonnull @.str.12) #4
  %140 = getelementptr inbounds i8, ptr %29, i64 16
  store ptr %139, ptr %140, align 16, !tbaa !18
  %invariant.gep.2 = getelementptr i8, ptr %3, i64 16
  %141 = load i64, ptr %0, align 8, !tbaa !5
  %142 = icmp sgt i64 %141, 0
  br i1 %142, label %.lr.ph177.2, label %._crit_edge178.2

.lr.ph177.2:                                      ; preds = %._crit_edge178.1, %.lr.ph177.2
  %.2175.2 = phi i64 [ %146, %.lr.ph177.2 ], [ 0, %._crit_edge178.1 ]
  %.idx.2 = mul i64 %.2175.2, 24
  %gep.2 = getelementptr i8, ptr %invariant.gep.2, i64 %.idx.2
  %143 = load double, ptr %gep.2, align 8, !tbaa !28
  %144 = getelementptr inbounds %struct.DKeyValueType, ptr %139, i64 %.2175.2
  store double %143, ptr %144, align 8, !tbaa !30
  %145 = getelementptr inbounds %struct.DKeyValueType, ptr %139, i64 %.2175.2, i32 1
  store i64 %.2175.2, ptr %145, align 8, !tbaa !32
  %146 = add nuw nsw i64 %.2175.2, 1
  %147 = load i64, ptr %0, align 8, !tbaa !5
  %148 = icmp slt i64 %146, %147
  br i1 %148, label %.lr.ph177.2, label %._crit_edge178.2, !llvm.loop !33

._crit_edge178.2:                                 ; preds = %.lr.ph177.2, %._crit_edge178.1
  %.lcssa.2 = phi i64 [ %141, %._crit_edge178.1 ], [ %147, %.lr.ph177.2 ]
  call void @libmetis__idkeysort(i64 noundef %.lcssa.2, ptr noundef %139) #4
  store i64 0, ptr %19, align 8, !tbaa !5
  store i64 0, ptr %18, align 8, !tbaa !5
  store i64 0, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %16, align 8, !tbaa !5
  store i64 0, ptr %15, align 8, !tbaa !5
  store i64 0, ptr %14, align 8, !tbaa !5
  %149 = load i64, ptr %0, align 8, !tbaa !5
  %150 = load i64, ptr %6, align 8, !tbaa !5
  %151 = mul nsw i64 %150, 20
  %152 = sdiv i64 %149, %151
  %153 = mul nsw i64 %151, %150
  %154 = sdiv i64 %149, %153
  %155 = load ptr, ptr %55, align 8, !tbaa !16
  %156 = call i64 @InduceDecissionTree(i64 noundef %149, ptr noundef nonnull %29, ptr noundef %4, i64 noundef %150, ptr noundef %9, i64 noundef %152, i64 noundef %154, float noundef 0x3FECCCCCC0000000, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %155, ptr noundef %50, ptr noundef %111, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef %113)
  %157 = load i64, ptr %14, align 8, !tbaa !5
  %158 = load i64, ptr %15, align 8, !tbaa !5
  %159 = load i64, ptr %16, align 8, !tbaa !5
  %160 = load i64, ptr %17, align 8, !tbaa !5
  %161 = load i64, ptr %18, align 8, !tbaa !5
  %162 = load i64, ptr %19, align 8, !tbaa !5
  %163 = call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.13, i64 noundef %157, i64 noundef %158, i64 noundef %159, i64 noundef %160, i64 noundef %161, i64 noundef %162) #4
  %164 = load i64, ptr %0, align 8, !tbaa !5
  %165 = load i64, ptr %15, align 8, !tbaa !5
  %166 = call ptr @CreatePartitionGraphForContact(i64 noundef %164, ptr noundef %1, ptr noundef %2, ptr noundef %58, ptr noundef %74, i64 noundef %165, ptr noundef %50)
  %167 = load i64, ptr %0, align 8, !tbaa !5
  %168 = icmp sgt i64 %167, 0
  br i1 %168, label %.lr.ph183, label %._crit_edge184

.lr.ph183:                                        ; preds = %._crit_edge178.2, %.lr.ph183
  %.3181 = phi i64 [ %174, %.lr.ph183 ], [ 0, %._crit_edge178.2 ]
  %169 = getelementptr inbounds i64, ptr %111, i64 %.3181
  %170 = load i64, ptr %169, align 8, !tbaa !5
  %171 = getelementptr inbounds i64, ptr %50, i64 %.3181
  %172 = load i64, ptr %171, align 8, !tbaa !5
  %173 = getelementptr inbounds i64, ptr %9, i64 %172
  store i64 %170, ptr %173, align 8, !tbaa !5
  %174 = add nuw nsw i64 %.3181, 1
  %175 = load i64, ptr %0, align 8, !tbaa !5
  %176 = icmp slt i64 %174, %175
  br i1 %176, label %.lr.ph183, label %._crit_edge184, !llvm.loop !34

._crit_edge184:                                   ; preds = %.lr.ph183, %._crit_edge178.2
  %177 = load i64, ptr %6, align 8, !tbaa !5
  call void @libmetis__ComputePartitionBalance(ptr noundef %166, i64 noundef %177, ptr noundef %9, ptr noundef nonnull %27) #4
  %178 = load i64, ptr %6, align 8, !tbaa !5
  %179 = call i64 @libmetis__ComputeCut(ptr noundef %166, ptr noundef %9) #4
  %180 = load float, ptr %27, align 4, !tbaa !23
  %181 = fpext float %180 to double
  %182 = load float, ptr %106, align 4, !tbaa !23
  %183 = fpext float %182 to double
  %184 = call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.9, i64 noundef %178, i64 noundef %179, double noundef %181, double noundef %183) #4
  store i64 3, ptr %20, align 8, !tbaa !5
  store i64 0, ptr %21, align 8, !tbaa !5
  %185 = getelementptr inbounds i8, ptr %166, i64 16
  %186 = load ptr, ptr %185, align 8, !tbaa !35
  %187 = getelementptr inbounds i8, ptr %166, i64 40
  %188 = load ptr, ptr %187, align 8, !tbaa !36
  %189 = getelementptr inbounds i8, ptr %166, i64 24
  %190 = load ptr, ptr %189, align 8, !tbaa !25
  %191 = getelementptr inbounds i8, ptr %166, i64 48
  %192 = load ptr, ptr %191, align 8, !tbaa !37
  call void @METIS_mCRefineGraphKway(ptr noundef %166, ptr noundef nonnull %11, ptr noundef %186, ptr noundef %188, ptr noundef %190, ptr noundef %192, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %6, ptr noundef nonnull %26, ptr noundef %7, ptr noundef %8, ptr noundef %9) #4
  %193 = load i64, ptr %6, align 8, !tbaa !5
  call void @libmetis__ComputePartitionBalance(ptr noundef %166, i64 noundef %193, ptr noundef %9, ptr noundef nonnull %27) #4
  %194 = load i64, ptr %6, align 8, !tbaa !5
  %195 = call i64 @libmetis__ComputeCut(ptr noundef %166, ptr noundef %9) #4
  %196 = load float, ptr %27, align 4, !tbaa !23
  %197 = fpext float %196 to double
  %198 = load float, ptr %106, align 4, !tbaa !23
  %199 = fpext float %198 to double
  %200 = call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.9, i64 noundef %194, i64 noundef %195, double noundef %197, double noundef %199) #4
  %201 = load i64, ptr %166, align 8, !tbaa !38
  %202 = shl i64 %201, 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %111, ptr align 1 %9, i64 %202, i1 false)
  %203 = load i64, ptr %0, align 8, !tbaa !5
  %204 = icmp sgt i64 %203, 0
  br i1 %204, label %.lr.ph187, label %._crit_edge188

.lr.ph187:                                        ; preds = %._crit_edge184, %.lr.ph187
  %.4185 = phi i64 [ %210, %.lr.ph187 ], [ 0, %._crit_edge184 ]
  %205 = getelementptr inbounds i64, ptr %50, i64 %.4185
  %206 = load i64, ptr %205, align 8, !tbaa !5
  %207 = getelementptr inbounds i64, ptr %111, i64 %206
  %208 = load i64, ptr %207, align 8, !tbaa !5
  %209 = getelementptr inbounds i64, ptr %9, i64 %.4185
  store i64 %208, ptr %209, align 8, !tbaa !5
  %210 = add nuw nsw i64 %.4185, 1
  %211 = load i64, ptr %0, align 8, !tbaa !5
  %212 = icmp slt i64 %210, %211
  br i1 %212, label %.lr.ph187, label %._crit_edge188, !llvm.loop !39

._crit_edge188:                                   ; preds = %.lr.ph187, %._crit_edge184
  %213 = load i64, ptr %6, align 8, !tbaa !5
  call void @libmetis__ComputePartitionBalance(ptr noundef nonnull %28, i64 noundef %213, ptr noundef %9, ptr noundef nonnull %27) #4
  %214 = load i64, ptr %0, align 8, !tbaa !5
  %215 = load ptr, ptr %100, align 8, !tbaa !25
  %216 = call ptr @libmetis__idxset(i64 noundef %214, i64 noundef 1, ptr noundef %215) #4
  %217 = load i64, ptr %6, align 8, !tbaa !5
  %218 = call i64 @libmetis__ComputeCut(ptr noundef nonnull %28, ptr noundef %9) #4
  %219 = call i64 @libmetis__ComputeVolume(ptr noundef nonnull %28, ptr noundef %9) #4
  %220 = load float, ptr %27, align 4, !tbaa !23
  %221 = fpext float %220 to double
  %222 = load float, ptr %106, align 4, !tbaa !23
  %223 = fpext float %222 to double
  %224 = call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.14, i64 noundef %217, i64 noundef %218, i64 noundef %219, double noundef %221, double noundef %223) #4
  store i64 0, ptr %19, align 8, !tbaa !5
  store i64 0, ptr %18, align 8, !tbaa !5
  store i64 0, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %16, align 8, !tbaa !5
  store i64 0, ptr %15, align 8, !tbaa !5
  store i64 0, ptr %14, align 8, !tbaa !5
  %225 = load i64, ptr %0, align 8, !tbaa !5
  %226 = load i64, ptr %6, align 8, !tbaa !5
  %227 = mul nsw i64 %226, 40
  %228 = sdiv i64 %225, %227
  %229 = load ptr, ptr %55, align 8, !tbaa !16
  %230 = call i64 @InduceDecissionTree(i64 noundef %225, ptr noundef nonnull %29, ptr noundef %4, i64 noundef %226, ptr noundef %9, i64 noundef %228, i64 noundef 1, float noundef 1.000000e+00, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef %229, ptr noundef %50, ptr noundef %111, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef %113)
  %231 = load i64, ptr %14, align 8, !tbaa !5
  %232 = load i64, ptr %15, align 8, !tbaa !5
  %233 = load i64, ptr %16, align 8, !tbaa !5
  %234 = load i64, ptr %17, align 8, !tbaa !5
  %235 = load i64, ptr %18, align 8, !tbaa !5
  %236 = load i64, ptr %19, align 8, !tbaa !5
  %237 = call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.13, i64 noundef %231, i64 noundef %232, i64 noundef %233, i64 noundef %234, i64 noundef %235, i64 noundef %236) #4
  %238 = load i64, ptr %14, align 8, !tbaa !5
  %239 = getelementptr inbounds i8, ptr %35, i64 8
  store i64 %238, ptr %239, align 8, !tbaa !40
  %240 = load i64, ptr %15, align 8, !tbaa !5
  %241 = getelementptr inbounds i8, ptr %35, i64 16
  store i64 %240, ptr %241, align 8, !tbaa !41
  %242 = load ptr, ptr %48, align 8, !tbaa !14
  %243 = load i64, ptr %0, align 8, !tbaa !5
  %244 = shl i64 %243, 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %242, ptr align 1 %9, i64 %244, i1 false)
  call void @BuildDTLeafContents(ptr noundef nonnull %35, ptr noundef %4)
  %245 = load i64, ptr %0, align 8, !tbaa !5
  call void @CheckDTree(i64 noundef %245, ptr noundef %3, ptr noundef %9, ptr noundef nonnull %35)
  call void (ptr, ...) @gk_free(ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %29, ptr noundef nonnull %128, ptr noundef nonnull %140, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef null) #4
  %246 = load i64, ptr %5, align 8, !tbaa !5
  %247 = icmp eq i64 %246, 1
  br i1 %247, label %248, label %250

248:                                              ; preds = %._crit_edge188
  %249 = load i64, ptr %0, align 8, !tbaa !5
  call void @libmetis__Change2FNumbering(i64 noundef %249, ptr noundef %1, ptr noundef %2, ptr noundef %9) #4
  br label %250

250:                                              ; preds = %248, %._crit_edge188
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %29) #4
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %23) #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
  ret ptr %35
}

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

declare void @libmetis__Change2CNumbering(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

declare void @METIS_mCPartGraphKway(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @libmetis__SetUpGraph(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @libmetis__ComputePartitionBalance(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare void @libmetis__idkeysort(i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @InduceDecissionTree(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, float noundef, ptr 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: nounwind uwtable
declare dso_local ptr @CreatePartitionGraphForContact(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

declare void @METIS_mCRefineGraphKway(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @CheckDTree(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

declare void @libmetis__Change2FNumbering(i64 noundef, ptr noundef, ptr noundef, 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !11, i64 24}
!10 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 32}
!13 = !{!10, !11, i64 40}
!14 = !{!10, !11, i64 48}
!15 = !{!10, !11, i64 56}
!16 = !{!10, !11, i64 64}
!17 = !{!10, !6, i64 0}
!18 = !{!11, !11, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = !{!24, !24, i64 0}
!24 = !{!"float", !7, i64 0}
!25 = !{!26, !11, i64 24}
!26 = !{!"graphdef", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !27, i64 56, !27, i64 60, !27, i64 64, !27, i64 68, !27, 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}
!27 = !{!"int", !7, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"double", !7, i64 0}
!30 = !{!31, !29, i64 0}
!31 = !{!"", !29, i64 0, !6, i64 8}
!32 = !{!31, !6, i64 8}
!33 = distinct !{!33, !20}
!34 = distinct !{!34, !20}
!35 = !{!26, !11, i64 16}
!36 = !{!26, !11, i64 40}
!37 = !{!26, !11, i64 48}
!38 = !{!26, !6, i64 0}
!39 = distinct !{!39, !20}
!40 = !{!10, !6, i64 8}
!41 = !{!10, !6, i64 16}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass