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

; 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.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@gk_jbufs = external thread_local global [0 x [1 x %struct.__jmp_buf_tag]], align 8
@gk_cur_jbufs = external thread_local global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local i32 @METIS_PartMeshNodal(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) #0 {
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !5
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 0, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  store ptr null, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  store ptr null, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 1, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 0, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 1, ptr %33, align 4, !tbaa !9
  %35 = call i32 (...) @gk_malloc_init()
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %38, label %37

37:                                               ; preds = %12
  store i32 -3, ptr %13, align 4
  store i32 1, ptr %34, align 4
  br label %161

38:                                               ; preds = %12
  %39 = call i32 (...) @gk_sigtrap()
  %40 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @gk_jbufs)
  %41 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @gk_cur_jbufs)
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [0 x [1 x %struct.__jmp_buf_tag]], ptr %40, i64 0, i64 %43
  %45 = getelementptr inbounds [1 x %struct.__jmp_buf_tag], ptr %44, i64 0, i64 0
  %46 = call i32 @_setjmp(ptr noundef %45) #7
  store i32 %46, ptr %26, align 4, !tbaa !9
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %38
  br label %139

49:                                               ; preds = %38
  %50 = load ptr, ptr %22, align 8, !tbaa !5
  %51 = icmp eq ptr %50, null
  br i1 %51, label %57, label %52

52:                                               ; preds = %49
  %53 = load ptr, ptr %22, align 8, !tbaa !5
  %54 = getelementptr inbounds i32, ptr %53, i64 17
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = icmp eq i32 %55, -1
  br i1 %56, label %57, label %58

57:                                               ; preds = %52, %49
  br label %62

58:                                               ; preds = %52
  %59 = load ptr, ptr %22, align 8, !tbaa !5
  %60 = getelementptr inbounds i32, ptr %59, i64 17
  %61 = load i32, ptr %60, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %58, %57
  %63 = phi i32 [ 0, %57 ], [ %61, %58 ]
  store i32 %63, ptr %27, align 4, !tbaa !9
  %64 = load ptr, ptr %22, align 8, !tbaa !5
  %65 = icmp eq ptr %64, null
  br i1 %65, label %71, label %66

66:                                               ; preds = %62
  %67 = load ptr, ptr %22, align 8, !tbaa !5
  %68 = getelementptr inbounds i32, ptr %67, i64 0
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = icmp eq i32 %69, -1
  br i1 %70, label %71, label %72

71:                                               ; preds = %66, %62
  br label %76

72:                                               ; preds = %66
  %73 = load ptr, ptr %22, align 8, !tbaa !5
  %74 = getelementptr inbounds i32, ptr %73, i64 0
  %75 = load i32, ptr %74, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %72, %71
  %77 = phi i32 [ 1, %71 ], [ %75, %72 ]
  store i32 %77, ptr %28, align 4, !tbaa !9
  %78 = load i32, ptr %27, align 4, !tbaa !9
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %87

80:                                               ; preds = %76
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = load i32, ptr %81, align 4, !tbaa !9
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  call void @libmetis__ChangeMesh2CNumbering(i32 noundef %82, ptr noundef %83, ptr noundef %84)
  %85 = load ptr, ptr %22, align 8, !tbaa !5
  %86 = getelementptr inbounds i32, ptr %85, i64 17
  store i32 0, ptr %86, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %80, %76
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = load ptr, ptr %15, align 8, !tbaa !5
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = load ptr, ptr %17, align 8, !tbaa !5
  %92 = call i32 @METIS_MeshToNodal(ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, ptr noundef %32, ptr noundef %29, ptr noundef %30)
  store i32 %92, ptr %33, align 4, !tbaa !9
  %93 = load i32, ptr %33, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 1
  br i1 %94, label %95, label %97

95:                                               ; preds = %87
  %96 = call i32 @raise(i32 noundef 15) #6
  br label %97

97:                                               ; preds = %95, %87
  %98 = load i32, ptr %28, align 4, !tbaa !9
  %99 = icmp eq i32 %98, 1
  br i1 %99, label %100, label %112

100:                                              ; preds = %97
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = load ptr, ptr %29, align 8, !tbaa !5
  %103 = load ptr, ptr %30, align 8, !tbaa !5
  %104 = load ptr, ptr %18, align 8, !tbaa !5
  %105 = load ptr, ptr %19, align 8, !tbaa !5
  %106 = load ptr, ptr %20, align 8, !tbaa !5
  %107 = load ptr, ptr %21, align 8, !tbaa !5
  %108 = load ptr, ptr %22, align 8, !tbaa !5
  %109 = load ptr, ptr %23, align 8, !tbaa !5
  %110 = load ptr, ptr %25, align 8, !tbaa !5
  %111 = call i32 @METIS_PartGraphKway(ptr noundef %101, ptr noundef %31, ptr noundef %102, ptr noundef %103, ptr noundef %104, ptr noundef %105, ptr noundef null, ptr noundef %106, ptr noundef %107, ptr noundef null, ptr noundef %108, ptr noundef %109, ptr noundef %110)
  store i32 %111, ptr %33, align 4, !tbaa !9
  br label %124

112:                                              ; preds = %97
  %113 = load ptr, ptr %15, align 8, !tbaa !5
  %114 = load ptr, ptr %29, align 8, !tbaa !5
  %115 = load ptr, ptr %30, align 8, !tbaa !5
  %116 = load ptr, ptr %18, align 8, !tbaa !5
  %117 = load ptr, ptr %19, align 8, !tbaa !5
  %118 = load ptr, ptr %20, align 8, !tbaa !5
  %119 = load ptr, ptr %21, align 8, !tbaa !5
  %120 = load ptr, ptr %22, align 8, !tbaa !5
  %121 = load ptr, ptr %23, align 8, !tbaa !5
  %122 = load ptr, ptr %25, align 8, !tbaa !5
  %123 = call i32 @METIS_PartGraphRecursive(ptr noundef %113, ptr noundef %31, ptr noundef %114, ptr noundef %115, ptr noundef %116, ptr noundef %117, ptr noundef null, ptr noundef %118, ptr noundef %119, ptr noundef null, ptr noundef %120, ptr noundef %121, ptr noundef %122)
  store i32 %123, ptr %33, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %112, %100
  %125 = load i32, ptr %33, align 4, !tbaa !9
  %126 = icmp ne i32 %125, 1
  br i1 %126, label %127, label %129

127:                                              ; preds = %124
  %128 = call i32 @raise(i32 noundef 15) #6
  br label %129

129:                                              ; preds = %127, %124
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  %134 = load ptr, ptr %24, align 8, !tbaa !5
  %135 = load ptr, ptr %25, align 8, !tbaa !5
  %136 = load ptr, ptr %20, align 8, !tbaa !5
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = load ptr, ptr %21, align 8, !tbaa !5
  call void @libmetis__InduceRowPartFromColumnPart(i32 noundef %131, ptr noundef %132, ptr noundef %133, ptr noundef %134, ptr noundef %135, i32 noundef %137, ptr noundef %138)
  br label %139

139:                                              ; preds = %129, %48
  %140 = load i32, ptr %27, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %153

142:                                              ; preds = %139
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = load ptr, ptr %16, align 8, !tbaa !5
  %148 = load ptr, ptr %17, align 8, !tbaa !5
  %149 = load ptr, ptr %24, align 8, !tbaa !5
  %150 = load ptr, ptr %25, align 8, !tbaa !5
  call void @libmetis__ChangeMesh2FNumbering2(i32 noundef %144, i32 noundef %146, ptr noundef %147, ptr noundef %148, ptr noundef %149, ptr noundef %150)
  %151 = load ptr, ptr %22, align 8, !tbaa !5
  %152 = getelementptr inbounds i32, ptr %151, i64 17
  store i32 1, ptr %152, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %142, %139
  %154 = load ptr, ptr %29, align 8, !tbaa !5
  %155 = call i32 @METIS_Free(ptr noundef %154)
  %156 = load ptr, ptr %30, align 8, !tbaa !5
  %157 = call i32 @METIS_Free(ptr noundef %156)
  %158 = call i32 (...) @gk_siguntrap()
  call void @gk_malloc_cleanup(i32 noundef 0)
  %159 = load i32, ptr %26, align 4, !tbaa !9
  %160 = call i32 @libmetis__metis_rcode(i32 noundef %159)
  store i32 %160, ptr %13, align 4
  store i32 1, ptr %34, align 4
  br label %161

161:                                              ; preds = %153, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  %162 = load i32, ptr %13, align 4
  ret i32 %162
}

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

declare i32 @gk_malloc_init(...) #2

declare i32 @gk_sigtrap(...) #2

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #4

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

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

; Function Attrs: nounwind
declare i32 @raise(i32 noundef) #5

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

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

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

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

declare i32 @METIS_Free(ptr noundef) #2

declare i32 @gk_siguntrap(...) #2

declare void @gk_malloc_cleanup(i32 noundef) #2

declare i32 @libmetis__metis_rcode(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 = { nounwind returns_twice "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind returns_twice }

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


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

%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@gk_jbufs = external thread_local global [0 x [1 x %struct.__jmp_buf_tag]], align 8
@gk_cur_jbufs = external thread_local local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local i32 @METIS_PartMeshNodal(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) local_unnamed_addr #0 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  store i32 1, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  %17 = call i32 (...) @gk_malloc_init() #6
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %63, label %18

18:                                               ; preds = %12
  %19 = call i32 (...) @gk_sigtrap() #6
  %20 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @gk_jbufs)
  %21 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @gk_cur_jbufs)
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [0 x [1 x %struct.__jmp_buf_tag]], ptr %20, i64 0, i64 %23
  %25 = call i32 @_setjmp(ptr noundef nonnull %24) #7
  %.not55 = icmp eq i32 %25, 0
  br i1 %.not55, label %26, label %.critedge

26:                                               ; preds = %18
  %27 = icmp eq ptr %8, null
  br i1 %27, label %.thread63, label %28

28:                                               ; preds = %26
  %29 = getelementptr inbounds i8, ptr %8, i64 68
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = load i32, ptr %8, align 4, !tbaa !9
  %32 = icmp eq i32 %31, -1
  %33 = icmp eq i32 %31, 1
  %spec.select60 = or i1 %32, %33
  switch i32 %30, label %34 [
    i32 -1, label %.thread63
    i32 0, label %.thread63
  ]

34:                                               ; preds = %28
  %35 = load i32, ptr %0, align 4, !tbaa !9
  call void @libmetis__ChangeMesh2CNumbering(i32 noundef %35, ptr noundef %2, ptr noundef %3) #6
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %.thread63

.thread63:                                        ; preds = %28, %28, %26, %34
  %36 = phi i1 [ %spec.select60, %34 ], [ %spec.select60, %28 ], [ true, %26 ], [ %spec.select60, %28 ]
  %.not566265 = phi i1 [ false, %34 ], [ true, %28 ], [ true, %26 ], [ true, %28 ]
  %37 = call i32 @METIS_MeshToNodal(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %14) #6
  %.not57 = icmp eq i32 %37, 1
  br i1 %.not57, label %40, label %38

38:                                               ; preds = %.thread63
  %39 = call i32 @raise(i32 noundef 15) #6
  br label %40

40:                                               ; preds = %38, %.thread63
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  br i1 %36, label %43, label %45

43:                                               ; preds = %40
  %44 = call i32 @METIS_PartGraphKway(ptr noundef %1, ptr noundef nonnull %15, ptr noundef %41, ptr noundef %42, ptr noundef %4, ptr noundef %5, ptr noundef null, ptr noundef %6, ptr noundef %7, ptr noundef null, ptr noundef %8, ptr noundef %9, ptr noundef %11) #6
  br label %47

45:                                               ; preds = %40
  %46 = call i32 @METIS_PartGraphRecursive(ptr noundef %1, ptr noundef nonnull %15, ptr noundef %41, ptr noundef %42, ptr noundef %4, ptr noundef %5, ptr noundef null, ptr noundef %6, ptr noundef %7, ptr noundef null, ptr noundef %8, ptr noundef %9, ptr noundef %11) #6
  br label %47

47:                                               ; preds = %45, %43
  %.0 = phi i32 [ %44, %43 ], [ %46, %45 ]
  %.not58 = icmp eq i32 %.0, 1
  br i1 %.not58, label %50, label %48

48:                                               ; preds = %47
  %49 = call i32 @raise(i32 noundef 15) #6
  br label %50

50:                                               ; preds = %48, %47
  %51 = load i32, ptr %0, align 4, !tbaa !9
  %52 = load i32, ptr %6, align 4, !tbaa !9
  call void @libmetis__InduceRowPartFromColumnPart(i32 noundef %51, ptr noundef %2, ptr noundef %3, ptr noundef %10, ptr noundef %11, i32 noundef %52, ptr noundef %7)
  br i1 %.not566265, label %.critedge, label %53

53:                                               ; preds = %50
  %54 = load i32, ptr %0, align 4, !tbaa !9
  %55 = load i32, ptr %1, align 4, !tbaa !9
  call void @libmetis__ChangeMesh2FNumbering2(i32 noundef %54, i32 noundef %55, ptr noundef %2, ptr noundef %3, ptr noundef %10, ptr noundef %11) #6
  %56 = getelementptr inbounds i8, ptr %8, i64 68
  store i32 1, ptr %56, align 4, !tbaa !9
  br label %.critedge

.critedge:                                        ; preds = %18, %53, %50
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = call i32 @METIS_Free(ptr noundef %57) #6
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  %60 = call i32 @METIS_Free(ptr noundef %59) #6
  %61 = call i32 (...) @gk_siguntrap() #6
  call void @gk_malloc_cleanup(i32 noundef 0) #6
  %62 = call i32 @libmetis__metis_rcode(i32 noundef %25) #6
  br label %63

63:                                               ; preds = %12, %.critedge
  %.050 = phi i32 [ %62, %.critedge ], [ -3, %12 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  ret i32 %.050
}

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

declare i32 @gk_malloc_init(...) local_unnamed_addr #2

declare i32 @gk_sigtrap(...) local_unnamed_addr #2

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #4

declare void @libmetis__ChangeMesh2CNumbering(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @METIS_MeshToNodal(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @raise(i32 noundef) local_unnamed_addr #5

declare i32 @METIS_PartGraphKway(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @METIS_PartGraphRecursive(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @libmetis__ChangeMesh2FNumbering2(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @METIS_Free(ptr noundef) local_unnamed_addr #2

declare i32 @gk_siguntrap(...) local_unnamed_addr #2

declare void @gk_malloc_cleanup(i32 noundef) local_unnamed_addr #2

declare i32 @libmetis__metis_rcode(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress 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 = { mustprogress 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 = { nounwind returns_twice "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { nounwind returns_twice }

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


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