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

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

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

23:                                               ; preds = %2
  %24 = call double @gk_CPUSeconds()
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.controldef, ptr %25, i32 0, i32 14
  %27 = load double, ptr %26, align 8, !tbaa !15
  %28 = fsub double %27, %24
  store double %28, ptr %26, align 8, !tbaa !15
  br label %29

29:                                               ; preds = %23, %2
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.graphdef, ptr %30, i32 0, i32 0
  %32 = load i64, ptr %31, align 8, !tbaa !16
  store i64 %32, ptr %8, align 8, !tbaa !19
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.graphdef, ptr %33, i32 0, i32 2
  %35 = load ptr, ptr %34, align 8, !tbaa !20
  store ptr %35, ptr %11, align 8, !tbaa !5
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.graphdef, ptr %36, i32 0, i32 3
  %38 = load ptr, ptr %37, align 8, !tbaa !21
  store ptr %38, ptr %12, align 8, !tbaa !5
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.graphdef, ptr %39, i32 0, i32 5
  %41 = load ptr, ptr %40, align 8, !tbaa !22
  store ptr %41, ptr %13, align 8, !tbaa !5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.graphdef, ptr %42, i32 0, i32 6
  %44 = load ptr, ptr %43, align 8, !tbaa !23
  store ptr %44, ptr %14, align 8, !tbaa !5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.graphdef, ptr %45, i32 0, i32 15
  %47 = load ptr, ptr %46, align 8, !tbaa !24
  store ptr %47, ptr %16, align 8, !tbaa !5
  %48 = load i64, ptr %8, align 8, !tbaa !19
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = load i64, ptr %8, align 8, !tbaa !19
  %51 = call ptr @libmetis__idxwspacemalloc(ptr noundef %49, i64 noundef %50)
  %52 = call ptr @libmetis__idxset(i64 noundef %48, i64 noundef -1, ptr noundef %51)
  store ptr %52, ptr %15, align 8, !tbaa !5
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = load i64, ptr %8, align 8, !tbaa !19
  %55 = call ptr @libmetis__idxwspacemalloc(ptr noundef %53, i64 noundef %54)
  store ptr %55, ptr %17, align 8, !tbaa !5
  %56 = load i64, ptr %8, align 8, !tbaa !19
  %57 = load ptr, ptr %17, align 8, !tbaa !5
  call void @libmetis__RandomPermute(i64 noundef %56, ptr noundef %57, i64 noundef 1)
  store i64 0, ptr %9, align 8, !tbaa !19
  store i64 0, ptr %6, align 8, !tbaa !19
  br label %58

58:                                               ; preds = %139, %29
  %59 = load i64, ptr %6, align 8, !tbaa !19
  %60 = load i64, ptr %8, align 8, !tbaa !19
  %61 = icmp slt i64 %59, %60
  br i1 %61, label %62, label %142

62:                                               ; preds = %58
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  %64 = load i64, ptr %6, align 8, !tbaa !19
  %65 = getelementptr inbounds i64, ptr %63, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !19
  store i64 %66, ptr %5, align 8, !tbaa !19
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = load i64, ptr %5, align 8, !tbaa !19
  %69 = getelementptr inbounds i64, ptr %67, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !19
  %71 = icmp eq i64 %70, -1
  br i1 %71, label %72, label %138

72:                                               ; preds = %62
  %73 = load i64, ptr %5, align 8, !tbaa !19
  store i64 %73, ptr %10, align 8, !tbaa !19
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = load i64, ptr %5, align 8, !tbaa !19
  %76 = getelementptr inbounds i64, ptr %74, i64 %75
  %77 = load i64, ptr %76, align 8, !tbaa !19
  store i64 %77, ptr %7, align 8, !tbaa !19
  br label %78

78:                                               ; preds = %118, %72
  %79 = load i64, ptr %7, align 8, !tbaa !19
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = load i64, ptr %5, align 8, !tbaa !19
  %82 = add nsw i64 %81, 1
  %83 = getelementptr inbounds i64, ptr %80, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !19
  %85 = icmp slt i64 %79, %84
  br i1 %85, label %86, label %121

86:                                               ; preds = %78
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = load i64, ptr %7, align 8, !tbaa !19
  %90 = getelementptr inbounds i64, ptr %88, i64 %89
  %91 = load i64, ptr %90, align 8, !tbaa !19
  %92 = getelementptr inbounds i64, ptr %87, i64 %91
  %93 = load i64, ptr %92, align 8, !tbaa !19
  %94 = icmp eq i64 %93, -1
  br i1 %94, label %95, label %117

95:                                               ; preds = %86
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = load i64, ptr %5, align 8, !tbaa !19
  %98 = getelementptr inbounds i64, ptr %96, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !19
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = load i64, ptr %7, align 8, !tbaa !19
  %103 = getelementptr inbounds i64, ptr %101, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !19
  %105 = getelementptr inbounds i64, ptr %100, i64 %104
  %106 = load i64, ptr %105, align 8, !tbaa !19
  %107 = add nsw i64 %99, %106
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.controldef, ptr %108, i32 0, i32 5
  %110 = load i64, ptr %109, align 8, !tbaa !25
  %111 = icmp sle i64 %107, %110
  br i1 %111, label %112, label %117

112:                                              ; preds = %95
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = load i64, ptr %7, align 8, !tbaa !19
  %115 = getelementptr inbounds i64, ptr %113, i64 %114
  %116 = load i64, ptr %115, align 8, !tbaa !19
  store i64 %116, ptr %10, align 8, !tbaa !19
  br label %121

117:                                              ; preds = %95, %86
  br label %118

118:                                              ; preds = %117
  %119 = load i64, ptr %7, align 8, !tbaa !19
  %120 = add nsw i64 %119, 1
  store i64 %120, ptr %7, align 8, !tbaa !19
  br label %78, !llvm.loop !26

121:                                              ; preds = %112, %78
  %122 = load i64, ptr %9, align 8, !tbaa !19
  %123 = add nsw i64 %122, 1
  store i64 %123, ptr %9, align 8, !tbaa !19
  %124 = load ptr, ptr %16, align 8, !tbaa !5
  %125 = load i64, ptr %10, align 8, !tbaa !19
  %126 = getelementptr inbounds i64, ptr %124, i64 %125
  store i64 %122, ptr %126, align 8, !tbaa !19
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  %128 = load i64, ptr %5, align 8, !tbaa !19
  %129 = getelementptr inbounds i64, ptr %127, i64 %128
  store i64 %122, ptr %129, align 8, !tbaa !19
  %130 = load i64, ptr %10, align 8, !tbaa !19
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  %132 = load i64, ptr %5, align 8, !tbaa !19
  %133 = getelementptr inbounds i64, ptr %131, i64 %132
  store i64 %130, ptr %133, align 8, !tbaa !19
  %134 = load i64, ptr %5, align 8, !tbaa !19
  %135 = load ptr, ptr %15, align 8, !tbaa !5
  %136 = load i64, ptr %10, align 8, !tbaa !19
  %137 = getelementptr inbounds i64, ptr %135, i64 %136
  store i64 %134, ptr %137, align 8, !tbaa !19
  br label %138

138:                                              ; preds = %121, %62
  br label %139

139:                                              ; preds = %138
  %140 = load i64, ptr %6, align 8, !tbaa !19
  %141 = add nsw i64 %140, 1
  store i64 %141, ptr %6, align 8, !tbaa !19
  br label %58, !llvm.loop !28

142:                                              ; preds = %58
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.controldef, ptr %143, i32 0, i32 1
  %145 = load i64, ptr %144, align 8, !tbaa !9
  %146 = and i64 %145, 1
  %147 = icmp ne i64 %146, 0
  br i1 %147, label %148, label %154

148:                                              ; preds = %142
  %149 = call double @gk_CPUSeconds()
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.controldef, ptr %150, i32 0, i32 14
  %152 = load double, ptr %151, align 8, !tbaa !15
  %153 = fadd double %152, %149
  store double %153, ptr %151, align 8, !tbaa !15
  br label %154

154:                                              ; preds = %148, %142
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = load i64, ptr %9, align 8, !tbaa !19
  %158 = load ptr, ptr %15, align 8, !tbaa !5
  %159 = load ptr, ptr %17, align 8, !tbaa !5
  call void @libmetis__CreateCoarseGraph(ptr noundef %155, ptr noundef %156, i64 noundef %157, ptr noundef %158, ptr noundef %159)
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = load i64, ptr %8, align 8, !tbaa !19
  call void @libmetis__idxwspacefree(ptr noundef %160, i64 noundef %161)
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = load i64, ptr %8, align 8, !tbaa !19
  call void @libmetis__idxwspacefree(ptr noundef %162, i64 noundef %163)
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #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 double @gk_CPUSeconds() #2

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

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

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

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

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


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

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__Match_RM(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load i64, ptr %3, align 8, !tbaa !5
  %5 = and i64 %4, 1
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %11, label %6

6:                                                ; preds = %2
  %7 = tail call double @gk_CPUSeconds() #2
  %8 = getelementptr inbounds i8, ptr %0, i64 168
  %9 = load double, ptr %8, align 8, !tbaa !14
  %10 = fsub double %9, %7
  store double %10, ptr %8, align 8, !tbaa !14
  br label %11

11:                                               ; preds = %6, %2
  %12 = load i64, ptr %1, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %1, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !18
  %15 = getelementptr inbounds i8, ptr %1, i64 24
  %16 = load ptr, ptr %15, align 8, !tbaa !19
  %17 = getelementptr inbounds i8, ptr %1, i64 40
  %18 = load ptr, ptr %17, align 8, !tbaa !20
  %19 = getelementptr inbounds i8, ptr %1, i64 104
  %20 = load ptr, ptr %19, align 8, !tbaa !21
  %21 = tail call ptr @libmetis__idxwspacemalloc(ptr noundef nonnull %0, i64 noundef %12) #2
  %22 = tail call ptr @libmetis__idxset(i64 noundef %12, i64 noundef -1, ptr noundef %21) #2
  %23 = tail call ptr @libmetis__idxwspacemalloc(ptr noundef nonnull %0, i64 noundef %12) #2
  tail call void @libmetis__RandomPermute(i64 noundef %12, ptr noundef %23, i64 noundef 1) #2
  %24 = icmp sgt i64 %12, 0
  br i1 %24, label %.lr.ph73, label %._crit_edge74

.lr.ph73:                                         ; preds = %11
  %25 = getelementptr inbounds i8, ptr %0, i64 40
  br label %26

26:                                               ; preds = %.lr.ph73, %56
  %.071 = phi i64 [ 0, %.lr.ph73 ], [ %57, %56 ]
  %.06270 = phi i64 [ 0, %.lr.ph73 ], [ %.1, %56 ]
  %27 = getelementptr inbounds i64, ptr %23, i64 %.071
  %28 = load i64, ptr %27, align 8, !tbaa !22
  %29 = getelementptr inbounds i64, ptr %22, i64 %28
  %30 = load i64, ptr %29, align 8, !tbaa !22
  %31 = icmp eq i64 %30, -1
  br i1 %31, label %32, label %56

32:                                               ; preds = %26
  %33 = getelementptr inbounds i64, ptr %14, i64 %28
  %34 = load i64, ptr %33, align 8, !tbaa !22
  %35 = getelementptr inbounds i64, ptr %16, i64 %28
  %36 = getelementptr i8, ptr %33, i64 8
  %37 = load i64, ptr %36, align 8, !tbaa !22
  %38 = icmp slt i64 %34, %37
  br i1 %38, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %32, %50
  %.06167 = phi i64 [ %51, %50 ], [ %34, %32 ]
  %39 = getelementptr inbounds i64, ptr %18, i64 %.06167
  %40 = load i64, ptr %39, align 8, !tbaa !22
  %41 = getelementptr inbounds i64, ptr %22, i64 %40
  %42 = load i64, ptr %41, align 8, !tbaa !22
  %43 = icmp eq i64 %42, -1
  br i1 %43, label %44, label %50

44:                                               ; preds = %.lr.ph
  %45 = load i64, ptr %35, align 8, !tbaa !22
  %46 = getelementptr inbounds i64, ptr %16, i64 %40
  %47 = load i64, ptr %46, align 8, !tbaa !22
  %48 = add nsw i64 %47, %45
  %49 = load i64, ptr %25, align 8, !tbaa !23
  %.not66 = icmp sgt i64 %48, %49
  br i1 %.not66, label %50, label %._crit_edge

50:                                               ; preds = %.lr.ph, %44
  %51 = add i64 %.06167, 1
  %exitcond.not = icmp eq i64 %51, %37
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !24

._crit_edge:                                      ; preds = %50, %44, %32
  %.063 = phi i64 [ %28, %32 ], [ %40, %44 ], [ %28, %50 ]
  %52 = add nsw i64 %.06270, 1
  %53 = getelementptr inbounds i64, ptr %20, i64 %.063
  store i64 %.06270, ptr %53, align 8, !tbaa !22
  %54 = getelementptr inbounds i64, ptr %20, i64 %28
  store i64 %.06270, ptr %54, align 8, !tbaa !22
  store i64 %.063, ptr %29, align 8, !tbaa !22
  %55 = getelementptr inbounds i64, ptr %22, i64 %.063
  store i64 %28, ptr %55, align 8, !tbaa !22
  br label %56

56:                                               ; preds = %26, %._crit_edge
  %.1 = phi i64 [ %52, %._crit_edge ], [ %.06270, %26 ]
  %57 = add nuw nsw i64 %.071, 1
  %exitcond76.not = icmp eq i64 %57, %12
  br i1 %exitcond76.not, label %._crit_edge74, label %26, !llvm.loop !26

._crit_edge74:                                    ; preds = %56, %11
  %.062.lcssa = phi i64 [ 0, %11 ], [ %.1, %56 ]
  %58 = load i64, ptr %3, align 8, !tbaa !5
  %59 = and i64 %58, 1
  %.not65 = icmp eq i64 %59, 0
  br i1 %.not65, label %65, label %60

60:                                               ; preds = %._crit_edge74
  %61 = tail call double @gk_CPUSeconds() #2
  %62 = getelementptr inbounds i8, ptr %0, i64 168
  %63 = load double, ptr %62, align 8, !tbaa !14
  %64 = fadd double %61, %63
  store double %64, ptr %62, align 8, !tbaa !14
  br label %65

65:                                               ; preds = %60, %._crit_edge74
  tail call void @libmetis__CreateCoarseGraph(ptr noundef nonnull %0, ptr noundef nonnull %1, i64 noundef %.062.lcssa, ptr noundef %22, ptr noundef %23) #2
  tail call void @libmetis__idxwspacefree(ptr noundef nonnull %0, i64 noundef %12) #2
  tail call void @libmetis__idxwspacefree(ptr noundef nonnull %0, i64 noundef %12) #2
  ret void
}

declare double @gk_CPUSeconds() local_unnamed_addr #1

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

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

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

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

declare void @libmetis__idxwspacefree(ptr noundef, i64 noundef) local_unnamed_addr #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 = { "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 }

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

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


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