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

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

; Function Attrs: nounwind uwtable
define dso_local void @METIS_EdgeND(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca %struct.graphdef, align 8
  %18 = alloca %struct.controldef, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 248, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 280, ptr %18) #3
  %19 = load ptr, ptr %11, align 8, !tbaa !5
  %20 = load i64, ptr %19, align 8, !tbaa !9
  %21 = icmp eq i64 %20, 1
  br i1 %21, label %22, label %27

22:                                               ; preds = %7
  %23 = load ptr, ptr %8, align 8, !tbaa !5
  %24 = load i64, ptr %23, align 8, !tbaa !9
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libmetis__Change2CNumbering(i64 noundef %24, ptr noundef %25, ptr noundef %26)
  br label %27

27:                                               ; preds = %22, %7
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = load i64, ptr %28, align 8, !tbaa !9
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libmetis__SetUpGraph(ptr noundef %17, i64 noundef 3, i64 noundef %29, i64 noundef 1, ptr noundef %30, ptr noundef %31, ptr noundef null, ptr noundef null, i64 noundef 0)
  %32 = load ptr, ptr %12, align 8, !tbaa !5
  %33 = getelementptr inbounds i64, ptr %32, i64 0
  %34 = load i64, ptr %33, align 8, !tbaa !9
  %35 = icmp eq i64 %34, 0
  br i1 %35, label %36, label %41

36:                                               ; preds = %27
  %37 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 2
  store i64 3, ptr %37, align 8, !tbaa !11
  %38 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 3
  store i64 1, ptr %38, align 8, !tbaa !16
  %39 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 4
  store i64 1, ptr %39, align 8, !tbaa !17
  %40 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 1
  store i64 0, ptr %40, align 8, !tbaa !18
  br label %58

41:                                               ; preds = %27
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = getelementptr inbounds i64, ptr %42, i64 1
  %44 = load i64, ptr %43, align 8, !tbaa !9
  %45 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 2
  store i64 %44, ptr %45, align 8, !tbaa !11
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = getelementptr inbounds i64, ptr %46, i64 2
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 3
  store i64 %48, ptr %49, align 8, !tbaa !16
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = getelementptr inbounds i64, ptr %50, i64 3
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 4
  store i64 %52, ptr %53, align 8, !tbaa !17
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = getelementptr inbounds i64, ptr %54, i64 4
  %56 = load i64, ptr %55, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 1
  store i64 %56, ptr %57, align 8, !tbaa !18
  br label %58

58:                                               ; preds = %41, %36
  %59 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 10
  store i64 0, ptr %59, align 8, !tbaa !19
  %60 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 8
  store i64 -1, ptr %60, align 8, !tbaa !20
  %61 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 9
  store i64 1, ptr %61, align 8, !tbaa !21
  %62 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 7
  store i64 3, ptr %62, align 8, !tbaa !22
  %63 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 0
  store i64 20, ptr %63, align 8, !tbaa !23
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = load i64, ptr %64, align 8, !tbaa !9
  %66 = getelementptr inbounds %struct.graphdef, ptr %17, i32 0, i32 3
  %67 = load ptr, ptr %66, align 8, !tbaa !24
  %68 = call i64 @libmetis__idxsum(i64 noundef %65, ptr noundef %67, i64 noundef 1)
  %69 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 0
  %70 = load i64, ptr %69, align 8, !tbaa !23
  %71 = sdiv i64 %68, %70
  %72 = sitofp i64 %71 to double
  %73 = fmul double 1.500000e+00, %72
  %74 = fptosi double %73 to i64
  %75 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 5
  store i64 %74, ptr %75, align 8, !tbaa !27
  call void @libmetis__InitRandom(i64 noundef -1)
  call void @libmetis__AllocateWorkSpace(ptr noundef %18, ptr noundef %17, i64 noundef 2)
  %76 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 1
  %77 = load i64, ptr %76, align 8, !tbaa !18
  %78 = and i64 %77, 1
  %79 = icmp ne i64 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %58
  call void @libmetis__InitTimers(ptr noundef %18)
  br label %81

81:                                               ; preds = %80, %58
  %82 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 1
  %83 = load i64, ptr %82, align 8, !tbaa !18
  %84 = and i64 %83, 1
  %85 = icmp ne i64 %84, 0
  br i1 %85, label %86, label %91

86:                                               ; preds = %81
  %87 = call double @gk_CPUSeconds()
  %88 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 12
  %89 = load double, ptr %88, align 8, !tbaa !28
  %90 = fsub double %89, %87
  store double %90, ptr %88, align 8, !tbaa !28
  br label %91

91:                                               ; preds = %86, %81
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = load i64, ptr %93, align 8, !tbaa !9
  call void @libmetis__MlevelNestedDissection(ptr noundef %18, ptr noundef %17, ptr noundef %92, float noundef 0x3FF19999A0000000, i64 noundef %94)
  %95 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 1
  %96 = load i64, ptr %95, align 8, !tbaa !18
  %97 = and i64 %96, 1
  %98 = icmp ne i64 %97, 0
  br i1 %98, label %99, label %104

99:                                               ; preds = %91
  %100 = call double @gk_CPUSeconds()
  %101 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 12
  %102 = load double, ptr %101, align 8, !tbaa !28
  %103 = fadd double %102, %100
  store double %103, ptr %101, align 8, !tbaa !28
  br label %104

104:                                              ; preds = %99, %91
  %105 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 1
  %106 = load i64, ptr %105, align 8, !tbaa !18
  %107 = and i64 %106, 1
  %108 = icmp ne i64 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %104
  call void @libmetis__PrintTimers(ptr noundef %18)
  br label %110

110:                                              ; preds = %109, %104
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %111

111:                                              ; preds = %124, %110
  %112 = load i64, ptr %15, align 8, !tbaa !9
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = load i64, ptr %113, align 8, !tbaa !9
  %115 = icmp slt i64 %112, %114
  br i1 %115, label %116, label %127

116:                                              ; preds = %111
  %117 = load i64, ptr %15, align 8, !tbaa !9
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = load i64, ptr %15, align 8, !tbaa !9
  %121 = getelementptr inbounds i64, ptr %119, i64 %120
  %122 = load i64, ptr %121, align 8, !tbaa !9
  %123 = getelementptr inbounds i64, ptr %118, i64 %122
  store i64 %117, ptr %123, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %116
  %125 = load i64, ptr %15, align 8, !tbaa !9
  %126 = add nsw i64 %125, 1
  store i64 %126, ptr %15, align 8, !tbaa !9
  br label %111, !llvm.loop !29

127:                                              ; preds = %111
  call void @libmetis__FreeWorkSpace(ptr noundef %18, ptr noundef %17)
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = load i64, ptr %128, align 8, !tbaa !9
  %130 = icmp eq i64 %129, 1
  br i1 %130, label %131, label %138

131:                                              ; preds = %127
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = load i64, ptr %132, align 8, !tbaa !9
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  call void @libmetis__Change2FNumberingOrder(i64 noundef %133, ptr noundef %134, ptr noundef %135, ptr noundef %136, ptr noundef %137)
  br label %138

138:                                              ; preds = %131, %127
  call void @llvm.lifetime.end.p0(i64 280, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 248, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  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__Change2CNumbering(i64 noundef, ptr noundef, ptr noundef) #2

declare void @libmetis__SetUpGraph(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

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

declare void @libmetis__InitRandom(i64 noundef) #2

declare void @libmetis__AllocateWorkSpace(ptr noundef, ptr noundef, i64 noundef) #2

declare void @libmetis__InitTimers(ptr noundef) #2

declare double @gk_CPUSeconds() #2

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__MlevelNestedDissection(ptr noundef, ptr noundef, ptr noundef, float noundef, i64 noundef) #0

declare void @libmetis__PrintTimers(ptr noundef) #2

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

declare void @libmetis__Change2FNumberingOrder(i64 noundef, ptr noundef, ptr noundef, ptr 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"controldef", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !13, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !14, i64 88, !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, !15, i64 232, !15, i64 240, !15, i64 248, !15, i64 256, !15, i64 264, !15, i64 272}
!13 = !{!"float", !7, i64 0}
!14 = !{!"workspacedef", !6, i64 0, !10, i64 8, !10, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !6, i64 48, !6, i64 56}
!15 = !{!"double", !7, i64 0}
!16 = !{!12, !10, i64 24}
!17 = !{!12, !10, i64 32}
!18 = !{!12, !10, i64 8}
!19 = !{!12, !10, i64 80}
!20 = !{!12, !10, i64 64}
!21 = !{!12, !10, i64 72}
!22 = !{!12, !10, i64 56}
!23 = !{!12, !10, i64 0}
!24 = !{!25, !6, i64 24}
!25 = !{!"graphdef", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !26, i64 56, !26, i64 60, !26, i64 64, !26, i64 68, !26, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !10, i64 120, !6, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !10, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240}
!26 = !{!"int", !7, i64 0}
!27 = !{!12, !10, i64 40}
!28 = !{!12, !15, i64 152}
!29 = distinct !{!29, !30}
!30 = !{!"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 }
%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 }

; Function Attrs: nounwind uwtable
define dso_local void @METIS_EdgeND(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %8 = alloca %struct.graphdef, align 8
  %9 = alloca %struct.controldef, align 8
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 280, ptr nonnull %9) #3
  %10 = load i64, ptr %3, align 8, !tbaa !5
  %11 = icmp eq i64 %10, 1
  br i1 %11, label %12, label %14

12:                                               ; preds = %7
  %13 = load i64, ptr %0, align 8, !tbaa !5
  tail call void @libmetis__Change2CNumbering(i64 noundef %13, ptr noundef %1, ptr noundef %2) #3
  br label %14

14:                                               ; preds = %12, %7
  %15 = load i64, ptr %0, align 8, !tbaa !5
  call void @libmetis__SetUpGraph(ptr noundef nonnull %8, i64 noundef 3, i64 noundef %15, i64 noundef 1, ptr noundef %1, ptr noundef %2, ptr noundef null, ptr noundef null, i64 noundef 0) #3
  %16 = load i64, ptr %4, align 8, !tbaa !5
  %17 = icmp eq i64 %16, 0
  br i1 %17, label %25, label %18

18:                                               ; preds = %14
  %19 = getelementptr inbounds i8, ptr %4, i64 8
  %20 = load <2 x i64>, ptr %19, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %4, i64 24
  %22 = load i64, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %4, i64 32
  %24 = load i64, ptr %23, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %14, %18
  %.sink31 = phi i64 [ %22, %18 ], [ 1, %14 ]
  %.sink = phi i64 [ %24, %18 ], [ 0, %14 ]
  %26 = phi <2 x i64> [ %20, %18 ], [ <i64 3, i64 1>, %14 ]
  %27 = getelementptr inbounds i8, ptr %9, i64 16
  store <2 x i64> %26, ptr %27, align 8
  %28 = getelementptr inbounds i8, ptr %9, i64 32
  store i64 %.sink31, ptr %28, align 8
  %29 = getelementptr inbounds i8, ptr %9, i64 8
  store i64 %.sink, ptr %29, align 8
  %30 = getelementptr inbounds i8, ptr %9, i64 80
  store i64 0, ptr %30, align 8, !tbaa !9
  %31 = getelementptr inbounds i8, ptr %9, i64 64
  store i64 -1, ptr %31, align 8, !tbaa !15
  %32 = getelementptr inbounds i8, ptr %9, i64 72
  store i64 1, ptr %32, align 8, !tbaa !16
  %33 = getelementptr inbounds i8, ptr %9, i64 56
  store i64 3, ptr %33, align 8, !tbaa !17
  store i64 20, ptr %9, align 8, !tbaa !18
  %34 = load i64, ptr %0, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %8, i64 24
  %36 = load ptr, ptr %35, align 8, !tbaa !19
  %37 = call i64 @libmetis__idxsum(i64 noundef %34, ptr noundef %36, i64 noundef 1) #3
  %38 = sdiv i64 %37, 20
  %39 = sitofp i64 %38 to double
  %40 = fmul double %39, 1.500000e+00
  %41 = fptosi double %40 to i64
  %42 = getelementptr inbounds i8, ptr %9, i64 40
  store i64 %41, ptr %42, align 8, !tbaa !22
  call void @libmetis__InitRandom(i64 noundef -1) #3
  call void @libmetis__AllocateWorkSpace(ptr noundef nonnull %9, ptr noundef nonnull %8, i64 noundef 2) #3
  %43 = load i64, ptr %29, align 8, !tbaa !23
  %44 = and i64 %43, 1
  %.not = icmp eq i64 %44, 0
  br i1 %.not, label %.thread, label %45

45:                                               ; preds = %25
  call void @libmetis__InitTimers(ptr noundef nonnull %9) #3
  %.pre = load i64, ptr %29, align 8, !tbaa !23
  %.pre35 = and i64 %.pre, 1
  %46 = icmp eq i64 %.pre35, 0
  br i1 %46, label %.thread, label %47

47:                                               ; preds = %45
  %48 = call double @gk_CPUSeconds() #3
  %49 = getelementptr inbounds i8, ptr %9, i64 152
  %50 = load double, ptr %49, align 8, !tbaa !24
  %51 = fsub double %50, %48
  store double %51, ptr %49, align 8, !tbaa !24
  br label %.thread

.thread:                                          ; preds = %25, %47, %45
  %52 = load i64, ptr %0, align 8, !tbaa !5
  call void @libmetis__MlevelNestedDissection(ptr noundef nonnull %9, ptr noundef nonnull %8, ptr noundef %6, float noundef 0x3FF19999A0000000, i64 noundef %52)
  %53 = load i64, ptr %29, align 8, !tbaa !23
  %54 = and i64 %53, 1
  %.not28 = icmp eq i64 %54, 0
  br i1 %.not28, label %.thread39, label %55

55:                                               ; preds = %.thread
  %56 = call double @gk_CPUSeconds() #3
  %57 = getelementptr inbounds i8, ptr %9, i64 152
  %58 = load double, ptr %57, align 8, !tbaa !24
  %59 = fadd double %56, %58
  store double %59, ptr %57, align 8, !tbaa !24
  %.pre34 = load i64, ptr %29, align 8, !tbaa !23
  %.pre36 = and i64 %.pre34, 1
  %60 = icmp eq i64 %.pre36, 0
  br i1 %60, label %.thread39, label %61

61:                                               ; preds = %55
  call void @libmetis__PrintTimers(ptr noundef nonnull %9) #3
  br label %.thread39

.thread39:                                        ; preds = %.thread, %61, %55
  %62 = load i64, ptr %0, align 8, !tbaa !5
  %63 = icmp sgt i64 %62, 0
  br i1 %63, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.thread39, %.lr.ph
  %.030 = phi i64 [ %67, %.lr.ph ], [ 0, %.thread39 ]
  %64 = getelementptr inbounds i64, ptr %6, i64 %.030
  %65 = load i64, ptr %64, align 8, !tbaa !5
  %66 = getelementptr inbounds i64, ptr %5, i64 %65
  store i64 %.030, ptr %66, align 8, !tbaa !5
  %67 = add nuw nsw i64 %.030, 1
  %68 = load i64, ptr %0, align 8, !tbaa !5
  %69 = icmp slt i64 %67, %68
  br i1 %69, label %.lr.ph, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph, %.thread39
  call void @libmetis__FreeWorkSpace(ptr noundef nonnull %9, ptr noundef nonnull %8) #3
  %70 = load i64, ptr %3, align 8, !tbaa !5
  %71 = icmp eq i64 %70, 1
  br i1 %71, label %72, label %74

72:                                               ; preds = %._crit_edge
  %73 = load i64, ptr %0, align 8, !tbaa !5
  call void @libmetis__Change2FNumberingOrder(i64 noundef %73, ptr noundef %1, ptr noundef %2, ptr noundef %5, ptr noundef %6) #3
  br label %74

74:                                               ; preds = %72, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %8) #3
  ret void
}

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

declare void @libmetis__Change2CNumbering(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @libmetis__SetUpGraph(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i64 @libmetis__idxsum(i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @libmetis__InitRandom(i64 noundef) local_unnamed_addr #2

declare void @libmetis__AllocateWorkSpace(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @libmetis__InitTimers(ptr noundef) local_unnamed_addr #2

declare double @gk_CPUSeconds() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__MlevelNestedDissection(ptr noundef, ptr noundef, ptr noundef, float noundef, i64 noundef) local_unnamed_addr #0

declare void @libmetis__PrintTimers(ptr noundef) local_unnamed_addr #2

declare void @libmetis__FreeWorkSpace(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @libmetis__Change2FNumberingOrder(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr 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 }

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


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass