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

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

; 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 @libmetis__MocCompute2WayPartitionParams(ptr noundef %0, ptr noundef %1) #1 {
  %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 i64, align 8
  %12 = alloca i64, 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
  %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 i64, align 8
  %24 = alloca i64, 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
  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 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.graphdef, ptr %25, i32 0, i32 0
  %27 = load i64, ptr %26, align 8, !tbaa !9
  store i64 %27, ptr %9, align 8, !tbaa !13
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.graphdef, ptr %28, i32 0, i32 28
  %30 = load i64, ptr %29, align 8, !tbaa !14
  store i64 %30, ptr %10, align 8, !tbaa !13
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.graphdef, ptr %31, i32 0, i32 2
  %33 = load ptr, ptr %32, align 8, !tbaa !15
  store ptr %33, ptr %13, align 8, !tbaa !5
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.graphdef, ptr %34, i32 0, i32 29
  %36 = load ptr, ptr %35, align 8, !tbaa !16
  store ptr %36, ptr %16, align 8, !tbaa !5
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.graphdef, ptr %37, i32 0, i32 5
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  store ptr %39, ptr %14, align 8, !tbaa !5
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.graphdef, ptr %40, i32 0, i32 6
  %42 = load ptr, ptr %41, align 8, !tbaa !18
  store ptr %42, ptr %15, align 8, !tbaa !5
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.graphdef, ptr %43, i32 0, i32 18
  %45 = load ptr, ptr %44, align 8, !tbaa !19
  store ptr %45, ptr %20, align 8, !tbaa !5
  %46 = load i64, ptr %10, align 8, !tbaa !13
  %47 = mul nsw i64 2, %46
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.graphdef, ptr %48, i32 0, i32 30
  %50 = load ptr, ptr %49, align 8, !tbaa !20
  %51 = call ptr @gk_fset(i64 noundef %47, float noundef 0.000000e+00, ptr noundef %50)
  store ptr %51, ptr %17, align 8, !tbaa !5
  %52 = load i64, ptr %9, align 8, !tbaa !13
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.graphdef, ptr %53, i32 0, i32 23
  %55 = load ptr, ptr %54, align 8, !tbaa !21
  %56 = call ptr @libmetis__idxset(i64 noundef %52, i64 noundef 0, ptr noundef %55)
  store ptr %56, ptr %18, align 8, !tbaa !5
  %57 = load i64, ptr %9, align 8, !tbaa !13
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.graphdef, ptr %58, i32 0, i32 24
  %60 = load ptr, ptr %59, align 8, !tbaa !22
  %61 = call ptr @libmetis__idxset(i64 noundef %57, i64 noundef 0, ptr noundef %60)
  store ptr %61, ptr %19, align 8, !tbaa !5
  %62 = load i64, ptr %9, align 8, !tbaa !13
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.graphdef, ptr %63, i32 0, i32 21
  %65 = load ptr, ptr %64, align 8, !tbaa !23
  %66 = call ptr @libmetis__idxset(i64 noundef %62, i64 noundef -1, ptr noundef %65)
  store ptr %66, ptr %21, align 8, !tbaa !5
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.graphdef, ptr %67, i32 0, i32 22
  %69 = load ptr, ptr %68, align 8, !tbaa !24
  store ptr %69, ptr %22, align 8, !tbaa !5
  store i64 0, ptr %12, align 8, !tbaa !13
  store i64 0, ptr %11, align 8, !tbaa !13
  store i64 0, ptr %5, align 8, !tbaa !13
  br label %70

70:                                               ; preds = %171, %2
  %71 = load i64, ptr %5, align 8, !tbaa !13
  %72 = load i64, ptr %9, align 8, !tbaa !13
  %73 = icmp slt i64 %71, %72
  br i1 %73, label %74, label %174

74:                                               ; preds = %70
  %75 = load ptr, ptr %20, align 8, !tbaa !5
  %76 = load i64, ptr %5, align 8, !tbaa !13
  %77 = getelementptr inbounds i64, ptr %75, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !13
  store i64 %78, ptr %23, align 8, !tbaa !13
  %79 = load i64, ptr %10, align 8, !tbaa !13
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = load i64, ptr %5, align 8, !tbaa !13
  %82 = load i64, ptr %10, align 8, !tbaa !13
  %83 = mul nsw i64 %81, %82
  %84 = getelementptr inbounds float, ptr %80, i64 %83
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  %86 = load i64, ptr %23, align 8, !tbaa !13
  %87 = load i64, ptr %10, align 8, !tbaa !13
  %88 = mul nsw i64 %86, %87
  %89 = getelementptr inbounds float, ptr %85, i64 %88
  %90 = call ptr @gk_faxpy(i64 noundef %79, float noundef 1.000000e+00, ptr noundef %84, i64 noundef 1, ptr noundef %89, i64 noundef 1)
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = load i64, ptr %5, align 8, !tbaa !13
  %93 = getelementptr inbounds i64, ptr %91, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !13
  store i64 %94, ptr %6, align 8, !tbaa !13
  br label %95

95:                                               ; preds = %134, %74
  %96 = load i64, ptr %6, align 8, !tbaa !13
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = load i64, ptr %5, align 8, !tbaa !13
  %99 = add nsw i64 %98, 1
  %100 = getelementptr inbounds i64, ptr %97, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !13
  %102 = icmp slt i64 %96, %101
  br i1 %102, label %103, label %137

103:                                              ; preds = %95
  %104 = load i64, ptr %23, align 8, !tbaa !13
  %105 = load ptr, ptr %20, align 8, !tbaa !5
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = load i64, ptr %6, align 8, !tbaa !13
  %108 = getelementptr inbounds i64, ptr %106, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !13
  %110 = getelementptr inbounds i64, ptr %105, i64 %109
  %111 = load i64, ptr %110, align 8, !tbaa !13
  %112 = icmp eq i64 %104, %111
  br i1 %112, label %113, label %123

113:                                              ; preds = %103
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = load i64, ptr %6, align 8, !tbaa !13
  %116 = getelementptr inbounds i64, ptr %114, i64 %115
  %117 = load i64, ptr %116, align 8, !tbaa !13
  %118 = load ptr, ptr %18, align 8, !tbaa !5
  %119 = load i64, ptr %5, align 8, !tbaa !13
  %120 = getelementptr inbounds i64, ptr %118, i64 %119
  %121 = load i64, ptr %120, align 8, !tbaa !13
  %122 = add nsw i64 %121, %117
  store i64 %122, ptr %120, align 8, !tbaa !13
  br label %133

123:                                              ; preds = %103
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = load i64, ptr %6, align 8, !tbaa !13
  %126 = getelementptr inbounds i64, ptr %124, i64 %125
  %127 = load i64, ptr %126, align 8, !tbaa !13
  %128 = load ptr, ptr %19, align 8, !tbaa !5
  %129 = load i64, ptr %5, align 8, !tbaa !13
  %130 = getelementptr inbounds i64, ptr %128, i64 %129
  %131 = load i64, ptr %130, align 8, !tbaa !13
  %132 = add nsw i64 %131, %127
  store i64 %132, ptr %130, align 8, !tbaa !13
  br label %133

133:                                              ; preds = %123, %113
  br label %134

134:                                              ; preds = %133
  %135 = load i64, ptr %6, align 8, !tbaa !13
  %136 = add nsw i64 %135, 1
  store i64 %136, ptr %6, align 8, !tbaa !13
  br label %95, !llvm.loop !25

137:                                              ; preds = %95
  %138 = load ptr, ptr %19, align 8, !tbaa !5
  %139 = load i64, ptr %5, align 8, !tbaa !13
  %140 = getelementptr inbounds i64, ptr %138, i64 %139
  %141 = load i64, ptr %140, align 8, !tbaa !13
  %142 = icmp sgt i64 %141, 0
  br i1 %142, label %154, label %143

143:                                              ; preds = %137
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = load i64, ptr %5, align 8, !tbaa !13
  %146 = getelementptr inbounds i64, ptr %144, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !13
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  %149 = load i64, ptr %5, align 8, !tbaa !13
  %150 = add nsw i64 %149, 1
  %151 = getelementptr inbounds i64, ptr %148, i64 %150
  %152 = load i64, ptr %151, align 8, !tbaa !13
  %153 = icmp eq i64 %147, %152
  br i1 %153, label %154, label %170

154:                                              ; preds = %143, %137
  %155 = load ptr, ptr %19, align 8, !tbaa !5
  %156 = load i64, ptr %5, align 8, !tbaa !13
  %157 = getelementptr inbounds i64, ptr %155, i64 %156
  %158 = load i64, ptr %157, align 8, !tbaa !13
  %159 = load i64, ptr %12, align 8, !tbaa !13
  %160 = add nsw i64 %159, %158
  store i64 %160, ptr %12, align 8, !tbaa !13
  %161 = load i64, ptr %11, align 8, !tbaa !13
  %162 = load ptr, ptr %21, align 8, !tbaa !5
  %163 = load i64, ptr %5, align 8, !tbaa !13
  %164 = getelementptr inbounds i64, ptr %162, i64 %163
  store i64 %161, ptr %164, align 8, !tbaa !13
  %165 = load i64, ptr %5, align 8, !tbaa !13
  %166 = load ptr, ptr %22, align 8, !tbaa !5
  %167 = load i64, ptr %11, align 8, !tbaa !13
  %168 = add nsw i64 %167, 1
  store i64 %168, ptr %11, align 8, !tbaa !13
  %169 = getelementptr inbounds i64, ptr %166, i64 %167
  store i64 %165, ptr %169, align 8, !tbaa !13
  br label %170

170:                                              ; preds = %154, %143
  br label %171

171:                                              ; preds = %170
  %172 = load i64, ptr %5, align 8, !tbaa !13
  %173 = add nsw i64 %172, 1
  store i64 %173, ptr %5, align 8, !tbaa !13
  br label %70, !llvm.loop !27

174:                                              ; preds = %70
  %175 = load i64, ptr %12, align 8, !tbaa !13
  %176 = sdiv i64 %175, 2
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.graphdef, ptr %177, i32 0, i32 16
  store i64 %176, ptr %178, align 8, !tbaa !28
  %179 = load i64, ptr %11, align 8, !tbaa !13
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.graphdef, ptr %180, i32 0, i32 20
  store i64 %179, ptr %181, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  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.end.p0(i64 immarg, ptr nocapture) #0

declare ptr @gk_fset(i64 noundef, float noundef, ptr noundef) #2

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

declare ptr @gk_faxpy(i64 noundef, float noundef, ptr noundef, i64 noundef, ptr noundef, i64 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, !11, i64 0}
!10 = !{!"graphdef", !11, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, 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}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 208}
!15 = !{!10, !6, i64 16}
!16 = !{!10, !6, i64 216}
!17 = !{!10, !6, i64 40}
!18 = !{!10, !6, i64 48}
!19 = !{!10, !6, i64 128}
!20 = !{!10, !6, i64 224}
!21 = !{!10, !6, i64 168}
!22 = !{!10, !6, i64 176}
!23 = !{!10, !6, i64 152}
!24 = !{!10, !6, i64 160}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!10, !11, i64 112}
!29 = !{!10, !11, i64 144}


; 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__MocCompute2WayPartitionParams(ptr nocapture noundef readnone %0, ptr nocapture noundef %1) local_unnamed_addr #0 {
  %3 = load i64, ptr %1, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %1, i64 208
  %5 = load i64, ptr %4, align 8, !tbaa !12
  %6 = getelementptr inbounds i8, ptr %1, i64 16
  %7 = load ptr, ptr %6, align 8, !tbaa !13
  %8 = getelementptr inbounds i8, ptr %1, i64 216
  %9 = load ptr, ptr %8, align 8, !tbaa !14
  %10 = getelementptr inbounds i8, ptr %1, i64 40
  %11 = load ptr, ptr %10, align 8, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %1, i64 48
  %13 = load ptr, ptr %12, align 8, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %1, i64 128
  %15 = load ptr, ptr %14, align 8, !tbaa !17
  %16 = shl nsw i64 %5, 1
  %17 = getelementptr inbounds i8, ptr %1, i64 224
  %18 = load ptr, ptr %17, align 8, !tbaa !18
  %19 = tail call ptr @gk_fset(i64 noundef %16, float noundef 0.000000e+00, ptr noundef %18) #2
  %20 = getelementptr inbounds i8, ptr %1, i64 168
  %21 = load ptr, ptr %20, align 8, !tbaa !19
  %22 = tail call ptr @libmetis__idxset(i64 noundef %3, i64 noundef 0, ptr noundef %21) #2
  %23 = getelementptr inbounds i8, ptr %1, i64 176
  %24 = load ptr, ptr %23, align 8, !tbaa !20
  %25 = tail call ptr @libmetis__idxset(i64 noundef %3, i64 noundef 0, ptr noundef %24) #2
  %26 = getelementptr inbounds i8, ptr %1, i64 152
  %27 = load ptr, ptr %26, align 8, !tbaa !21
  %28 = tail call ptr @libmetis__idxset(i64 noundef %3, i64 noundef -1, ptr noundef %27) #2
  %29 = getelementptr inbounds i8, ptr %1, i64 160
  %30 = load ptr, ptr %29, align 8, !tbaa !22
  %31 = icmp sgt i64 %3, 0
  br i1 %31, label %.lr.ph76, label %._crit_edge77

.lr.ph76:                                         ; preds = %2, %68
  %.074 = phi i64 [ %41, %68 ], [ 0, %2 ]
  %.06573 = phi i64 [ %.1, %68 ], [ 0, %2 ]
  %.06672 = phi i64 [ %.167, %68 ], [ 0, %2 ]
  %32 = getelementptr inbounds i64, ptr %15, i64 %.074
  %33 = load i64, ptr %32, align 8, !tbaa !23
  %34 = mul nsw i64 %.074, %5
  %35 = getelementptr inbounds float, ptr %9, i64 %34
  %36 = mul nsw i64 %33, %5
  %37 = getelementptr inbounds float, ptr %19, i64 %36
  %38 = tail call ptr @gk_faxpy(i64 noundef %5, float noundef 1.000000e+00, ptr noundef %35, i64 noundef 1, ptr noundef %37, i64 noundef 1) #2
  %39 = getelementptr inbounds i64, ptr %7, i64 %.074
  %40 = load i64, ptr %39, align 8, !tbaa !23
  %41 = add nuw nsw i64 %.074, 1
  %42 = getelementptr inbounds i64, ptr %7, i64 %41
  %43 = load i64, ptr %42, align 8, !tbaa !23
  %44 = icmp slt i64 %40, %43
  br i1 %44, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph76, %.lr.ph
  %.06470 = phi i64 [ %54, %.lr.ph ], [ %40, %.lr.ph76 ]
  %45 = getelementptr inbounds i64, ptr %11, i64 %.06470
  %46 = load i64, ptr %45, align 8, !tbaa !23
  %47 = getelementptr inbounds i64, ptr %15, i64 %46
  %48 = load i64, ptr %47, align 8, !tbaa !23
  %49 = icmp eq i64 %33, %48
  %50 = getelementptr inbounds i64, ptr %13, i64 %.06470
  %51 = load i64, ptr %50, align 8, !tbaa !23
  %..v = select i1 %49, ptr %22, ptr %25
  %. = getelementptr inbounds i64, ptr %..v, i64 %.074
  %52 = load i64, ptr %., align 8, !tbaa !23
  %53 = add nsw i64 %52, %51
  store i64 %53, ptr %., align 8, !tbaa !23
  %54 = add nsw i64 %.06470, 1
  %55 = load i64, ptr %42, align 8, !tbaa !23
  %56 = icmp slt i64 %54, %55
  br i1 %56, label %.lr.ph, label %._crit_edge, !llvm.loop !24

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph76
  %.lcssa = phi i64 [ %43, %.lr.ph76 ], [ %55, %.lr.ph ]
  %57 = getelementptr inbounds i64, ptr %25, i64 %.074
  %58 = load i64, ptr %57, align 8, !tbaa !23
  %59 = icmp sgt i64 %58, 0
  br i1 %59, label %63, label %60

60:                                               ; preds = %._crit_edge
  %61 = load i64, ptr %39, align 8, !tbaa !23
  %62 = icmp eq i64 %61, %.lcssa
  br i1 %62, label %63, label %68

63:                                               ; preds = %60, %._crit_edge
  %64 = add nsw i64 %58, %.06672
  %65 = getelementptr inbounds i64, ptr %28, i64 %.074
  store i64 %.06573, ptr %65, align 8, !tbaa !23
  %66 = add nsw i64 %.06573, 1
  %67 = getelementptr inbounds i64, ptr %30, i64 %.06573
  store i64 %.074, ptr %67, align 8, !tbaa !23
  br label %68

68:                                               ; preds = %60, %63
  %.167 = phi i64 [ %64, %63 ], [ %.06672, %60 ]
  %.1 = phi i64 [ %66, %63 ], [ %.06573, %60 ]
  %exitcond.not = icmp eq i64 %41, %3
  br i1 %exitcond.not, label %._crit_edge77.loopexit, label %.lr.ph76, !llvm.loop !26

._crit_edge77.loopexit:                           ; preds = %68
  %69 = sdiv i64 %.167, 2
  br label %._crit_edge77

._crit_edge77:                                    ; preds = %._crit_edge77.loopexit, %2
  %.066.lcssa = phi i64 [ 0, %2 ], [ %69, %._crit_edge77.loopexit ]
  %.065.lcssa = phi i64 [ 0, %2 ], [ %.1, %._crit_edge77.loopexit ]
  %70 = getelementptr inbounds i8, ptr %1, i64 112
  store i64 %.066.lcssa, ptr %70, align 8, !tbaa !27
  %71 = getelementptr inbounds i8, ptr %1, i64 144
  store i64 %.065.lcssa, ptr %71, align 8, !tbaa !28
  ret void
}

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

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

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


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