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

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

%struct.graph_t = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%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.ckrinfo_t = type { i32, i32, i32, i32 }
%struct.cnbr_t = type { i32, i32 }
%struct.vkrinfo_t = type { i32, i32, i32, i32, i32 }
%struct.vnbr_t = type { i32, i32, i32 }

@.str = external hidden unnamed_addr constant [60 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [140 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__ComputeSubDomainGraph = external hidden unnamed_addr constant [58 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__ComputeSubDomainGraph(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libmetis__wspacepush(ptr noundef %26)
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.graph_t, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !11
  store i32 %29, ptr %11, align 4, !tbaa !9
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.graph_t, ptr %30, i32 0, i32 3
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  store ptr %32, ptr %13, align 8, !tbaa !5
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.graph_t, ptr %33, i32 0, i32 6
  %35 = load ptr, ptr %34, align 8, !tbaa !14
  store ptr %35, ptr %14, align 8, !tbaa !5
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.graph_t, ptr %36, i32 0, i32 7
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  store ptr %38, ptr %15, align 8, !tbaa !5
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.graph_t, ptr %39, i32 0, i32 19
  %41 = load ptr, ptr %40, align 8, !tbaa !16
  store ptr %41, ptr %16, align 8, !tbaa !5
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ctrl_t, ptr %42, i32 0, i32 21
  %44 = load i32, ptr %43, align 4, !tbaa !17
  store i32 %44, ptr %10, align 4, !tbaa !9
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ctrl_t, ptr %45, i32 0, i32 49
  %47 = load ptr, ptr %46, align 8, !tbaa !22
  store ptr %47, ptr %20, align 8, !tbaa !5
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.ctrl_t, ptr %50, i32 0, i32 50
  %52 = load ptr, ptr %51, align 8, !tbaa !23
  %53 = call ptr @libmetis__iset(i64 noundef %49, i32 noundef 0, ptr noundef %52)
  store ptr %53, ptr %21, align 8, !tbaa !5
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = add nsw i32 %55, 1
  %57 = call ptr @libmetis__iwspacemalloc(ptr noundef %54, i32 noundef %56)
  store ptr %57, ptr %17, align 8, !tbaa !5
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = call ptr @libmetis__iwspacemalloc(ptr noundef %58, i32 noundef %59)
  store ptr %60, ptr %18, align 8, !tbaa !5
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  %64 = load ptr, ptr %17, align 8, !tbaa !5
  %65 = load ptr, ptr %18, align 8, !tbaa !5
  call void @libmetis__iarray2csr(i32 noundef %61, i32 noundef %62, ptr noundef %63, ptr noundef %64, ptr noundef %65)
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %430, %2
  %67 = load i32, ptr %8, align 4, !tbaa !9
  %68 = load i32, ptr %10, align 4, !tbaa !9
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %70, label %433

70:                                               ; preds = %66
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ctrl_t, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 4, !tbaa !24
  switch i32 %73, label %304 [
    i32 0, label %74
    i32 1, label %189
  ]

74:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.graph_t, ptr %75, i32 0, i32 26
  %77 = load ptr, ptr %76, align 8, !tbaa !25
  store ptr %77, ptr %22, align 8, !tbaa !5
  store i32 0, ptr %19, align 4, !tbaa !9
  %78 = load ptr, ptr %17, align 8, !tbaa !5
  %79 = load i32, ptr %8, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds i32, ptr %78, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !9
  store i32 %82, ptr %6, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %185, %74
  %84 = load i32, ptr %6, align 4, !tbaa !9
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i32, ptr %85, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %91 = icmp slt i32 %84, %90
  br i1 %91, label %92, label %188

92:                                               ; preds = %83
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i32, ptr %93, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !9
  store i32 %97, ptr %5, align 4, !tbaa !9
  %98 = load i32, ptr %8, align 4, !tbaa !9
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = load i32, ptr %5, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds i32, ptr %99, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = icmp eq i32 %98, %103
  br i1 %104, label %117, label %105

105:                                              ; preds = %92
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 52, ptr noundef @.str.1)
  %107 = load i32, ptr %8, align 4, !tbaa !9
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  %109 = load i32, ptr %5, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds i32, ptr %108, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %113 = icmp eq i32 %107, %112
  br i1 %113, label %114, label %115

114:                                              ; preds = %105
  br label %116

115:                                              ; preds = %105
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 52, ptr noundef @__PRETTY_FUNCTION__.libmetis__ComputeSubDomainGraph) #5
  unreachable

116:                                              ; preds = %114
  br label %117

117:                                              ; preds = %116, %92
  %118 = load ptr, ptr %22, align 8, !tbaa !5
  %119 = load i32, ptr %5, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds %struct.ckrinfo_t, ptr %118, i64 %120
  %122 = getelementptr inbounds %struct.ckrinfo_t, ptr %121, i32 0, i32 1
  %123 = load i32, ptr %122, align 4, !tbaa !26
  %124 = icmp sgt i32 %123, 0
  br i1 %124, label %125, label %184

125:                                              ; preds = %117
  %126 = load ptr, ptr %22, align 8, !tbaa !5
  %127 = load i32, ptr %5, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds %struct.ckrinfo_t, ptr %126, i64 %128
  %130 = getelementptr inbounds %struct.ckrinfo_t, ptr %129, i32 0, i32 2
  %131 = load i32, ptr %130, align 4, !tbaa !28
  store i32 %131, ptr %12, align 4, !tbaa !9
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ctrl_t, ptr %132, i32 0, i32 43
  %134 = load ptr, ptr %133, align 8, !tbaa !29
  %135 = load ptr, ptr %22, align 8, !tbaa !5
  %136 = load i32, ptr %5, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds %struct.ckrinfo_t, ptr %135, i64 %137
  %139 = getelementptr inbounds %struct.ckrinfo_t, ptr %138, i32 0, i32 3
  %140 = load i32, ptr %139, align 4, !tbaa !30
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds %struct.cnbr_t, ptr %134, i64 %141
  store ptr %142, ptr %23, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %180, %125
  %144 = load i32, ptr %7, align 4, !tbaa !9
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = icmp slt i32 %144, %145
  br i1 %146, label %147, label %183

147:                                              ; preds = %143
  %148 = load ptr, ptr %23, align 8, !tbaa !5
  %149 = load i32, ptr %7, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds %struct.cnbr_t, ptr %148, i64 %150
  %152 = getelementptr inbounds %struct.cnbr_t, ptr %151, i32 0, i32 0
  %153 = load i32, ptr %152, align 4, !tbaa !31
  store i32 %153, ptr %9, align 4, !tbaa !9
  %154 = load ptr, ptr %21, align 8, !tbaa !5
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds i32, ptr %154, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !9
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %160, label %167

160:                                              ; preds = %147
  %161 = load i32, ptr %9, align 4, !tbaa !9
  %162 = load ptr, ptr %20, align 8, !tbaa !5
  %163 = load i32, ptr %19, align 4, !tbaa !9
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %19, align 4, !tbaa !9
  %165 = sext i32 %163 to i64
  %166 = getelementptr inbounds i32, ptr %162, i64 %165
  store i32 %161, ptr %166, align 4, !tbaa !9
  br label %167

167:                                              ; preds = %160, %147
  %168 = load ptr, ptr %23, align 8, !tbaa !5
  %169 = load i32, ptr %7, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds %struct.cnbr_t, ptr %168, i64 %170
  %172 = getelementptr inbounds %struct.cnbr_t, ptr %171, i32 0, i32 1
  %173 = load i32, ptr %172, align 4, !tbaa !33
  %174 = load ptr, ptr %21, align 8, !tbaa !5
  %175 = load i32, ptr %9, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds i32, ptr %174, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = add nsw i32 %178, %173
  store i32 %179, ptr %177, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %167
  %181 = load i32, ptr %7, align 4, !tbaa !9
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %7, align 4, !tbaa !9
  br label %143, !llvm.loop !34

183:                                              ; preds = %143
  br label %184

184:                                              ; preds = %183, %117
  br label %185

185:                                              ; preds = %184
  %186 = load i32, ptr %6, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %6, align 4, !tbaa !9
  br label %83, !llvm.loop !36

188:                                              ; preds = %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %308

189:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.graph_t, ptr %190, i32 0, i32 27
  %192 = load ptr, ptr %191, align 8, !tbaa !37
  store ptr %192, ptr %24, align 8, !tbaa !5
  store i32 0, ptr %19, align 4, !tbaa !9
  %193 = load ptr, ptr %17, align 8, !tbaa !5
  %194 = load i32, ptr %8, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds i32, ptr %193, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !9
  store i32 %197, ptr %6, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %300, %189
  %199 = load i32, ptr %6, align 4, !tbaa !9
  %200 = load ptr, ptr %17, align 8, !tbaa !5
  %201 = load i32, ptr %8, align 4, !tbaa !9
  %202 = add nsw i32 %201, 1
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds i32, ptr %200, i64 %203
  %205 = load i32, ptr %204, align 4, !tbaa !9
  %206 = icmp slt i32 %199, %205
  br i1 %206, label %207, label %303

207:                                              ; preds = %198
  %208 = load ptr, ptr %18, align 8, !tbaa !5
  %209 = load i32, ptr %6, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds i32, ptr %208, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !9
  store i32 %212, ptr %5, align 4, !tbaa !9
  %213 = load i32, ptr %8, align 4, !tbaa !9
  %214 = load ptr, ptr %16, align 8, !tbaa !5
  %215 = load i32, ptr %5, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds i32, ptr %214, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !9
  %219 = icmp eq i32 %213, %218
  br i1 %219, label %232, label %220

220:                                              ; preds = %207
  %221 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 77, ptr noundef @.str.1)
  %222 = load i32, ptr %8, align 4, !tbaa !9
  %223 = load ptr, ptr %16, align 8, !tbaa !5
  %224 = load i32, ptr %5, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds i32, ptr %223, i64 %225
  %227 = load i32, ptr %226, align 4, !tbaa !9
  %228 = icmp eq i32 %222, %227
  br i1 %228, label %229, label %230

229:                                              ; preds = %220
  br label %231

230:                                              ; preds = %220
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 77, ptr noundef @__PRETTY_FUNCTION__.libmetis__ComputeSubDomainGraph) #5
  unreachable

231:                                              ; preds = %229
  br label %232

232:                                              ; preds = %231, %207
  %233 = load ptr, ptr %24, align 8, !tbaa !5
  %234 = load i32, ptr %5, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds %struct.vkrinfo_t, ptr %233, i64 %235
  %237 = getelementptr inbounds %struct.vkrinfo_t, ptr %236, i32 0, i32 1
  %238 = load i32, ptr %237, align 4, !tbaa !38
  %239 = icmp sgt i32 %238, 0
  br i1 %239, label %240, label %299

240:                                              ; preds = %232
  %241 = load ptr, ptr %24, align 8, !tbaa !5
  %242 = load i32, ptr %5, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds %struct.vkrinfo_t, ptr %241, i64 %243
  %245 = getelementptr inbounds %struct.vkrinfo_t, ptr %244, i32 0, i32 3
  %246 = load i32, ptr %245, align 4, !tbaa !40
  store i32 %246, ptr %12, align 4, !tbaa !9
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.ctrl_t, ptr %247, i32 0, i32 44
  %249 = load ptr, ptr %248, align 8, !tbaa !41
  %250 = load ptr, ptr %24, align 8, !tbaa !5
  %251 = load i32, ptr %5, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds %struct.vkrinfo_t, ptr %250, i64 %252
  %254 = getelementptr inbounds %struct.vkrinfo_t, ptr %253, i32 0, i32 4
  %255 = load i32, ptr %254, align 4, !tbaa !42
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds %struct.vnbr_t, ptr %249, i64 %256
  store ptr %257, ptr %25, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %258

258:                                              ; preds = %295, %240
  %259 = load i32, ptr %7, align 4, !tbaa !9
  %260 = load i32, ptr %12, align 4, !tbaa !9
  %261 = icmp slt i32 %259, %260
  br i1 %261, label %262, label %298

262:                                              ; preds = %258
  %263 = load ptr, ptr %25, align 8, !tbaa !5
  %264 = load i32, ptr %7, align 4, !tbaa !9
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds %struct.vnbr_t, ptr %263, i64 %265
  %267 = getelementptr inbounds %struct.vnbr_t, ptr %266, i32 0, i32 0
  %268 = load i32, ptr %267, align 4, !tbaa !43
  store i32 %268, ptr %9, align 4, !tbaa !9
  %269 = load ptr, ptr %21, align 8, !tbaa !5
  %270 = load i32, ptr %9, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds i32, ptr %269, i64 %271
  %273 = load i32, ptr %272, align 4, !tbaa !9
  %274 = icmp eq i32 %273, 0
  br i1 %274, label %275, label %282

275:                                              ; preds = %262
  %276 = load i32, ptr %9, align 4, !tbaa !9
  %277 = load ptr, ptr %20, align 8, !tbaa !5
  %278 = load i32, ptr %19, align 4, !tbaa !9
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %19, align 4, !tbaa !9
  %280 = sext i32 %278 to i64
  %281 = getelementptr inbounds i32, ptr %277, i64 %280
  store i32 %276, ptr %281, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %275, %262
  %283 = load ptr, ptr %25, align 8, !tbaa !5
  %284 = load i32, ptr %7, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds %struct.vnbr_t, ptr %283, i64 %285
  %287 = getelementptr inbounds %struct.vnbr_t, ptr %286, i32 0, i32 1
  %288 = load i32, ptr %287, align 4, !tbaa !45
  %289 = load ptr, ptr %21, align 8, !tbaa !5
  %290 = load i32, ptr %9, align 4, !tbaa !9
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds i32, ptr %289, i64 %291
  %293 = load i32, ptr %292, align 4, !tbaa !9
  %294 = add nsw i32 %293, %288
  store i32 %294, ptr %292, align 4, !tbaa !9
  br label %295

295:                                              ; preds = %282
  %296 = load i32, ptr %7, align 4, !tbaa !9
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %7, align 4, !tbaa !9
  br label %258, !llvm.loop !46

298:                                              ; preds = %258
  br label %299

299:                                              ; preds = %298, %232
  br label %300

300:                                              ; preds = %299
  %301 = load i32, ptr %6, align 4, !tbaa !9
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %6, align 4, !tbaa !9
  br label %198, !llvm.loop !47

303:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  br label %308

304:                                              ; preds = %70
  %305 = load ptr, ptr %3, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.ctrl_t, ptr %305, i32 0, i32 1
  %307 = load i32, ptr %306, align 4, !tbaa !24
  call void (i32, ptr, ...) @gk_errexit(i32 noundef 15, ptr noundef @.str.3, i32 noundef %307)
  br label %308

308:                                              ; preds = %304, %303, %188
  %309 = load ptr, ptr %3, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.ctrl_t, ptr %309, i32 0, i32 45
  %311 = load ptr, ptr %310, align 8, !tbaa !48
  %312 = load i32, ptr %8, align 4, !tbaa !9
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds i32, ptr %311, i64 %313
  %315 = load i32, ptr %314, align 4, !tbaa !9
  %316 = load i32, ptr %19, align 4, !tbaa !9
  %317 = icmp slt i32 %315, %316
  br i1 %317, label %318, label %371

318:                                              ; preds = %308
  %319 = load i32, ptr %19, align 4, !tbaa !9
  %320 = mul nsw i32 2, %319
  %321 = load ptr, ptr %3, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.ctrl_t, ptr %321, i32 0, i32 45
  %323 = load ptr, ptr %322, align 8, !tbaa !48
  %324 = load i32, ptr %8, align 4, !tbaa !9
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds i32, ptr %323, i64 %325
  store i32 %320, ptr %326, align 4, !tbaa !9
  %327 = load ptr, ptr %3, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.ctrl_t, ptr %327, i32 0, i32 47
  %329 = load ptr, ptr %328, align 8, !tbaa !49
  %330 = load i32, ptr %8, align 4, !tbaa !9
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds ptr, ptr %329, i64 %331
  %333 = load ptr, ptr %332, align 8, !tbaa !5
  %334 = load ptr, ptr %3, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.ctrl_t, ptr %334, i32 0, i32 45
  %336 = load ptr, ptr %335, align 8, !tbaa !48
  %337 = load i32, ptr %8, align 4, !tbaa !9
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds i32, ptr %336, i64 %338
  %340 = load i32, ptr %339, align 4, !tbaa !9
  %341 = sext i32 %340 to i64
  %342 = call ptr @libmetis__irealloc(ptr noundef %333, i64 noundef %341, ptr noundef @.str.4)
  %343 = load ptr, ptr %3, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.ctrl_t, ptr %343, i32 0, i32 47
  %345 = load ptr, ptr %344, align 8, !tbaa !49
  %346 = load i32, ptr %8, align 4, !tbaa !9
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds ptr, ptr %345, i64 %347
  store ptr %342, ptr %348, align 8, !tbaa !5
  %349 = load ptr, ptr %3, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.ctrl_t, ptr %349, i32 0, i32 48
  %351 = load ptr, ptr %350, align 8, !tbaa !50
  %352 = load i32, ptr %8, align 4, !tbaa !9
  %353 = sext i32 %352 to i64
  %354 = getelementptr inbounds ptr, ptr %351, i64 %353
  %355 = load ptr, ptr %354, align 8, !tbaa !5
  %356 = load ptr, ptr %3, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.ctrl_t, ptr %356, i32 0, i32 45
  %358 = load ptr, ptr %357, align 8, !tbaa !48
  %359 = load i32, ptr %8, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds i32, ptr %358, i64 %360
  %362 = load i32, ptr %361, align 4, !tbaa !9
  %363 = sext i32 %362 to i64
  %364 = call ptr @libmetis__irealloc(ptr noundef %355, i64 noundef %363, ptr noundef @.str.4)
  %365 = load ptr, ptr %3, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.ctrl_t, ptr %365, i32 0, i32 48
  %367 = load ptr, ptr %366, align 8, !tbaa !50
  %368 = load i32, ptr %8, align 4, !tbaa !9
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds ptr, ptr %367, i64 %369
  store ptr %364, ptr %370, align 8, !tbaa !5
  br label %371

371:                                              ; preds = %318, %308
  %372 = load i32, ptr %19, align 4, !tbaa !9
  %373 = load ptr, ptr %3, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.ctrl_t, ptr %373, i32 0, i32 46
  %375 = load ptr, ptr %374, align 8, !tbaa !51
  %376 = load i32, ptr %8, align 4, !tbaa !9
  %377 = sext i32 %376 to i64
  %378 = getelementptr inbounds i32, ptr %375, i64 %377
  store i32 %372, ptr %378, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %379

379:                                              ; preds = %426, %371
  %380 = load i32, ptr %7, align 4, !tbaa !9
  %381 = load i32, ptr %19, align 4, !tbaa !9
  %382 = icmp slt i32 %380, %381
  br i1 %382, label %383, label %429

383:                                              ; preds = %379
  %384 = load ptr, ptr %20, align 8, !tbaa !5
  %385 = load i32, ptr %7, align 4, !tbaa !9
  %386 = sext i32 %385 to i64
  %387 = getelementptr inbounds i32, ptr %384, i64 %386
  %388 = load i32, ptr %387, align 4, !tbaa !9
  %389 = load ptr, ptr %3, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.ctrl_t, ptr %389, i32 0, i32 47
  %391 = load ptr, ptr %390, align 8, !tbaa !49
  %392 = load i32, ptr %8, align 4, !tbaa !9
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds ptr, ptr %391, i64 %393
  %395 = load ptr, ptr %394, align 8, !tbaa !5
  %396 = load i32, ptr %7, align 4, !tbaa !9
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds i32, ptr %395, i64 %397
  store i32 %388, ptr %398, align 4, !tbaa !9
  %399 = load ptr, ptr %21, align 8, !tbaa !5
  %400 = load ptr, ptr %20, align 8, !tbaa !5
  %401 = load i32, ptr %7, align 4, !tbaa !9
  %402 = sext i32 %401 to i64
  %403 = getelementptr inbounds i32, ptr %400, i64 %402
  %404 = load i32, ptr %403, align 4, !tbaa !9
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds i32, ptr %399, i64 %405
  %407 = load i32, ptr %406, align 4, !tbaa !9
  %408 = load ptr, ptr %3, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.ctrl_t, ptr %408, i32 0, i32 48
  %410 = load ptr, ptr %409, align 8, !tbaa !50
  %411 = load i32, ptr %8, align 4, !tbaa !9
  %412 = sext i32 %411 to i64
  %413 = getelementptr inbounds ptr, ptr %410, i64 %412
  %414 = load ptr, ptr %413, align 8, !tbaa !5
  %415 = load i32, ptr %7, align 4, !tbaa !9
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds i32, ptr %414, i64 %416
  store i32 %407, ptr %417, align 4, !tbaa !9
  %418 = load ptr, ptr %21, align 8, !tbaa !5
  %419 = load ptr, ptr %20, align 8, !tbaa !5
  %420 = load i32, ptr %7, align 4, !tbaa !9
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds i32, ptr %419, i64 %421
  %423 = load i32, ptr %422, align 4, !tbaa !9
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds i32, ptr %418, i64 %424
  store i32 0, ptr %425, align 4, !tbaa !9
  br label %426

426:                                              ; preds = %383
  %427 = load i32, ptr %7, align 4, !tbaa !9
  %428 = add nsw i32 %427, 1
  store i32 %428, ptr %7, align 4, !tbaa !9
  br label %379, !llvm.loop !52

429:                                              ; preds = %379
  br label %430

430:                                              ; preds = %429
  %431 = load i32, ptr %8, align 4, !tbaa !9
  %432 = add nsw i32 %431, 1
  store i32 %432, ptr %8, align 4, !tbaa !9
  br label %66, !llvm.loop !53

433:                                              ; preds = %66
  %434 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libmetis__wspacepop(ptr noundef %434)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

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

declare void @libmetis__wspacepush(ptr noundef) #2

declare ptr @libmetis__iset(i64 noundef, i32 noundef, ptr noundef) #2

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

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

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

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

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

declare void @gk_errexit(i32 noundef, ptr noundef, ...) #2

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

declare void @libmetis__wspacepop(ptr noundef) #2

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 = { 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 #4 = { nounwind }
attributes #5 = { 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 0}
!12 = !{!"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}
!13 = !{!12, !6, i64 16}
!14 = !{!12, !6, i64 40}
!15 = !{!12, !6, i64 48}
!16 = !{!12, !6, i64 120}
!17 = !{!18, !10, i64 92}
!18 = !{!"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, !19, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !19, i64 128, !20, i64 136, !20, i64 144, !20, i64 152, !20, i64 160, !20, i64 168, !20, i64 176, !20, i64 184, !20, i64 192, !20, i64 200, !20, i64 208, !20, i64 216, !20, i64 224, !6, i64 232, !21, i64 240, !21, i64 248, !21, 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}
!19 = !{!"float", !7, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!18, !6, i64 312}
!23 = !{!18, !6, i64 320}
!24 = !{!18, !10, i64 4}
!25 = !{!12, !6, i64 176}
!26 = !{!27, !10, i64 4}
!27 = !{!"ckrinfo_t", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!28 = !{!27, !10, i64 8}
!29 = !{!18, !6, i64 264}
!30 = !{!27, !10, i64 12}
!31 = !{!32, !10, i64 0}
!32 = !{!"cnbr_t", !10, i64 0, !10, i64 4}
!33 = !{!32, !10, i64 4}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}
!37 = !{!12, !6, i64 184}
!38 = !{!39, !10, i64 4}
!39 = !{!"vkrinfo_t", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!40 = !{!39, !10, i64 12}
!41 = !{!18, !6, i64 272}
!42 = !{!39, !10, i64 16}
!43 = !{!44, !10, i64 0}
!44 = !{!"vnbr_t", !10, i64 0, !10, i64 4, !10, i64 8}
!45 = !{!44, !10, i64 4}
!46 = distinct !{!46, !35}
!47 = distinct !{!47, !35}
!48 = !{!18, !6, i64 280}
!49 = !{!18, !6, i64 296}
!50 = !{!18, !6, i64 304}
!51 = !{!18, !6, i64 288}
!52 = distinct !{!52, !35}
!53 = distinct !{!53, !35}


; 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.ckrinfo_t = type { i32, i32, i32, i32 }
%struct.cnbr_t = type { i32, i32 }
%struct.vkrinfo_t = type { i32, i32, i32, i32, i32 }
%struct.vnbr_t = type { i32, i32, i32 }

@.str = external hidden unnamed_addr constant [60 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [140 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__ComputeSubDomainGraph = external hidden unnamed_addr constant [58 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__ComputeSubDomainGraph(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  tail call void @libmetis__wspacepush(ptr noundef %0) #4
  %3 = load i32, ptr %1, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %1, i64 120
  %5 = load ptr, ptr %4, align 8, !tbaa !11
  %6 = getelementptr inbounds i8, ptr %0, i64 92
  %7 = load i32, ptr %6, align 4, !tbaa !12
  %8 = getelementptr inbounds i8, ptr %0, i64 312
  %9 = load ptr, ptr %8, align 8, !tbaa !17
  %10 = sext i32 %7 to i64
  %11 = getelementptr inbounds i8, ptr %0, i64 320
  %12 = load ptr, ptr %11, align 8, !tbaa !18
  %13 = tail call ptr @libmetis__iset(i64 noundef %10, i32 noundef 0, ptr noundef %12) #4
  %14 = add nsw i32 %7, 1
  %15 = tail call ptr @libmetis__iwspacemalloc(ptr noundef %0, i32 noundef %14) #4
  %16 = tail call ptr @libmetis__iwspacemalloc(ptr noundef %0, i32 noundef %3) #4
  tail call void @libmetis__iarray2csr(i32 noundef %3, i32 noundef %7, ptr noundef %5, ptr noundef %15, ptr noundef %16) #4
  %17 = icmp sgt i32 %7, 0
  br i1 %17, label %.lr.ph164, label %._crit_edge165

.lr.ph164:                                        ; preds = %2
  %18 = getelementptr inbounds i8, ptr %0, i64 4
  %19 = getelementptr inbounds i8, ptr %1, i64 184
  %20 = getelementptr inbounds i8, ptr %0, i64 272
  %21 = getelementptr inbounds i8, ptr %1, i64 176
  %22 = getelementptr inbounds i8, ptr %0, i64 264
  %23 = getelementptr inbounds i8, ptr %0, i64 280
  %24 = getelementptr inbounds i8, ptr %0, i64 296
  %25 = getelementptr inbounds i8, ptr %0, i64 304
  %26 = getelementptr inbounds i8, ptr %0, i64 288
  %wide.trip.count187 = zext nneg i32 %7 to i64
  br label %27

27:                                               ; preds = %.lr.ph164, %._crit_edge
  %indvars.iv184 = phi i64 [ 0, %.lr.ph164 ], [ %indvars.iv.next185, %._crit_edge ]
  %.0137161 = phi i32 [ 0, %.lr.ph164 ], [ %.9, %._crit_edge ]
  %28 = load i32, ptr %18, align 4, !tbaa !19
  switch i32 %28, label %135 [
    i32 0, label %29
    i32 1, label %82
  ]

29:                                               ; preds = %27
  %30 = load ptr, ptr %21, align 8, !tbaa !20
  %31 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv184
  %32 = load i32, ptr %31, align 4, !tbaa !21
  %33 = getelementptr inbounds i8, ptr %31, i64 4
  %34 = load i32, ptr %33, align 4, !tbaa !21
  %35 = icmp slt i32 %32, %34
  br i1 %35, label %.lr.ph157.preheader, label %.loopexit141

.lr.ph157.preheader:                              ; preds = %29
  %36 = sext i32 %32 to i64
  br label %.lr.ph157

.lr.ph157:                                        ; preds = %.lr.ph157.preheader, %.loopexit
  %indvars.iv176 = phi i64 [ %36, %.lr.ph157.preheader ], [ %indvars.iv.next177, %.loopexit ]
  %.1138155 = phi i32 [ 0, %.lr.ph157.preheader ], [ %.4, %.loopexit ]
  %37 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv176
  %38 = load i32, ptr %37, align 4, !tbaa !21
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds i32, ptr %5, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !21
  %42 = zext i32 %41 to i64
  %43 = icmp eq i64 %indvars.iv184, %42
  br i1 %43, label %50, label %44

44:                                               ; preds = %.lr.ph157
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 52, ptr noundef nonnull @.str.1)
  %46 = load i32, ptr %40, align 4, !tbaa !21
  %47 = zext i32 %46 to i64
  %48 = icmp eq i64 %indvars.iv184, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %44
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 52, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__ComputeSubDomainGraph) #5
  unreachable

50:                                               ; preds = %44, %.lr.ph157
  %51 = getelementptr inbounds %struct.ckrinfo_t, ptr %30, i64 %39
  %52 = getelementptr inbounds i8, ptr %51, i64 4
  %53 = load i32, ptr %52, align 4, !tbaa !22
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %55, label %.loopexit

55:                                               ; preds = %50
  %56 = getelementptr inbounds i8, ptr %51, i64 8
  %57 = load i32, ptr %56, align 4, !tbaa !24
  %58 = load ptr, ptr %22, align 8, !tbaa !25
  %59 = getelementptr inbounds i8, ptr %51, i64 12
  %60 = load i32, ptr %59, align 4, !tbaa !26
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %struct.cnbr_t, ptr %58, i64 %61
  %63 = icmp sgt i32 %57, 0
  br i1 %63, label %.lr.ph153.preheader, label %.loopexit

.lr.ph153.preheader:                              ; preds = %55
  %wide.trip.count174 = zext nneg i32 %57 to i64
  br label %.lr.ph153

.lr.ph153:                                        ; preds = %.lr.ph153.preheader, %74
  %indvars.iv171 = phi i64 [ 0, %.lr.ph153.preheader ], [ %indvars.iv.next172, %74 ]
  %.2139151 = phi i32 [ %.1138155, %.lr.ph153.preheader ], [ %.3, %74 ]
  %64 = getelementptr inbounds %struct.cnbr_t, ptr %62, i64 %indvars.iv171
  %65 = load i32, ptr %64, align 4, !tbaa !27
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds i32, ptr %13, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !21
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %74

70:                                               ; preds = %.lr.ph153
  %71 = add nsw i32 %.2139151, 1
  %72 = sext i32 %.2139151 to i64
  %73 = getelementptr inbounds i32, ptr %9, i64 %72
  store i32 %65, ptr %73, align 4, !tbaa !21
  %.pre189 = load i32, ptr %67, align 4, !tbaa !21
  br label %74

74:                                               ; preds = %70, %.lr.ph153
  %75 = phi i32 [ %.pre189, %70 ], [ %68, %.lr.ph153 ]
  %.3 = phi i32 [ %71, %70 ], [ %.2139151, %.lr.ph153 ]
  %76 = getelementptr inbounds i8, ptr %64, i64 4
  %77 = load i32, ptr %76, align 4, !tbaa !29
  %78 = add nsw i32 %75, %77
  store i32 %78, ptr %67, align 4, !tbaa !21
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %exitcond175.not = icmp eq i64 %indvars.iv.next172, %wide.trip.count174
  br i1 %exitcond175.not, label %.loopexit, label %.lr.ph153, !llvm.loop !30

.loopexit:                                        ; preds = %74, %55, %50
  %.4 = phi i32 [ %.1138155, %50 ], [ %.1138155, %55 ], [ %.3, %74 ]
  %indvars.iv.next177 = add nsw i64 %indvars.iv176, 1
  %79 = load i32, ptr %33, align 4, !tbaa !21
  %80 = sext i32 %79 to i64
  %81 = icmp slt i64 %indvars.iv.next177, %80
  br i1 %81, label %.lr.ph157, label %.loopexit141, !llvm.loop !32

82:                                               ; preds = %27
  %83 = load ptr, ptr %19, align 8, !tbaa !33
  %84 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv184
  %85 = load i32, ptr %84, align 4, !tbaa !21
  %86 = getelementptr inbounds i8, ptr %84, i64 4
  %87 = load i32, ptr %86, align 4, !tbaa !21
  %88 = icmp slt i32 %85, %87
  br i1 %88, label %.lr.ph149.preheader, label %.loopexit141

.lr.ph149.preheader:                              ; preds = %82
  %89 = sext i32 %85 to i64
  br label %.lr.ph149

.lr.ph149:                                        ; preds = %.lr.ph149.preheader, %.loopexit140
  %indvars.iv168 = phi i64 [ %89, %.lr.ph149.preheader ], [ %indvars.iv.next169, %.loopexit140 ]
  %.5147 = phi i32 [ 0, %.lr.ph149.preheader ], [ %.8, %.loopexit140 ]
  %90 = getelementptr inbounds i32, ptr %16, i64 %indvars.iv168
  %91 = load i32, ptr %90, align 4, !tbaa !21
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i32, ptr %5, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !21
  %95 = zext i32 %94 to i64
  %96 = icmp eq i64 %indvars.iv184, %95
  br i1 %96, label %103, label %97

97:                                               ; preds = %.lr.ph149
  %98 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 77, ptr noundef nonnull @.str.1)
  %99 = load i32, ptr %93, align 4, !tbaa !21
  %100 = zext i32 %99 to i64
  %101 = icmp eq i64 %indvars.iv184, %100
  br i1 %101, label %103, label %102

102:                                              ; preds = %97
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 77, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__ComputeSubDomainGraph) #5
  unreachable

103:                                              ; preds = %97, %.lr.ph149
  %104 = getelementptr inbounds %struct.vkrinfo_t, ptr %83, i64 %92
  %105 = getelementptr inbounds i8, ptr %104, i64 4
  %106 = load i32, ptr %105, align 4, !tbaa !34
  %107 = icmp sgt i32 %106, 0
  br i1 %107, label %108, label %.loopexit140

108:                                              ; preds = %103
  %109 = getelementptr inbounds i8, ptr %104, i64 12
  %110 = load i32, ptr %109, align 4, !tbaa !36
  %111 = load ptr, ptr %20, align 8, !tbaa !37
  %112 = getelementptr inbounds i8, ptr %104, i64 16
  %113 = load i32, ptr %112, align 4, !tbaa !38
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds %struct.vnbr_t, ptr %111, i64 %114
  %116 = icmp sgt i32 %110, 0
  br i1 %116, label %.lr.ph.preheader, label %.loopexit140

.lr.ph.preheader:                                 ; preds = %108
  %wide.trip.count = zext nneg i32 %110 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %127
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %127 ]
  %.6145 = phi i32 [ %.5147, %.lr.ph.preheader ], [ %.7, %127 ]
  %117 = getelementptr inbounds %struct.vnbr_t, ptr %115, i64 %indvars.iv
  %118 = load i32, ptr %117, align 4, !tbaa !39
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds i32, ptr %13, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !21
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %123, label %127

123:                                              ; preds = %.lr.ph
  %124 = add nsw i32 %.6145, 1
  %125 = sext i32 %.6145 to i64
  %126 = getelementptr inbounds i32, ptr %9, i64 %125
  store i32 %118, ptr %126, align 4, !tbaa !21
  %.pre = load i32, ptr %120, align 4, !tbaa !21
  br label %127

127:                                              ; preds = %123, %.lr.ph
  %128 = phi i32 [ %.pre, %123 ], [ %121, %.lr.ph ]
  %.7 = phi i32 [ %124, %123 ], [ %.6145, %.lr.ph ]
  %129 = getelementptr inbounds i8, ptr %117, i64 4
  %130 = load i32, ptr %129, align 4, !tbaa !41
  %131 = add nsw i32 %128, %130
  store i32 %131, ptr %120, align 4, !tbaa !21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit140, label %.lr.ph, !llvm.loop !42

.loopexit140:                                     ; preds = %127, %108, %103
  %.8 = phi i32 [ %.5147, %103 ], [ %.5147, %108 ], [ %.7, %127 ]
  %indvars.iv.next169 = add nsw i64 %indvars.iv168, 1
  %132 = load i32, ptr %86, align 4, !tbaa !21
  %133 = sext i32 %132 to i64
  %134 = icmp slt i64 %indvars.iv.next169, %133
  br i1 %134, label %.lr.ph149, label %.loopexit141, !llvm.loop !43

135:                                              ; preds = %27
  tail call void (i32, ptr, ...) @gk_errexit(i32 noundef 15, ptr noundef nonnull @.str.3, i32 noundef %28) #4
  br label %.loopexit141

.loopexit141:                                     ; preds = %.loopexit140, %.loopexit, %82, %29, %135
  %.9 = phi i32 [ %.0137161, %135 ], [ 0, %29 ], [ 0, %82 ], [ %.4, %.loopexit ], [ %.8, %.loopexit140 ]
  %136 = load ptr, ptr %23, align 8, !tbaa !44
  %137 = getelementptr inbounds i32, ptr %136, i64 %indvars.iv184
  %138 = load i32, ptr %137, align 4, !tbaa !21
  %139 = icmp slt i32 %138, %.9
  br i1 %139, label %140, label %159

140:                                              ; preds = %.loopexit141
  %141 = shl nsw i32 %.9, 1
  store i32 %141, ptr %137, align 4, !tbaa !21
  %142 = load ptr, ptr %24, align 8, !tbaa !45
  %143 = getelementptr inbounds ptr, ptr %142, i64 %indvars.iv184
  %144 = load ptr, ptr %143, align 8, !tbaa !46
  %145 = sext i32 %141 to i64
  %146 = tail call ptr @libmetis__irealloc(ptr noundef %144, i64 noundef %145, ptr noundef nonnull @.str.4) #4
  %147 = load ptr, ptr %24, align 8, !tbaa !45
  %148 = getelementptr inbounds ptr, ptr %147, i64 %indvars.iv184
  store ptr %146, ptr %148, align 8, !tbaa !46
  %149 = load ptr, ptr %25, align 8, !tbaa !47
  %150 = getelementptr inbounds ptr, ptr %149, i64 %indvars.iv184
  %151 = load ptr, ptr %150, align 8, !tbaa !46
  %152 = load ptr, ptr %23, align 8, !tbaa !44
  %153 = getelementptr inbounds i32, ptr %152, i64 %indvars.iv184
  %154 = load i32, ptr %153, align 4, !tbaa !21
  %155 = sext i32 %154 to i64
  %156 = tail call ptr @libmetis__irealloc(ptr noundef %151, i64 noundef %155, ptr noundef nonnull @.str.4) #4
  %157 = load ptr, ptr %25, align 8, !tbaa !47
  %158 = getelementptr inbounds ptr, ptr %157, i64 %indvars.iv184
  store ptr %156, ptr %158, align 8, !tbaa !46
  br label %159

159:                                              ; preds = %140, %.loopexit141
  %160 = load ptr, ptr %26, align 8, !tbaa !48
  %161 = getelementptr inbounds i32, ptr %160, i64 %indvars.iv184
  store i32 %.9, ptr %161, align 4, !tbaa !21
  %162 = icmp sgt i32 %.9, 0
  br i1 %162, label %.lr.ph160, label %._crit_edge

.lr.ph160:                                        ; preds = %159
  %163 = load ptr, ptr %24, align 8, !tbaa !45
  %164 = getelementptr inbounds ptr, ptr %163, i64 %indvars.iv184
  %165 = load ptr, ptr %164, align 8, !tbaa !46
  %166 = load ptr, ptr %25, align 8, !tbaa !47
  %167 = getelementptr inbounds ptr, ptr %166, i64 %indvars.iv184
  %168 = load ptr, ptr %167, align 8, !tbaa !46
  %wide.trip.count182 = zext nneg i32 %.9 to i64
  %xtraiter = and i64 %wide.trip.count182, 1
  %169 = icmp eq i32 %.9, 1
  br i1 %169, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph160.new

.lr.ph160.new:                                    ; preds = %.lr.ph160
  %unroll_iter = and i64 %wide.trip.count182, 2147483646
  br label %170

170:                                              ; preds = %170, %.lr.ph160.new
  %indvars.iv179 = phi i64 [ 0, %.lr.ph160.new ], [ %indvars.iv.next180.1, %170 ]
  %niter = phi i64 [ 0, %.lr.ph160.new ], [ %niter.next.1, %170 ]
  %171 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv179
  %172 = load i32, ptr %171, align 4, !tbaa !21
  %173 = getelementptr inbounds i32, ptr %165, i64 %indvars.iv179
  store i32 %172, ptr %173, align 4, !tbaa !21
  %174 = sext i32 %172 to i64
  %175 = getelementptr inbounds i32, ptr %13, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !21
  %177 = getelementptr inbounds i32, ptr %168, i64 %indvars.iv179
  store i32 %176, ptr %177, align 4, !tbaa !21
  %178 = load i32, ptr %171, align 4, !tbaa !21
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds i32, ptr %13, i64 %179
  store i32 0, ptr %180, align 4, !tbaa !21
  %indvars.iv.next180 = or disjoint i64 %indvars.iv179, 1
  %181 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv.next180
  %182 = load i32, ptr %181, align 4, !tbaa !21
  %183 = getelementptr inbounds i32, ptr %165, i64 %indvars.iv.next180
  store i32 %182, ptr %183, align 4, !tbaa !21
  %184 = sext i32 %182 to i64
  %185 = getelementptr inbounds i32, ptr %13, i64 %184
  %186 = load i32, ptr %185, align 4, !tbaa !21
  %187 = getelementptr inbounds i32, ptr %168, i64 %indvars.iv.next180
  store i32 %186, ptr %187, align 4, !tbaa !21
  %188 = load i32, ptr %181, align 4, !tbaa !21
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %13, i64 %189
  store i32 0, ptr %190, align 4, !tbaa !21
  %indvars.iv.next180.1 = add nuw nsw i64 %indvars.iv179, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %170, !llvm.loop !49

._crit_edge.loopexit.unr-lcssa:                   ; preds = %170, %.lr.ph160
  %indvars.iv179.unr = phi i64 [ 0, %.lr.ph160 ], [ %indvars.iv.next180.1, %170 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %191 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv179.unr
  %192 = load i32, ptr %191, align 4, !tbaa !21
  %193 = getelementptr inbounds i32, ptr %165, i64 %indvars.iv179.unr
  store i32 %192, ptr %193, align 4, !tbaa !21
  %194 = sext i32 %192 to i64
  %195 = getelementptr inbounds i32, ptr %13, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !21
  %197 = getelementptr inbounds i32, ptr %168, i64 %indvars.iv179.unr
  store i32 %196, ptr %197, align 4, !tbaa !21
  %198 = load i32, ptr %191, align 4, !tbaa !21
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds i32, ptr %13, i64 %199
  store i32 0, ptr %200, align 4, !tbaa !21
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %159
  %indvars.iv.next185 = add nuw nsw i64 %indvars.iv184, 1
  %exitcond188.not = icmp eq i64 %indvars.iv.next185, %wide.trip.count187
  br i1 %exitcond188.not, label %._crit_edge165, label %27, !llvm.loop !50

._crit_edge165:                                   ; preds = %._crit_edge, %2
  tail call void @libmetis__wspacepop(ptr noundef nonnull %0) #4
  ret void
}

declare void @libmetis__wspacepush(ptr noundef) local_unnamed_addr #1

declare ptr @libmetis__iset(i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare ptr @libmetis__iwspacemalloc(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

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

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

declare void @libmetis__wspacepop(ptr noundef) local_unnamed_addr #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 = { "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 = { 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 #3 = { 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 #4 = { nounwind }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"graph_t", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 116, !10, i64 120, !10, i64 128, !7, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 120}
!12 = !{!13, !7, i64 92}
!13 = !{!"ctrl_t", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !10, i64 80, !7, i64 88, !7, i64 92, !14, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !14, i64 128, !15, i64 136, !15, i64 144, !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, !10, i64 232, !16, i64 240, !16, i64 248, !16, 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}
!14 = !{!"float", !8, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!13, !10, i64 312}
!18 = !{!13, !10, i64 320}
!19 = !{!13, !7, i64 4}
!20 = !{!6, !10, i64 176}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !7, i64 4}
!23 = !{!"ckrinfo_t", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!24 = !{!23, !7, i64 8}
!25 = !{!13, !10, i64 264}
!26 = !{!23, !7, i64 12}
!27 = !{!28, !7, i64 0}
!28 = !{!"cnbr_t", !7, i64 0, !7, i64 4}
!29 = !{!28, !7, i64 4}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = !{!6, !10, i64 184}
!34 = !{!35, !7, i64 4}
!35 = !{!"vkrinfo_t", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!36 = !{!35, !7, i64 12}
!37 = !{!13, !10, i64 272}
!38 = !{!35, !7, i64 16}
!39 = !{!40, !7, i64 0}
!40 = !{!"vnbr_t", !7, i64 0, !7, i64 4, !7, i64 8}
!41 = !{!40, !7, i64 4}
!42 = distinct !{!42, !31}
!43 = distinct !{!43, !31}
!44 = !{!13, !10, i64 280}
!45 = !{!13, !10, i64 296}
!46 = !{!10, !10, i64 0}
!47 = !{!13, !10, i64 304}
!48 = !{!13, !10, i64 288}
!49 = distinct !{!49, !31}
!50 = distinct !{!50, !31}


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