; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare void @libmetis__Change2CNumbering(i64 noundef, ptr noundef, ptr noundef) #1

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

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

declare void @libmetis__InitRandom(i64 noundef) #1

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

declare void @libmetis__InitTimers(ptr noundef) #1

declare double @gk_CPUSeconds() #1

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

declare void @libmetis__PrintTimers(ptr noundef) #1

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

declare void @libmetis__Change2FNumberingOrder(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

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

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

25:                                               ; preds = %8
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = load i64, ptr %26, align 8, !tbaa !9
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  call void @libmetis__Change2CNumbering(i64 noundef %27, ptr noundef %28, ptr noundef %29)
  br label %30

30:                                               ; preds = %25, %8
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = load i64, ptr %31, align 8, !tbaa !9
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  call void @libmetis__SetUpGraph(ptr noundef %20, i64 noundef 4, i64 noundef %32, i64 noundef 1, ptr noundef %33, ptr noundef %34, ptr noundef %35, ptr noundef null, i64 noundef 2)
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = getelementptr inbounds i64, ptr %36, i64 0
  %38 = load i64, ptr %37, align 8, !tbaa !9
  %39 = icmp eq i64 %38, 0
  br i1 %39, label %40, label %45

40:                                               ; preds = %30
  %41 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 2
  store i64 3, ptr %41, align 8, !tbaa !11
  %42 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 3
  store i64 1, ptr %42, align 8, !tbaa !16
  %43 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 4
  store i64 2, ptr %43, align 8, !tbaa !17
  %44 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 1
  store i64 0, ptr %44, align 8, !tbaa !18
  br label %62

45:                                               ; preds = %30
  %46 = load ptr, ptr %14, align 8, !tbaa !5
  %47 = getelementptr inbounds i64, ptr %46, i64 1
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 2
  store i64 %48, ptr %49, align 8, !tbaa !11
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = getelementptr inbounds i64, ptr %50, i64 2
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 3
  store i64 %52, ptr %53, align 8, !tbaa !16
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = getelementptr inbounds i64, ptr %54, i64 3
  %56 = load i64, ptr %55, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 4
  store i64 %56, ptr %57, align 8, !tbaa !17
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = getelementptr inbounds i64, ptr %58, i64 4
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 1
  store i64 %60, ptr %61, align 8, !tbaa !18
  br label %62

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

84:                                               ; preds = %62
  call void @libmetis__InitTimers(ptr noundef %21)
  br label %85

85:                                               ; preds = %84, %62
  %86 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 1
  %87 = load i64, ptr %86, align 8, !tbaa !18
  %88 = and i64 %87, 1
  %89 = icmp ne i64 %88, 0
  br i1 %89, label %90, label %95

90:                                               ; preds = %85
  %91 = call double @gk_CPUSeconds()
  %92 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 12
  %93 = load double, ptr %92, align 8, !tbaa !28
  %94 = fsub double %93, %91
  store double %94, ptr %92, align 8, !tbaa !28
  br label %95

95:                                               ; preds = %90, %85
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = load i64, ptr %97, align 8, !tbaa !9
  call void @libmetis__MlevelNestedDissection(ptr noundef %21, ptr noundef %20, ptr noundef %96, float noundef 0x3FF19999A0000000, i64 noundef %98)
  %99 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 1
  %100 = load i64, ptr %99, align 8, !tbaa !18
  %101 = and i64 %100, 1
  %102 = icmp ne i64 %101, 0
  br i1 %102, label %103, label %108

103:                                              ; preds = %95
  %104 = call double @gk_CPUSeconds()
  %105 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 12
  %106 = load double, ptr %105, align 8, !tbaa !28
  %107 = fadd double %106, %104
  store double %107, ptr %105, align 8, !tbaa !28
  br label %108

108:                                              ; preds = %103, %95
  %109 = getelementptr inbounds %struct.controldef, ptr %21, i32 0, i32 1
  %110 = load i64, ptr %109, align 8, !tbaa !18
  %111 = and i64 %110, 1
  %112 = icmp ne i64 %111, 0
  br i1 %112, label %113, label %114

113:                                              ; preds = %108
  call void @libmetis__PrintTimers(ptr noundef %21)
  br label %114

114:                                              ; preds = %113, %108
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %115

115:                                              ; preds = %128, %114
  %116 = load i64, ptr %17, align 8, !tbaa !9
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = icmp slt i64 %116, %118
  br i1 %119, label %120, label %131

120:                                              ; preds = %115
  %121 = load i64, ptr %17, align 8, !tbaa !9
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = load i64, ptr %17, align 8, !tbaa !9
  %125 = getelementptr inbounds i64, ptr %123, i64 %124
  %126 = load i64, ptr %125, align 8, !tbaa !9
  %127 = getelementptr inbounds i64, ptr %122, i64 %126
  store i64 %121, ptr %127, align 8, !tbaa !9
  br label %128

128:                                              ; preds = %120
  %129 = load i64, ptr %17, align 8, !tbaa !9
  %130 = add nsw i64 %129, 1
  store i64 %130, ptr %17, align 8, !tbaa !9
  br label %115, !llvm.loop !29

131:                                              ; preds = %115
  call void @libmetis__FreeWorkSpace(ptr noundef %21, ptr noundef %20)
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = load i64, ptr %132, align 8, !tbaa !9
  %134 = icmp eq i64 %133, 1
  br i1 %134, label %135, label %142

135:                                              ; preds = %131
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = load i64, ptr %136, align 8, !tbaa !9
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = load ptr, ptr %15, align 8, !tbaa !5
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  call void @libmetis__Change2FNumberingOrder(i64 noundef %137, ptr noundef %138, ptr noundef %139, ptr noundef %140, ptr noundef %141)
  br label %142

142:                                              ; preds = %135, %131
  call void @llvm.lifetime.end.p0(i64 280, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 248, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret void
}

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 = !{!"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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

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 #1

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

declare void @libmetis__InitRandom(i64 noundef) local_unnamed_addr #1

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

declare void @libmetis__InitTimers(ptr noundef) local_unnamed_addr #1

declare double @gk_CPUSeconds() local_unnamed_addr #1

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

declare void @libmetis__PrintTimers(ptr noundef) local_unnamed_addr #1

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

declare void @libmetis__Change2FNumberingOrder(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

46:                                               ; preds = %26
  call void @libmetis__InitTimers(ptr noundef nonnull %10) #3
  %.pre = load i64, ptr %30, align 8, !tbaa !23
  %.pre36 = and i64 %.pre, 1
  %47 = icmp eq i64 %.pre36, 0
  br i1 %47, label %.thread, label %48

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

.thread:                                          ; preds = %26, %48, %46
  %53 = load i64, ptr %0, align 8, !tbaa !5
  call void @libmetis__MlevelNestedDissection(ptr noundef nonnull %10, ptr noundef nonnull %9, ptr noundef %7, float noundef 0x3FF19999A0000000, i64 noundef %53)
  %54 = load i64, ptr %30, align 8, !tbaa !23
  %55 = and i64 %54, 1
  %.not29 = icmp eq i64 %55, 0
  br i1 %.not29, label %.thread40, label %56

56:                                               ; preds = %.thread
  %57 = call double @gk_CPUSeconds() #3
  %58 = getelementptr inbounds i8, ptr %10, i64 152
  %59 = load double, ptr %58, align 8, !tbaa !24
  %60 = fadd double %57, %59
  store double %60, ptr %58, align 8, !tbaa !24
  %.pre35 = load i64, ptr %30, align 8, !tbaa !23
  %.pre37 = and i64 %.pre35, 1
  %61 = icmp eq i64 %.pre37, 0
  br i1 %61, label %.thread40, label %62

62:                                               ; preds = %56
  call void @libmetis__PrintTimers(ptr noundef nonnull %10) #3
  br label %.thread40

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

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

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

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

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

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