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

; 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.nrinfo_t = type { [2 x i32] }

@.str.1 = external hidden unnamed_addr constant [140 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__Compute2WayNodePartitionParams = external hidden unnamed_addr constant [67 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__Compute2WayNodePartitionParams(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 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 ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  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 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, 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 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.graph_t, ptr %20, i32 0, i32 0
  %22 = load i32, ptr %21, align 8, !tbaa !9
  store i32 %22, ptr %7, align 4, !tbaa !12
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.graph_t, ptr %23, i32 0, i32 3
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  store ptr %25, ptr %9, align 8, !tbaa !5
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.graph_t, ptr %26, i32 0, i32 4
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  store ptr %28, ptr %11, align 8, !tbaa !5
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.graph_t, ptr %29, i32 0, i32 6
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  store ptr %31, ptr %10, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.graph_t, ptr %32, i32 0, i32 19
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  store ptr %34, ptr %12, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.graph_t, ptr %35, i32 0, i32 28
  %37 = load ptr, ptr %36, align 8, !tbaa !17
  store ptr %37, ptr %17, align 8, !tbaa !5
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.graph_t, ptr %38, i32 0, i32 20
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = call ptr @libmetis__iset(i64 noundef 3, i32 noundef 0, ptr noundef %40)
  store ptr %41, ptr %13, align 8, !tbaa !5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.graph_t, ptr %42, i32 0, i32 23
  %44 = load ptr, ptr %43, align 8, !tbaa !19
  store ptr %44, ptr %14, align 8, !tbaa !5
  %45 = load i32, ptr %7, align 4, !tbaa !12
  %46 = sext i32 %45 to i64
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.graph_t, ptr %47, i32 0, i32 22
  %49 = load ptr, ptr %48, align 8, !tbaa !20
  %50 = call ptr @libmetis__iset(i64 noundef %46, i32 noundef -1, ptr noundef %49)
  store ptr %50, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %8, align 4, !tbaa !12
  store i32 0, ptr %5, align 4, !tbaa !12
  br label %51

51:                                               ; preds = %181, %2
  %52 = load i32, ptr %5, align 4, !tbaa !12
  %53 = load i32, ptr %7, align 4, !tbaa !12
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %55, label %184

55:                                               ; preds = %51
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = load i32, ptr %5, align 4, !tbaa !12
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i32, ptr %56, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !12
  store i32 %60, ptr %18, align 4, !tbaa !12
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = load i32, ptr %5, align 4, !tbaa !12
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds i32, ptr %61, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !12
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = load i32, ptr %18, align 4, !tbaa !12
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i32, ptr %66, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !12
  %71 = add nsw i32 %70, %65
  store i32 %71, ptr %69, align 4, !tbaa !12
  %72 = load i32, ptr %18, align 4, !tbaa !12
  %73 = icmp sge i32 %72, 0
  br i1 %73, label %74, label %77

74:                                               ; preds = %55
  %75 = load i32, ptr %18, align 4, !tbaa !12
  %76 = icmp sle i32 %75, 2
  br i1 %76, label %87, label %77

77:                                               ; preds = %74, %55
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef 111, ptr noundef @.str.1)
  %79 = load i32, ptr %18, align 4, !tbaa !12
  %80 = icmp sge i32 %79, 0
  br i1 %80, label %81, label %85

81:                                               ; preds = %77
  %82 = load i32, ptr %18, align 4, !tbaa !12
  %83 = icmp sle i32 %82, 2
  br i1 %83, label %84, label %85

84:                                               ; preds = %81
  br label %86

85:                                               ; preds = %81, %77
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 111, ptr noundef @__PRETTY_FUNCTION__.libmetis__Compute2WayNodePartitionParams) #5
  unreachable

86:                                               ; preds = %84
  br label %87

87:                                               ; preds = %86, %74
  %88 = load i32, ptr %18, align 4, !tbaa !12
  %89 = icmp eq i32 %88, 2
  br i1 %89, label %90, label %180

90:                                               ; preds = %87
  br label %91

91:                                               ; preds = %90
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = load i32, ptr %5, align 4, !tbaa !12
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %92, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !12
  %97 = icmp eq i32 %96, -1
  br i1 %97, label %109, label %98

98:                                               ; preds = %91
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef 114, ptr noundef @.str.1)
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = load i32, ptr %5, align 4, !tbaa !12
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i32, ptr %100, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !12
  %105 = icmp eq i32 %104, -1
  br i1 %105, label %106, label %107

106:                                              ; preds = %98
  br label %108

107:                                              ; preds = %98
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 114, ptr noundef @__PRETTY_FUNCTION__.libmetis__Compute2WayNodePartitionParams) #5
  unreachable

108:                                              ; preds = %106
  br label %109

109:                                              ; preds = %108, %91
  %110 = load i32, ptr %5, align 4, !tbaa !12
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = load i32, ptr %8, align 4, !tbaa !12
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds i32, ptr %111, i64 %113
  store i32 %110, ptr %114, align 4, !tbaa !12
  %115 = load i32, ptr %8, align 4, !tbaa !12
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %8, align 4, !tbaa !12
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = load i32, ptr %5, align 4, !tbaa !12
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds i32, ptr %117, i64 %119
  store i32 %115, ptr %120, align 4, !tbaa !12
  br label %121

121:                                              ; preds = %109
  br label %122

122:                                              ; preds = %121
  %123 = load ptr, ptr %17, align 8, !tbaa !5
  %124 = load i32, ptr %5, align 4, !tbaa !12
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds %struct.nrinfo_t, ptr %123, i64 %125
  %127 = getelementptr inbounds %struct.nrinfo_t, ptr %126, i32 0, i32 0
  %128 = getelementptr inbounds [2 x i32], ptr %127, i64 0, i64 0
  store ptr %128, ptr %16, align 8, !tbaa !5
  %129 = load ptr, ptr %16, align 8, !tbaa !5
  %130 = getelementptr inbounds i32, ptr %129, i64 1
  store i32 0, ptr %130, align 4, !tbaa !12
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  %132 = getelementptr inbounds i32, ptr %131, i64 0
  store i32 0, ptr %132, align 4, !tbaa !12
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = load i32, ptr %5, align 4, !tbaa !12
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds i32, ptr %133, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !12
  store i32 %137, ptr %6, align 4, !tbaa !12
  br label %138

138:                                              ; preds = %176, %122
  %139 = load i32, ptr %6, align 4, !tbaa !12
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = load i32, ptr %5, align 4, !tbaa !12
  %142 = add nsw i32 %141, 1
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds i32, ptr %140, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !12
  %146 = icmp slt i32 %139, %145
  br i1 %146, label %147, label %179

147:                                              ; preds = %138
  %148 = load ptr, ptr %12, align 8, !tbaa !5
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = load i32, ptr %6, align 4, !tbaa !12
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds i32, ptr %149, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !12
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds i32, ptr %148, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !12
  store i32 %156, ptr %19, align 4, !tbaa !12
  %157 = load i32, ptr %19, align 4, !tbaa !12
  %158 = icmp ne i32 %157, 2
  br i1 %158, label %159, label %175

159:                                              ; preds = %147
  %160 = load ptr, ptr %11, align 8, !tbaa !5
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = load i32, ptr %6, align 4, !tbaa !12
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i32, ptr %161, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !12
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds i32, ptr %160, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !12
  %169 = load ptr, ptr %16, align 8, !tbaa !5
  %170 = load i32, ptr %19, align 4, !tbaa !12
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds i32, ptr %169, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !12
  %174 = add nsw i32 %173, %168
  store i32 %174, ptr %172, align 4, !tbaa !12
  br label %175

175:                                              ; preds = %159, %147
  br label %176

176:                                              ; preds = %175
  %177 = load i32, ptr %6, align 4, !tbaa !12
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %6, align 4, !tbaa !12
  br label %138, !llvm.loop !21

179:                                              ; preds = %138
  br label %180

180:                                              ; preds = %179, %87
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %5, align 4, !tbaa !12
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %5, align 4, !tbaa !12
  br label %51, !llvm.loop !23

184:                                              ; preds = %51
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = load i32, ptr %8, align 4, !tbaa !12
  %187 = call i32 @libmetis__CheckNodeBnd(ptr noundef %185, i32 noundef %186)
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %198, label %189

189:                                              ; preds = %184
  %190 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef 127, ptr noundef @.str.1)
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = load i32, ptr %8, align 4, !tbaa !12
  %193 = call i32 @libmetis__CheckNodeBnd(ptr noundef %191, i32 noundef %192)
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %195, label %196

195:                                              ; preds = %189
  br label %197

196:                                              ; preds = %189
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 127, ptr noundef @__PRETTY_FUNCTION__.libmetis__Compute2WayNodePartitionParams) #5
  unreachable

197:                                              ; preds = %195
  br label %198

198:                                              ; preds = %197, %184
  %199 = load ptr, ptr %13, align 8, !tbaa !5
  %200 = getelementptr inbounds i32, ptr %199, i64 2
  %201 = load i32, ptr %200, align 4, !tbaa !12
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.graph_t, ptr %202, i32 0, i32 17
  store i32 %201, ptr %203, align 8, !tbaa !24
  %204 = load i32, ptr %8, align 4, !tbaa !12
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.graph_t, ptr %205, i32 0, i32 21
  store i32 %204, ptr %206, align 8, !tbaa !25
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
}

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

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

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

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

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

declare i32 @libmetis__CheckNodeBnd(ptr noundef, i32 noundef) #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 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !11, i64 0}
!10 = !{!"graph_t", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96, !6, i64 104, !11, i64 112, !11, i64 116, !6, i64 120, !6, i64 128, !11, 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}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 40}
!16 = !{!10, !6, i64 120}
!17 = !{!10, !6, i64 192}
!18 = !{!10, !6, i64 128}
!19 = !{!10, !6, i64 152}
!20 = !{!10, !6, i64 144}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!10, !11, i64 112}
!25 = !{!10, !11, i64 136}


; 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.nrinfo_t = type { [2 x i32] }

@.str.1 = external hidden unnamed_addr constant [140 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__Compute2WayNodePartitionParams = external hidden unnamed_addr constant [67 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__Compute2WayNodePartitionParams(ptr nocapture noundef readnone %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = load i32, ptr %1, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %1, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !11
  %6 = getelementptr inbounds i8, ptr %1, i64 24
  %7 = load ptr, ptr %6, align 8, !tbaa !12
  %8 = getelementptr inbounds i8, ptr %1, i64 40
  %9 = load ptr, ptr %8, align 8, !tbaa !13
  %10 = getelementptr inbounds i8, ptr %1, i64 120
  %11 = load ptr, ptr %10, align 8, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %1, i64 192
  %13 = load ptr, ptr %12, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %1, i64 128
  %15 = load ptr, ptr %14, align 8, !tbaa !16
  %16 = tail call ptr @libmetis__iset(i64 noundef 3, i32 noundef 0, ptr noundef %15) #4
  %17 = getelementptr inbounds i8, ptr %1, i64 152
  %18 = load ptr, ptr %17, align 8, !tbaa !17
  %19 = sext i32 %3 to i64
  %20 = getelementptr inbounds i8, ptr %1, i64 144
  %21 = load ptr, ptr %20, align 8, !tbaa !18
  %22 = tail call ptr @libmetis__iset(i64 noundef %19, i32 noundef -1, ptr noundef %21) #4
  %23 = icmp sgt i32 %3, 0
  br i1 %23, label %.lr.ph73.preheader, label %._crit_edge

.lr.ph73.preheader:                               ; preds = %2
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %.lr.ph73

.lr.ph73:                                         ; preds = %.lr.ph73.preheader, %.loopexit
  %indvars.iv75 = phi i64 [ 0, %.lr.ph73.preheader ], [ %indvars.iv.next76, %.loopexit ]
  %.06471 = phi i32 [ 0, %.lr.ph73.preheader ], [ %.1, %.loopexit ]
  %24 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv75
  %25 = load i32, ptr %24, align 4, !tbaa !19
  %26 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv75
  %27 = load i32, ptr %26, align 4, !tbaa !19
  %28 = sext i32 %25 to i64
  %29 = getelementptr inbounds i32, ptr %16, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !19
  %31 = add nsw i32 %30, %27
  store i32 %31, ptr %29, align 4, !tbaa !19
  %or.cond = icmp ult i32 %25, 3
  br i1 %or.cond, label %34, label %32

32:                                               ; preds = %.lr.ph73
  %33 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef 111, ptr noundef nonnull @.str.1)
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 111, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__Compute2WayNodePartitionParams) #5
  unreachable

34:                                               ; preds = %.lr.ph73
  %35 = icmp eq i32 %25, 2
  br i1 %35, label %36, label %.loopexit

36:                                               ; preds = %34
  %37 = getelementptr inbounds i32, ptr %22, i64 %indvars.iv75
  %38 = load i32, ptr %37, align 4, !tbaa !19
  %39 = icmp eq i32 %38, -1
  br i1 %39, label %45, label %40

40:                                               ; preds = %36
  %41 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef 114, ptr noundef nonnull @.str.1)
  %42 = load i32, ptr %37, align 4, !tbaa !19
  %43 = icmp eq i32 %42, -1
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, i32 noundef 114, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__Compute2WayNodePartitionParams) #5
  unreachable

45:                                               ; preds = %40, %36
  %46 = sext i32 %.06471 to i64
  %47 = getelementptr inbounds i32, ptr %18, i64 %46
  %48 = trunc nuw nsw i64 %indvars.iv75 to i32
  store i32 %48, ptr %47, align 4, !tbaa !19
  %49 = add nsw i32 %.06471, 1
  store i32 %.06471, ptr %37, align 4, !tbaa !19
  %50 = getelementptr inbounds %struct.nrinfo_t, ptr %13, i64 %indvars.iv75
  %51 = getelementptr inbounds i8, ptr %50, i64 4
  store i32 0, ptr %51, align 4, !tbaa !19
  store i32 0, ptr %50, align 4, !tbaa !19
  %52 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv75
  %53 = load i32, ptr %52, align 4, !tbaa !19
  %54 = getelementptr inbounds i8, ptr %52, i64 4
  %55 = load i32, ptr %54, align 4, !tbaa !19
  %56 = icmp slt i32 %53, %55
  br i1 %56, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %45
  %57 = sext i32 %53 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %71
  %58 = phi i32 [ %55, %.lr.ph.preheader ], [ %72, %71 ]
  %indvars.iv = phi i64 [ %57, %.lr.ph.preheader ], [ %indvars.iv.next, %71 ]
  %59 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv
  %60 = load i32, ptr %59, align 4, !tbaa !19
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds i32, ptr %11, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !19
  %.not67 = icmp eq i32 %63, 2
  br i1 %.not67, label %71, label %64

64:                                               ; preds = %.lr.ph
  %65 = getelementptr inbounds i32, ptr %7, i64 %61
  %66 = load i32, ptr %65, align 4, !tbaa !19
  %67 = sext i32 %63 to i64
  %68 = getelementptr inbounds i32, ptr %50, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !19
  %70 = add nsw i32 %69, %66
  store i32 %70, ptr %68, align 4, !tbaa !19
  %.pre = load i32, ptr %54, align 4, !tbaa !19
  br label %71

71:                                               ; preds = %.lr.ph, %64
  %72 = phi i32 [ %58, %.lr.ph ], [ %.pre, %64 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %73 = sext i32 %72 to i64
  %74 = icmp slt i64 %indvars.iv.next, %73
  br i1 %74, label %.lr.ph, label %.loopexit, !llvm.loop !20

.loopexit:                                        ; preds = %71, %45, %34
  %.1 = phi i32 [ %.06471, %34 ], [ %49, %45 ], [ %49, %71 ]
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next76, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph73, !llvm.loop !22

._crit_edge:                                      ; preds = %.loopexit, %2
  %.064.lcssa = phi i32 [ 0, %2 ], [ %.1, %.loopexit ]
  %75 = tail call i32 @libmetis__CheckNodeBnd(ptr noundef nonnull %1, i32 noundef %.064.lcssa) #4
  %.not = icmp eq i32 %75, 0
  br i1 %.not, label %76, label %80

76:                                               ; preds = %._crit_edge
  %77 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef 127, ptr noundef nonnull @.str.1)
  %78 = tail call i32 @libmetis__CheckNodeBnd(ptr noundef nonnull %1, i32 noundef %.064.lcssa) #4
  %.not66 = icmp eq i32 %78, 0
  br i1 %.not66, label %79, label %80

79:                                               ; preds = %76
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 127, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__Compute2WayNodePartitionParams) #5
  unreachable

80:                                               ; preds = %76, %._crit_edge
  %81 = getelementptr inbounds i8, ptr %16, i64 8
  %82 = load i32, ptr %81, align 4, !tbaa !19
  %83 = getelementptr inbounds i8, ptr %1, i64 112
  store i32 %82, ptr %83, align 8, !tbaa !23
  %84 = getelementptr inbounds i8, ptr %1, i64 136
  store i32 %.064.lcssa, ptr %84, align 8, !tbaa !24
  ret void
}

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

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

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

declare i32 @libmetis__CheckNodeBnd(ptr noundef, i32 noundef) local_unnamed_addr #3

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 = { 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 #2 = { 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 #3 = { "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 16}
!12 = !{!6, !10, i64 24}
!13 = !{!6, !10, i64 40}
!14 = !{!6, !10, i64 120}
!15 = !{!6, !10, i64 192}
!16 = !{!6, !10, i64 128}
!17 = !{!6, !10, i64 152}
!18 = !{!6, !10, i64 144}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!6, !7, i64 112}
!24 = !{!6, !7, i64 136}


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