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

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

@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 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

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

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

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

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

declare void @libmetis__InitRandom(i64 noundef) #1

declare void @libmetis__AllocateWorkSpace(ptr noundef, ptr noundef, i64 noundef) #1

declare void @libmetis__InitTimers(ptr noundef) #1

declare double @gk_CPUSeconds() #1

declare void @libmetis__PrintTimers(ptr noundef) #1

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

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

31:                                               ; preds = %8
  %32 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 2
  store i64 3, ptr %32, align 8, !tbaa !11
  %33 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 3
  store i64 1, ptr %33, align 8, !tbaa !16
  %34 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 4
  store i64 2, ptr %34, align 8, !tbaa !17
  %35 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 1
  store i64 0, ptr %35, align 8, !tbaa !18
  %36 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 10
  store i64 1, ptr %36, align 8, !tbaa !19
  %37 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 8
  store i64 -1, ptr %37, align 8, !tbaa !20
  %38 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 9
  store i64 1, ptr %38, align 8, !tbaa !21
  br label %68

39:                                               ; preds = %8
  %40 = load ptr, ptr %13, align 8, !tbaa !9
  %41 = getelementptr inbounds i64, ptr %40, i64 1
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 2
  store i64 %42, ptr %43, align 8, !tbaa !11
  %44 = load ptr, ptr %13, align 8, !tbaa !9
  %45 = getelementptr inbounds i64, ptr %44, i64 2
  %46 = load i64, ptr %45, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 3
  store i64 %46, ptr %47, align 8, !tbaa !16
  %48 = load ptr, ptr %13, align 8, !tbaa !9
  %49 = getelementptr inbounds i64, ptr %48, i64 3
  %50 = load i64, ptr %49, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 4
  store i64 %50, ptr %51, align 8, !tbaa !17
  %52 = load ptr, ptr %13, align 8, !tbaa !9
  %53 = getelementptr inbounds i64, ptr %52, i64 4
  %54 = load i64, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 1
  store i64 %54, ptr %55, align 8, !tbaa !18
  %56 = load ptr, ptr %13, align 8, !tbaa !9
  %57 = getelementptr inbounds i64, ptr %56, i64 5
  %58 = load i64, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 10
  store i64 %58, ptr %59, align 8, !tbaa !19
  %60 = load ptr, ptr %13, align 8, !tbaa !9
  %61 = getelementptr inbounds i64, ptr %60, i64 6
  %62 = load i64, ptr %61, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 8
  store i64 %62, ptr %63, align 8, !tbaa !20
  %64 = load ptr, ptr %13, align 8, !tbaa !9
  %65 = getelementptr inbounds i64, ptr %64, i64 7
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 9
  store i64 %66, ptr %67, align 8, !tbaa !21
  br label %68

68:                                               ; preds = %39, %31
  %69 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 9
  %70 = load i64, ptr %69, align 8, !tbaa !21
  %71 = icmp slt i64 %70, 1
  br i1 %71, label %72, label %74

72:                                               ; preds = %68
  %73 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 9
  store i64 1, ptr %73, align 8, !tbaa !21
  br label %74

74:                                               ; preds = %72, %68
  %75 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 7
  store i64 4, ptr %75, align 8, !tbaa !22
  %76 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 0
  store i64 100, ptr %76, align 8, !tbaa !23
  %77 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !18
  %79 = and i64 %78, 1
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %74
  call void @libmetis__InitTimers(ptr noundef %24)
  br label %82

82:                                               ; preds = %81, %74
  %83 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 1
  %84 = load i64, ptr %83, align 8, !tbaa !18
  %85 = and i64 %84, 1
  %86 = icmp ne i64 %85, 0
  br i1 %86, label %87, label %92

87:                                               ; preds = %82
  %88 = call double @gk_CPUSeconds()
  %89 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 12
  %90 = load double, ptr %89, align 8, !tbaa !24
  %91 = fsub double %90, %88
  store double %91, ptr %89, align 8, !tbaa !24
  br label %92

92:                                               ; preds = %87, %82
  call void @libmetis__InitRandom(i64 noundef -1)
  %93 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 10
  %94 = load i64, ptr %93, align 8, !tbaa !19
  %95 = and i64 %94, 1
  %96 = icmp ne i64 %95, 0
  br i1 %96, label %97, label %133

97:                                               ; preds = %92
  %98 = load i64, ptr %9, align 8, !tbaa !5
  %99 = add nsw i64 %98, 1
  %100 = call ptr @libmetis__idxmalloc(i64 noundef %99, ptr noundef @.str.1)
  store ptr %100, ptr %25, align 8, !tbaa !9
  %101 = load i64, ptr %9, align 8, !tbaa !5
  %102 = call ptr @libmetis__idxmalloc(i64 noundef %101, ptr noundef @.str.2)
  store ptr %102, ptr %26, align 8, !tbaa !9
  %103 = load i64, ptr %9, align 8, !tbaa !5
  %104 = load ptr, ptr %10, align 8, !tbaa !9
  %105 = load ptr, ptr %11, align 8, !tbaa !9
  %106 = load ptr, ptr %25, align 8, !tbaa !9
  %107 = load ptr, ptr %26, align 8, !tbaa !9
  call void @libmetis__CompressGraph(ptr noundef %24, ptr noundef %23, i64 noundef %103, ptr noundef %104, ptr noundef %105, ptr noundef %106, ptr noundef %107)
  %108 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 0
  %109 = load i64, ptr %108, align 8, !tbaa !25
  %110 = sitofp i64 %109 to double
  %111 = load i64, ptr %9, align 8, !tbaa !5
  %112 = sitofp i64 %111 to double
  %113 = fmul double 8.500000e-01, %112
  %114 = fcmp oge double %110, %113
  br i1 %114, label %115, label %119

115:                                              ; preds = %97
  %116 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 10
  %117 = load i64, ptr %116, align 8, !tbaa !19
  %118 = add nsw i64 %117, -1
  store i64 %118, ptr %116, align 8, !tbaa !19
  call void (ptr, ...) @gk_free(ptr noundef %25, ptr noundef %26, ptr noundef null)
  br label %132

119:                                              ; preds = %97
  %120 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 0
  %121 = load i64, ptr %120, align 8, !tbaa !25
  %122 = mul nsw i64 2, %121
  %123 = load i64, ptr %9, align 8, !tbaa !5
  %124 = icmp slt i64 %122, %123
  br i1 %124, label %125, label %131

125:                                              ; preds = %119
  %126 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 9
  %127 = load i64, ptr %126, align 8, !tbaa !21
  %128 = icmp eq i64 %127, 1
  br i1 %128, label %129, label %131

129:                                              ; preds = %125
  %130 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 9
  store i64 2, ptr %130, align 8, !tbaa !21
  br label %131

131:                                              ; preds = %129, %125, %119
  br label %132

132:                                              ; preds = %131, %115
  br label %137

133:                                              ; preds = %92
  %134 = load i64, ptr %9, align 8, !tbaa !5
  %135 = load ptr, ptr %10, align 8, !tbaa !9
  %136 = load ptr, ptr %11, align 8, !tbaa !9
  call void @libmetis__SetUpGraph(ptr noundef %23, i64 noundef 4, i64 noundef %134, i64 noundef 1, ptr noundef %135, ptr noundef %136, ptr noundef null, ptr noundef null, i64 noundef 0)
  br label %137

137:                                              ; preds = %133, %132
  %138 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 0
  %139 = load i64, ptr %138, align 8, !tbaa !25
  %140 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 3
  %141 = load ptr, ptr %140, align 8, !tbaa !28
  %142 = call i64 @libmetis__idxsum(i64 noundef %139, ptr noundef %141, i64 noundef 1)
  %143 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 0
  %144 = load i64, ptr %143, align 8, !tbaa !23
  %145 = sdiv i64 %142, %144
  %146 = sitofp i64 %145 to double
  %147 = fmul double 1.500000e+00, %146
  %148 = fptosi double %147 to i64
  %149 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 5
  store i64 %148, ptr %149, align 8, !tbaa !29
  call void @libmetis__AllocateWorkSpace(ptr noundef %24, ptr noundef %23, i64 noundef 2)
  %150 = load i64, ptr %12, align 8, !tbaa !5
  %151 = mul nsw i64 2, %150
  %152 = sub nsw i64 %151, 1
  %153 = load ptr, ptr %16, align 8, !tbaa !9
  %154 = call ptr @libmetis__idxset(i64 noundef %152, i64 noundef 0, ptr noundef %153)
  %155 = load ptr, ptr %15, align 8, !tbaa !9
  %156 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 0
  %157 = load i64, ptr %156, align 8, !tbaa !25
  %158 = load i64, ptr %12, align 8, !tbaa !5
  %159 = load ptr, ptr %16, align 8, !tbaa !9
  call void @libmetis__MlevelNestedDissectionP(ptr noundef %24, ptr noundef %23, ptr noundef %155, i64 noundef %157, i64 noundef %158, i64 noundef 0, ptr noundef %159)
  call void @libmetis__FreeWorkSpace(ptr noundef %24, ptr noundef %23)
  %160 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 10
  %161 = load i64, ptr %160, align 8, !tbaa !19
  %162 = and i64 %161, 1
  %163 = icmp ne i64 %162, 0
  br i1 %163, label %164, label %230

164:                                              ; preds = %137
  %165 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 0
  %166 = load i64, ptr %165, align 8, !tbaa !25
  %167 = sitofp i64 %166 to double
  %168 = load i64, ptr %9, align 8, !tbaa !5
  %169 = sitofp i64 %168 to double
  %170 = fmul double 8.500000e-01, %169
  %171 = fcmp olt double %167, %170
  br i1 %171, label %172, label %229

172:                                              ; preds = %164
  store i64 0, ptr %17, align 8, !tbaa !5
  br label %173

173:                                              ; preds = %186, %172
  %174 = load i64, ptr %17, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 0
  %176 = load i64, ptr %175, align 8, !tbaa !25
  %177 = icmp slt i64 %174, %176
  br i1 %177, label %178, label %189

178:                                              ; preds = %173
  %179 = load i64, ptr %17, align 8, !tbaa !5
  %180 = load ptr, ptr %14, align 8, !tbaa !9
  %181 = load ptr, ptr %15, align 8, !tbaa !9
  %182 = load i64, ptr %17, align 8, !tbaa !5
  %183 = getelementptr inbounds i64, ptr %181, i64 %182
  %184 = load i64, ptr %183, align 8, !tbaa !5
  %185 = getelementptr inbounds i64, ptr %180, i64 %184
  store i64 %179, ptr %185, align 8, !tbaa !5
  br label %186

186:                                              ; preds = %178
  %187 = load i64, ptr %17, align 8, !tbaa !5
  %188 = add nsw i64 %187, 1
  store i64 %188, ptr %17, align 8, !tbaa !5
  br label %173, !llvm.loop !30

189:                                              ; preds = %173
  store i64 0, ptr %18, align 8, !tbaa !5
  store i64 0, ptr %20, align 8, !tbaa !5
  br label %190

190:                                              ; preds = %225, %189
  %191 = load i64, ptr %18, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.graphdef, ptr %23, i32 0, i32 0
  %193 = load i64, ptr %192, align 8, !tbaa !25
  %194 = icmp slt i64 %191, %193
  br i1 %194, label %195, label %228

195:                                              ; preds = %190
  %196 = load ptr, ptr %14, align 8, !tbaa !9
  %197 = load i64, ptr %18, align 8, !tbaa !5
  %198 = getelementptr inbounds i64, ptr %196, i64 %197
  %199 = load i64, ptr %198, align 8, !tbaa !5
  store i64 %199, ptr %17, align 8, !tbaa !5
  %200 = load ptr, ptr %25, align 8, !tbaa !9
  %201 = load i64, ptr %17, align 8, !tbaa !5
  %202 = getelementptr inbounds i64, ptr %200, i64 %201
  %203 = load i64, ptr %202, align 8, !tbaa !5
  store i64 %203, ptr %19, align 8, !tbaa !5
  br label %204

204:                                              ; preds = %221, %195
  %205 = load i64, ptr %19, align 8, !tbaa !5
  %206 = load ptr, ptr %25, align 8, !tbaa !9
  %207 = load i64, ptr %17, align 8, !tbaa !5
  %208 = add nsw i64 %207, 1
  %209 = getelementptr inbounds i64, ptr %206, i64 %208
  %210 = load i64, ptr %209, align 8, !tbaa !5
  %211 = icmp slt i64 %205, %210
  br i1 %211, label %212, label %224

212:                                              ; preds = %204
  %213 = load i64, ptr %20, align 8, !tbaa !5
  %214 = add nsw i64 %213, 1
  store i64 %214, ptr %20, align 8, !tbaa !5
  %215 = load ptr, ptr %15, align 8, !tbaa !9
  %216 = load ptr, ptr %26, align 8, !tbaa !9
  %217 = load i64, ptr %19, align 8, !tbaa !5
  %218 = getelementptr inbounds i64, ptr %216, i64 %217
  %219 = load i64, ptr %218, align 8, !tbaa !5
  %220 = getelementptr inbounds i64, ptr %215, i64 %219
  store i64 %213, ptr %220, align 8, !tbaa !5
  br label %221

221:                                              ; preds = %212
  %222 = load i64, ptr %19, align 8, !tbaa !5
  %223 = add nsw i64 %222, 1
  store i64 %223, ptr %19, align 8, !tbaa !5
  br label %204, !llvm.loop !32

224:                                              ; preds = %204
  br label %225

225:                                              ; preds = %224
  %226 = load i64, ptr %18, align 8, !tbaa !5
  %227 = add nsw i64 %226, 1
  store i64 %227, ptr %18, align 8, !tbaa !5
  br label %190, !llvm.loop !33

228:                                              ; preds = %190
  br label %229

229:                                              ; preds = %228, %164
  call void (ptr, ...) @gk_free(ptr noundef %25, ptr noundef %26, ptr noundef null)
  br label %230

230:                                              ; preds = %229, %137
  store i64 0, ptr %17, align 8, !tbaa !5
  br label %231

231:                                              ; preds = %243, %230
  %232 = load i64, ptr %17, align 8, !tbaa !5
  %233 = load i64, ptr %9, align 8, !tbaa !5
  %234 = icmp slt i64 %232, %233
  br i1 %234, label %235, label %246

235:                                              ; preds = %231
  %236 = load i64, ptr %17, align 8, !tbaa !5
  %237 = load ptr, ptr %14, align 8, !tbaa !9
  %238 = load ptr, ptr %15, align 8, !tbaa !9
  %239 = load i64, ptr %17, align 8, !tbaa !5
  %240 = getelementptr inbounds i64, ptr %238, i64 %239
  %241 = load i64, ptr %240, align 8, !tbaa !5
  %242 = getelementptr inbounds i64, ptr %237, i64 %241
  store i64 %236, ptr %242, align 8, !tbaa !5
  br label %243

243:                                              ; preds = %235
  %244 = load i64, ptr %17, align 8, !tbaa !5
  %245 = add nsw i64 %244, 1
  store i64 %245, ptr %17, align 8, !tbaa !5
  br label %231, !llvm.loop !34

246:                                              ; preds = %231
  %247 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 1
  %248 = load i64, ptr %247, align 8, !tbaa !18
  %249 = and i64 %248, 1
  %250 = icmp ne i64 %249, 0
  br i1 %250, label %251, label %256

251:                                              ; preds = %246
  %252 = call double @gk_CPUSeconds()
  %253 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 12
  %254 = load double, ptr %253, align 8, !tbaa !24
  %255 = fadd double %254, %252
  store double %255, ptr %253, align 8, !tbaa !24
  br label %256

256:                                              ; preds = %251, %246
  %257 = getelementptr inbounds %struct.controldef, ptr %24, i32 0, i32 1
  %258 = load i64, ptr %257, align 8, !tbaa !18
  %259 = and i64 %258, 1
  %260 = icmp ne i64 %259, 0
  br i1 %260, label %261, label %262

261:                                              ; preds = %256
  call void @libmetis__PrintTimers(ptr noundef %24)
  br label %262

262:                                              ; preds = %261, %256
  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 280, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 248, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  ret void
}

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

declare void @libmetis__CompressGraph(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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

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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"controldef", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !14, i64 88, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !15, i64 200, !15, i64 208, !15, i64 216, !15, i64 224, !15, i64 232, !15, i64 240, !15, i64 248, !15, i64 256, !15, i64 264, !15, i64 272}
!13 = !{!"float", !7, i64 0}
!14 = !{!"workspacedef", !10, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !10, i64 56}
!15 = !{!"double", !7, i64 0}
!16 = !{!12, !6, i64 24}
!17 = !{!12, !6, i64 32}
!18 = !{!12, !6, i64 8}
!19 = !{!12, !6, i64 80}
!20 = !{!12, !6, i64 64}
!21 = !{!12, !6, i64 72}
!22 = !{!12, !6, i64 56}
!23 = !{!12, !6, i64 0}
!24 = !{!12, !15, i64 152}
!25 = !{!26, !6, i64 0}
!26 = !{!"graphdef", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !27, i64 56, !27, i64 60, !27, i64 64, !27, i64 68, !27, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !6, i64 112, !6, i64 120, !10, i64 128, !10, i64 136, !6, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !6, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240}
!27 = !{!"int", !7, i64 0}
!28 = !{!26, !10, i64 24}
!29 = !{!12, !6, i64 40}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = distinct !{!33, !31}
!34 = distinct !{!34, !31}


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

@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 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

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

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

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 #1

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

declare void @libmetis__InitRandom(i64 noundef) local_unnamed_addr #1

declare void @libmetis__AllocateWorkSpace(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare void @libmetis__InitTimers(ptr noundef) local_unnamed_addr #1

declare double @gk_CPUSeconds() local_unnamed_addr #1

declare void @libmetis__PrintTimers(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @METIS_NodeNDP(i64 noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #2 {
  %9 = alloca %struct.graphdef, align 8
  %10 = alloca %struct.controldef, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 280, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %13 = load i64, ptr %4, align 8, !tbaa !5
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %28, label %15

15:                                               ; preds = %8
  %16 = getelementptr inbounds i8, ptr %4, i64 8
  %17 = load <2 x i64>, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %4, i64 24
  %19 = load i64, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %4, i64 32
  %21 = load i64, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %4, i64 40
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %4, i64 48
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %4, i64 56
  %27 = load i64, ptr %26, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %8, %15
  %.sink75 = phi i64 [ %19, %15 ], [ 2, %8 ]
  %29 = phi i64 [ %21, %15 ], [ 0, %8 ]
  %.sink73 = phi i64 [ %23, %15 ], [ 1, %8 ]
  %.sink72 = phi i64 [ %25, %15 ], [ -1, %8 ]
  %.sink = phi i64 [ %27, %15 ], [ 1, %8 ]
  %30 = phi <2 x i64> [ %17, %15 ], [ <i64 3, i64 1>, %8 ]
  %31 = getelementptr inbounds i8, ptr %10, i64 16
  store <2 x i64> %30, ptr %31, align 8
  %32 = getelementptr inbounds i8, ptr %10, i64 32
  store i64 %.sink75, ptr %32, align 8
  %33 = getelementptr inbounds i8, ptr %10, i64 8
  store i64 %29, ptr %33, align 8
  %34 = getelementptr inbounds i8, ptr %10, i64 80
  store i64 %.sink73, ptr %34, align 8
  %35 = getelementptr inbounds i8, ptr %10, i64 64
  store i64 %.sink72, ptr %35, align 8
  %36 = getelementptr inbounds i8, ptr %10, i64 72
  %spec.select = tail call i64 @llvm.smax.i64(i64 %.sink, i64 1)
  store i64 %spec.select, ptr %36, align 8
  %37 = getelementptr inbounds i8, ptr %10, i64 56
  store i64 4, ptr %37, align 8, !tbaa !9
  store i64 100, ptr %10, align 8, !tbaa !15
  %38 = and i64 %29, 1
  %.not = icmp eq i64 %38, 0
  br i1 %.not, label %.thread, label %39

39:                                               ; preds = %28
  call void @libmetis__InitTimers(ptr noundef nonnull %10) #4
  %.pre = load i64, ptr %33, align 8, !tbaa !16
  %.pre79 = and i64 %.pre, 1
  %40 = icmp eq i64 %.pre79, 0
  br i1 %40, label %.thread, label %41

41:                                               ; preds = %39
  %42 = call double @gk_CPUSeconds() #4
  %43 = getelementptr inbounds i8, ptr %10, i64 152
  %44 = load double, ptr %43, align 8, !tbaa !17
  %45 = fsub double %44, %42
  store double %45, ptr %43, align 8, !tbaa !17
  br label %.thread

.thread:                                          ; preds = %28, %41, %39
  call void @libmetis__InitRandom(i64 noundef -1) #4
  %46 = load i64, ptr %34, align 8, !tbaa !18
  %47 = and i64 %46, 1
  %.not54 = icmp eq i64 %47, 0
  br i1 %.not54, label %67, label %48

48:                                               ; preds = %.thread
  %49 = add nsw i64 %0, 1
  %50 = call ptr @libmetis__idxmalloc(i64 noundef %49, ptr noundef nonnull @.str.1) #4
  store ptr %50, ptr %11, align 8, !tbaa !19
  %51 = call ptr @libmetis__idxmalloc(i64 noundef %0, ptr noundef nonnull @.str.2) #4
  store ptr %51, ptr %12, align 8, !tbaa !19
  %52 = load ptr, ptr %11, align 8, !tbaa !19
  call void @libmetis__CompressGraph(ptr noundef nonnull %10, ptr noundef nonnull %9, i64 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %52, ptr noundef %51) #4
  %53 = load i64, ptr %9, align 8, !tbaa !20
  %54 = sitofp i64 %53 to double
  %55 = sitofp i64 %0 to double
  %56 = fmul double %55, 8.500000e-01
  %57 = fcmp ugt double %56, %54
  br i1 %57, label %61, label %58

58:                                               ; preds = %48
  %59 = load i64, ptr %34, align 8, !tbaa !18
  %60 = add nsw i64 %59, -1
  store i64 %60, ptr %34, align 8, !tbaa !18
  call void (ptr, ...) @gk_free(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef null) #4
  br label %68

61:                                               ; preds = %48
  %62 = shl nsw i64 %53, 1
  %63 = icmp slt i64 %62, %0
  %64 = load i64, ptr %36, align 8
  %65 = icmp eq i64 %64, 1
  %or.cond = select i1 %63, i1 %65, i1 false
  br i1 %or.cond, label %66, label %68

66:                                               ; preds = %61
  store i64 2, ptr %36, align 8, !tbaa !23
  br label %68

67:                                               ; preds = %.thread
  call void @libmetis__SetUpGraph(ptr noundef nonnull %9, i64 noundef 4, i64 noundef %0, i64 noundef 1, ptr noundef %1, ptr noundef %2, ptr noundef null, ptr noundef null, i64 noundef 0) #4
  br label %68

68:                                               ; preds = %58, %66, %61, %67
  %69 = load i64, ptr %9, align 8, !tbaa !20
  %70 = getelementptr inbounds i8, ptr %9, i64 24
  %71 = load ptr, ptr %70, align 8, !tbaa !24
  %72 = call i64 @libmetis__idxsum(i64 noundef %69, ptr noundef %71, i64 noundef 1) #4
  %73 = load i64, ptr %10, align 8, !tbaa !15
  %74 = sdiv i64 %72, %73
  %75 = sitofp i64 %74 to double
  %76 = fmul double %75, 1.500000e+00
  %77 = fptosi double %76 to i64
  %78 = getelementptr inbounds i8, ptr %10, i64 40
  store i64 %77, ptr %78, align 8, !tbaa !25
  call void @libmetis__AllocateWorkSpace(ptr noundef nonnull %10, ptr noundef nonnull %9, i64 noundef 2) #4
  %79 = shl nsw i64 %3, 1
  %80 = add nsw i64 %79, -1
  %81 = call ptr @libmetis__idxset(i64 noundef %80, i64 noundef 0, ptr noundef %7) #4
  %82 = load i64, ptr %9, align 8, !tbaa !20
  call void @libmetis__MlevelNestedDissectionP(ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef %6, i64 noundef %82, i64 noundef %3, i64 noundef 0, ptr noundef %7)
  call void @libmetis__FreeWorkSpace(ptr noundef nonnull %10, ptr noundef nonnull %9) #4
  %83 = load i64, ptr %34, align 8, !tbaa !18
  %84 = and i64 %83, 1
  %.not55 = icmp eq i64 %84, 0
  br i1 %.not55, label %131, label %85

85:                                               ; preds = %68
  %86 = load i64, ptr %9, align 8, !tbaa !20
  %87 = sitofp i64 %86 to double
  %88 = sitofp i64 %0 to double
  %89 = fmul double %88, 8.500000e-01
  %90 = fcmp ogt double %89, %87
  br i1 %90, label %.preheader58, label %.loopexit

.preheader58:                                     ; preds = %85
  %91 = icmp sgt i64 %86, 0
  br i1 %91, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.preheader58
  %xtraiter = and i64 %86, 3
  %92 = icmp ult i64 %86, 4
  br i1 %92, label %.preheader.unr-lcssa, label %.lr.ph.preheader.new

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

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

.lr.ph.epil:                                      ; preds = %.preheader.unr-lcssa, %.lr.ph.epil
  %.059.epil = phi i64 [ %96, %.lr.ph.epil ], [ %.059.unr, %.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader.unr-lcssa ]
  %93 = getelementptr inbounds i64, ptr %6, i64 %.059.epil
  %94 = load i64, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds i64, ptr %5, i64 %94
  store i64 %.059.epil, ptr %95, align 8, !tbaa !5
  %96 = add nuw nsw i64 %.059.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 %.preheader, label %.lr.ph.epil, !llvm.loop !26

.preheader:                                       ; preds = %.lr.ph.epil, %.preheader.unr-lcssa
  br i1 %91, label %.lr.ph65, label %.loopexit

.lr.ph65:                                         ; preds = %.preheader
  %97 = load ptr, ptr %11, align 8, !tbaa !19
  %98 = load ptr, ptr %12, align 8
  br label %115

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.059 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %114, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %99 = getelementptr inbounds i64, ptr %6, i64 %.059
  %100 = load i64, ptr %99, align 8, !tbaa !5
  %101 = getelementptr inbounds i64, ptr %5, i64 %100
  store i64 %.059, ptr %101, align 8, !tbaa !5
  %102 = or disjoint i64 %.059, 1
  %103 = getelementptr inbounds i64, ptr %6, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !5
  %105 = getelementptr inbounds i64, ptr %5, i64 %104
  store i64 %102, ptr %105, align 8, !tbaa !5
  %106 = or disjoint i64 %.059, 2
  %107 = getelementptr inbounds i64, ptr %6, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !5
  %109 = getelementptr inbounds i64, ptr %5, i64 %108
  store i64 %106, ptr %109, align 8, !tbaa !5
  %110 = or disjoint i64 %.059, 3
  %111 = getelementptr inbounds i64, ptr %6, i64 %110
  %112 = load i64, ptr %111, align 8, !tbaa !5
  %113 = getelementptr inbounds i64, ptr %5, i64 %112
  store i64 %110, ptr %113, align 8, !tbaa !5
  %114 = add nuw nsw i64 %.059, 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 %.preheader.unr-lcssa, label %.lr.ph, !llvm.loop !28

115:                                              ; preds = %.lr.ph65, %._crit_edge
  %.04964 = phi i64 [ 0, %.lr.ph65 ], [ %130, %._crit_edge ]
  %.05063 = phi i64 [ 0, %.lr.ph65 ], [ %.151.lcssa, %._crit_edge ]
  %116 = getelementptr inbounds i64, ptr %5, i64 %.04964
  %117 = load i64, ptr %116, align 8, !tbaa !5
  %118 = getelementptr inbounds i64, ptr %97, i64 %117
  %119 = load i64, ptr %118, align 8, !tbaa !5
  %120 = getelementptr i8, ptr %118, i64 8
  %121 = load i64, ptr %120, align 8, !tbaa !5
  %122 = icmp slt i64 %119, %121
  br i1 %122, label %.lr.ph62, label %._crit_edge

.lr.ph62:                                         ; preds = %115, %.lr.ph62
  %.15161 = phi i64 [ %123, %.lr.ph62 ], [ %.05063, %115 ]
  %.05260 = phi i64 [ %127, %.lr.ph62 ], [ %119, %115 ]
  %123 = add nsw i64 %.15161, 1
  %124 = getelementptr inbounds i64, ptr %98, i64 %.05260
  %125 = load i64, ptr %124, align 8, !tbaa !5
  %126 = getelementptr inbounds i64, ptr %6, i64 %125
  store i64 %.15161, ptr %126, align 8, !tbaa !5
  %127 = add nsw i64 %.05260, 1
  %128 = load i64, ptr %120, align 8, !tbaa !5
  %129 = icmp slt i64 %127, %128
  br i1 %129, label %.lr.ph62, label %._crit_edge, !llvm.loop !30

._crit_edge:                                      ; preds = %.lr.ph62, %115
  %.151.lcssa = phi i64 [ %.05063, %115 ], [ %123, %.lr.ph62 ]
  %130 = add nuw nsw i64 %.04964, 1
  %exitcond70.not = icmp eq i64 %130, %86
  br i1 %exitcond70.not, label %.loopexit, label %115, !llvm.loop !31

.loopexit:                                        ; preds = %._crit_edge, %.preheader58, %.preheader, %85
  call void (ptr, ...) @gk_free(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef null) #4
  br label %131

131:                                              ; preds = %.loopexit, %68
  %132 = icmp sgt i64 %0, 0
  br i1 %132, label %.lr.ph68.preheader, label %._crit_edge69

.lr.ph68.preheader:                               ; preds = %131
  %xtraiter85 = and i64 %0, 3
  %133 = icmp ult i64 %0, 4
  br i1 %133, label %._crit_edge69.loopexit.unr-lcssa, label %.lr.ph68.preheader.new

.lr.ph68.preheader.new:                           ; preds = %.lr.ph68.preheader
  %unroll_iter88 = and i64 %0, 9223372036854775804
  br label %.lr.ph68

.lr.ph68:                                         ; preds = %.lr.ph68, %.lr.ph68.preheader.new
  %.166 = phi i64 [ 0, %.lr.ph68.preheader.new ], [ %149, %.lr.ph68 ]
  %niter89 = phi i64 [ 0, %.lr.ph68.preheader.new ], [ %niter89.next.3, %.lr.ph68 ]
  %134 = getelementptr inbounds i64, ptr %6, i64 %.166
  %135 = load i64, ptr %134, align 8, !tbaa !5
  %136 = getelementptr inbounds i64, ptr %5, i64 %135
  store i64 %.166, ptr %136, align 8, !tbaa !5
  %137 = or disjoint i64 %.166, 1
  %138 = getelementptr inbounds i64, ptr %6, i64 %137
  %139 = load i64, ptr %138, align 8, !tbaa !5
  %140 = getelementptr inbounds i64, ptr %5, i64 %139
  store i64 %137, ptr %140, align 8, !tbaa !5
  %141 = or disjoint i64 %.166, 2
  %142 = getelementptr inbounds i64, ptr %6, i64 %141
  %143 = load i64, ptr %142, align 8, !tbaa !5
  %144 = getelementptr inbounds i64, ptr %5, i64 %143
  store i64 %141, ptr %144, align 8, !tbaa !5
  %145 = or disjoint i64 %.166, 3
  %146 = getelementptr inbounds i64, ptr %6, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !5
  %148 = getelementptr inbounds i64, ptr %5, i64 %147
  store i64 %145, ptr %148, align 8, !tbaa !5
  %149 = add nuw nsw i64 %.166, 4
  %niter89.next.3 = add i64 %niter89, 4
  %niter89.ncmp.3 = icmp eq i64 %niter89.next.3, %unroll_iter88
  br i1 %niter89.ncmp.3, label %._crit_edge69.loopexit.unr-lcssa, label %.lr.ph68, !llvm.loop !32

._crit_edge69.loopexit.unr-lcssa:                 ; preds = %.lr.ph68, %.lr.ph68.preheader
  %.166.unr = phi i64 [ 0, %.lr.ph68.preheader ], [ %149, %.lr.ph68 ]
  %lcmp.mod87.not = icmp eq i64 %xtraiter85, 0
  br i1 %lcmp.mod87.not, label %._crit_edge69, label %.lr.ph68.epil

.lr.ph68.epil:                                    ; preds = %._crit_edge69.loopexit.unr-lcssa, %.lr.ph68.epil
  %.166.epil = phi i64 [ %153, %.lr.ph68.epil ], [ %.166.unr, %._crit_edge69.loopexit.unr-lcssa ]
  %epil.iter86 = phi i64 [ %epil.iter86.next, %.lr.ph68.epil ], [ 0, %._crit_edge69.loopexit.unr-lcssa ]
  %150 = getelementptr inbounds i64, ptr %6, i64 %.166.epil
  %151 = load i64, ptr %150, align 8, !tbaa !5
  %152 = getelementptr inbounds i64, ptr %5, i64 %151
  store i64 %.166.epil, ptr %152, align 8, !tbaa !5
  %153 = add nuw nsw i64 %.166.epil, 1
  %epil.iter86.next = add i64 %epil.iter86, 1
  %epil.iter86.cmp.not = icmp eq i64 %epil.iter86.next, %xtraiter85
  br i1 %epil.iter86.cmp.not, label %._crit_edge69, label %.lr.ph68.epil, !llvm.loop !33

._crit_edge69:                                    ; preds = %._crit_edge69.loopexit.unr-lcssa, %.lr.ph68.epil, %131
  %154 = load i64, ptr %33, align 8, !tbaa !16
  %155 = and i64 %154, 1
  %.not56 = icmp eq i64 %155, 0
  br i1 %.not56, label %.thread83, label %156

156:                                              ; preds = %._crit_edge69
  %157 = call double @gk_CPUSeconds() #4
  %158 = getelementptr inbounds i8, ptr %10, i64 152
  %159 = load double, ptr %158, align 8, !tbaa !17
  %160 = fadd double %157, %159
  store double %160, ptr %158, align 8, !tbaa !17
  %.pre78 = load i64, ptr %33, align 8, !tbaa !16
  %.pre80 = and i64 %.pre78, 1
  %161 = icmp eq i64 %.pre80, 0
  br i1 %161, label %.thread83, label %162

162:                                              ; preds = %156
  call void @libmetis__PrintTimers(ptr noundef nonnull %10) #4
  br label %.thread83

.thread83:                                        ; preds = %._crit_edge69, %162, %156
  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 280, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %9) #4
  ret void
}

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

declare void @libmetis__CompressGraph(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #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 nosync nounwind speculatable willreturn memory(none) }
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 56}
!10 = !{!"controldef", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !12, i64 88, !14, i64 152, !14, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !14, i64 224, !14, i64 232, !14, i64 240, !14, i64 248, !14, i64 256, !14, i64 264, !14, i64 272}
!11 = !{!"float", !7, i64 0}
!12 = !{!"workspacedef", !13, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !13, i64 32, !6, i64 40, !13, i64 48, !13, i64 56}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!10, !6, i64 0}
!16 = !{!10, !6, i64 8}
!17 = !{!10, !14, i64 152}
!18 = !{!10, !6, i64 80}
!19 = !{!13, !13, i64 0}
!20 = !{!21, !6, i64 0}
!21 = !{!"graphdef", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !22, i64 56, !22, i64 60, !22, i64 64, !22, i64 68, !22, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !6, i64 112, !6, i64 120, !13, i64 128, !13, i64 136, !6, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !6, i64 208, !13, i64 216, !13, i64 224, !13, i64 232, !13, i64 240}
!22 = !{!"int", !7, i64 0}
!23 = !{!10, !6, i64 72}
!24 = !{!21, !13, i64 24}
!25 = !{!10, !6, i64 40}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.unroll.disable"}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}
!32 = distinct !{!32, !29}
!33 = distinct !{!33, !27}


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