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

; 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 }

@.str.3 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__CheckBnd2 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

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

32:                                               ; preds = %164, %1
  %33 = load i32, ptr %3, align 4, !tbaa !12
  %34 = load i32, ptr %5, align 4, !tbaa !12
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %36, label %167

36:                                               ; preds = %32
  store i32 0, ptr %8, align 4, !tbaa !12
  store i32 0, ptr %7, align 4, !tbaa !12
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = load i32, ptr %3, align 4, !tbaa !12
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds i32, ptr %37, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !12
  store i32 %41, ptr %4, align 4, !tbaa !12
  br label %42

42:                                               ; preds = %88, %36
  %43 = load i32, ptr %4, align 4, !tbaa !12
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load i32, ptr %3, align 4, !tbaa !12
  %46 = add nsw i32 %45, 1
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i32, ptr %44, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !12
  %50 = icmp slt i32 %43, %49
  br i1 %50, label %51, label %91

51:                                               ; preds = %42
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = load i32, ptr %3, align 4, !tbaa !12
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds i32, ptr %52, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !12
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = load i32, ptr %4, align 4, !tbaa !12
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i32, ptr %58, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !12
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds i32, ptr %57, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !12
  %66 = icmp ne i32 %56, %65
  br i1 %66, label %67, label %77

67:                                               ; preds = %51
  %68 = load ptr, ptr %2, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.graph_t, ptr %68, i32 0, i32 7
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  %71 = load i32, ptr %4, align 4, !tbaa !12
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds i32, ptr %70, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !12
  %75 = load i32, ptr %8, align 4, !tbaa !12
  %76 = add nsw i32 %75, %74
  store i32 %76, ptr %8, align 4, !tbaa !12
  br label %87

77:                                               ; preds = %51
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.graph_t, ptr %78, i32 0, i32 7
  %80 = load ptr, ptr %79, align 8, !tbaa !18
  %81 = load i32, ptr %4, align 4, !tbaa !12
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i32, ptr %80, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !12
  %85 = load i32, ptr %7, align 4, !tbaa !12
  %86 = add nsw i32 %85, %84
  store i32 %86, ptr %7, align 4, !tbaa !12
  br label %87

87:                                               ; preds = %77, %67
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %4, align 4, !tbaa !12
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %4, align 4, !tbaa !12
  br label %42, !llvm.loop !19

91:                                               ; preds = %42
  %92 = load i32, ptr %8, align 4, !tbaa !12
  %93 = load i32, ptr %7, align 4, !tbaa !12
  %94 = sub nsw i32 %92, %93
  %95 = icmp sge i32 %94, 0
  br i1 %95, label %96, label %163

96:                                               ; preds = %91
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = load i32, ptr %3, align 4, !tbaa !12
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds i32, ptr %97, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !12
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load i32, ptr %3, align 4, !tbaa !12
  %104 = add nsw i32 %103, 1
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds i32, ptr %102, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !12
  %108 = icmp slt i32 %101, %107
  br i1 %108, label %109, label %163

109:                                              ; preds = %96
  %110 = load i32, ptr %6, align 4, !tbaa !12
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %6, align 4, !tbaa !12
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = load i32, ptr %3, align 4, !tbaa !12
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i32, ptr %112, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !12
  %117 = icmp ne i32 %116, -1
  br i1 %117, label %134, label %118

118:                                              ; preds = %109
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 180, ptr noundef @.str.4)
  %120 = load i32, ptr %3, align 4, !tbaa !12
  %121 = load i32, ptr %7, align 4, !tbaa !12
  %122 = load i32, ptr %8, align 4, !tbaa !12
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %120, i32 noundef %121, i32 noundef %122)
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = load i32, ptr %3, align 4, !tbaa !12
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds i32, ptr %125, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !12
  %130 = icmp ne i32 %129, -1
  br i1 %130, label %131, label %132

131:                                              ; preds = %118
  br label %133

132:                                              ; preds = %118
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 180, ptr noundef @__PRETTY_FUNCTION__.libmetis__CheckBnd2) #5
  unreachable

133:                                              ; preds = %131
  br label %134

134:                                              ; preds = %133, %109
  %135 = load ptr, ptr %13, align 8, !tbaa !5
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  %137 = load i32, ptr %3, align 4, !tbaa !12
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds i32, ptr %136, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !12
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i32, ptr %135, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !12
  %144 = load i32, ptr %3, align 4, !tbaa !12
  %145 = icmp eq i32 %143, %144
  br i1 %145, label %162, label %146

146:                                              ; preds = %134
  %147 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef 181, ptr noundef @.str.4)
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = load i32, ptr %3, 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
  %157 = load i32, ptr %3, align 4, !tbaa !12
  %158 = icmp eq i32 %156, %157
  br i1 %158, label %159, label %160

159:                                              ; preds = %146
  br label %161

160:                                              ; preds = %146
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 181, ptr noundef @__PRETTY_FUNCTION__.libmetis__CheckBnd2) #5
  unreachable

161:                                              ; preds = %159
  br label %162

162:                                              ; preds = %161, %134
  br label %163

163:                                              ; preds = %162, %96, %91
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %3, align 4, !tbaa !12
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %3, align 4, !tbaa !12
  br label %32, !llvm.loop !21

167:                                              ; preds = %32
  %168 = load i32, ptr %6, align 4, !tbaa !12
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.graph_t, ptr %169, i32 0, i32 21
  %171 = load i32, ptr %170, align 8, !tbaa !22
  %172 = icmp eq i32 %168, %171
  br i1 %172, label %189, label %173

173:                                              ; preds = %167
  %174 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef 185, ptr noundef @.str.4)
  %175 = load i32, ptr %6, align 4, !tbaa !12
  %176 = load ptr, ptr %2, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.graph_t, ptr %176, i32 0, i32 21
  %178 = load i32, ptr %177, align 8, !tbaa !22
  %179 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %175, i32 noundef %178)
  %180 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %181 = load i32, ptr %6, align 4, !tbaa !12
  %182 = load ptr, ptr %2, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.graph_t, ptr %182, i32 0, i32 21
  %184 = load i32, ptr %183, align 8, !tbaa !22
  %185 = icmp eq i32 %181, %184
  br i1 %185, label %186, label %187

186:                                              ; preds = %173
  br label %188

187:                                              ; preds = %173
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.4, i32 noundef 185, ptr noundef @__PRETTY_FUNCTION__.libmetis__CheckBnd2) #5
  unreachable

188:                                              ; preds = %186
  br label %189

189:                                              ; preds = %188, %167
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret i32 1
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #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 40}
!15 = !{!10, !6, i64 120}
!16 = !{!10, !6, i64 144}
!17 = !{!10, !6, i64 152}
!18 = !{!10, !6, i64 48}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!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"

@.str.3 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__CheckBnd2 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @libmetis__CheckBnd2(ptr nocapture noundef readonly %0) local_unnamed_addr #2 {
  %2 = load i32, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = load ptr, ptr %3, align 8, !tbaa !11
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = load ptr, ptr %5, align 8, !tbaa !12
  %7 = getelementptr inbounds i8, ptr %0, i64 120
  %8 = load ptr, ptr %7, align 8, !tbaa !13
  %9 = getelementptr inbounds i8, ptr %0, i64 144
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %0, i64 152
  %12 = load ptr, ptr %11, align 8, !tbaa !15
  %13 = icmp sgt i32 %2, 0
  br i1 %13, label %.lr.ph75, label %._crit_edge76

.lr.ph75:                                         ; preds = %1
  %14 = getelementptr inbounds i8, ptr %0, i64 48
  %wide.trip.count82 = zext nneg i32 %2 to i64
  br label %15

15:                                               ; preds = %.lr.ph75, %._crit_edge.thread
  %indvars.iv79 = phi i64 [ 0, %.lr.ph75 ], [ %indvars.iv.next80, %._crit_edge.thread ]
  %.05472 = phi i32 [ 0, %.lr.ph75 ], [ %.1, %._crit_edge.thread ]
  %16 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv79
  %17 = load i32, ptr %16, align 4, !tbaa !16
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %18 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv.next80
  %19 = load i32, ptr %18, align 4, !tbaa !16
  %20 = icmp slt i32 %17, %19
  br i1 %20, label %.lr.ph, label %._crit_edge.thread

.lr.ph:                                           ; preds = %15
  %21 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv79
  %22 = load i32, ptr %21, align 4, !tbaa !16
  %23 = sext i32 %17 to i64
  %wide.trip.count = sext i32 %19 to i64
  %24 = sub nsw i64 %wide.trip.count, %23
  %xtraiter = and i64 %24, 1
  %25 = add nsw i64 %wide.trip.count, -1
  %26 = icmp eq i64 %25, %23
  br i1 %26, label %._crit_edge.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %24, -2
  %27 = load ptr, ptr %14, align 8, !tbaa !17
  br label %28

28:                                               ; preds = %28, %.lr.ph.new
  %indvars.iv = phi i64 [ %23, %.lr.ph.new ], [ %indvars.iv.next.1, %28 ]
  %.05567 = phi i32 [ 0, %.lr.ph.new ], [ %.156.1, %28 ]
  %.05766 = phi i32 [ 0, %.lr.ph.new ], [ %.158.1, %28 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %28 ]
  %29 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv
  %30 = load i32, ptr %29, align 4, !tbaa !16
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds i32, ptr %8, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !16
  %.not62 = icmp eq i32 %22, %33
  %34 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv
  %35 = load i32, ptr %34, align 4, !tbaa !16
  %36 = select i1 %.not62, i32 0, i32 %35
  %.158 = add nsw i32 %.05766, %36
  %37 = select i1 %.not62, i32 %35, i32 0
  %.156 = add nsw i32 %.05567, %37
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %38 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next
  %39 = load i32, ptr %38, align 4, !tbaa !16
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i32, ptr %8, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !16
  %.not62.1 = icmp eq i32 %22, %42
  %43 = getelementptr inbounds i32, ptr %27, i64 %indvars.iv.next
  %44 = load i32, ptr %43, align 4, !tbaa !16
  %45 = select i1 %.not62.1, i32 0, i32 %44
  %.158.1 = add nsw i32 %.158, %45
  %46 = select i1 %.not62.1, i32 %44, i32 0
  %.156.1 = add nsw i32 %.156, %46
  %indvars.iv.next.1 = add nsw i64 %indvars.iv, 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.unr-lcssa, label %28, !llvm.loop !18

._crit_edge.unr-lcssa:                            ; preds = %28, %.lr.ph
  %.158.lcssa.ph = phi i32 [ poison, %.lr.ph ], [ %.158.1, %28 ]
  %.156.lcssa.ph = phi i32 [ poison, %.lr.ph ], [ %.156.1, %28 ]
  %indvars.iv.unr = phi i64 [ %23, %.lr.ph ], [ %indvars.iv.next.1, %28 ]
  %.05567.unr = phi i32 [ 0, %.lr.ph ], [ %.156.1, %28 ]
  %.05766.unr = phi i32 [ 0, %.lr.ph ], [ %.158.1, %28 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.epilog-lcssa

._crit_edge.epilog-lcssa:                         ; preds = %._crit_edge.unr-lcssa
  %47 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.unr
  %48 = load i32, ptr %47, align 4, !tbaa !16
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr %8, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !16
  %.not62.epil = icmp eq i32 %22, %51
  %52 = load ptr, ptr %14, align 8, !tbaa !17
  %53 = getelementptr inbounds i32, ptr %52, i64 %indvars.iv.unr
  %54 = load i32, ptr %53, align 4, !tbaa !16
  %55 = select i1 %.not62.epil, i32 0, i32 %54
  %.158.epil = add nsw i32 %.05766.unr, %55
  %56 = select i1 %.not62.epil, i32 %54, i32 0
  %.156.epil = add nsw i32 %.05567.unr, %56
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %._crit_edge.epilog-lcssa
  %.158.lcssa = phi i32 [ %.158.lcssa.ph, %._crit_edge.unr-lcssa ], [ %.158.epil, %._crit_edge.epilog-lcssa ]
  %.156.lcssa = phi i32 [ %.156.lcssa.ph, %._crit_edge.unr-lcssa ], [ %.156.epil, %._crit_edge.epilog-lcssa ]
  %.not = icmp sge i32 %.158.lcssa, %.156.lcssa
  %or.cond = and i1 %.not, %20
  br i1 %or.cond, label %57, label %._crit_edge.thread

57:                                               ; preds = %._crit_edge
  %58 = add nsw i32 %.05472, 1
  %59 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv79
  %60 = load i32, ptr %59, align 4, !tbaa !16
  %.not60 = icmp eq i32 %60, -1
  br i1 %.not60, label %61, label %68

61:                                               ; preds = %57
  %62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 180, ptr noundef nonnull @.str.4)
  %63 = trunc nuw nsw i64 %indvars.iv79 to i32
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %63, i32 noundef %.156.lcssa, i32 noundef %.158.lcssa)
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %66 = load i32, ptr %59, align 4, !tbaa !16
  %.not61 = icmp eq i32 %66, -1
  br i1 %.not61, label %67, label %68

67:                                               ; preds = %61
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 180, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__CheckBnd2) #3
  unreachable

68:                                               ; preds = %61, %57
  %69 = phi i32 [ %66, %61 ], [ %60, %57 ]
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i32, ptr %12, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !16
  %73 = zext i32 %72 to i64
  %74 = icmp eq i64 %indvars.iv79, %73
  br i1 %74, label %._crit_edge.thread, label %75

75:                                               ; preds = %68
  %76 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 181, ptr noundef nonnull @.str.4)
  %77 = load i32, ptr %59, align 4, !tbaa !16
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i32, ptr %12, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !16
  %81 = zext i32 %80 to i64
  %82 = icmp eq i64 %indvars.iv79, %81
  br i1 %82, label %._crit_edge.thread, label %83

83:                                               ; preds = %75
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 181, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__CheckBnd2) #3
  unreachable

._crit_edge.thread:                               ; preds = %15, %._crit_edge, %75, %68
  %.1 = phi i32 [ %58, %68 ], [ %58, %75 ], [ %.05472, %._crit_edge ], [ %.05472, %15 ]
  %exitcond83.not = icmp eq i64 %indvars.iv.next80, %wide.trip.count82
  br i1 %exitcond83.not, label %._crit_edge76, label %15, !llvm.loop !20

._crit_edge76:                                    ; preds = %._crit_edge.thread, %1
  %.054.lcssa = phi i32 [ 0, %1 ], [ %.1, %._crit_edge.thread ]
  %84 = getelementptr inbounds i8, ptr %0, i64 136
  %85 = load i32, ptr %84, align 8, !tbaa !21
  %86 = icmp eq i32 %.054.lcssa, %85
  br i1 %86, label %95, label %87

87:                                               ; preds = %._crit_edge76
  %88 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 185, ptr noundef nonnull @.str.4)
  %89 = load i32, ptr %84, align 8, !tbaa !21
  %90 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %.054.lcssa, i32 noundef %89)
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %92 = load i32, ptr %84, align 8, !tbaa !21
  %93 = icmp eq i32 %.054.lcssa, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %87
  tail call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.4, i32 noundef 185, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__CheckBnd2) #3
  unreachable

95:                                               ; preds = %87, %._crit_edge76
  ret i32 1
}

attributes #0 = { 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 #1 = { 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 #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 40}
!13 = !{!6, !10, i64 120}
!14 = !{!6, !10, i64 144}
!15 = !{!6, !10, i64 152}
!16 = !{!7, !7, i64 0}
!17 = !{!6, !10, i64 48}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!6, !7, i64 136}


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