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

; 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.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.ctrl_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, float, ptr, ptr, ptr, float, double, double, double, double, double, double, double, double, double, double, double, double, ptr, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.graph_t = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@gk_jbufs = external thread_local global [0 x [1 x %struct.__jmp_buf_tag]], align 8
@gk_cur_jbufs = external thread_local global i32, align 4
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [139 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [46 x i8], align 1
@__PRETTY_FUNCTION__.METIS_NodeND = external hidden unnamed_addr constant [80 x i8], align 1

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

32:                                               ; preds = %7
  store i32 -3, ptr %8, align 4
  store i32 1, ptr %29, align 4
  br label %407

33:                                               ; preds = %7
  %34 = call i32 (...) @gk_sigtrap()
  %35 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @gk_jbufs)
  %36 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @gk_cur_jbufs)
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [0 x [1 x %struct.__jmp_buf_tag]], ptr %35, i64 0, i64 %38
  %40 = getelementptr inbounds [1 x %struct.__jmp_buf_tag], ptr %39, i64 0, i64 0
  %41 = call i32 @_setjmp(ptr noundef %40) #7
  store i32 %41, ptr %16, align 4, !tbaa !9
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %44

43:                                               ; preds = %33
  br label %393

44:                                               ; preds = %33
  %45 = load ptr, ptr %13, align 8, !tbaa !5
  %46 = call ptr @libmetis__SetupCtrl(i32 noundef 2, ptr noundef %45, i32 noundef 1, i32 noundef 3, ptr noundef null, ptr noundef null)
  store ptr %46, ptr %24, align 8, !tbaa !5
  %47 = load ptr, ptr %24, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %51, label %49

49:                                               ; preds = %44
  %50 = call i32 (...) @gk_siguntrap()
  store i32 -2, ptr %8, align 4
  store i32 1, ptr %29, align 4
  br label %407

51:                                               ; preds = %44
  %52 = load ptr, ptr %24, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.ctrl_t, ptr %52, i32 0, i32 18
  %54 = load i32, ptr %53, align 8, !tbaa !11
  %55 = icmp eq i32 %54, 1
  br i1 %55, label %56, label %61

56:                                               ; preds = %51
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load i32, ptr %57, align 4, !tbaa !9
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  call void @libmetis__Change2CNumbering(i32 noundef %58, ptr noundef %59, ptr noundef %60)
  store i32 1, ptr %17, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %56, %51
  %62 = load ptr, ptr %24, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ctrl_t, ptr %62, i32 0, i32 2
  %64 = load i32, ptr %63, align 8, !tbaa !16
  %65 = and i32 %64, 2
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %69

67:                                               ; preds = %61
  %68 = load ptr, ptr %24, align 8, !tbaa !5
  call void @libmetis__InitTimers(ptr noundef %68)
  br label %69

69:                                               ; preds = %67, %61
  %70 = load ptr, ptr %24, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ctrl_t, ptr %70, i32 0, i32 2
  %72 = load i32, ptr %71, align 8, !tbaa !16
  %73 = and i32 %72, 2
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %81

75:                                               ; preds = %69
  %76 = call double @gk_CPUSeconds()
  %77 = load ptr, ptr %24, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ctrl_t, ptr %77, i32 0, i32 27
  %79 = load double, ptr %78, align 8, !tbaa !17
  %80 = fsub double %79, %76
  store double %80, ptr %78, align 8, !tbaa !17
  br label %81

81:                                               ; preds = %75, %69
  %82 = load ptr, ptr %24, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ctrl_t, ptr %82, i32 0, i32 22
  %84 = load float, ptr %83, align 8, !tbaa !18
  %85 = fpext float %84 to double
  %86 = fcmp ogt double %85, 0.000000e+00
  br i1 %86, label %87, label %115

87:                                               ; preds = %81
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = call ptr @libmetis__imalloc(i64 noundef %90, ptr noundef @.str)
  store ptr %91, ptr %27, align 8, !tbaa !5
  %92 = load ptr, ptr %24, align 8, !tbaa !5
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = load i32, ptr %93, align 4, !tbaa !9
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = load ptr, ptr %27, align 8, !tbaa !5
  %99 = load ptr, ptr %24, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.ctrl_t, ptr %99, i32 0, i32 22
  %101 = load float, ptr %100, align 8, !tbaa !18
  %102 = call ptr @libmetis__PruneGraph(ptr noundef %92, i32 noundef %94, ptr noundef %95, ptr noundef %96, ptr noundef %97, ptr noundef %98, float noundef %101)
  store ptr %102, ptr %23, align 8, !tbaa !5
  %103 = load ptr, ptr %23, align 8, !tbaa !5
  %104 = icmp eq ptr %103, null
  br i1 %104, label %105, label %108

105:                                              ; preds = %87
  call void (ptr, ...) @gk_free(ptr noundef %27, ptr noundef null)
  %106 = load ptr, ptr %24, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ctrl_t, ptr %106, i32 0, i32 22
  store float 0.000000e+00, ptr %107, align 8, !tbaa !18
  br label %114

108:                                              ; preds = %87
  %109 = load ptr, ptr %23, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.graph_t, ptr %109, i32 0, i32 0
  %111 = load i32, ptr %110, align 8, !tbaa !19
  store i32 %111, ptr %22, align 4, !tbaa !9
  %112 = load ptr, ptr %24, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.ctrl_t, ptr %112, i32 0, i32 13
  store i32 0, ptr %113, align 4, !tbaa !21
  br label %114

114:                                              ; preds = %108, %105
  br label %115

115:                                              ; preds = %114, %81
  %116 = load ptr, ptr %24, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.ctrl_t, ptr %116, i32 0, i32 13
  %118 = load i32, ptr %117, align 4, !tbaa !21
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %173

120:                                              ; preds = %115
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = load i32, ptr %121, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  %124 = sext i32 %123 to i64
  %125 = call ptr @libmetis__imalloc(i64 noundef %124, ptr noundef @.str.1)
  store ptr %125, ptr %25, align 8, !tbaa !5
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = call ptr @libmetis__imalloc(i64 noundef %128, ptr noundef @.str.2)
  store ptr %129, ptr %26, align 8, !tbaa !5
  %130 = load ptr, ptr %24, align 8, !tbaa !5
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = load ptr, ptr %25, align 8, !tbaa !5
  %137 = load ptr, ptr %26, align 8, !tbaa !5
  %138 = call ptr @libmetis__CompressGraph(ptr noundef %130, i32 noundef %132, ptr noundef %133, ptr noundef %134, ptr noundef %135, ptr noundef %136, ptr noundef %137)
  store ptr %138, ptr %23, align 8, !tbaa !5
  %139 = load ptr, ptr %23, align 8, !tbaa !5
  %140 = icmp eq ptr %139, null
  br i1 %140, label %141, label %144

141:                                              ; preds = %120
  call void (ptr, ...) @gk_free(ptr noundef %25, ptr noundef %26, ptr noundef null)
  %142 = load ptr, ptr %24, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ctrl_t, ptr %142, i32 0, i32 13
  store i32 0, ptr %143, align 4, !tbaa !21
  br label %172

144:                                              ; preds = %120
  %145 = load ptr, ptr %23, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.graph_t, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 8, !tbaa !19
  store i32 %147, ptr %22, align 4, !tbaa !9
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = load i32, ptr %148, align 4, !tbaa !9
  %150 = sitofp i32 %149 to double
  %151 = fmul double 1.000000e+00, %150
  %152 = load i32, ptr %22, align 4, !tbaa !9
  %153 = sitofp i32 %152 to double
  %154 = fdiv double %151, %153
  %155 = fptrunc double %154 to float
  %156 = load ptr, ptr %24, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.ctrl_t, ptr %156, i32 0, i32 26
  store float %155, ptr %157, align 8, !tbaa !22
  %158 = load ptr, ptr %24, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.ctrl_t, ptr %158, i32 0, i32 26
  %160 = load float, ptr %159, align 8, !tbaa !22
  %161 = fpext float %160 to double
  %162 = fcmp ogt double %161, 1.500000e+00
  br i1 %162, label %163, label %171

163:                                              ; preds = %144
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.ctrl_t, ptr %164, i32 0, i32 11
  %166 = load i32, ptr %165, align 4, !tbaa !23
  %167 = icmp eq i32 %166, 1
  br i1 %167, label %168, label %171

168:                                              ; preds = %163
  %169 = load ptr, ptr %24, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.ctrl_t, ptr %169, i32 0, i32 11
  store i32 2, ptr %170, align 4, !tbaa !23
  br label %171

171:                                              ; preds = %168, %163, %144
  br label %172

172:                                              ; preds = %171, %141
  br label %173

173:                                              ; preds = %172, %115
  %174 = load ptr, ptr %24, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.ctrl_t, ptr %174, i32 0, i32 22
  %176 = load float, ptr %175, align 8, !tbaa !18
  %177 = fpext float %176 to double
  %178 = fcmp oeq double %177, 0.000000e+00
  br i1 %178, label %179, label %192

179:                                              ; preds = %173
  %180 = load ptr, ptr %24, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.ctrl_t, ptr %180, i32 0, i32 13
  %182 = load i32, ptr %181, align 4, !tbaa !21
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %184, label %192

184:                                              ; preds = %179
  %185 = load ptr, ptr %24, align 8, !tbaa !5
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = load i32, ptr %186, align 4, !tbaa !9
  %188 = load ptr, ptr %10, align 8, !tbaa !5
  %189 = load ptr, ptr %11, align 8, !tbaa !5
  %190 = load ptr, ptr %12, align 8, !tbaa !5
  %191 = call ptr @libmetis__SetupGraph(ptr noundef %185, i32 noundef %187, i32 noundef 1, ptr noundef %188, ptr noundef %189, ptr noundef %190, ptr noundef null, ptr noundef null)
  store ptr %191, ptr %23, align 8, !tbaa !5
  br label %192

192:                                              ; preds = %184, %179, %173
  %193 = load ptr, ptr %23, align 8, !tbaa !5
  %194 = load ptr, ptr %24, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.ctrl_t, ptr %194, i32 0, i32 18
  %196 = load i32, ptr %195, align 8, !tbaa !11
  %197 = call i32 @libmetis__CheckGraph(ptr noundef %193, i32 noundef %196, i32 noundef 1)
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %210, label %199

199:                                              ; preds = %192
  %200 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 120, ptr noundef @.str.4)
  %201 = load ptr, ptr %23, align 8, !tbaa !5
  %202 = load ptr, ptr %24, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.ctrl_t, ptr %202, i32 0, i32 18
  %204 = load i32, ptr %203, align 8, !tbaa !11
  %205 = call i32 @libmetis__CheckGraph(ptr noundef %201, i32 noundef %204, i32 noundef 1)
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %207, label %208

207:                                              ; preds = %199
  br label %209

208:                                              ; preds = %199
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 120, ptr noundef @__PRETTY_FUNCTION__.METIS_NodeND) #8
  unreachable

209:                                              ; preds = %207
  br label %210

210:                                              ; preds = %209, %192
  %211 = load ptr, ptr %24, align 8, !tbaa !5
  %212 = load ptr, ptr %23, align 8, !tbaa !5
  call void @libmetis__AllocateWorkSpace(ptr noundef %211, ptr noundef %212)
  %213 = load ptr, ptr %24, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.ctrl_t, ptr %213, i32 0, i32 14
  %215 = load i32, ptr %214, align 8, !tbaa !24
  %216 = icmp ne i32 %215, 0
  br i1 %216, label %217, label %224

217:                                              ; preds = %210
  %218 = load ptr, ptr %24, align 8, !tbaa !5
  %219 = load ptr, ptr %23, align 8, !tbaa !5
  %220 = load ptr, ptr %15, align 8, !tbaa !5
  %221 = load ptr, ptr %23, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.graph_t, ptr %221, i32 0, i32 0
  %223 = load i32, ptr %222, align 8, !tbaa !19
  call void @libmetis__MlevelNestedDissectionCC(ptr noundef %218, ptr noundef %219, ptr noundef %220, i32 noundef %223)
  br label %231

224:                                              ; preds = %210
  %225 = load ptr, ptr %24, align 8, !tbaa !5
  %226 = load ptr, ptr %23, align 8, !tbaa !5
  %227 = load ptr, ptr %15, align 8, !tbaa !5
  %228 = load ptr, ptr %23, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.graph_t, ptr %228, i32 0, i32 0
  %230 = load i32, ptr %229, align 8, !tbaa !19
  call void @libmetis__MlevelNestedDissection(ptr noundef %225, ptr noundef %226, ptr noundef %227, i32 noundef %230)
  br label %231

231:                                              ; preds = %224, %217
  %232 = load ptr, ptr %24, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.ctrl_t, ptr %232, i32 0, i32 22
  %234 = load float, ptr %233, align 8, !tbaa !18
  %235 = fpext float %234 to double
  %236 = fcmp ogt double %235, 0.000000e+00
  br i1 %236, label %237, label %285

237:                                              ; preds = %231
  %238 = load i32, ptr %22, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = load ptr, ptr %15, align 8, !tbaa !5
  %241 = load ptr, ptr %14, align 8, !tbaa !5
  %242 = call ptr @libmetis__icopy(i64 noundef %239, ptr noundef %240, ptr noundef %241)
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %243

243:                                              ; preds = %261, %237
  %244 = load i32, ptr %18, align 4, !tbaa !9
  %245 = load i32, ptr %22, align 4, !tbaa !9
  %246 = icmp slt i32 %244, %245
  br i1 %246, label %247, label %264

247:                                              ; preds = %243
  %248 = load ptr, ptr %14, align 8, !tbaa !5
  %249 = load i32, ptr %18, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds i32, ptr %248, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !9
  %253 = load ptr, ptr %15, align 8, !tbaa !5
  %254 = load ptr, ptr %27, align 8, !tbaa !5
  %255 = load i32, ptr %18, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds i32, ptr %254, i64 %256
  %258 = load i32, ptr %257, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds i32, ptr %253, i64 %259
  store i32 %252, ptr %260, align 4, !tbaa !9
  br label %261

261:                                              ; preds = %247
  %262 = load i32, ptr %18, align 4, !tbaa !9
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %18, align 4, !tbaa !9
  br label %243, !llvm.loop !25

264:                                              ; preds = %243
  %265 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %265, ptr %18, align 4, !tbaa !9
  br label %266

266:                                              ; preds = %281, %264
  %267 = load i32, ptr %18, align 4, !tbaa !9
  %268 = load ptr, ptr %9, align 8, !tbaa !5
  %269 = load i32, ptr %268, align 4, !tbaa !9
  %270 = icmp slt i32 %267, %269
  br i1 %270, label %271, label %284

271:                                              ; preds = %266
  %272 = load i32, ptr %18, align 4, !tbaa !9
  %273 = load ptr, ptr %15, align 8, !tbaa !5
  %274 = load ptr, ptr %27, align 8, !tbaa !5
  %275 = load i32, ptr %18, align 4, !tbaa !9
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds i32, ptr %274, i64 %276
  %278 = load i32, ptr %277, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds i32, ptr %273, i64 %279
  store i32 %272, ptr %280, align 4, !tbaa !9
  br label %281

281:                                              ; preds = %271
  %282 = load i32, ptr %18, align 4, !tbaa !9
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %18, align 4, !tbaa !9
  br label %266, !llvm.loop !27

284:                                              ; preds = %266
  call void (ptr, ...) @gk_free(ptr noundef %27, ptr noundef null)
  br label %353

285:                                              ; preds = %231
  %286 = load ptr, ptr %24, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.ctrl_t, ptr %286, i32 0, i32 13
  %288 = load i32, ptr %287, align 4, !tbaa !21
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %290, label %352

290:                                              ; preds = %285
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %291

291:                                              ; preds = %305, %290
  %292 = load i32, ptr %18, align 4, !tbaa !9
  %293 = load i32, ptr %22, align 4, !tbaa !9
  %294 = icmp slt i32 %292, %293
  br i1 %294, label %295, label %308

295:                                              ; preds = %291
  %296 = load i32, ptr %18, align 4, !tbaa !9
  %297 = load ptr, ptr %14, align 8, !tbaa !5
  %298 = load ptr, ptr %15, align 8, !tbaa !5
  %299 = load i32, ptr %18, align 4, !tbaa !9
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds i32, ptr %298, i64 %300
  %302 = load i32, ptr %301, align 4, !tbaa !9
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds i32, ptr %297, i64 %303
  store i32 %296, ptr %304, align 4, !tbaa !9
  br label %305

305:                                              ; preds = %295
  %306 = load i32, ptr %18, align 4, !tbaa !9
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %18, align 4, !tbaa !9
  br label %291, !llvm.loop !28

308:                                              ; preds = %291
  store i32 0, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %309

309:                                              ; preds = %348, %308
  %310 = load i32, ptr %19, align 4, !tbaa !9
  %311 = load i32, ptr %22, align 4, !tbaa !9
  %312 = icmp slt i32 %310, %311
  br i1 %312, label %313, label %351

313:                                              ; preds = %309
  %314 = load ptr, ptr %14, align 8, !tbaa !5
  %315 = load i32, ptr %19, align 4, !tbaa !9
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds i32, ptr %314, i64 %316
  %318 = load i32, ptr %317, align 4, !tbaa !9
  store i32 %318, ptr %18, align 4, !tbaa !9
  %319 = load ptr, ptr %25, align 8, !tbaa !5
  %320 = load i32, ptr %18, align 4, !tbaa !9
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds i32, ptr %319, i64 %321
  %323 = load i32, ptr %322, align 4, !tbaa !9
  store i32 %323, ptr %20, align 4, !tbaa !9
  br label %324

324:                                              ; preds = %344, %313
  %325 = load i32, ptr %20, align 4, !tbaa !9
  %326 = load ptr, ptr %25, align 8, !tbaa !5
  %327 = load i32, ptr %18, align 4, !tbaa !9
  %328 = add nsw i32 %327, 1
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds i32, ptr %326, i64 %329
  %331 = load i32, ptr %330, align 4, !tbaa !9
  %332 = icmp slt i32 %325, %331
  br i1 %332, label %333, label %347

333:                                              ; preds = %324
  %334 = load i32, ptr %21, align 4, !tbaa !9
  %335 = add nsw i32 %334, 1
  store i32 %335, ptr %21, align 4, !tbaa !9
  %336 = load ptr, ptr %15, align 8, !tbaa !5
  %337 = load ptr, ptr %26, align 8, !tbaa !5
  %338 = load i32, ptr %20, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds i32, ptr %337, i64 %339
  %341 = load i32, ptr %340, align 4, !tbaa !9
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds i32, ptr %336, i64 %342
  store i32 %334, ptr %343, align 4, !tbaa !9
  br label %344

344:                                              ; preds = %333
  %345 = load i32, ptr %20, align 4, !tbaa !9
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %20, align 4, !tbaa !9
  br label %324, !llvm.loop !29

347:                                              ; preds = %324
  br label %348

348:                                              ; preds = %347
  %349 = load i32, ptr %19, align 4, !tbaa !9
  %350 = add nsw i32 %349, 1
  store i32 %350, ptr %19, align 4, !tbaa !9
  br label %309, !llvm.loop !30

351:                                              ; preds = %309
  call void (ptr, ...) @gk_free(ptr noundef %25, ptr noundef %26, ptr noundef null)
  br label %352

352:                                              ; preds = %351, %285
  br label %353

353:                                              ; preds = %352, %284
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %354

354:                                              ; preds = %369, %353
  %355 = load i32, ptr %18, align 4, !tbaa !9
  %356 = load ptr, ptr %9, align 8, !tbaa !5
  %357 = load i32, ptr %356, align 4, !tbaa !9
  %358 = icmp slt i32 %355, %357
  br i1 %358, label %359, label %372

359:                                              ; preds = %354
  %360 = load i32, ptr %18, align 4, !tbaa !9
  %361 = load ptr, ptr %14, align 8, !tbaa !5
  %362 = load ptr, ptr %15, align 8, !tbaa !5
  %363 = load i32, ptr %18, align 4, !tbaa !9
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds i32, ptr %362, i64 %364
  %366 = load i32, ptr %365, align 4, !tbaa !9
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds i32, ptr %361, i64 %367
  store i32 %360, ptr %368, align 4, !tbaa !9
  br label %369

369:                                              ; preds = %359
  %370 = load i32, ptr %18, align 4, !tbaa !9
  %371 = add nsw i32 %370, 1
  store i32 %371, ptr %18, align 4, !tbaa !9
  br label %354, !llvm.loop !31

372:                                              ; preds = %354
  %373 = load ptr, ptr %24, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.ctrl_t, ptr %373, i32 0, i32 2
  %375 = load i32, ptr %374, align 8, !tbaa !16
  %376 = and i32 %375, 2
  %377 = icmp ne i32 %376, 0
  br i1 %377, label %378, label %384

378:                                              ; preds = %372
  %379 = call double @gk_CPUSeconds()
  %380 = load ptr, ptr %24, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.ctrl_t, ptr %380, i32 0, i32 27
  %382 = load double, ptr %381, align 8, !tbaa !17
  %383 = fadd double %382, %379
  store double %383, ptr %381, align 8, !tbaa !17
  br label %384

384:                                              ; preds = %378, %372
  %385 = load ptr, ptr %24, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.ctrl_t, ptr %385, i32 0, i32 2
  %387 = load i32, ptr %386, align 8, !tbaa !16
  %388 = and i32 %387, 2
  %389 = icmp ne i32 %388, 0
  br i1 %389, label %390, label %392

390:                                              ; preds = %384
  %391 = load ptr, ptr %24, align 8, !tbaa !5
  call void @libmetis__PrintTimers(ptr noundef %391)
  br label %392

392:                                              ; preds = %390, %384
  call void @libmetis__FreeCtrl(ptr noundef %24)
  br label %393

393:                                              ; preds = %392, %43
  %394 = load i32, ptr %17, align 4, !tbaa !9
  %395 = icmp ne i32 %394, 0
  br i1 %395, label %396, label %403

396:                                              ; preds = %393
  %397 = load ptr, ptr %9, align 8, !tbaa !5
  %398 = load i32, ptr %397, align 4, !tbaa !9
  %399 = load ptr, ptr %10, align 8, !tbaa !5
  %400 = load ptr, ptr %11, align 8, !tbaa !5
  %401 = load ptr, ptr %14, align 8, !tbaa !5
  %402 = load ptr, ptr %15, align 8, !tbaa !5
  call void @libmetis__Change2FNumberingOrder(i32 noundef %398, ptr noundef %399, ptr noundef %400, ptr noundef %401, ptr noundef %402)
  br label %403

403:                                              ; preds = %396, %393
  %404 = call i32 (...) @gk_siguntrap()
  call void @gk_malloc_cleanup(i32 noundef 0)
  %405 = load i32, ptr %16, align 4, !tbaa !9
  %406 = call i32 @libmetis__metis_rcode(i32 noundef %405)
  store i32 %406, ptr %8, align 4
  store i32 1, ptr %29, align 4
  br label %407

407:                                              ; preds = %403, %49, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %408 = load i32, ptr %8, align 4
  ret i32 %408
}

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

declare i32 @gk_malloc_init(...) #2

declare i32 @gk_sigtrap(...) #2

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #4

declare ptr @libmetis__SetupCtrl(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2

declare i32 @gk_siguntrap(...) #2

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

declare void @libmetis__InitTimers(ptr noundef) #2

declare double @gk_CPUSeconds() #2

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

declare ptr @libmetis__PruneGraph(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, float noundef) #2

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

declare ptr @libmetis__CompressGraph(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @libmetis__SetupGraph(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @libmetis__CheckGraph(ptr noundef, i32 noundef, i32 noundef) #2

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

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

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

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

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

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

declare void @libmetis__PrintTimers(ptr noundef) #2

declare void @libmetis__FreeCtrl(ptr noundef) #2

declare void @libmetis__Change2FNumberingOrder(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @gk_malloc_cleanup(i32 noundef) #2

declare i32 @libmetis__metis_rcode(i32 noundef) #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind returns_twice "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind returns_twice }
attributes #8 = { noreturn 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 72}
!12 = !{!"ctrl_t", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !13, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !13, i64 128, !14, i64 136, !14, i64 144, !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, !6, i64 232, !15, i64 240, !15, i64 248, !15, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320}
!13 = !{!"float", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!12, !10, i64 8}
!17 = !{!12, !14, i64 136}
!18 = !{!12, !13, i64 96}
!19 = !{!20, !10, i64 0}
!20 = !{!"graph_t", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !10, i64 116, !6, i64 120, !6, i64 128, !10, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208}
!21 = !{!12, !10, i64 52}
!22 = !{!12, !13, i64 128}
!23 = !{!12, !10, i64 44}
!24 = !{!12, !10, i64 56}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !26}


; 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.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@gk_jbufs = external thread_local global [0 x [1 x %struct.__jmp_buf_tag]], align 8
@gk_cur_jbufs = external thread_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [139 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [46 x i8], align 1
@__PRETTY_FUNCTION__.METIS_NodeND = external hidden unnamed_addr constant [80 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @METIS_NodeND(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %12 = call i32 (...) @gk_malloc_init() #7
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %241, label %13

13:                                               ; preds = %7
  %14 = call i32 (...) @gk_sigtrap() #7
  %15 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @gk_jbufs)
  %16 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @gk_cur_jbufs)
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [0 x [1 x %struct.__jmp_buf_tag]], ptr %15, i64 0, i64 %18
  %20 = call i32 @_setjmp(ptr noundef nonnull %19) #8
  %.not101 = icmp eq i32 %20, 0
  br i1 %.not101, label %21, label %.critedge

21:                                               ; preds = %13
  %22 = call ptr @libmetis__SetupCtrl(i32 noundef 2, ptr noundef %4, i32 noundef 1, i32 noundef 3, ptr noundef null, ptr noundef null) #7
  store ptr %22, ptr %8, align 8, !tbaa !9
  %.not102 = icmp eq ptr %22, null
  br i1 %.not102, label %23, label %25

23:                                               ; preds = %21
  %24 = call i32 (...) @gk_siguntrap() #7
  br label %241

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %22, i64 72
  %27 = load i32, ptr %26, align 8, !tbaa !11
  %.not113 = icmp eq i32 %27, 1
  br i1 %.not113, label %28, label %30

28:                                               ; preds = %25
  %29 = load i32, ptr %0, align 4, !tbaa !5
  call void @libmetis__Change2CNumbering(i32 noundef %29, ptr noundef %1, ptr noundef %2) #7
  br label %30

30:                                               ; preds = %28, %25
  %31 = getelementptr inbounds i8, ptr %22, i64 8
  %32 = load i32, ptr %31, align 8, !tbaa !16
  %33 = and i32 %32, 2
  %.not103 = icmp eq i32 %33, 0
  br i1 %.not103, label %.thread, label %34

34:                                               ; preds = %30
  call void @libmetis__InitTimers(ptr noundef nonnull %22) #7
  %.pre = load i32, ptr %31, align 8, !tbaa !16
  %.pre155 = and i32 %.pre, 2
  %.not104 = icmp eq i32 %.pre155, 0
  br i1 %.not104, label %.thread, label %35

35:                                               ; preds = %34
  %36 = call double @gk_CPUSeconds() #7
  %37 = getelementptr inbounds i8, ptr %22, i64 136
  %38 = load double, ptr %37, align 8, !tbaa !17
  %39 = fsub double %38, %36
  store double %39, ptr %37, align 8, !tbaa !17
  br label %.thread

.thread:                                          ; preds = %30, %35, %34
  %40 = getelementptr inbounds i8, ptr %22, i64 96
  %41 = load float, ptr %40, align 8, !tbaa !18
  %42 = fcmp ogt float %41, 0.000000e+00
  br i1 %42, label %43, label %55

43:                                               ; preds = %.thread
  %44 = load i32, ptr %0, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = call ptr @libmetis__imalloc(i64 noundef %45, ptr noundef nonnull @.str) #7
  store ptr %46, ptr %11, align 8, !tbaa !9
  %47 = load i32, ptr %0, align 4, !tbaa !5
  %48 = load float, ptr %40, align 8, !tbaa !18
  %49 = call ptr @libmetis__PruneGraph(ptr noundef nonnull %22, i32 noundef %47, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %46, float noundef %48) #7
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %52

51:                                               ; preds = %43
  call void (ptr, ...) @gk_free(ptr noundef nonnull %11, ptr noundef null) #7
  store float 0.000000e+00, ptr %40, align 8, !tbaa !18
  br label %55

52:                                               ; preds = %43
  %53 = load i32, ptr %49, align 8, !tbaa !19
  %54 = getelementptr inbounds i8, ptr %22, i64 52
  store i32 0, ptr %54, align 4, !tbaa !21
  br label %55

55:                                               ; preds = %51, %52, %.thread
  %.085 = phi i32 [ 0, %51 ], [ %53, %52 ], [ 0, %.thread ]
  %.084 = phi ptr [ null, %51 ], [ %49, %52 ], [ null, %.thread ]
  %56 = getelementptr inbounds i8, ptr %22, i64 52
  %57 = load i32, ptr %56, align 4, !tbaa !21
  %.not105 = icmp eq i32 %57, 0
  br i1 %.not105, label %85, label %58

58:                                               ; preds = %55
  %59 = load i32, ptr %0, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  %61 = sext i32 %60 to i64
  %62 = call ptr @libmetis__imalloc(i64 noundef %61, ptr noundef nonnull @.str.1) #7
  store ptr %62, ptr %9, align 8, !tbaa !9
  %63 = load i32, ptr %0, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = call ptr @libmetis__imalloc(i64 noundef %64, ptr noundef nonnull @.str.2) #7
  store ptr %65, ptr %10, align 8, !tbaa !9
  %66 = load i32, ptr %0, align 4, !tbaa !5
  %67 = load ptr, ptr %9, align 8, !tbaa !9
  %68 = call ptr @libmetis__CompressGraph(ptr noundef nonnull %22, i32 noundef %66, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %67, ptr noundef %65) #7
  %69 = icmp eq ptr %68, null
  br i1 %69, label %70, label %71

70:                                               ; preds = %58
  call void (ptr, ...) @gk_free(ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef null) #7
  store i32 0, ptr %56, align 4, !tbaa !21
  br label %85

71:                                               ; preds = %58
  %72 = load i32, ptr %68, align 8, !tbaa !19
  %73 = load i32, ptr %0, align 4, !tbaa !5
  %74 = sitofp i32 %73 to double
  %75 = sitofp i32 %72 to double
  %76 = fdiv double %74, %75
  %77 = fptrunc double %76 to float
  %78 = getelementptr inbounds i8, ptr %22, i64 128
  store float %77, ptr %78, align 8, !tbaa !22
  %79 = fcmp ogt float %77, 1.500000e+00
  br i1 %79, label %80, label %85

80:                                               ; preds = %71
  %81 = getelementptr inbounds i8, ptr %22, i64 44
  %82 = load i32, ptr %81, align 4, !tbaa !23
  %83 = icmp eq i32 %82, 1
  br i1 %83, label %84, label %85

84:                                               ; preds = %80
  store i32 2, ptr %81, align 4, !tbaa !23
  br label %85

85:                                               ; preds = %70, %84, %80, %71, %55
  %.186 = phi i32 [ %.085, %70 ], [ %72, %84 ], [ %72, %80 ], [ %72, %71 ], [ %.085, %55 ]
  %.1 = phi ptr [ null, %70 ], [ %68, %84 ], [ %68, %80 ], [ %68, %71 ], [ %.084, %55 ]
  %86 = load float, ptr %40, align 8, !tbaa !18
  %87 = fcmp oeq float %86, 0.000000e+00
  br i1 %87, label %88, label %94

88:                                               ; preds = %85
  %89 = load i32, ptr %56, align 4, !tbaa !21
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %94

91:                                               ; preds = %88
  %92 = load i32, ptr %0, align 4, !tbaa !5
  %93 = call ptr @libmetis__SetupGraph(ptr noundef nonnull %22, i32 noundef %92, i32 noundef 1, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef null, ptr noundef null) #7
  br label %94

94:                                               ; preds = %91, %88, %85
  %.2 = phi ptr [ %93, %91 ], [ %.1, %88 ], [ %.1, %85 ]
  %95 = load i32, ptr %26, align 8, !tbaa !11
  %96 = call i32 @libmetis__CheckGraph(ptr noundef %.2, i32 noundef %95, i32 noundef 1) #7
  %.not106 = icmp eq i32 %96, 0
  br i1 %.not106, label %97, label %104

97:                                               ; preds = %94
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 120, ptr noundef nonnull @.str.4)
  %99 = load ptr, ptr %8, align 8, !tbaa !9
  %100 = getelementptr inbounds i8, ptr %99, i64 72
  %101 = load i32, ptr %100, align 8, !tbaa !11
  %102 = call i32 @libmetis__CheckGraph(ptr noundef %.2, i32 noundef %101, i32 noundef 1) #7
  %.not107 = icmp eq i32 %102, 0
  br i1 %.not107, label %103, label %104

103:                                              ; preds = %97
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 120, ptr noundef nonnull @__PRETTY_FUNCTION__.METIS_NodeND) #9
  unreachable

104:                                              ; preds = %97, %94
  %105 = load ptr, ptr %8, align 8, !tbaa !9
  call void @libmetis__AllocateWorkSpace(ptr noundef %105, ptr noundef %.2) #7
  %106 = load ptr, ptr %8, align 8, !tbaa !9
  %107 = getelementptr inbounds i8, ptr %106, i64 56
  %108 = load i32, ptr %107, align 8, !tbaa !24
  %.not108 = icmp eq i32 %108, 0
  %109 = load i32, ptr %.2, align 8, !tbaa !19
  br i1 %.not108, label %111, label %110

110:                                              ; preds = %104
  call void @libmetis__MlevelNestedDissectionCC(ptr noundef nonnull %106, ptr noundef nonnull %.2, ptr noundef %6, i32 noundef %109)
  br label %112

111:                                              ; preds = %104
  call void @libmetis__MlevelNestedDissection(ptr noundef nonnull %106, ptr noundef nonnull %.2, ptr noundef %6, i32 noundef %109)
  br label %112

112:                                              ; preds = %111, %110
  %113 = load ptr, ptr %8, align 8, !tbaa !9
  %114 = getelementptr inbounds i8, ptr %113, i64 96
  %115 = load float, ptr %114, align 8, !tbaa !18
  %116 = fcmp ogt float %115, 0.000000e+00
  br i1 %116, label %117, label %166

117:                                              ; preds = %112
  %118 = sext i32 %.186 to i64
  %119 = call ptr @libmetis__icopy(i64 noundef %118, ptr noundef %6, ptr noundef %5) #7
  %120 = icmp sgt i32 %.186, 0
  br i1 %120, label %.lr.ph126, label %.preheader

.lr.ph126:                                        ; preds = %117
  %121 = load ptr, ptr %11, align 8, !tbaa !9
  %wide.trip.count146 = zext nneg i32 %.186 to i64
  %xtraiter162 = and i64 %wide.trip.count146, 3
  %122 = icmp ult i32 %.186, 4
  br i1 %122, label %.preheader.loopexit.unr-lcssa, label %.lr.ph126.new

.lr.ph126.new:                                    ; preds = %.lr.ph126
  %unroll_iter165 = and i64 %wide.trip.count146, 2147483644
  br label %132

.preheader.loopexit.unr-lcssa:                    ; preds = %132, %.lr.ph126
  %indvars.iv143.unr = phi i64 [ 0, %.lr.ph126 ], [ %indvars.iv.next144.3, %132 ]
  %lcmp.mod164.not = icmp eq i64 %xtraiter162, 0
  br i1 %lcmp.mod164.not, label %.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv143.epil = phi i64 [ %indvars.iv.next144.epil, %.epil.preheader ], [ %indvars.iv143.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter163 = phi i64 [ %epil.iter163.next, %.epil.preheader ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %123 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv143.epil
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = getelementptr inbounds i32, ptr %121, i64 %indvars.iv143.epil
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds i32, ptr %6, i64 %127
  store i32 %124, ptr %128, align 4, !tbaa !5
  %indvars.iv.next144.epil = add nuw nsw i64 %indvars.iv143.epil, 1
  %epil.iter163.next = add i64 %epil.iter163, 1
  %epil.iter163.cmp.not = icmp eq i64 %epil.iter163.next, %xtraiter162
  br i1 %epil.iter163.cmp.not, label %.preheader, label %.epil.preheader, !llvm.loop !25

.preheader:                                       ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader, %117
  %129 = load i32, ptr %0, align 4, !tbaa !5
  %130 = icmp slt i32 %.186, %129
  br i1 %130, label %.lr.ph128, label %._crit_edge129

.lr.ph128:                                        ; preds = %.preheader
  %131 = load ptr, ptr %11, align 8, !tbaa !9
  br label %157

132:                                              ; preds = %132, %.lr.ph126.new
  %indvars.iv143 = phi i64 [ 0, %.lr.ph126.new ], [ %indvars.iv.next144.3, %132 ]
  %niter166 = phi i64 [ 0, %.lr.ph126.new ], [ %niter166.next.3, %132 ]
  %133 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv143
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = getelementptr inbounds i32, ptr %121, i64 %indvars.iv143
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds i32, ptr %6, i64 %137
  store i32 %134, ptr %138, align 4, !tbaa !5
  %indvars.iv.next144 = or disjoint i64 %indvars.iv143, 1
  %139 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv.next144
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = getelementptr inbounds i32, ptr %121, i64 %indvars.iv.next144
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds i32, ptr %6, i64 %143
  store i32 %140, ptr %144, align 4, !tbaa !5
  %indvars.iv.next144.1 = or disjoint i64 %indvars.iv143, 2
  %145 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv.next144.1
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = getelementptr inbounds i32, ptr %121, i64 %indvars.iv.next144.1
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds i32, ptr %6, i64 %149
  store i32 %146, ptr %150, align 4, !tbaa !5
  %indvars.iv.next144.2 = or disjoint i64 %indvars.iv143, 3
  %151 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv.next144.2
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = getelementptr inbounds i32, ptr %121, i64 %indvars.iv.next144.2
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds i32, ptr %6, i64 %155
  store i32 %152, ptr %156, align 4, !tbaa !5
  %indvars.iv.next144.3 = add nuw nsw i64 %indvars.iv143, 4
  %niter166.next.3 = add i64 %niter166, 4
  %niter166.ncmp.3 = icmp eq i64 %niter166.next.3, %unroll_iter165
  br i1 %niter166.ncmp.3, label %.preheader.loopexit.unr-lcssa, label %132, !llvm.loop !27

157:                                              ; preds = %.lr.ph128, %157
  %indvars.iv148 = phi i64 [ %118, %.lr.ph128 ], [ %indvars.iv.next149, %157 ]
  %158 = getelementptr inbounds i32, ptr %131, i64 %indvars.iv148
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds i32, ptr %6, i64 %160
  %162 = trunc nsw i64 %indvars.iv148 to i32
  store i32 %162, ptr %161, align 4, !tbaa !5
  %indvars.iv.next149 = add nsw i64 %indvars.iv148, 1
  %163 = load i32, ptr %0, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = icmp slt i64 %indvars.iv.next149, %164
  br i1 %165, label %157, label %._crit_edge129, !llvm.loop !29

._crit_edge129:                                   ; preds = %157, %.preheader
  call void (ptr, ...) @gk_free(ptr noundef nonnull %11, ptr noundef null) #7
  br label %216

166:                                              ; preds = %112
  %167 = getelementptr inbounds i8, ptr %113, i64 52
  %168 = load i32, ptr %167, align 4, !tbaa !21
  %.not109 = icmp eq i32 %168, 0
  br i1 %.not109, label %216, label %.preheader115

.preheader115:                                    ; preds = %166
  %169 = icmp sgt i32 %.186, 0
  br i1 %169, label %.lr.ph.preheader, label %._crit_edge123

.lr.ph.preheader:                                 ; preds = %.preheader115
  %wide.trip.count = zext nneg i32 %.186 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %170 = icmp ult i32 %.186, 4
  br i1 %170, label %.preheader114.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph

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

.lr.ph.epil:                                      ; preds = %.preheader114.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.preheader114.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.preheader114.unr-lcssa ]
  %171 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.epil
  %172 = load i32, ptr %171, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds i32, ptr %5, i64 %173
  %175 = trunc nuw nsw i64 %indvars.iv.epil to i32
  store i32 %175, ptr %174, align 4, !tbaa !5
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader114, label %.lr.ph.epil, !llvm.loop !30

.preheader114:                                    ; preds = %.lr.ph.epil, %.preheader114.unr-lcssa
  br i1 %169, label %.lr.ph122, label %._crit_edge123

.lr.ph122:                                        ; preds = %.preheader114
  %176 = load ptr, ptr %9, align 8, !tbaa !9
  %177 = load ptr, ptr %10, align 8
  %wide.trip.count141 = zext nneg i32 %.186 to i64
  br label %198

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %178 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds i32, ptr %5, i64 %180
  %182 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %182, ptr %181, align 4, !tbaa !5
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %183 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next
  %184 = load i32, ptr %183, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds i32, ptr %5, i64 %185
  %187 = trunc nuw nsw i64 %indvars.iv.next to i32
  store i32 %187, ptr %186, align 4, !tbaa !5
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %188 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next.1
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds i32, ptr %5, i64 %190
  %192 = trunc nuw nsw i64 %indvars.iv.next.1 to i32
  store i32 %192, ptr %191, align 4, !tbaa !5
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %193 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next.2
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds i32, ptr %5, i64 %195
  %197 = trunc nuw nsw i64 %indvars.iv.next.2 to i32
  store i32 %197, ptr %196, align 4, !tbaa !5
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 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 %.preheader114.unr-lcssa, label %.lr.ph, !llvm.loop !31

198:                                              ; preds = %.lr.ph122, %._crit_edge
  %indvars.iv138 = phi i64 [ 0, %.lr.ph122 ], [ %indvars.iv.next139, %._crit_edge ]
  %.087121 = phi i32 [ 0, %.lr.ph122 ], [ %.188.lcssa, %._crit_edge ]
  %199 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv138
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds i32, ptr %176, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = getelementptr i8, ptr %202, i64 4
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = icmp slt i32 %203, %205
  br i1 %206, label %.lr.ph119.preheader, label %._crit_edge

.lr.ph119.preheader:                              ; preds = %198
  %207 = sext i32 %203 to i64
  br label %.lr.ph119

.lr.ph119:                                        ; preds = %.lr.ph119.preheader, %.lr.ph119
  %indvars.iv135 = phi i64 [ %207, %.lr.ph119.preheader ], [ %indvars.iv.next136, %.lr.ph119 ]
  %.188118 = phi i32 [ %.087121, %.lr.ph119.preheader ], [ %208, %.lr.ph119 ]
  %208 = add nsw i32 %.188118, 1
  %209 = getelementptr inbounds i32, ptr %177, i64 %indvars.iv135
  %210 = load i32, ptr %209, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds i32, ptr %6, i64 %211
  store i32 %.188118, ptr %212, align 4, !tbaa !5
  %indvars.iv.next136 = add nsw i64 %indvars.iv135, 1
  %213 = load i32, ptr %204, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = icmp slt i64 %indvars.iv.next136, %214
  br i1 %215, label %.lr.ph119, label %._crit_edge, !llvm.loop !32

._crit_edge:                                      ; preds = %.lr.ph119, %198
  %.188.lcssa = phi i32 [ %.087121, %198 ], [ %208, %.lr.ph119 ]
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %exitcond142.not = icmp eq i64 %indvars.iv.next139, %wide.trip.count141
  br i1 %exitcond142.not, label %._crit_edge123, label %198, !llvm.loop !33

._crit_edge123:                                   ; preds = %._crit_edge, %.preheader115, %.preheader114
  call void (ptr, ...) @gk_free(ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef null) #7
  br label %216

216:                                              ; preds = %166, %._crit_edge123, %._crit_edge129
  %217 = load i32, ptr %0, align 4, !tbaa !5
  %218 = icmp sgt i32 %217, 0
  br i1 %218, label %.lr.ph132, label %._crit_edge133

.lr.ph132:                                        ; preds = %216, %.lr.ph132
  %indvars.iv151 = phi i64 [ %indvars.iv.next152, %.lr.ph132 ], [ 0, %216 ]
  %219 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv151
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds i32, ptr %5, i64 %221
  %223 = trunc nuw nsw i64 %indvars.iv151 to i32
  store i32 %223, ptr %222, align 4, !tbaa !5
  %indvars.iv.next152 = add nuw nsw i64 %indvars.iv151, 1
  %224 = load i32, ptr %0, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = icmp slt i64 %indvars.iv.next152, %225
  br i1 %226, label %.lr.ph132, label %._crit_edge133, !llvm.loop !34

._crit_edge133:                                   ; preds = %.lr.ph132, %216
  %227 = getelementptr inbounds i8, ptr %113, i64 8
  %228 = load i32, ptr %227, align 8, !tbaa !16
  %229 = and i32 %228, 2
  %.not110 = icmp eq i32 %229, 0
  br i1 %.not110, label %.thread160, label %230

230:                                              ; preds = %._crit_edge133
  %231 = call double @gk_CPUSeconds() #7
  %232 = getelementptr inbounds i8, ptr %113, i64 136
  %233 = load double, ptr %232, align 8, !tbaa !17
  %234 = fadd double %231, %233
  store double %234, ptr %232, align 8, !tbaa !17
  %.pre154 = load i32, ptr %227, align 8, !tbaa !16
  %.pre156 = and i32 %.pre154, 2
  %235 = icmp eq i32 %.pre156, 0
  br i1 %235, label %.thread160, label %236

236:                                              ; preds = %230
  call void @libmetis__PrintTimers(ptr noundef nonnull %113) #7
  br label %.thread160

.thread160:                                       ; preds = %._crit_edge133, %236, %230
  call void @libmetis__FreeCtrl(ptr noundef nonnull %8) #7
  br i1 %.not113, label %237, label %.critedge

237:                                              ; preds = %.thread160
  %238 = load i32, ptr %0, align 4, !tbaa !5
  call void @libmetis__Change2FNumberingOrder(i32 noundef %238, ptr noundef %1, ptr noundef %2, ptr noundef %5, ptr noundef %6) #7
  br label %.critedge

.critedge:                                        ; preds = %13, %237, %.thread160
  %239 = call i32 (...) @gk_siguntrap() #7
  call void @gk_malloc_cleanup(i32 noundef 0) #7
  %240 = call i32 @libmetis__metis_rcode(i32 noundef %20) #7
  br label %241

241:                                              ; preds = %7, %.critedge, %23
  %.0 = phi i32 [ %240, %.critedge ], [ -2, %23 ], [ -3, %7 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  ret i32 %.0
}

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

declare i32 @gk_malloc_init(...) local_unnamed_addr #2

declare i32 @gk_sigtrap(...) local_unnamed_addr #2

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #4

declare ptr @libmetis__SetupCtrl(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @gk_siguntrap(...) local_unnamed_addr #2

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

declare void @libmetis__InitTimers(ptr noundef) local_unnamed_addr #2

declare double @gk_CPUSeconds() local_unnamed_addr #2

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

declare ptr @libmetis__PruneGraph(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, float noundef) local_unnamed_addr #2

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

declare ptr @libmetis__CompressGraph(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @libmetis__SetupGraph(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @libmetis__CheckGraph(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

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

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

declare void @libmetis__PrintTimers(ptr noundef) local_unnamed_addr #2

declare void @libmetis__FreeCtrl(ptr noundef) local_unnamed_addr #2

declare void @libmetis__Change2FNumberingOrder(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @gk_malloc_cleanup(i32 noundef) local_unnamed_addr #2

declare i32 @libmetis__metis_rcode(i32 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 = { nounwind returns_twice "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { nounwind returns_twice }
attributes #9 = { noreturn 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 = !{!"int", !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 72}
!12 = !{!"ctrl_t", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68, !6, i64 72, !10, i64 80, !6, i64 88, !6, i64 92, !13, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !13, i64 128, !14, i64 136, !14, i64 144, !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, !10, i64 232, !15, i64 240, !15, i64 248, !15, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320}
!13 = !{!"float", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!12, !6, i64 8}
!17 = !{!12, !14, i64 136}
!18 = !{!12, !13, i64 96}
!19 = !{!20, !6, i64 0}
!20 = !{!"graph_t", !6, i64 0, !6, i64 4, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !10, i64 96, !10, i64 104, !6, i64 112, !6, i64 116, !10, i64 120, !10, i64 128, !6, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208}
!21 = !{!12, !6, i64 52}
!22 = !{!12, !13, i64 128}
!23 = !{!12, !6, i64 44}
!24 = !{!12, !6, i64 56}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.unroll.disable"}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = distinct !{!30, !26}
!31 = distinct !{!31, !28}
!32 = distinct !{!32, !28}
!33 = distinct !{!33, !28}
!34 = distinct !{!34, !28}


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