; LLVM IR from ekoontz/graphlab :: src/graphlab/extern/metis/libmetis/subdomains.ll_libmetis (PrintSubDomainGraph)

; 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.graphdef = type { i64, i64, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i64, i64, ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr, ptr, ptr, ptr }

@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [40 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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__PrintSubDomainGraph(ptr noundef %0, i64 noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.graphdef, ptr %18, i32 0, i32 0
  %20 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %20, ptr %11, align 8, !tbaa !9
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.graphdef, ptr %21, i32 0, i32 2
  %23 = load ptr, ptr %22, align 8, !tbaa !14
  store ptr %23, ptr %14, align 8, !tbaa !5
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.graphdef, ptr %24, i32 0, i32 5
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  store ptr %26, ptr %15, align 8, !tbaa !5
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.graphdef, ptr %27, i32 0, i32 6
  %29 = load ptr, ptr %28, align 8, !tbaa !16
  store ptr %29, ptr %16, align 8, !tbaa !5
  %30 = load i64, ptr %5, align 8, !tbaa !9
  %31 = load i64, ptr %5, align 8, !tbaa !9
  %32 = mul nsw i64 %30, %31
  %33 = call ptr @libmetis__idxsmalloc(i64 noundef %32, i64 noundef 0, ptr noundef @.str.6)
  store ptr %33, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %88, %3
  %35 = load i64, ptr %7, align 8, !tbaa !9
  %36 = load i64, ptr %11, align 8, !tbaa !9
  %37 = icmp slt i64 %35, %36
  br i1 %37, label %38, label %91

38:                                               ; preds = %34
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load i64, ptr %7, align 8, !tbaa !9
  %41 = getelementptr inbounds i64, ptr %39, i64 %40
  %42 = load i64, ptr %41, align 8, !tbaa !9
  store i64 %42, ptr %10, align 8, !tbaa !9
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  %44 = load i64, ptr %7, align 8, !tbaa !9
  %45 = getelementptr inbounds i64, ptr %43, i64 %44
  %46 = load i64, ptr %45, align 8, !tbaa !9
  store i64 %46, ptr %8, align 8, !tbaa !9
  br label %47

47:                                               ; preds = %84, %38
  %48 = load i64, ptr %8, align 8, !tbaa !9
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = load i64, ptr %7, align 8, !tbaa !9
  %51 = add nsw i64 %50, 1
  %52 = getelementptr inbounds i64, ptr %49, i64 %51
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = icmp slt i64 %48, %53
  br i1 %54, label %55, label %87

55:                                               ; preds = %47
  %56 = load ptr, ptr %15, align 8, !tbaa !5
  %57 = load i64, ptr %8, align 8, !tbaa !9
  %58 = getelementptr inbounds i64, ptr %56, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !9
  store i64 %59, ptr %9, align 8, !tbaa !9
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = load i64, ptr %9, align 8, !tbaa !9
  %62 = getelementptr inbounds i64, ptr %60, i64 %61
  %63 = load i64, ptr %62, align 8, !tbaa !9
  %64 = load i64, ptr %10, align 8, !tbaa !9
  %65 = icmp ne i64 %63, %64
  br i1 %65, label %66, label %83

66:                                               ; preds = %55
  %67 = load ptr, ptr %16, align 8, !tbaa !5
  %68 = load i64, ptr %8, align 8, !tbaa !9
  %69 = getelementptr inbounds i64, ptr %67, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !9
  %71 = load ptr, ptr %17, align 8, !tbaa !5
  %72 = load i64, ptr %10, align 8, !tbaa !9
  %73 = load i64, ptr %5, align 8, !tbaa !9
  %74 = mul nsw i64 %72, %73
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = load i64, ptr %9, align 8, !tbaa !9
  %77 = getelementptr inbounds i64, ptr %75, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = add nsw i64 %74, %78
  %80 = getelementptr inbounds i64, ptr %71, i64 %79
  %81 = load i64, ptr %80, align 8, !tbaa !9
  %82 = add nsw i64 %81, %70
  store i64 %82, ptr %80, align 8, !tbaa !9
  br label %83

83:                                               ; preds = %66, %55
  br label %84

84:                                               ; preds = %83
  %85 = load i64, ptr %8, align 8, !tbaa !9
  %86 = add nsw i64 %85, 1
  store i64 %86, ptr %8, align 8, !tbaa !9
  br label %47, !llvm.loop !17

87:                                               ; preds = %47
  br label %88

88:                                               ; preds = %87
  %89 = load i64, ptr %7, align 8, !tbaa !9
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %7, align 8, !tbaa !9
  br label %34, !llvm.loop !19

91:                                               ; preds = %34
  store i64 0, ptr %13, align 8, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !9
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %92

92:                                               ; preds = %128, %91
  %93 = load i64, ptr %7, align 8, !tbaa !9
  %94 = load i64, ptr %5, align 8, !tbaa !9
  %95 = icmp slt i64 %93, %94
  br i1 %95, label %96, label %131

96:                                               ; preds = %92
  store i64 0, ptr %9, align 8, !tbaa !9
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %115, %96
  %98 = load i64, ptr %8, align 8, !tbaa !9
  %99 = load i64, ptr %5, align 8, !tbaa !9
  %100 = icmp slt i64 %98, %99
  br i1 %100, label %101, label %118

101:                                              ; preds = %97
  %102 = load ptr, ptr %17, align 8, !tbaa !5
  %103 = load i64, ptr %7, align 8, !tbaa !9
  %104 = load i64, ptr %5, align 8, !tbaa !9
  %105 = mul nsw i64 %103, %104
  %106 = load i64, ptr %8, align 8, !tbaa !9
  %107 = add nsw i64 %105, %106
  %108 = getelementptr inbounds i64, ptr %102, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !9
  %110 = icmp sgt i64 %109, 0
  br i1 %110, label %111, label %114

111:                                              ; preds = %101
  %112 = load i64, ptr %9, align 8, !tbaa !9
  %113 = add nsw i64 %112, 1
  store i64 %113, ptr %9, align 8, !tbaa !9
  br label %114

114:                                              ; preds = %111, %101
  br label %115

115:                                              ; preds = %114
  %116 = load i64, ptr %8, align 8, !tbaa !9
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %8, align 8, !tbaa !9
  br label %97, !llvm.loop !20

118:                                              ; preds = %97
  %119 = load i64, ptr %9, align 8, !tbaa !9
  %120 = load i64, ptr %12, align 8, !tbaa !9
  %121 = add nsw i64 %120, %119
  store i64 %121, ptr %12, align 8, !tbaa !9
  %122 = load i64, ptr %9, align 8, !tbaa !9
  %123 = load i64, ptr %13, align 8, !tbaa !9
  %124 = icmp sgt i64 %122, %123
  br i1 %124, label %125, label %127

125:                                              ; preds = %118
  %126 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %126, ptr %13, align 8, !tbaa !9
  br label %127

127:                                              ; preds = %125, %118
  br label %128

128:                                              ; preds = %127
  %129 = load i64, ptr %7, align 8, !tbaa !9
  %130 = add nsw i64 %129, 1
  store i64 %130, ptr %7, align 8, !tbaa !9
  br label %92, !llvm.loop !21

131:                                              ; preds = %92
  %132 = load i64, ptr %12, align 8, !tbaa !9
  %133 = load i64, ptr %13, align 8, !tbaa !9
  %134 = call i32 (ptr, ...) @mprintf(ptr noundef @.str.7, i64 noundef %132, i64 noundef %133)
  call void (ptr, ...) @gk_free(ptr noundef %17, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

declare ptr @libmetis__idxsmalloc(i64 noundef, i64 noundef, ptr noundef) #1

declare void @gk_free(ptr noundef, ...) #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 = { 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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"graphdef", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !13, i64 60, !13, i64 64, !13, i64 68, !13, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !10, i64 120, !6, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !10, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !6, i64 16}
!15 = !{!12, !6, i64 40}
!16 = !{!12, !6, i64 48}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}


; 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.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [40 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__PrintSubDomainGraph(ptr nocapture noundef readonly %0, i64 noundef %1, ptr nocapture noundef readonly %2) local_unnamed_addr #2 {
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %5 = load i64, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load ptr, ptr %6, align 8, !tbaa !12
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = load ptr, ptr %8, align 8, !tbaa !13
  %10 = getelementptr inbounds i8, ptr %0, i64 48
  %11 = load ptr, ptr %10, align 8, !tbaa !14
  %12 = mul nsw i64 %1, %1
  %13 = tail call ptr @libmetis__idxsmalloc(i64 noundef %12, i64 noundef 0, ptr noundef nonnull @.str.6) #4
  store ptr %13, ptr %4, align 8, !tbaa !15
  %14 = icmp sgt i64 %5, 0
  br i1 %14, label %.lr.ph58.preheader, label %.preheader55

.lr.ph58.preheader:                               ; preds = %3
  %.pre = load i64, ptr %7, align 8, !tbaa !16
  br label %.lr.ph58

.loopexit:                                        ; preds = %57, %.lr.ph58
  %15 = phi i64 [ %41, %.lr.ph58 ], [ %58, %57 ]
  %exitcond.not = icmp eq i64 %39, %5
  br i1 %exitcond.not, label %.preheader55, label %.lr.ph58, !llvm.loop !17

.preheader55:                                     ; preds = %.loopexit, %3
  %16 = icmp sgt i64 %1, 0
  br i1 %16, label %.preheader.us.preheader, label %._crit_edge65

.preheader.us.preheader:                          ; preds = %.preheader55
  %min.iters.check = icmp ult i64 %1, 4
  %n.vec = and i64 %1, 9223372036854775804
  %cmp.n = icmp eq i64 %n.vec, %1
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.164.us = phi i64 [ %35, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %.04863.us = phi i64 [ %spec.select54.us, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %.05062.us = phi i64 [ %34, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %17 = mul nuw nsw i64 %.164.us, %1
  %18 = getelementptr i64, ptr %13, i64 %17
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader.us ]
  %vec.phi = phi <2 x i64> [ %25, %vector.body ], [ zeroinitializer, %.preheader.us ]
  %vec.phi74 = phi <2 x i64> [ %26, %vector.body ], [ zeroinitializer, %.preheader.us ]
  %19 = getelementptr i64, ptr %18, i64 %index
  %20 = getelementptr i8, ptr %19, i64 16
  %wide.load = load <2 x i64>, ptr %19, align 8, !tbaa !16
  %wide.load75 = load <2 x i64>, ptr %20, align 8, !tbaa !16
  %21 = icmp sgt <2 x i64> %wide.load, zeroinitializer
  %22 = icmp sgt <2 x i64> %wide.load75, zeroinitializer
  %23 = zext <2 x i1> %21 to <2 x i64>
  %24 = zext <2 x i1> %22 to <2 x i64>
  %25 = add <2 x i64> %vec.phi, %23
  %26 = add <2 x i64> %vec.phi74, %24
  %index.next = add nuw i64 %index, 4
  %27 = icmp eq i64 %index.next, %n.vec
  br i1 %27, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %26, %25
  %28 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader.us
  %.14560.us.ph = phi i64 [ 0, %.preheader.us ], [ %n.vec, %middle.block ]
  %.04659.us.ph = phi i64 [ 0, %.preheader.us ], [ %28, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.14560.us = phi i64 [ %33, %scalar.ph ], [ %.14560.us.ph, %scalar.ph.preheader ]
  %.04659.us = phi i64 [ %spec.select.us, %scalar.ph ], [ %.04659.us.ph, %scalar.ph.preheader ]
  %29 = getelementptr i64, ptr %18, i64 %.14560.us
  %30 = load i64, ptr %29, align 8, !tbaa !16
  %31 = icmp sgt i64 %30, 0
  %32 = zext i1 %31 to i64
  %spec.select.us = add nuw nsw i64 %.04659.us, %32
  %33 = add nuw nsw i64 %.14560.us, 1
  %exitcond69.not = icmp eq i64 %33, %1
  br i1 %exitcond69.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !22

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  %spec.select.us.lcssa = phi i64 [ %28, %middle.block ], [ %spec.select.us, %scalar.ph ]
  %34 = add nuw nsw i64 %spec.select.us.lcssa, %.05062.us
  %spec.select54.us = tail call i64 @llvm.smax.i64(i64 %spec.select.us.lcssa, i64 %.04863.us)
  %35 = add nuw nsw i64 %.164.us, 1
  %exitcond70.not = icmp eq i64 %35, %1
  br i1 %exitcond70.not, label %._crit_edge65, label %.preheader.us, !llvm.loop !23

.lr.ph58:                                         ; preds = %.lr.ph58.preheader, %.loopexit
  %36 = phi i64 [ %15, %.loopexit ], [ %.pre, %.lr.ph58.preheader ]
  %.057 = phi i64 [ %39, %.loopexit ], [ 0, %.lr.ph58.preheader ]
  %37 = getelementptr inbounds i64, ptr %2, i64 %.057
  %38 = load i64, ptr %37, align 8, !tbaa !16
  %39 = add nuw nsw i64 %.057, 1
  %40 = getelementptr inbounds i64, ptr %7, i64 %39
  %41 = load i64, ptr %40, align 8, !tbaa !16
  %42 = icmp slt i64 %36, %41
  br i1 %42, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph58
  %43 = mul nsw i64 %38, %1
  %44 = getelementptr i64, ptr %13, i64 %43
  br label %45

45:                                               ; preds = %.lr.ph, %57
  %46 = phi i64 [ %41, %.lr.ph ], [ %58, %57 ]
  %.04456 = phi i64 [ %36, %.lr.ph ], [ %59, %57 ]
  %47 = getelementptr inbounds i64, ptr %9, i64 %.04456
  %48 = load i64, ptr %47, align 8, !tbaa !16
  %49 = getelementptr inbounds i64, ptr %2, i64 %48
  %50 = load i64, ptr %49, align 8, !tbaa !16
  %.not = icmp eq i64 %50, %38
  br i1 %.not, label %57, label %51

51:                                               ; preds = %45
  %52 = getelementptr inbounds i64, ptr %11, i64 %.04456
  %53 = load i64, ptr %52, align 8, !tbaa !16
  %54 = getelementptr i64, ptr %44, i64 %50
  %55 = load i64, ptr %54, align 8, !tbaa !16
  %56 = add nsw i64 %55, %53
  store i64 %56, ptr %54, align 8, !tbaa !16
  %.pre71 = load i64, ptr %40, align 8, !tbaa !16
  br label %57

57:                                               ; preds = %45, %51
  %58 = phi i64 [ %46, %45 ], [ %.pre71, %51 ]
  %59 = add nsw i64 %.04456, 1
  %60 = icmp slt i64 %59, %58
  br i1 %60, label %45, label %.loopexit, !llvm.loop !24

._crit_edge65:                                    ; preds = %._crit_edge.us, %.preheader55
  %.050.lcssa = phi i64 [ 0, %.preheader55 ], [ %34, %._crit_edge.us ]
  %.048.lcssa = phi i64 [ 0, %.preheader55 ], [ %spec.select54.us, %._crit_edge.us ]
  %61 = tail call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.7, i64 noundef %.050.lcssa, i64 noundef %.048.lcssa) #4
  call void (ptr, ...) @gk_free(ptr noundef nonnull %4, ptr noundef null) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret void
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #3

attributes #0 = { mustprogress 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = !{!"graphdef", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 120, !10, i64 128, !10, i64 136, !7, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !7, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !10, i64 16}
!13 = !{!6, !10, i64 40}
!14 = !{!6, !10, i64 48}
!15 = !{!10, !10, i64 0}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18, !20, !21}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !18, !21, !20}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}


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