; 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
@__PRETTY_FUNCTION__.libmetis__CheckBnd = external hidden unnamed_addr constant [36 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

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

30:                                               ; preds = %136, %1
  %31 = load i32, ptr %3, align 4, !tbaa !12
  %32 = load i32, ptr %5, align 4, !tbaa !12
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %34, label %139

34:                                               ; preds = %30
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load i32, ptr %3, align 4, !tbaa !12
  %37 = add nsw i32 %36, 1
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i32, ptr %35, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !12
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = load i32, ptr %3, align 4, !tbaa !12
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds i32, ptr %41, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !12
  %46 = sub nsw i32 %40, %45
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %51

48:                                               ; preds = %34
  %49 = load i32, ptr %6, align 4, !tbaa !12
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %6, align 4, !tbaa !12
  br label %51

51:                                               ; preds = %48, %34
  %52 = load ptr, ptr %7, 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
  store i32 %56, ptr %4, align 4, !tbaa !12
  br label %57

57:                                               ; preds = %132, %51
  %58 = load i32, ptr %4, align 4, !tbaa !12
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = load i32, ptr %3, align 4, !tbaa !12
  %61 = add nsw i32 %60, 1
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i32, ptr %59, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !12
  %65 = icmp slt i32 %58, %64
  br i1 %65, label %66, label %135

66:                                               ; preds = %57
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load i32, ptr %3, align 4, !tbaa !12
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds i32, ptr %67, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !12
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = load i32, ptr %4, align 4, !tbaa !12
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds i32, ptr %73, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !12
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i32, ptr %72, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !12
  %81 = icmp ne i32 %71, %80
  br i1 %81, label %82, label %131

82:                                               ; preds = %66
  %83 = load i32, ptr %6, align 4, !tbaa !12
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %6, align 4, !tbaa !12
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = load i32, ptr %3, align 4, !tbaa !12
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds i32, ptr %85, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !12
  %90 = icmp ne i32 %89, -1
  br i1 %90, label %102, label %91

91:                                               ; preds = %82
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 140, ptr noundef @.str.4)
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = load i32, ptr %3, align 4, !tbaa !12
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i32, ptr %93, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !12
  %98 = icmp ne i32 %97, -1
  br i1 %98, label %99, label %100

99:                                               ; preds = %91
  br label %101

100:                                              ; preds = %91
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.4, i32 noundef 140, ptr noundef @__PRETTY_FUNCTION__.libmetis__CheckBnd) #5
  unreachable

101:                                              ; preds = %99
  br label %102

102:                                              ; preds = %101, %82
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = load i32, ptr %3, align 4, !tbaa !12
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i32, ptr %104, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !12
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %103, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !12
  %112 = load i32, ptr %3, align 4, !tbaa !12
  %113 = icmp eq i32 %111, %112
  br i1 %113, label %130, label %114

114:                                              ; preds = %102
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef 141, ptr noundef @.str.4)
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load i32, ptr %3, align 4, !tbaa !12
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds i32, ptr %117, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !12
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %116, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !12
  %125 = load i32, ptr %3, align 4, !tbaa !12
  %126 = icmp eq i32 %124, %125
  br i1 %126, label %127, label %128

127:                                              ; preds = %114
  br label %129

128:                                              ; preds = %114
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.4, i32 noundef 141, ptr noundef @__PRETTY_FUNCTION__.libmetis__CheckBnd) #5
  unreachable

129:                                              ; preds = %127
  br label %130

130:                                              ; preds = %129, %102
  br label %135

131:                                              ; preds = %66
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %4, align 4, !tbaa !12
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %4, align 4, !tbaa !12
  br label %57, !llvm.loop !18

135:                                              ; preds = %130, %57
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %3, align 4, !tbaa !12
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %3, align 4, !tbaa !12
  br label %30, !llvm.loop !20

139:                                              ; preds = %30
  %140 = load i32, ptr %6, align 4, !tbaa !12
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.graph_t, ptr %141, i32 0, i32 21
  %143 = load i32, ptr %142, align 8, !tbaa !21
  %144 = icmp eq i32 %140, %143
  br i1 %144, label %161, label %145

145:                                              ; preds = %139
  %146 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef 147, ptr noundef @.str.4)
  %147 = load i32, ptr %6, align 4, !tbaa !12
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.graph_t, ptr %148, i32 0, i32 21
  %150 = load i32, ptr %149, align 8, !tbaa !21
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %147, i32 noundef %150)
  %152 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %153 = load i32, ptr %6, align 4, !tbaa !12
  %154 = load ptr, ptr %2, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.graph_t, ptr %154, i32 0, i32 21
  %156 = load i32, ptr %155, align 8, !tbaa !21
  %157 = icmp eq i32 %153, %156
  br i1 %157, label %158, label %159

158:                                              ; preds = %145
  br label %160

159:                                              ; preds = %145
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.4, i32 noundef 147, ptr noundef @__PRETTY_FUNCTION__.libmetis__CheckBnd) #5
  unreachable

160:                                              ; preds = %158
  br label %161

161:                                              ; preds = %160, %139
  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 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !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 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!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
@__PRETTY_FUNCTION__.libmetis__CheckBnd = external hidden unnamed_addr constant [36 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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @libmetis__CheckBnd(ptr nocapture noundef readonly %0) local_unnamed_addr #1 {
  %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.ph52.preheader, label %._crit_edge

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

.lr.ph52:                                         ; preds = %.lr.ph52.preheader, %.loopexit
  %indvars.iv54 = phi i64 [ 0, %.lr.ph52.preheader ], [ %indvars.iv.next55, %.loopexit ]
  %.04450 = phi i32 [ 0, %.lr.ph52.preheader ], [ %.2, %.loopexit ]
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %14 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv.next55
  %15 = load i32, ptr %14, align 4, !tbaa !16
  %16 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv54
  %17 = load i32, ptr %16, align 4, !tbaa !16
  %18 = icmp eq i32 %15, %17
  %19 = zext i1 %18 to i32
  %spec.select = add nsw i32 %.04450, %19
  %20 = icmp slt i32 %17, %15
  br i1 %20, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph52
  %21 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv54
  %22 = load i32, ptr %21, align 4, !tbaa !16
  %23 = sext i32 %17 to i64
  br label %25

24:                                               ; preds = %25
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %15, %lftr.wideiv
  br i1 %exitcond.not, label %.loopexit, label %25, !llvm.loop !17

25:                                               ; preds = %.lr.ph, %24
  %indvars.iv = phi i64 [ %23, %.lr.ph ], [ %indvars.iv.next, %24 ]
  %26 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv
  %27 = load i32, ptr %26, align 4, !tbaa !16
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds i32, ptr %8, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !16
  %.not = icmp eq i32 %22, %30
  br i1 %.not, label %24, label %31

31:                                               ; preds = %25
  %32 = add nsw i32 %spec.select, 1
  %33 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv54
  %34 = load i32, ptr %33, align 4, !tbaa !16
  %.not45 = icmp eq i32 %34, -1
  br i1 %.not45, label %35, label %39

35:                                               ; preds = %31
  %36 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 140, ptr noundef nonnull @.str.4)
  %37 = load i32, ptr %33, align 4, !tbaa !16
  %.not46 = icmp eq i32 %37, -1
  br i1 %.not46, label %38, label %39

38:                                               ; preds = %35
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.4, i32 noundef 140, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__CheckBnd) #3
  unreachable

39:                                               ; preds = %35, %31
  %40 = phi i32 [ %37, %35 ], [ %34, %31 ]
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i32, ptr %12, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !16
  %44 = zext i32 %43 to i64
  %45 = icmp eq i64 %indvars.iv54, %44
  br i1 %45, label %.loopexit, label %46

46:                                               ; preds = %39
  %47 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef 141, ptr noundef nonnull @.str.4)
  %48 = load i32, ptr %33, align 4, !tbaa !16
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr %12, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !16
  %52 = zext i32 %51 to i64
  %53 = icmp eq i64 %indvars.iv54, %52
  br i1 %53, label %.loopexit, label %54

54:                                               ; preds = %46
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.4, i32 noundef 141, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__CheckBnd) #3
  unreachable

.loopexit:                                        ; preds = %24, %.lr.ph52, %46, %39
  %.2 = phi i32 [ %32, %39 ], [ %32, %46 ], [ %spec.select, %.lr.ph52 ], [ %spec.select, %24 ]
  %exitcond57.not = icmp eq i64 %indvars.iv.next55, %wide.trip.count
  br i1 %exitcond57.not, label %._crit_edge, label %.lr.ph52, !llvm.loop !19

._crit_edge:                                      ; preds = %.loopexit, %1
  %.044.lcssa = phi i32 [ 0, %1 ], [ %.2, %.loopexit ]
  %55 = getelementptr inbounds i8, ptr %0, i64 136
  %56 = load i32, ptr %55, align 8, !tbaa !20
  %57 = icmp eq i32 %.044.lcssa, %56
  br i1 %57, label %66, label %58

58:                                               ; preds = %._crit_edge
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, i32 noundef 147, ptr noundef nonnull @.str.4)
  %60 = load i32, ptr %55, align 8, !tbaa !20
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %.044.lcssa, i32 noundef %60)
  %62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10)
  %63 = load i32, ptr %55, align 8, !tbaa !20
  %64 = icmp eq i32 %.044.lcssa, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %58
  tail call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.4, i32 noundef 147, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__CheckBnd) #3
  unreachable

66:                                               ; preds = %58, %._crit_edge
  ret i32 1
}

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

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 = { 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 #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 = { 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 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!6, !7, i64 136}


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