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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.graph_t = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ctrl_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, float, ptr, ptr, ptr, float, double, double, double, double, double, double, double, double, double, double, double, double, ptr, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [65 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [141 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__Init2WayPartition = external hidden unnamed_addr constant [71 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__Init2WayPartition(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %10 = load ptr, ptr %6, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.graph_t, ptr %10, i32 0, i32 8
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = getelementptr inbounds i32, ptr %12, i64 0
  %14 = load i32, ptr %13, align 4, !tbaa !9
  %15 = icmp sge i32 %14, 0
  br i1 %15, label %27, label %16

16:                                               ; preds = %4
  %17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 24, ptr noundef @.str.1)
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.graph_t, ptr %18, i32 0, i32 8
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = getelementptr inbounds i32, ptr %20, i64 0
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = icmp sge i32 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %16
  br label %26

25:                                               ; preds = %16
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 24, ptr noundef @__PRETTY_FUNCTION__.libmetis__Init2WayPartition) #5
  unreachable

26:                                               ; preds = %24
  br label %27

27:                                               ; preds = %26, %4
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.ctrl_t, ptr %28, i32 0, i32 2
  %30 = load i32, ptr %29, align 8, !tbaa !13
  store i32 %30, ptr %9, align 4, !tbaa !9
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ctrl_t, ptr %31, i32 0, i32 2
  %33 = load i32, ptr %32, align 8, !tbaa !13
  %34 = and i32 %33, 8
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %41

36:                                               ; preds = %27
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ctrl_t, ptr %37, i32 0, i32 2
  %39 = load i32, ptr %38, align 8, !tbaa !13
  %40 = sub i32 %39, 8
  store i32 %40, ptr %38, align 8, !tbaa !13
  br label %41

41:                                               ; preds = %36, %27
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ctrl_t, ptr %42, i32 0, i32 2
  %44 = load i32, ptr %43, align 8, !tbaa !13
  %45 = and i32 %44, 32
  %46 = icmp ne i32 %45, 0
  br i1 %46, label %47, label %52

47:                                               ; preds = %41
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ctrl_t, ptr %48, i32 0, i32 2
  %50 = load i32, ptr %49, align 8, !tbaa !13
  %51 = sub i32 %50, 32
  store i32 %51, ptr %49, align 8, !tbaa !13
  br label %52

52:                                               ; preds = %47, %41
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ctrl_t, ptr %53, i32 0, i32 2
  %55 = load i32, ptr %54, align 8, !tbaa !13
  %56 = and i32 %55, 2
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %64

58:                                               ; preds = %52
  %59 = call double @gk_CPUSeconds()
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ctrl_t, ptr %60, i32 0, i32 28
  %62 = load double, ptr %61, align 8, !tbaa !18
  %63 = fsub double %62, %59
  store double %63, ptr %61, align 8, !tbaa !18
  br label %64

64:                                               ; preds = %58, %52
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ctrl_t, ptr %65, i32 0, i32 4
  %67 = load i32, ptr %66, align 8, !tbaa !19
  switch i32 %67, label %122 [
    i32 1, label %68
    i32 0, label %84
  ]

68:                                               ; preds = %64
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.graph_t, ptr %69, i32 0, i32 2
  %71 = load i32, ptr %70, align 8, !tbaa !20
  %72 = icmp eq i32 %71, 1
  br i1 %72, label %73, label %78

73:                                               ; preds = %68
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = load i32, ptr %8, align 4, !tbaa !9
  call void @libmetis__RandomBisection(ptr noundef %74, ptr noundef %75, ptr noundef %76, i32 noundef %77)
  br label %83

78:                                               ; preds = %68
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = load i32, ptr %8, align 4, !tbaa !9
  call void @libmetis__McRandomBisection(ptr noundef %79, ptr noundef %80, ptr noundef %81, i32 noundef %82)
  br label %83

83:                                               ; preds = %78, %73
  br label %126

84:                                               ; preds = %64
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.graph_t, ptr %85, i32 0, i32 1
  %87 = load i32, ptr %86, align 4, !tbaa !21
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %105

89:                                               ; preds = %84
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.graph_t, ptr %90, i32 0, i32 2
  %92 = load i32, ptr %91, align 8, !tbaa !20
  %93 = icmp eq i32 %92, 1
  br i1 %93, label %94, label %99

94:                                               ; preds = %89
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = load i32, ptr %8, align 4, !tbaa !9
  call void @libmetis__RandomBisection(ptr noundef %95, ptr noundef %96, ptr noundef %97, i32 noundef %98)
  br label %104

99:                                               ; preds = %89
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load i32, ptr %8, align 4, !tbaa !9
  call void @libmetis__McRandomBisection(ptr noundef %100, ptr noundef %101, ptr noundef %102, i32 noundef %103)
  br label %104

104:                                              ; preds = %99, %94
  br label %121

105:                                              ; preds = %84
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.graph_t, ptr %106, i32 0, i32 2
  %108 = load i32, ptr %107, align 8, !tbaa !20
  %109 = icmp eq i32 %108, 1
  br i1 %109, label %110, label %115

110:                                              ; preds = %105
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = load i32, ptr %8, align 4, !tbaa !9
  call void @libmetis__GrowBisection(ptr noundef %111, ptr noundef %112, ptr noundef %113, i32 noundef %114)
  br label %120

115:                                              ; preds = %105
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = load i32, ptr %8, align 4, !tbaa !9
  call void @libmetis__McGrowBisection(ptr noundef %116, ptr noundef %117, ptr noundef %118, i32 noundef %119)
  br label %120

120:                                              ; preds = %115, %110
  br label %121

121:                                              ; preds = %120, %104
  br label %126

122:                                              ; preds = %64
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ctrl_t, ptr %123, i32 0, i32 4
  %125 = load i32, ptr %124, align 8, !tbaa !19
  call void (i32, ptr, ...) @gk_errexit(i32 noundef 15, ptr noundef @.str.3, i32 noundef %125)
  br label %126

126:                                              ; preds = %122, %121, %83
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ctrl_t, ptr %127, i32 0, i32 2
  %129 = load i32, ptr %128, align 8, !tbaa !13
  %130 = and i32 %129, 16
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %137

132:                                              ; preds = %126
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.graph_t, ptr %133, i32 0, i32 17
  %135 = load i32, ptr %134, align 8, !tbaa !22
  %136 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %135)
  br label %137

137:                                              ; preds = %132, %126
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.ctrl_t, ptr %138, i32 0, i32 2
  %140 = load i32, ptr %139, align 8, !tbaa !13
  %141 = and i32 %140, 2
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %149

143:                                              ; preds = %137
  %144 = call double @gk_CPUSeconds()
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ctrl_t, ptr %145, i32 0, i32 28
  %147 = load double, ptr %146, align 8, !tbaa !18
  %148 = fadd double %147, %144
  store double %148, ptr %146, align 8, !tbaa !18
  br label %149

149:                                              ; preds = %143, %137
  %150 = load i32, ptr %9, align 4, !tbaa !9
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.ctrl_t, ptr %151, i32 0, i32 2
  store i32 %150, ptr %152, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #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 i32 @printf(ptr noundef, ...) #2

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

declare double @gk_CPUSeconds() #2

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__RandomBisection(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__McRandomBisection(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__GrowBisection(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__McGrowBisection(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #0

declare void @gk_errexit(i32 noundef, ptr 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 56}
!12 = !{!"graph_t", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !10, i64 116, !6, i64 120, !6, i64 128, !10, 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}
!13 = !{!14, !10, i64 8}
!14 = !{!"ctrl_t", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !15, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !15, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !16, i64 200, !16, i64 208, !16, i64 216, !16, i64 224, !6, i64 232, !17, i64 240, !17, i64 248, !17, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320}
!15 = !{!"float", !7, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!14, !16, i64 144}
!19 = !{!14, !10, i64 16}
!20 = !{!12, !10, i64 8}
!21 = !{!12, !10, i64 4}
!22 = !{!12, !10, i64 112}


; 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 [65 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [141 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__Init2WayPartition = external hidden unnamed_addr constant [71 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__Init2WayPartition(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %1, i64 56
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = load i32, ptr %6, align 4, !tbaa !11
  %8 = icmp sgt i32 %7, -1
  br i1 %8, label %15, label %9

9:                                                ; preds = %4
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 24, ptr noundef nonnull @.str.1)
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = load i32, ptr %11, align 4, !tbaa !11
  %13 = icmp sgt i32 %12, -1
  br i1 %13, label %15, label %14

14:                                               ; preds = %9
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 24, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__Init2WayPartition) #4
  unreachable

15:                                               ; preds = %9, %4
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load i32, ptr %16, align 8, !tbaa !12
  %18 = and i32 %17, 8
  %.not.not = icmp eq i32 %18, 0
  %19 = add nsw i32 %17, -8
  %20 = select i1 %.not.not, i32 %17, i32 %19
  %21 = and i32 %20, 32
  %.not44.not = icmp eq i32 %21, 0
  %22 = add nsw i32 %20, -32
  %23 = select i1 %.not44.not, i32 %20, i32 %22
  %24 = or disjoint i32 %18, %21
  %.not48 = icmp eq i32 %24, 0
  br i1 %.not48, label %26, label %25

25:                                               ; preds = %15
  store i32 %23, ptr %16, align 8, !tbaa !12
  br label %26

26:                                               ; preds = %15, %25
  %27 = and i32 %23, 2
  %.not45 = icmp eq i32 %27, 0
  br i1 %.not45, label %33, label %28

28:                                               ; preds = %26
  %29 = tail call double @gk_CPUSeconds() #5
  %30 = getelementptr inbounds i8, ptr %0, i64 144
  %31 = load double, ptr %30, align 8, !tbaa !17
  %32 = fsub double %31, %29
  store double %32, ptr %30, align 8, !tbaa !17
  br label %33

33:                                               ; preds = %28, %26
  %34 = getelementptr inbounds i8, ptr %0, i64 16
  %35 = load i32, ptr %34, align 8, !tbaa !18
  switch i32 %35, label %55 [
    i32 1, label %36
    i32 0, label %42
  ]

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %1, i64 8
  %38 = load i32, ptr %37, align 8, !tbaa !19
  %39 = icmp eq i32 %38, 1
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  tail call void @libmetis__RandomBisection(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, i32 noundef %3)
  br label %56

41:                                               ; preds = %36
  tail call void @libmetis__McRandomBisection(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, i32 noundef %3)
  br label %56

42:                                               ; preds = %33
  %43 = getelementptr inbounds i8, ptr %1, i64 4
  %44 = load i32, ptr %43, align 4, !tbaa !20
  %45 = icmp eq i32 %44, 0
  %46 = getelementptr inbounds i8, ptr %1, i64 8
  %47 = load i32, ptr %46, align 8, !tbaa !19
  %48 = icmp eq i32 %47, 1
  br i1 %45, label %49, label %52

49:                                               ; preds = %42
  br i1 %48, label %50, label %51

50:                                               ; preds = %49
  tail call void @libmetis__RandomBisection(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, i32 noundef %3)
  br label %56

51:                                               ; preds = %49
  tail call void @libmetis__McRandomBisection(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, i32 noundef %3)
  br label %56

52:                                               ; preds = %42
  br i1 %48, label %53, label %54

53:                                               ; preds = %52
  tail call void @libmetis__GrowBisection(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, i32 noundef %3)
  br label %56

54:                                               ; preds = %52
  tail call void @libmetis__McGrowBisection(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, i32 noundef %3)
  br label %56

55:                                               ; preds = %33
  tail call void (i32, ptr, ...) @gk_errexit(i32 noundef 15, ptr noundef nonnull @.str.3, i32 noundef %35) #5
  br label %56

56:                                               ; preds = %51, %50, %54, %53, %40, %41, %55
  %57 = load i32, ptr %16, align 8, !tbaa !12
  %58 = and i32 %57, 16
  %.not46 = icmp eq i32 %58, 0
  br i1 %.not46, label %63, label %59

59:                                               ; preds = %56
  %60 = getelementptr inbounds i8, ptr %1, i64 112
  %61 = load i32, ptr %60, align 8, !tbaa !21
  %62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %61)
  %.pre = load i32, ptr %16, align 8, !tbaa !12
  br label %63

63:                                               ; preds = %59, %56
  %64 = phi i32 [ %.pre, %59 ], [ %57, %56 ]
  %65 = and i32 %64, 2
  %.not47 = icmp eq i32 %65, 0
  br i1 %.not47, label %71, label %66

66:                                               ; preds = %63
  %67 = tail call double @gk_CPUSeconds() #5
  %68 = getelementptr inbounds i8, ptr %0, i64 144
  %69 = load double, ptr %68, align 8, !tbaa !17
  %70 = fadd double %67, %69
  store double %70, ptr %68, align 8, !tbaa !17
  br label %71

71:                                               ; preds = %66, %63
  store i32 %17, ptr %16, align 8, !tbaa !12
  ret void
}

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

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

declare double @gk_CPUSeconds() local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__RandomBisection(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__McRandomBisection(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__GrowBisection(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__McGrowBisection(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @gk_errexit(i32 noundef, ptr noundef, ...) local_unnamed_addr #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind }
attributes #5 = { 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, !10, i64 56}
!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 = !{!7, !7, i64 0}
!12 = !{!13, !7, i64 8}
!13 = !{!"ctrl_t", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !10, i64 80, !7, i64 88, !7, i64 92, !14, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !14, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !15, i64 200, !15, i64 208, !15, i64 216, !15, i64 224, !10, i64 232, !16, i64 240, !16, i64 248, !16, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320}
!14 = !{!"float", !8, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!13, !15, i64 144}
!18 = !{!13, !7, i64 16}
!19 = !{!6, !7, i64 8}
!20 = !{!6, !7, i64 4}
!21 = !{!6, !7, i64 112}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass