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

; 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

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

32:                                               ; preds = %12
  %33 = load ptr, ptr %13, align 8, !tbaa !5
  %34 = load i64, ptr %33, align 8, !tbaa !9
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = load ptr, ptr %15, align 8, !tbaa !5
  call void @libmetis__Change2CNumbering(i64 noundef %34, ptr noundef %35, ptr noundef %36)
  br label %37

37:                                               ; preds = %32, %12
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = load i64, ptr %38, align 8, !tbaa !9
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  %41 = load ptr, ptr %15, align 8, !tbaa !5
  %42 = load ptr, ptr %16, align 8, !tbaa !5
  %43 = load ptr, ptr %17, align 8, !tbaa !5
  %44 = load ptr, ptr %18, align 8, !tbaa !5
  %45 = load i64, ptr %44, align 8, !tbaa !9
  call void @libmetis__SetUpGraph(ptr noundef %27, i64 noundef 2, i64 noundef %39, i64 noundef 1, ptr noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %43, i64 noundef %45)
  %46 = load ptr, ptr %22, align 8, !tbaa !5
  %47 = getelementptr inbounds i64, ptr %46, i64 0
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = icmp eq i64 %48, 0
  br i1 %49, label %50, label %56

50:                                               ; preds = %37
  %51 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 2
  store i64 3, ptr %51, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 3
  store i64 1, ptr %52, align 8, !tbaa !16
  %53 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 4
  store i64 3, ptr %53, align 8, !tbaa !17
  %54 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 1
  store i64 8, ptr %54, align 8, !tbaa !18
  %55 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 1
  store i64 0, ptr %55, align 8, !tbaa !18
  br label %73

56:                                               ; preds = %37
  %57 = load ptr, ptr %22, align 8, !tbaa !5
  %58 = getelementptr inbounds i64, ptr %57, i64 1
  %59 = load i64, ptr %58, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 2
  store i64 %59, ptr %60, align 8, !tbaa !11
  %61 = load ptr, ptr %22, align 8, !tbaa !5
  %62 = getelementptr inbounds i64, ptr %61, i64 2
  %63 = load i64, ptr %62, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 3
  store i64 %63, ptr %64, align 8, !tbaa !16
  %65 = load ptr, ptr %22, align 8, !tbaa !5
  %66 = getelementptr inbounds i64, ptr %65, i64 3
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 4
  store i64 %67, ptr %68, align 8, !tbaa !17
  %69 = load ptr, ptr %22, align 8, !tbaa !5
  %70 = getelementptr inbounds i64, ptr %69, i64 4
  %71 = load i64, ptr %70, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 1
  store i64 %71, ptr %72, align 8, !tbaa !18
  br label %73

73:                                               ; preds = %56, %50
  %74 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 7
  store i64 2, ptr %74, align 8, !tbaa !19
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = load i64, ptr %75, align 8, !tbaa !9
  %77 = load ptr, ptr %20, align 8, !tbaa !5
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = trunc i64 %78 to i32
  %80 = call i32 @gk_log2(i32 noundef %79)
  %81 = mul nsw i32 40, %80
  %82 = sext i32 %81 to i64
  %83 = sdiv i64 %76, %82
  %84 = load ptr, ptr %20, align 8, !tbaa !5
  %85 = load i64, ptr %84, align 8, !tbaa !9
  %86 = mul nsw i64 20, %85
  %87 = icmp sge i64 %83, %86
  br i1 %87, label %88, label %98

88:                                               ; preds = %73
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = load i64, ptr %89, align 8, !tbaa !9
  %91 = load ptr, ptr %20, align 8, !tbaa !5
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = trunc i64 %92 to i32
  %94 = call i32 @gk_log2(i32 noundef %93)
  %95 = mul nsw i32 40, %94
  %96 = sext i32 %95 to i64
  %97 = sdiv i64 %90, %96
  br label %102

98:                                               ; preds = %73
  %99 = load ptr, ptr %20, align 8, !tbaa !5
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = mul nsw i64 20, %100
  br label %102

102:                                              ; preds = %98, %88
  %103 = phi i64 [ %97, %88 ], [ %101, %98 ]
  %104 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 0
  store i64 %103, ptr %104, align 8, !tbaa !20
  %105 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 5
  store i64 0, ptr %105, align 8, !tbaa !21
  call void @libmetis__InitRandom(i64 noundef -1)
  %106 = load ptr, ptr %20, align 8, !tbaa !5
  %107 = load i64, ptr %106, align 8, !tbaa !9
  call void @libmetis__AllocateWorkSpace(ptr noundef %28, ptr noundef %27, i64 noundef %107)
  %108 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 1
  %109 = load i64, ptr %108, align 8, !tbaa !18
  %110 = and i64 %109, 1
  %111 = icmp ne i64 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %102
  call void @libmetis__InitTimers(ptr noundef %28)
  br label %113

113:                                              ; preds = %112, %102
  %114 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 1
  %115 = load i64, ptr %114, align 8, !tbaa !18
  %116 = and i64 %115, 1
  %117 = icmp ne i64 %116, 0
  br i1 %117, label %118, label %123

118:                                              ; preds = %113
  %119 = call double @gk_CPUSeconds()
  %120 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 12
  %121 = load double, ptr %120, align 8, !tbaa !22
  %122 = fsub double %121, %119
  store double %122, ptr %120, align 8, !tbaa !22
  br label %123

123:                                              ; preds = %118, %113
  %124 = load ptr, ptr %20, align 8, !tbaa !5
  %125 = load i64, ptr %124, align 8, !tbaa !9
  %126 = load ptr, ptr %24, align 8, !tbaa !5
  %127 = load ptr, ptr %21, align 8, !tbaa !5
  %128 = call i64 @MlevelKWayRefinement(ptr noundef %28, ptr noundef %27, i64 noundef %125, ptr noundef %126, ptr noundef %127, float noundef 0x3FF07AE140000000)
  %129 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 %128, ptr %129, align 8, !tbaa !9
  %130 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 1
  %131 = load i64, ptr %130, align 8, !tbaa !18
  %132 = and i64 %131, 1
  %133 = icmp ne i64 %132, 0
  br i1 %133, label %134, label %139

134:                                              ; preds = %123
  %135 = call double @gk_CPUSeconds()
  %136 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 12
  %137 = load double, ptr %136, align 8, !tbaa !22
  %138 = fadd double %137, %135
  store double %138, ptr %136, align 8, !tbaa !22
  br label %139

139:                                              ; preds = %134, %123
  %140 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 1
  %141 = load i64, ptr %140, align 8, !tbaa !18
  %142 = and i64 %141, 1
  %143 = icmp ne i64 %142, 0
  br i1 %143, label %144, label %145

144:                                              ; preds = %139
  call void @libmetis__PrintTimers(ptr noundef %28)
  br label %145

145:                                              ; preds = %144, %139
  call void @libmetis__FreeWorkSpace(ptr noundef %28, ptr noundef %27)
  %146 = load ptr, ptr %19, align 8, !tbaa !5
  %147 = load i64, ptr %146, align 8, !tbaa !9
  %148 = icmp eq i64 %147, 1
  br i1 %148, label %149, label %155

149:                                              ; preds = %145
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load i64, ptr %150, align 8, !tbaa !9
  %152 = load ptr, ptr %14, align 8, !tbaa !5
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = load ptr, ptr %24, align 8, !tbaa !5
  call void @libmetis__Change2FNumbering(i64 noundef %151, ptr noundef %152, ptr noundef %153, ptr noundef %154)
  br label %155

155:                                              ; preds = %149, %145
  call void @llvm.lifetime.end.p0(i64 280, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 248, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #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__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 i32 @gk_log2(i32 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 i64 @MlevelKWayRefinement(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, float noundef) #1

declare void @libmetis__PrintTimers(ptr noundef) #2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 56}
!20 = !{!12, !10, i64 0}
!21 = !{!12, !10, i64 40}
!22 = !{!12, !15, i64 152}


; 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

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

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

19:                                               ; preds = %17, %12
  %20 = load i64, ptr %0, align 8, !tbaa !5
  %21 = load i64, ptr %5, align 8, !tbaa !5
  call void @libmetis__SetUpGraph(ptr noundef nonnull %13, i64 noundef 2, i64 noundef %20, i64 noundef 1, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %21) #3
  %22 = load i64, ptr %9, align 8, !tbaa !5
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %31, label %24

24:                                               ; preds = %19
  %25 = getelementptr inbounds i8, ptr %9, i64 8
  %26 = load <2 x i64>, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %9, i64 24
  %28 = load i64, ptr %27, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %9, i64 32
  %30 = load i64, ptr %29, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %19, %24
  %.sink35 = phi i64 [ %28, %24 ], [ 3, %19 ]
  %.sink = phi i64 [ %30, %24 ], [ 0, %19 ]
  %32 = phi <2 x i64> [ %26, %24 ], [ <i64 3, i64 1>, %19 ]
  %33 = getelementptr inbounds i8, ptr %14, i64 16
  store <2 x i64> %32, ptr %33, align 8
  %34 = getelementptr inbounds i8, ptr %14, i64 32
  store i64 %.sink35, ptr %34, align 8
  %35 = getelementptr inbounds i8, ptr %14, i64 8
  store i64 %.sink, ptr %35, align 8
  %36 = getelementptr inbounds i8, ptr %14, i64 56
  store i64 2, ptr %36, align 8, !tbaa !9
  %37 = load i64, ptr %0, align 8, !tbaa !5
  %38 = load i64, ptr %7, align 8, !tbaa !5
  %39 = trunc i64 %38 to i32
  %40 = call i32 @gk_log2(i32 noundef %39) #3
  %41 = mul nsw i32 %40, 40
  %42 = sext i32 %41 to i64
  %43 = sdiv i64 %37, %42
  %44 = load i64, ptr %7, align 8, !tbaa !5
  %45 = mul nsw i64 %44, 20
  %.not = icmp slt i64 %43, %45
  br i1 %.not, label %53, label %46

46:                                               ; preds = %31
  %47 = load i64, ptr %0, align 8, !tbaa !5
  %48 = trunc i64 %44 to i32
  %49 = call i32 @gk_log2(i32 noundef %48) #3
  %50 = mul nsw i32 %49, 40
  %51 = sext i32 %50 to i64
  %52 = sdiv i64 %47, %51
  br label %53

53:                                               ; preds = %31, %46
  %54 = phi i64 [ %52, %46 ], [ %45, %31 ]
  store i64 %54, ptr %14, align 8, !tbaa !15
  %55 = getelementptr inbounds i8, ptr %14, i64 40
  store i64 0, ptr %55, align 8, !tbaa !16
  call void @libmetis__InitRandom(i64 noundef -1) #3
  %56 = load i64, ptr %7, align 8, !tbaa !5
  call void @libmetis__AllocateWorkSpace(ptr noundef nonnull %14, ptr noundef nonnull %13, i64 noundef %56) #3
  %57 = load i64, ptr %35, align 8, !tbaa !17
  %58 = and i64 %57, 1
  %.not31 = icmp eq i64 %58, 0
  br i1 %.not31, label %.thread, label %59

59:                                               ; preds = %53
  call void @libmetis__InitTimers(ptr noundef nonnull %14) #3
  %.pre = load i64, ptr %35, align 8, !tbaa !17
  %.pre39 = and i64 %.pre, 1
  %60 = icmp eq i64 %.pre39, 0
  br i1 %60, label %.thread, label %61

61:                                               ; preds = %59
  %62 = call double @gk_CPUSeconds() #3
  %63 = getelementptr inbounds i8, ptr %14, i64 152
  %64 = load double, ptr %63, align 8, !tbaa !18
  %65 = fsub double %64, %62
  store double %65, ptr %63, align 8, !tbaa !18
  br label %.thread

.thread:                                          ; preds = %53, %61, %59
  %66 = load i64, ptr %7, align 8, !tbaa !5
  %67 = call i64 @MlevelKWayRefinement(ptr noundef nonnull %14, ptr noundef nonnull %13, i64 noundef %66, ptr noundef %11, ptr noundef %8, float noundef 0x3FF07AE140000000)
  store i64 %67, ptr %10, align 8, !tbaa !5
  %68 = load i64, ptr %35, align 8, !tbaa !17
  %69 = and i64 %68, 1
  %.not33 = icmp eq i64 %69, 0
  br i1 %.not33, label %.thread43, label %70

70:                                               ; preds = %.thread
  %71 = call double @gk_CPUSeconds() #3
  %72 = getelementptr inbounds i8, ptr %14, i64 152
  %73 = load double, ptr %72, align 8, !tbaa !18
  %74 = fadd double %71, %73
  store double %74, ptr %72, align 8, !tbaa !18
  %.pre38 = load i64, ptr %35, align 8, !tbaa !17
  %.pre40 = and i64 %.pre38, 1
  %75 = icmp eq i64 %.pre40, 0
  br i1 %75, label %.thread43, label %76

76:                                               ; preds = %70
  call void @libmetis__PrintTimers(ptr noundef nonnull %14) #3
  br label %.thread43

.thread43:                                        ; preds = %.thread, %76, %70
  call void @libmetis__FreeWorkSpace(ptr noundef nonnull %14, ptr noundef nonnull %13) #3
  %77 = load i64, ptr %6, align 8, !tbaa !5
  %78 = icmp eq i64 %77, 1
  br i1 %78, label %79, label %81

79:                                               ; preds = %.thread43
  %80 = load i64, ptr %0, align 8, !tbaa !5
  call void @libmetis__Change2FNumbering(i64 noundef %80, ptr noundef %1, ptr noundef %2, ptr noundef %11) #3
  br label %81

81:                                               ; preds = %79, %.thread43
  call void @llvm.lifetime.end.p0(i64 280, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %13) #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__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 i32 @gk_log2(i32 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 i64 @MlevelKWayRefinement(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, float noundef) local_unnamed_addr #1

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__Change2FNumbering(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 56}
!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 0}
!16 = !{!10, !6, i64 40}
!17 = !{!10, !6, i64 8}
!18 = !{!10, !14, i64 152}


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