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

; 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.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 }
%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.1 = external hidden unnamed_addr constant [37 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

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

declare double @gk_CPUSeconds() #1

; Function Attrs: nounwind uwtable
define dso_local i64 @libmetis__MlevelKWayPartitioning(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, float noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca float, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca [2 x i64], align 16
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca [10 x i64], align 16
  %22 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store float %5, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store i64 3, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store i64 0, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = call ptr @libmetis__Coarsen2Way(ptr noundef %23, ptr noundef %24)
  store ptr %25, ptr %18, align 8, !tbaa !5
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.controldef, ptr %26, i32 0, i32 1
  %28 = load i64, ptr %27, align 8, !tbaa !13
  %29 = and i64 %28, 1
  %30 = icmp ne i64 %29, 0
  br i1 %30, label %31, label %37

31:                                               ; preds = %6
  %32 = call double @gk_CPUSeconds()
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.controldef, ptr %33, i32 0, i32 13
  %35 = load double, ptr %34, align 8, !tbaa !17
  %36 = fsub double %35, %32
  store double %36, ptr %34, align 8, !tbaa !17
  br label %37

37:                                               ; preds = %31, %6
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  %40 = load i64, ptr %9, align 8, !tbaa !9
  call void @libmetis__AllocateKWayPartitionMemory(ptr noundef %38, ptr noundef %39, i64 noundef %40)
  %41 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 0
  store i64 1, ptr %41, align 16, !tbaa !9
  %42 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 1
  store i64 4, ptr %42, align 8, !tbaa !9
  %43 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 2
  store i64 1, ptr %43, align 16, !tbaa !9
  %44 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 3
  store i64 1, ptr %44, align 8, !tbaa !9
  %45 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 4
  store i64 0, ptr %45, align 16, !tbaa !9
  %46 = load ptr, ptr %18, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.graphdef, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %18, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.graphdef, ptr %48, i32 0, i32 2
  %50 = load ptr, ptr %49, align 8, !tbaa !18
  %51 = load ptr, ptr %18, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.graphdef, ptr %51, i32 0, i32 5
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  %54 = load ptr, ptr %18, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.graphdef, ptr %54, i32 0, i32 3
  %56 = load ptr, ptr %55, align 8, !tbaa !22
  %57 = load ptr, ptr %18, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.graphdef, ptr %57, i32 0, i32 6
  %59 = load ptr, ptr %58, align 8, !tbaa !23
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds [10 x i64], ptr %21, i64 0, i64 0
  %62 = load ptr, ptr %18, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.graphdef, ptr %62, i32 0, i32 18
  %64 = load ptr, ptr %63, align 8, !tbaa !24
  call void @METIS_WPartGraphRecursive(ptr noundef %47, ptr noundef %50, ptr noundef %53, ptr noundef %56, ptr noundef %59, ptr noundef %19, ptr noundef %20, ptr noundef %9, ptr noundef %60, ptr noundef %61, ptr noundef %22, ptr noundef %64)
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.controldef, ptr %65, i32 0, i32 1
  %67 = load i64, ptr %66, align 8, !tbaa !13
  %68 = and i64 %67, 1
  %69 = icmp ne i64 %68, 0
  br i1 %69, label %70, label %76

70:                                               ; preds = %37
  %71 = call double @gk_CPUSeconds()
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.controldef, ptr %72, i32 0, i32 13
  %74 = load double, ptr %73, align 8, !tbaa !17
  %75 = fadd double %74, %71
  store double %75, ptr %73, align 8, !tbaa !17
  br label %76

76:                                               ; preds = %70, %37
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.controldef, ptr %77, i32 0, i32 1
  %79 = load i64, ptr %78, align 8, !tbaa !13
  %80 = and i64 %79, 16
  %81 = icmp ne i64 %80, 0
  br i1 %81, label %82, label %86

82:                                               ; preds = %76
  %83 = load i64, ptr %9, align 8, !tbaa !9
  %84 = load i64, ptr %22, align 8, !tbaa !9
  %85 = call i32 (ptr, ...) @mprintf(ptr noundef @.str.1, i64 noundef %83, i64 noundef %84)
  br label %86

86:                                               ; preds = %82, %76
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.controldef, ptr %87, i32 0, i32 1
  %89 = load i64, ptr %88, align 8, !tbaa !13
  %90 = and i64 %89, 64
  %91 = icmp ne i64 %90, 0
  br i1 %91, label %92, label %98

92:                                               ; preds = %86
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = load i64, ptr %9, align 8, !tbaa !9
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.graphdef, ptr %95, i32 0, i32 18
  %97 = load ptr, ptr %96, align 8, !tbaa !24
  call void @libmetis__ComputePartitionInfo(ptr noundef %93, i64 noundef %94, ptr noundef %97)
  br label %98

98:                                               ; preds = %92, %86
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = load ptr, ptr %18, align 8, !tbaa !5
  %102 = load i64, ptr %9, align 8, !tbaa !9
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = load float, ptr %12, align 4, !tbaa !11
  call void @libmetis__RefineKWay(ptr noundef %99, ptr noundef %100, ptr noundef %101, i64 noundef %102, ptr noundef %103, float noundef %104)
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.graphdef, ptr %106, i32 0, i32 18
  %108 = load ptr, ptr %107, align 8, !tbaa !24
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.graphdef, ptr %109, i32 0, i32 0
  %111 = load i64, ptr %110, align 8, !tbaa !25
  %112 = mul i64 8, %111
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %105, ptr align 1 %108, i64 %112, i1 false)
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  call void @libmetis__FreeGraph(ptr noundef %113, i32 noundef 0)
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.graphdef, ptr %114, i32 0, i32 16
  %116 = load i64, ptr %115, align 8, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  ret i64 %116
}

declare ptr @libmetis__Coarsen2Way(ptr noundef, ptr noundef) #1

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

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

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

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

declare void @libmetis__RefineKWay(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, float noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"controldef", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !12, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !15, i64 88, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !16, i64 200, !16, i64 208, !16, i64 216, !16, i64 224, !16, i64 232, !16, i64 240, !16, i64 248, !16, i64 256, !16, i64 264, !16, i64 272}
!15 = !{!"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}
!16 = !{!"double", !7, i64 0}
!17 = !{!14, !16, i64 160}
!18 = !{!19, !6, i64 16}
!19 = !{!"graphdef", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !20, i64 56, !20, i64 60, !20, i64 64, !20, i64 68, !20, 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}
!20 = !{!"int", !7, i64 0}
!21 = !{!19, !6, i64 40}
!22 = !{!19, !6, i64 24}
!23 = !{!19, !6, i64 48}
!24 = !{!19, !6, i64 128}
!25 = !{!19, !10, i64 0}
!26 = !{!19, !10, i64 112}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.1 = external hidden unnamed_addr constant [37 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

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

declare double @gk_CPUSeconds() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i64 @libmetis__MlevelKWayPartitioning(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr nocapture noundef writeonly %3, ptr noundef %4, float noundef %5) local_unnamed_addr #2 {
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca [10 x i64], align 16
  %11 = alloca i64, align 8
  store i64 %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  store i64 3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  store i64 0, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %12 = tail call ptr @libmetis__Coarsen2Way(ptr noundef %0, ptr noundef %1) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load i64, ptr %13, align 8, !tbaa !9
  %15 = and i64 %14, 1
  %.not = icmp eq i64 %15, 0
  br i1 %.not, label %21, label %16

16:                                               ; preds = %6
  %17 = tail call double @gk_CPUSeconds() #4
  %18 = getelementptr inbounds i8, ptr %0, i64 160
  %19 = load double, ptr %18, align 8, !tbaa !15
  %20 = fsub double %19, %17
  store double %20, ptr %18, align 8, !tbaa !15
  br label %21

21:                                               ; preds = %16, %6
  tail call void @libmetis__AllocateKWayPartitionMemory(ptr noundef nonnull %0, ptr noundef %12, i64 noundef %2) #4
  store i64 1, ptr %10, align 16, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %10, i64 8
  store i64 4, ptr %22, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %10, i64 16
  store i64 1, ptr %23, align 16, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %10, i64 24
  store i64 1, ptr %24, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %10, i64 32
  store i64 0, ptr %25, align 16, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %12, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %12, i64 40
  %29 = load ptr, ptr %28, align 8, !tbaa !19
  %30 = getelementptr inbounds i8, ptr %12, i64 24
  %31 = load ptr, ptr %30, align 8, !tbaa !20
  %32 = getelementptr inbounds i8, ptr %12, i64 48
  %33 = load ptr, ptr %32, align 8, !tbaa !21
  %34 = getelementptr inbounds i8, ptr %12, i64 128
  %35 = load ptr, ptr %34, align 8, !tbaa !22
  call void @METIS_WPartGraphRecursive(ptr noundef %12, ptr noundef %27, ptr noundef %29, ptr noundef %31, ptr noundef %33, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %7, ptr noundef %4, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef %35) #4
  %36 = load i64, ptr %13, align 8, !tbaa !9
  %37 = and i64 %36, 1
  %.not29 = icmp eq i64 %37, 0
  br i1 %.not29, label %43, label %38

38:                                               ; preds = %21
  %39 = call double @gk_CPUSeconds() #4
  %40 = getelementptr inbounds i8, ptr %0, i64 160
  %41 = load double, ptr %40, align 8, !tbaa !15
  %42 = fadd double %39, %41
  store double %42, ptr %40, align 8, !tbaa !15
  %.pre = load i64, ptr %13, align 8, !tbaa !9
  br label %43

43:                                               ; preds = %38, %21
  %44 = phi i64 [ %.pre, %38 ], [ %36, %21 ]
  %45 = and i64 %44, 16
  %.not30 = icmp eq i64 %45, 0
  br i1 %.not30, label %50, label %46

46:                                               ; preds = %43
  %47 = load i64, ptr %7, align 8, !tbaa !5
  %48 = load i64, ptr %11, align 8, !tbaa !5
  %49 = call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.1, i64 noundef %47, i64 noundef %48) #4
  %.pre32 = load i64, ptr %13, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %46, %43
  %51 = phi i64 [ %.pre32, %46 ], [ %44, %43 ]
  %52 = and i64 %51, 64
  %.not31 = icmp eq i64 %52, 0
  br i1 %.not31, label %56, label %53

53:                                               ; preds = %50
  %54 = load i64, ptr %7, align 8, !tbaa !5
  %55 = load ptr, ptr %34, align 8, !tbaa !22
  call void @libmetis__ComputePartitionInfo(ptr noundef nonnull %12, i64 noundef %54, ptr noundef %55) #4
  br label %56

56:                                               ; preds = %53, %50
  %57 = load i64, ptr %7, align 8, !tbaa !5
  call void @libmetis__RefineKWay(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %12, i64 noundef %57, ptr noundef %4, float noundef %5) #4
  %58 = getelementptr inbounds i8, ptr %1, i64 128
  %59 = load ptr, ptr %58, align 8, !tbaa !22
  %60 = load i64, ptr %1, align 8, !tbaa !23
  %61 = shl i64 %60, 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 %59, i64 %61, i1 false)
  call void @libmetis__FreeGraph(ptr noundef nonnull %1, i32 noundef 0) #4
  %62 = getelementptr inbounds i8, ptr %1, i64 112
  %63 = load i64, ptr %62, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  ret i64 %63
}

declare ptr @libmetis__Coarsen2Way(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @METIS_WPartGraphRecursive(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 #1

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

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 8}
!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, !14, i64 160}
!16 = !{!17, !13, i64 16}
!17 = !{!"graphdef", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !18, i64 56, !18, i64 60, !18, i64 64, !18, i64 68, !18, 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}
!18 = !{!"int", !7, i64 0}
!19 = !{!17, !13, i64 40}
!20 = !{!17, !13, i64 24}
!21 = !{!17, !13, i64 48}
!22 = !{!17, !13, i64 128}
!23 = !{!17, !6, i64 0}
!24 = !{!17, !6, i64 112}


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