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

; 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 }
%struct.controldef = type { i64, i64, i64, i64, i64, i64, float, i64, i64, i64, i64, %struct.workspacedef, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%struct.workspacedef = type { ptr, i64, i64, ptr, ptr, i64, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [27 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 i64 @libmetis__idxsum(i64 noundef, ptr noundef, i64 noundef) #1

declare double @gk_CPUSeconds() #1

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__MlevelNestedDissection(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3, i64 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca [2 x i64], align 16
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %struct.graphdef, align 8
  %20 = alloca %struct.graphdef, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store float %3, ptr %9, align 4, !tbaa !9
  store i64 %4, ptr %10, align 8, !tbaa !11
  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 16, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 248, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 248, ptr %20) #3
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.graphdef, ptr %21, i32 0, i32 0
  %23 = load i64, ptr %22, align 8, !tbaa !13
  store i64 %23, ptr %13, align 8, !tbaa !11
  %24 = load i64, ptr %13, align 8, !tbaa !11
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.graphdef, ptr %25, i32 0, i32 3
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %28 = call i64 @libmetis__idxsum(i64 noundef %24, ptr noundef %27, i64 noundef 1)
  store i64 %28, ptr %15, align 8, !tbaa !11
  %29 = load i64, ptr %15, align 8, !tbaa !11
  %30 = sdiv i64 %29, 2
  %31 = getelementptr inbounds [2 x i64], ptr %16, i64 0, i64 0
  store i64 %30, ptr %31, align 16, !tbaa !11
  %32 = load i64, ptr %15, align 8, !tbaa !11
  %33 = getelementptr inbounds [2 x i64], ptr %16, i64 0, i64 0
  %34 = load i64, ptr %33, align 16, !tbaa !11
  %35 = sub nsw i64 %32, %34
  %36 = getelementptr inbounds [2 x i64], ptr %16, i64 0, i64 1
  store i64 %35, ptr %36, align 8, !tbaa !11
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.controldef, ptr %37, i32 0, i32 7
  %39 = load i64, ptr %38, align 8, !tbaa !17
  switch i64 %39, label %103 [
    i64 3, label %40
    i64 4, label %72
  ]

40:                                               ; preds = %5
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds [2 x i64], ptr %16, i64 0, i64 0
  %44 = load float, ptr %9, align 4, !tbaa !9
  call void @libmetis__MlevelEdgeBisection(ptr noundef %41, ptr noundef %42, ptr noundef %43, float noundef %44)
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.controldef, ptr %45, i32 0, i32 1
  %47 = load i64, ptr %46, align 8, !tbaa !21
  %48 = and i64 %47, 1
  %49 = icmp ne i64 %48, 0
  br i1 %49, label %50, label %56

50:                                               ; preds = %40
  %51 = call double @gk_CPUSeconds()
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.controldef, ptr %52, i32 0, i32 18
  %54 = load double, ptr %53, align 8, !tbaa !22
  %55 = fsub double %54, %51
  store double %55, ptr %53, align 8, !tbaa !22
  br label %56

56:                                               ; preds = %50, %40
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = load float, ptr %9, align 4, !tbaa !9
  call void @libmetis__ConstructMinCoverSeparator(ptr noundef %57, ptr noundef %58, float noundef %59)
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.controldef, ptr %60, i32 0, i32 1
  %62 = load i64, ptr %61, align 8, !tbaa !21
  %63 = and i64 %62, 1
  %64 = icmp ne i64 %63, 0
  br i1 %64, label %65, label %71

65:                                               ; preds = %56
  %66 = call double @gk_CPUSeconds()
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.controldef, ptr %67, i32 0, i32 18
  %69 = load double, ptr %68, align 8, !tbaa !22
  %70 = fadd double %69, %66
  store double %70, ptr %68, align 8, !tbaa !22
  br label %71

71:                                               ; preds = %65, %56
  br label %103

72:                                               ; preds = %5
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = getelementptr inbounds [2 x i64], ptr %16, i64 0, i64 0
  %76 = load float, ptr %9, align 4, !tbaa !9
  call void @libmetis__MlevelNodeBisectionMultiple(ptr noundef %73, ptr noundef %74, ptr noundef %75, float noundef %76)
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.controldef, ptr %77, i32 0, i32 1
  %79 = load i64, ptr %78, align 8, !tbaa !21
  %80 = and i64 %79, 128
  %81 = icmp ne i64 %80, 0
  br i1 %81, label %82, label %102

82:                                               ; preds = %72
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.graphdef, ptr %83, i32 0, i32 0
  %85 = load i64, ptr %84, align 8, !tbaa !13
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.graphdef, ptr %86, i32 0, i32 19
  %88 = load ptr, ptr %87, align 8, !tbaa !23
  %89 = getelementptr inbounds i64, ptr %88, i64 0
  %90 = load i64, ptr %89, align 8, !tbaa !11
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.graphdef, ptr %91, i32 0, i32 19
  %93 = load ptr, ptr %92, align 8, !tbaa !23
  %94 = getelementptr inbounds i64, ptr %93, i64 1
  %95 = load i64, ptr %94, align 8, !tbaa !11
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.graphdef, ptr %96, i32 0, i32 19
  %98 = load ptr, ptr %97, align 8, !tbaa !23
  %99 = getelementptr inbounds i64, ptr %98, i64 2
  %100 = load i64, ptr %99, align 8, !tbaa !11
  %101 = call i32 (ptr, ...) @mprintf(ptr noundef @.str.3, i64 noundef %85, i64 noundef %90, i64 noundef %95, i64 noundef %100)
  br label %102

102:                                              ; preds = %82, %72
  br label %103

103:                                              ; preds = %102, %71, %5
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.graphdef, ptr %104, i32 0, i32 20
  %106 = load i64, ptr %105, align 8, !tbaa !24
  store i64 %106, ptr %14, align 8, !tbaa !11
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.graphdef, ptr %107, i32 0, i32 22
  %109 = load ptr, ptr %108, align 8, !tbaa !25
  store ptr %109, ptr %18, align 8, !tbaa !5
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.graphdef, ptr %110, i32 0, i32 14
  %112 = load ptr, ptr %111, align 8, !tbaa !26
  store ptr %112, ptr %17, align 8, !tbaa !5
  store i64 0, ptr %11, align 8, !tbaa !11
  br label %113

113:                                              ; preds = %129, %103
  %114 = load i64, ptr %11, align 8, !tbaa !11
  %115 = load i64, ptr %14, align 8, !tbaa !11
  %116 = icmp slt i64 %114, %115
  br i1 %116, label %117, label %132

117:                                              ; preds = %113
  %118 = load i64, ptr %10, align 8, !tbaa !11
  %119 = add nsw i64 %118, -1
  store i64 %119, ptr %10, align 8, !tbaa !11
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  %123 = load i64, ptr %11, align 8, !tbaa !11
  %124 = getelementptr inbounds i64, ptr %122, i64 %123
  %125 = load i64, ptr %124, align 8, !tbaa !11
  %126 = getelementptr inbounds i64, ptr %121, i64 %125
  %127 = load i64, ptr %126, align 8, !tbaa !11
  %128 = getelementptr inbounds i64, ptr %120, i64 %127
  store i64 %119, ptr %128, align 8, !tbaa !11
  br label %129

129:                                              ; preds = %117
  %130 = load i64, ptr %11, align 8, !tbaa !11
  %131 = add nsw i64 %130, 1
  store i64 %131, ptr %11, align 8, !tbaa !11
  br label %113, !llvm.loop !27

132:                                              ; preds = %113
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libmetis__SplitGraphOrder(ptr noundef %133, ptr noundef %134, ptr noundef %19, ptr noundef %20)
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libmetis__FreeGraph(ptr noundef %135, i32 noundef 0)
  %136 = getelementptr inbounds %struct.graphdef, ptr %20, i32 0, i32 0
  %137 = load i64, ptr %136, align 8, !tbaa !13
  %138 = icmp sgt i64 %137, 200
  br i1 %138, label %139, label %144

139:                                              ; preds = %132
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = load float, ptr %9, align 4, !tbaa !9
  %143 = load i64, ptr %10, align 8, !tbaa !11
  call void @libmetis__MlevelNestedDissection(ptr noundef %140, ptr noundef %20, ptr noundef %141, float noundef %142, i64 noundef %143)
  br label %148

144:                                              ; preds = %132
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = load i64, ptr %10, align 8, !tbaa !11
  call void @libmetis__MMDOrder(ptr noundef %145, ptr noundef %20, ptr noundef %146, i64 noundef %147)
  call void @libmetis__FreeGraph(ptr noundef %20, i32 noundef 0)
  br label %148

148:                                              ; preds = %144, %139
  %149 = getelementptr inbounds %struct.graphdef, ptr %19, i32 0, i32 0
  %150 = load i64, ptr %149, align 8, !tbaa !13
  %151 = icmp sgt i64 %150, 200
  br i1 %151, label %152, label %160

152:                                              ; preds = %148
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = load float, ptr %9, align 4, !tbaa !9
  %156 = load i64, ptr %10, align 8, !tbaa !11
  %157 = getelementptr inbounds %struct.graphdef, ptr %20, i32 0, i32 0
  %158 = load i64, ptr %157, align 8, !tbaa !13
  %159 = sub nsw i64 %156, %158
  call void @libmetis__MlevelNestedDissection(ptr noundef %153, ptr noundef %19, ptr noundef %154, float noundef %155, i64 noundef %159)
  br label %167

160:                                              ; preds = %148
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = load i64, ptr %10, align 8, !tbaa !11
  %164 = getelementptr inbounds %struct.graphdef, ptr %20, i32 0, i32 0
  %165 = load i64, ptr %164, align 8, !tbaa !13
  %166 = sub nsw i64 %163, %165
  call void @libmetis__MMDOrder(ptr noundef %161, ptr noundef %19, ptr noundef %162, i64 noundef %166)
  call void @libmetis__FreeGraph(ptr noundef %19, i32 noundef 0)
  br label %167

167:                                              ; preds = %160, %152
  call void @llvm.lifetime.end.p0(i64 248, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 248, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 16, 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
  ret void
}

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

declare void @libmetis__MlevelEdgeBisection(ptr noundef, ptr noundef, ptr noundef, float noundef) #1

declare void @libmetis__ConstructMinCoverSeparator(ptr noundef, ptr noundef, float noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__MlevelNodeBisectionMultiple(ptr noundef, ptr noundef, ptr noundef, float noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__SplitGraphOrder(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @libmetis__FreeGraph(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__MMDOrder(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

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 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"graphdef", !12, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !15, i64 56, !15, i64 60, !15, i64 64, !15, i64 68, !15, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !12, i64 112, !12, i64 120, !6, i64 128, !6, i64 136, !12, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !12, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !6, i64 24}
!17 = !{!18, !12, i64 56}
!18 = !{!"controldef", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !10, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !19, i64 88, !20, i64 152, !20, i64 160, !20, i64 168, !20, i64 176, !20, i64 184, !20, i64 192, !20, i64 200, !20, i64 208, !20, i64 216, !20, i64 224, !20, i64 232, !20, i64 240, !20, i64 248, !20, i64 256, !20, i64 264, !20, i64 272}
!19 = !{!"workspacedef", !6, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !6, i64 32, !12, i64 40, !6, i64 48, !6, i64 56}
!20 = !{!"double", !7, i64 0}
!21 = !{!18, !12, i64 8}
!22 = !{!18, !20, i64 200}
!23 = !{!14, !6, i64 136}
!24 = !{!14, !12, i64 144}
!25 = !{!14, !6, i64 160}
!26 = !{!14, !6, i64 96}
!27 = distinct !{!27, !28}
!28 = !{!"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"

%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.3 = external hidden unnamed_addr constant [27 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 i64 @libmetis__idxsum(i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare double @gk_CPUSeconds() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__MlevelNestedDissection(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3, i64 noundef %4) local_unnamed_addr #2 {
  %6 = alloca [2 x i64], align 16
  %7 = alloca %struct.graphdef, align 8
  %8 = alloca %struct.graphdef, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %8) #3
  %9 = load i64, ptr %1, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 24
  %11 = load ptr, ptr %10, align 8, !tbaa !12
  %12 = tail call i64 @libmetis__idxsum(i64 noundef %9, ptr noundef %11, i64 noundef 1) #3
  %13 = sdiv i64 %12, 2
  store i64 %13, ptr %6, align 16, !tbaa !13
  %14 = sub nsw i64 %12, %13
  %15 = getelementptr inbounds i8, ptr %6, i64 8
  store i64 %14, ptr %15, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %0, i64 56
  %17 = load i64, ptr %16, align 8, !tbaa !14
  switch i64 %17, label %49 [
    i64 3, label %18
    i64 4, label %35
  ]

18:                                               ; preds = %5
  call void @libmetis__MlevelEdgeBisection(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %6, float noundef %3) #3
  %19 = getelementptr inbounds i8, ptr %0, i64 8
  %20 = load i64, ptr %19, align 8, !tbaa !19
  %21 = and i64 %20, 1
  %.not52 = icmp eq i64 %21, 0
  br i1 %.not52, label %27, label %22

22:                                               ; preds = %18
  %23 = call double @gk_CPUSeconds() #3
  %24 = getelementptr inbounds i8, ptr %0, i64 200
  %25 = load double, ptr %24, align 8, !tbaa !20
  %26 = fsub double %25, %23
  store double %26, ptr %24, align 8, !tbaa !20
  br label %27

27:                                               ; preds = %22, %18
  call void @libmetis__ConstructMinCoverSeparator(ptr noundef nonnull %0, ptr noundef nonnull %1, float noundef %3) #3
  %28 = load i64, ptr %19, align 8, !tbaa !19
  %29 = and i64 %28, 1
  %.not53 = icmp eq i64 %29, 0
  br i1 %.not53, label %49, label %30

30:                                               ; preds = %27
  %31 = call double @gk_CPUSeconds() #3
  %32 = getelementptr inbounds i8, ptr %0, i64 200
  %33 = load double, ptr %32, align 8, !tbaa !20
  %34 = fadd double %31, %33
  store double %34, ptr %32, align 8, !tbaa !20
  br label %49

35:                                               ; preds = %5
  call void @libmetis__MlevelNodeBisectionMultiple(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %6, float noundef %3)
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = load i64, ptr %36, align 8, !tbaa !19
  %38 = and i64 %37, 128
  %.not = icmp eq i64 %38, 0
  br i1 %.not, label %49, label %39

39:                                               ; preds = %35
  %40 = load i64, ptr %1, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %1, i64 136
  %42 = load ptr, ptr %41, align 8, !tbaa !21
  %43 = load i64, ptr %42, align 8, !tbaa !13
  %44 = getelementptr inbounds i8, ptr %42, i64 8
  %45 = load i64, ptr %44, align 8, !tbaa !13
  %46 = getelementptr inbounds i8, ptr %42, i64 16
  %47 = load i64, ptr %46, align 8, !tbaa !13
  %48 = call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.3, i64 noundef %40, i64 noundef %43, i64 noundef %45, i64 noundef %47) #3
  br label %49

49:                                               ; preds = %35, %39, %27, %30, %5
  %50 = getelementptr inbounds i8, ptr %1, i64 144
  %51 = load i64, ptr %50, align 8, !tbaa !22
  %52 = getelementptr inbounds i8, ptr %1, i64 160
  %53 = load ptr, ptr %52, align 8, !tbaa !23
  %54 = getelementptr inbounds i8, ptr %1, i64 96
  %55 = load ptr, ptr %54, align 8, !tbaa !24
  %56 = icmp sgt i64 %51, 0
  br i1 %56, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %49
  %xtraiter = and i64 %51, 3
  %57 = icmp ult i64 %51, 4
  br i1 %57, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %51, 9223372036854775804
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.055 = phi i64 [ %4, %.lr.ph.preheader.new ], [ %79, %.lr.ph ]
  %.05154 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %85, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %58 = add nsw i64 %.055, -1
  %59 = getelementptr inbounds i64, ptr %53, i64 %.05154
  %60 = load i64, ptr %59, align 8, !tbaa !13
  %61 = getelementptr inbounds i64, ptr %55, i64 %60
  %62 = load i64, ptr %61, align 8, !tbaa !13
  %63 = getelementptr inbounds i64, ptr %2, i64 %62
  store i64 %58, ptr %63, align 8, !tbaa !13
  %64 = or disjoint i64 %.05154, 1
  %65 = add nsw i64 %.055, -2
  %66 = getelementptr inbounds i64, ptr %53, i64 %64
  %67 = load i64, ptr %66, align 8, !tbaa !13
  %68 = getelementptr inbounds i64, ptr %55, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !13
  %70 = getelementptr inbounds i64, ptr %2, i64 %69
  store i64 %65, ptr %70, align 8, !tbaa !13
  %71 = or disjoint i64 %.05154, 2
  %72 = add nsw i64 %.055, -3
  %73 = getelementptr inbounds i64, ptr %53, i64 %71
  %74 = load i64, ptr %73, align 8, !tbaa !13
  %75 = getelementptr inbounds i64, ptr %55, i64 %74
  %76 = load i64, ptr %75, align 8, !tbaa !13
  %77 = getelementptr inbounds i64, ptr %2, i64 %76
  store i64 %72, ptr %77, align 8, !tbaa !13
  %78 = or disjoint i64 %.05154, 3
  %79 = add nsw i64 %.055, -4
  %80 = getelementptr inbounds i64, ptr %53, i64 %78
  %81 = load i64, ptr %80, align 8, !tbaa !13
  %82 = getelementptr inbounds i64, ptr %55, i64 %81
  %83 = load i64, ptr %82, align 8, !tbaa !13
  %84 = getelementptr inbounds i64, ptr %2, i64 %83
  store i64 %79, ptr %84, align 8, !tbaa !13
  %85 = add nuw nsw i64 %.05154, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !25

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa.ph = phi i64 [ poison, %.lr.ph.preheader ], [ %79, %.lr.ph ]
  %.055.unr = phi i64 [ %4, %.lr.ph.preheader ], [ %79, %.lr.ph ]
  %.05154.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %85, %.lr.ph ]
  %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, %.lr.ph.epil
  %.055.epil = phi i64 [ %86, %.lr.ph.epil ], [ %.055.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.05154.epil = phi i64 [ %92, %.lr.ph.epil ], [ %.05154.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %86 = add nsw i64 %.055.epil, -1
  %87 = getelementptr inbounds i64, ptr %53, i64 %.05154.epil
  %88 = load i64, ptr %87, align 8, !tbaa !13
  %89 = getelementptr inbounds i64, ptr %55, i64 %88
  %90 = load i64, ptr %89, align 8, !tbaa !13
  %91 = getelementptr inbounds i64, ptr %2, i64 %90
  store i64 %86, ptr %91, align 8, !tbaa !13
  %92 = add nuw nsw i64 %.05154.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !27

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %49
  %.0.lcssa = phi i64 [ %4, %49 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %86, %.lr.ph.epil ]
  call void @libmetis__SplitGraphOrder(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %7, ptr noundef nonnull %8)
  call void @libmetis__FreeGraph(ptr noundef nonnull %1, i32 noundef 0) #3
  %93 = load i64, ptr %8, align 8, !tbaa !5
  %94 = icmp sgt i64 %93, 200
  br i1 %94, label %95, label %96

95:                                               ; preds = %._crit_edge
  call void @libmetis__MlevelNestedDissection(ptr noundef %0, ptr noundef nonnull %8, ptr noundef %2, float noundef %3, i64 noundef %.0.lcssa)
  br label %97

96:                                               ; preds = %._crit_edge
  call void @libmetis__MMDOrder(ptr noundef %0, ptr noundef nonnull %8, ptr noundef %2, i64 noundef %.0.lcssa)
  call void @libmetis__FreeGraph(ptr noundef nonnull %8, i32 noundef 0) #3
  br label %97

97:                                               ; preds = %96, %95
  %98 = load i64, ptr %7, align 8, !tbaa !5
  %99 = icmp sgt i64 %98, 200
  %100 = load i64, ptr %8, align 8, !tbaa !5
  %101 = sub nsw i64 %.0.lcssa, %100
  br i1 %99, label %102, label %103

102:                                              ; preds = %97
  call void @libmetis__MlevelNestedDissection(ptr noundef %0, ptr noundef nonnull %7, ptr noundef %2, float noundef %3, i64 noundef %101)
  br label %104

103:                                              ; preds = %97
  call void @libmetis__MMDOrder(ptr noundef %0, ptr noundef nonnull %7, ptr noundef %2, i64 noundef %101)
  call void @libmetis__FreeGraph(ptr noundef nonnull %7, i32 noundef 0) #3
  br label %104

104:                                              ; preds = %103, %102
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
  ret void
}

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

declare void @libmetis__MlevelEdgeBisection(ptr noundef, ptr noundef, ptr noundef, float noundef) local_unnamed_addr #1

declare void @libmetis__ConstructMinCoverSeparator(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__MlevelNodeBisectionMultiple(ptr noundef, ptr noundef, ptr noundef, float noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__SplitGraphOrder(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__MMDOrder(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

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 = { 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 24}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 56}
!15 = !{!"controldef", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !16, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !17, i64 88, !18, i64 152, !18, i64 160, !18, i64 168, !18, i64 176, !18, i64 184, !18, i64 192, !18, i64 200, !18, i64 208, !18, i64 216, !18, i64 224, !18, i64 232, !18, i64 240, !18, i64 248, !18, i64 256, !18, i64 264, !18, i64 272}
!16 = !{!"float", !8, i64 0}
!17 = !{!"workspacedef", !10, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !10, i64 48, !10, i64 56}
!18 = !{!"double", !8, i64 0}
!19 = !{!15, !7, i64 8}
!20 = !{!15, !18, i64 200}
!21 = !{!6, !10, i64 136}
!22 = !{!6, !7, i64 144}
!23 = !{!6, !10, i64 160}
!24 = !{!6, !10, i64 96}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.unroll.disable"}


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