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

; 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 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [142 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__ConstructSeparator = external hidden unnamed_addr constant [55 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 x i8], align 1

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

35:                                               ; preds = %64, %2
  %36 = load i32, ptr %5, align 4, !tbaa !12
  %37 = load i32, ptr %9, align 4, !tbaa !12
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %39, label %67

39:                                               ; preds = %35
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = load i32, ptr %5, align 4, !tbaa !12
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds i32, ptr %40, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !12
  store i32 %44, ptr %6, align 4, !tbaa !12
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = load i32, ptr %6, align 4, !tbaa !12
  %47 = add nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds i32, ptr %45, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !12
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = load i32, ptr %6, align 4, !tbaa !12
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i32, ptr %51, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !12
  %56 = sub nsw i32 %50, %55
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %58, label %63

58:                                               ; preds = %39
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = load i32, ptr %6, align 4, !tbaa !12
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds i32, ptr %59, i64 %61
  store i32 2, ptr %62, align 4, !tbaa !12
  br label %63

63:                                               ; preds = %58, %39
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %5, align 4, !tbaa !12
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %5, align 4, !tbaa !12
  br label %35, !llvm.loop !17

67:                                               ; preds = %35
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libmetis__FreeRData(ptr noundef %68)
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libmetis__Allocate2WayNodePartitionMemory(ptr noundef %69, ptr noundef %70)
  %71 = load i32, ptr %8, align 4, !tbaa !12
  %72 = sext i32 %71 to i64
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.graph_t, ptr %74, i32 0, i32 19
  %76 = load ptr, ptr %75, align 8, !tbaa !16
  %77 = call ptr @libmetis__icopy(i64 noundef %72, ptr noundef %73, ptr noundef %76)
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libmetis__wspacepop(ptr noundef %78)
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = call i32 @libmetis__IsSeparable(ptr noundef %79)
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %90, label %82

82:                                               ; preds = %67
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 49, ptr noundef @.str.1)
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = call i32 @libmetis__IsSeparable(ptr noundef %84)
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %82
  br label %89

88:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 49, ptr noundef @__PRETTY_FUNCTION__.libmetis__ConstructSeparator) #5
  unreachable

89:                                               ; preds = %87
  br label %90

90:                                               ; preds = %89, %67
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libmetis__Compute2WayNodePartitionParams(ptr noundef %91, ptr noundef %92)
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = call i32 @libmetis__CheckNodePartitionParams(ptr noundef %93)
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %104, label %96

96:                                               ; preds = %90
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 53, ptr noundef @.str.1)
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = call i32 @libmetis__CheckNodePartitionParams(ptr noundef %98)
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %102

101:                                              ; preds = %96
  br label %103

102:                                              ; preds = %96
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 53, ptr noundef @__PRETTY_FUNCTION__.libmetis__ConstructSeparator) #5
  unreachable

103:                                              ; preds = %101
  br label %104

104:                                              ; preds = %103, %90
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libmetis__FM_2WayNodeRefine2Sided(ptr noundef %105, ptr noundef %106, i32 noundef 1)
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libmetis__FM_2WayNodeRefine1Sided(ptr noundef %107, ptr noundef %108, i32 noundef 4)
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = call i32 @libmetis__IsSeparable(ptr noundef %109)
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %120, label %112

112:                                              ; preds = %104
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 58, ptr noundef @.str.1)
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = call i32 @libmetis__IsSeparable(ptr noundef %114)
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %118

117:                                              ; preds = %112
  br label %119

118:                                              ; preds = %112
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 58, ptr noundef @__PRETTY_FUNCTION__.libmetis__ConstructSeparator) #5
  unreachable

119:                                              ; preds = %117
  br label %120

120:                                              ; preds = %119, %104
  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 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

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

declare void @libmetis__wspacepush(ptr noundef) #2

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

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

declare void @libmetis__FreeRData(ptr noundef) #2

declare void @libmetis__Allocate2WayNodePartitionMemory(ptr noundef, ptr noundef) #2

declare void @libmetis__wspacepop(ptr noundef) #2

declare i32 @libmetis__IsSeparable(ptr noundef) #2

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

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

declare void @libmetis__Compute2WayNodePartitionParams(ptr noundef, ptr noundef) #2

declare i32 @libmetis__CheckNodePartitionParams(ptr noundef) #2

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !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, !11, i64 136}
!15 = !{!10, !6, i64 152}
!16 = !{!10, !6, i64 120}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; 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 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [142 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__ConstructSeparator = external hidden unnamed_addr constant [55 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__ConstructSeparator(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  tail call void @libmetis__wspacepush(ptr noundef %0) #4
  %3 = load i32, ptr %1, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %1, i64 16
  %5 = load ptr, ptr %4, align 8, !tbaa !11
  %6 = getelementptr inbounds i8, ptr %1, i64 136
  %7 = load i32, ptr %6, align 8, !tbaa !12
  %8 = getelementptr inbounds i8, ptr %1, i64 152
  %9 = load ptr, ptr %8, align 8, !tbaa !13
  %10 = sext i32 %3 to i64
  %11 = getelementptr inbounds i8, ptr %1, i64 120
  %12 = load ptr, ptr %11, align 8, !tbaa !14
  %13 = tail call ptr @libmetis__iwspacemalloc(ptr noundef %0, i32 noundef %3) #4
  %14 = tail call ptr @libmetis__icopy(i64 noundef %10, ptr noundef %12, ptr noundef %13) #4
  %15 = icmp sgt i32 %7, 0
  br i1 %15, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %2
  %wide.trip.count = zext nneg i32 %7 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %16 = icmp eq i32 %7, 1
  br i1 %16, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph

.lr.ph:                                           ; preds = %37, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %37 ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %37 ]
  %17 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv
  %18 = load i32, ptr %17, align 4, !tbaa !15
  %19 = sext i32 %18 to i64
  %20 = getelementptr i32, ptr %5, i64 %19
  %21 = getelementptr i8, ptr %20, i64 4
  %22 = load i32, ptr %21, align 4, !tbaa !15
  %23 = load i32, ptr %20, align 4, !tbaa !15
  %24 = icmp sgt i32 %22, %23
  br i1 %24, label %25, label %.lr.ph.1

25:                                               ; preds = %.lr.ph
  %26 = getelementptr inbounds i32, ptr %14, i64 %19
  store i32 2, ptr %26, align 4, !tbaa !15
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph, %25
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %27 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv.next
  %28 = load i32, ptr %27, align 4, !tbaa !15
  %29 = sext i32 %28 to i64
  %30 = getelementptr i32, ptr %5, i64 %29
  %31 = getelementptr i8, ptr %30, i64 4
  %32 = load i32, ptr %31, align 4, !tbaa !15
  %33 = load i32, ptr %30, align 4, !tbaa !15
  %34 = icmp sgt i32 %32, %33
  br i1 %34, label %35, label %37

35:                                               ; preds = %.lr.ph.1
  %36 = getelementptr inbounds i32, ptr %14, i64 %29
  store i32 2, ptr %36, align 4, !tbaa !15
  br label %37

37:                                               ; preds = %35, %.lr.ph.1
  %indvars.iv.next.1 = add nuw 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.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !16

._crit_edge.loopexit.unr-lcssa:                   ; preds = %37, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %37 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %38 = getelementptr inbounds i32, ptr %9, i64 %indvars.iv.unr
  %39 = load i32, ptr %38, align 4, !tbaa !15
  %40 = sext i32 %39 to i64
  %41 = getelementptr i32, ptr %5, i64 %40
  %42 = getelementptr i8, ptr %41, i64 4
  %43 = load i32, ptr %42, align 4, !tbaa !15
  %44 = load i32, ptr %41, align 4, !tbaa !15
  %45 = icmp sgt i32 %43, %44
  br i1 %45, label %46, label %._crit_edge

46:                                               ; preds = %.lr.ph.epil
  %47 = getelementptr inbounds i32, ptr %14, i64 %40
  store i32 2, ptr %47, align 4, !tbaa !15
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %46, %.lr.ph.epil, %2
  tail call void @libmetis__FreeRData(ptr noundef nonnull %1) #4
  tail call void @libmetis__Allocate2WayNodePartitionMemory(ptr noundef %0, ptr noundef nonnull %1) #4
  %48 = load ptr, ptr %11, align 8, !tbaa !14
  %49 = tail call ptr @libmetis__icopy(i64 noundef %10, ptr noundef %14, ptr noundef %48) #4
  tail call void @libmetis__wspacepop(ptr noundef %0) #4
  %50 = tail call i32 @libmetis__IsSeparable(ptr noundef nonnull %1) #4
  %.not = icmp eq i32 %50, 0
  br i1 %.not, label %51, label %55

51:                                               ; preds = %._crit_edge
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 49, ptr noundef nonnull @.str.1)
  %53 = tail call i32 @libmetis__IsSeparable(ptr noundef nonnull %1) #4
  %.not38 = icmp eq i32 %53, 0
  br i1 %.not38, label %54, label %55

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

55:                                               ; preds = %51, %._crit_edge
  tail call void @libmetis__Compute2WayNodePartitionParams(ptr noundef %0, ptr noundef nonnull %1) #4
  %56 = tail call i32 @libmetis__CheckNodePartitionParams(ptr noundef nonnull %1) #4
  %.not39 = icmp eq i32 %56, 0
  br i1 %.not39, label %57, label %61

57:                                               ; preds = %55
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 53, ptr noundef nonnull @.str.1)
  %59 = tail call i32 @libmetis__CheckNodePartitionParams(ptr noundef nonnull %1) #4
  %.not40 = icmp eq i32 %59, 0
  br i1 %.not40, label %60, label %61

60:                                               ; preds = %57
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 53, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__ConstructSeparator) #5
  unreachable

61:                                               ; preds = %57, %55
  tail call void @libmetis__FM_2WayNodeRefine2Sided(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 1) #4
  tail call void @libmetis__FM_2WayNodeRefine1Sided(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 4) #4
  %62 = tail call i32 @libmetis__IsSeparable(ptr noundef nonnull %1) #4
  %.not41 = icmp eq i32 %62, 0
  br i1 %.not41, label %63, label %67

63:                                               ; preds = %61
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 58, ptr noundef nonnull @.str.1)
  %65 = tail call i32 @libmetis__IsSeparable(ptr noundef nonnull %1) #4
  %.not42 = icmp eq i32 %65, 0
  br i1 %.not42, label %66, label %67

66:                                               ; preds = %63
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 58, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__ConstructSeparator) #5
  unreachable

67:                                               ; preds = %63, %61
  ret void
}

declare void @libmetis__wspacepush(ptr noundef) local_unnamed_addr #1

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

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

declare void @libmetis__FreeRData(ptr noundef) local_unnamed_addr #1

declare void @libmetis__Allocate2WayNodePartitionMemory(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @libmetis__wspacepop(ptr noundef) local_unnamed_addr #1

declare i32 @libmetis__IsSeparable(ptr noundef) local_unnamed_addr #1

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

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

declare void @libmetis__Compute2WayNodePartitionParams(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @libmetis__CheckNodePartitionParams(ptr noundef) local_unnamed_addr #1

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"graph_t", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 116, !10, i64 120, !10, i64 128, !7, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!6, !7, i64 136}
!13 = !{!6, !10, i64 152}
!14 = !{!6, !10, i64 120}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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