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

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

@.str.1 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 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 ptr @gk_fmalloc(i64 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i64 @libmetis__MCHMlevelRecursiveBisection(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5) #2 {
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %struct.graphdef, align 8
  %22 = alloca %struct.graphdef, align 8
  %23 = alloca [2 x float], align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store i64 %5, ptr %13, align 8, !tbaa !9
  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 248, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 248, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  store ptr null, ptr %26, align 8, !tbaa !5
  store ptr null, ptr %25, align 8, !tbaa !5
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.graphdef, ptr %28, i32 0, i32 0
  %30 = load i64, ptr %29, align 8, !tbaa !11
  store i64 %30, ptr %16, align 8, !tbaa !9
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.graphdef, ptr %31, i32 0, i32 28
  %33 = load i64, ptr %32, align 8, !tbaa !14
  store i64 %33, ptr %17, align 8, !tbaa !9
  %34 = load i64, ptr %16, align 8, !tbaa !9
  %35 = icmp eq i64 %34, 0
  br i1 %35, label %36, label %38

36:                                               ; preds = %6
  %37 = call i32 (ptr, ...) @mprintf(ptr noundef @.str.1)
  store i64 0, ptr %7, align 8
  store i32 1, ptr %27, align 4
  br label %237

38:                                               ; preds = %6
  %39 = load i64, ptr %10, align 8, !tbaa !9
  %40 = ashr i64 %39, 1
  %41 = sitofp i64 %40 to double
  %42 = fmul double 1.000000e+00, %41
  %43 = load i64, ptr %10, align 8, !tbaa !9
  %44 = sitofp i64 %43 to double
  %45 = fmul double 1.000000e+00, %44
  %46 = fdiv double %42, %45
  %47 = fptrunc double %46 to float
  %48 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 0
  store float %47, ptr %48, align 4, !tbaa !15
  %49 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 0
  %50 = load float, ptr %49, align 4, !tbaa !15
  %51 = fpext float %50 to double
  %52 = fsub double 1.000000e+00, %51
  %53 = fptrunc double %52 to float
  %54 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 1
  store float %53, ptr %54, align 4, !tbaa !15
  %55 = load i64, ptr %10, align 8, !tbaa !9
  %56 = icmp eq i64 %55, 2
  br i1 %56, label %57, label %62

57:                                               ; preds = %38
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 0
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  call void @libmetis__MCHMlevelEdgeBisection(ptr noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef %61)
  br label %66

62:                                               ; preds = %38
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 0
  call void @libmetis__MCMlevelEdgeBisection(ptr noundef %63, ptr noundef %64, ptr noundef %65, float noundef 1.000000e+00)
  br label %66

66:                                               ; preds = %62, %57
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.graphdef, ptr %67, i32 0, i32 16
  %69 = load i64, ptr %68, align 8, !tbaa !17
  store i64 %69, ptr %18, align 8, !tbaa !9
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.graphdef, ptr %70, i32 0, i32 14
  %72 = load ptr, ptr %71, align 8, !tbaa !18
  store ptr %72, ptr %19, align 8, !tbaa !5
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.graphdef, ptr %73, i32 0, i32 18
  %75 = load ptr, ptr %74, align 8, !tbaa !19
  store ptr %75, ptr %20, align 8, !tbaa !5
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %76

76:                                               ; preds = %93, %66
  %77 = load i64, ptr %14, align 8, !tbaa !9
  %78 = load i64, ptr %16, align 8, !tbaa !9
  %79 = icmp slt i64 %77, %78
  br i1 %79, label %80, label %96

80:                                               ; preds = %76
  %81 = load ptr, ptr %20, align 8, !tbaa !5
  %82 = load i64, ptr %14, align 8, !tbaa !9
  %83 = getelementptr inbounds i64, ptr %81, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = load i64, ptr %13, align 8, !tbaa !9
  %86 = add nsw i64 %84, %85
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  %88 = load ptr, ptr %19, align 8, !tbaa !5
  %89 = load i64, ptr %14, align 8, !tbaa !9
  %90 = getelementptr inbounds i64, ptr %88, i64 %89
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = getelementptr inbounds i64, ptr %87, i64 %91
  store i64 %86, ptr %92, align 8, !tbaa !9
  br label %93

93:                                               ; preds = %80
  %94 = load i64, ptr %14, align 8, !tbaa !9
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %14, align 8, !tbaa !9
  br label %76, !llvm.loop !20

96:                                               ; preds = %76
  %97 = load i64, ptr %10, align 8, !tbaa !9
  %98 = icmp sgt i64 %97, 2
  br i1 %98, label %99, label %188

99:                                               ; preds = %96
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.graphdef, ptr %100, i32 0, i32 30
  %102 = load ptr, ptr %101, align 8, !tbaa !22
  store ptr %102, ptr %24, align 8, !tbaa !5
  %103 = load i64, ptr %17, align 8, !tbaa !9
  %104 = call ptr @gk_fmalloc(i64 noundef %103, ptr noundef @.str.2)
  store ptr %104, ptr %25, align 8, !tbaa !5
  %105 = load i64, ptr %17, align 8, !tbaa !9
  %106 = call ptr @gk_fmalloc(i64 noundef %105, ptr noundef @.str.2)
  store ptr %106, ptr %26, align 8, !tbaa !5
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %107

107:                                              ; preds = %182, %99
  %108 = load i64, ptr %14, align 8, !tbaa !9
  %109 = load i64, ptr %17, align 8, !tbaa !9
  %110 = icmp slt i64 %108, %109
  br i1 %110, label %111, label %185

111:                                              ; preds = %107
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = load i64, ptr %14, align 8, !tbaa !9
  %114 = getelementptr inbounds float, ptr %112, i64 %113
  %115 = load float, ptr %114, align 4, !tbaa !15
  %116 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 0
  %117 = load float, ptr %116, align 4, !tbaa !15
  %118 = fmul float %115, %117
  %119 = load ptr, ptr %24, align 8, !tbaa !5
  %120 = load i64, ptr %14, align 8, !tbaa !9
  %121 = getelementptr inbounds float, ptr %119, i64 %120
  %122 = load float, ptr %121, align 4, !tbaa !15
  %123 = fdiv float %118, %122
  %124 = load ptr, ptr %25, align 8, !tbaa !5
  %125 = load i64, ptr %14, align 8, !tbaa !9
  %126 = getelementptr inbounds float, ptr %124, i64 %125
  store float %123, ptr %126, align 4, !tbaa !15
  %127 = load ptr, ptr %25, align 8, !tbaa !5
  %128 = load i64, ptr %14, align 8, !tbaa !9
  %129 = getelementptr inbounds float, ptr %127, i64 %128
  %130 = load float, ptr %129, align 4, !tbaa !15
  %131 = fpext float %130 to double
  %132 = fcmp oge double %131, 1.010000e+00
  br i1 %132, label %133, label %139

133:                                              ; preds = %111
  %134 = load ptr, ptr %25, align 8, !tbaa !5
  %135 = load i64, ptr %14, align 8, !tbaa !9
  %136 = getelementptr inbounds float, ptr %134, i64 %135
  %137 = load float, ptr %136, align 4, !tbaa !15
  %138 = fpext float %137 to double
  br label %140

139:                                              ; preds = %111
  br label %140

140:                                              ; preds = %139, %133
  %141 = phi double [ %138, %133 ], [ 1.010000e+00, %139 ]
  %142 = fptrunc double %141 to float
  %143 = load ptr, ptr %25, align 8, !tbaa !5
  %144 = load i64, ptr %14, align 8, !tbaa !9
  %145 = getelementptr inbounds float, ptr %143, i64 %144
  store float %142, ptr %145, align 4, !tbaa !15
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = load i64, ptr %14, align 8, !tbaa !9
  %148 = getelementptr inbounds float, ptr %146, i64 %147
  %149 = load float, ptr %148, align 4, !tbaa !15
  %150 = getelementptr inbounds [2 x float], ptr %23, i64 0, i64 1
  %151 = load float, ptr %150, align 4, !tbaa !15
  %152 = fmul float %149, %151
  %153 = load ptr, ptr %24, align 8, !tbaa !5
  %154 = load i64, ptr %17, align 8, !tbaa !9
  %155 = load i64, ptr %14, align 8, !tbaa !9
  %156 = add nsw i64 %154, %155
  %157 = getelementptr inbounds float, ptr %153, i64 %156
  %158 = load float, ptr %157, align 4, !tbaa !15
  %159 = fdiv float %152, %158
  %160 = load ptr, ptr %26, align 8, !tbaa !5
  %161 = load i64, ptr %14, align 8, !tbaa !9
  %162 = getelementptr inbounds float, ptr %160, i64 %161
  store float %159, ptr %162, align 4, !tbaa !15
  %163 = load ptr, ptr %26, align 8, !tbaa !5
  %164 = load i64, ptr %14, align 8, !tbaa !9
  %165 = getelementptr inbounds float, ptr %163, i64 %164
  %166 = load float, ptr %165, align 4, !tbaa !15
  %167 = fpext float %166 to double
  %168 = fcmp oge double %167, 1.010000e+00
  br i1 %168, label %169, label %175

169:                                              ; preds = %140
  %170 = load ptr, ptr %26, align 8, !tbaa !5
  %171 = load i64, ptr %14, align 8, !tbaa !9
  %172 = getelementptr inbounds float, ptr %170, i64 %171
  %173 = load float, ptr %172, align 4, !tbaa !15
  %174 = fpext float %173 to double
  br label %176

175:                                              ; preds = %140
  br label %176

176:                                              ; preds = %175, %169
  %177 = phi double [ %174, %169 ], [ 1.010000e+00, %175 ]
  %178 = fptrunc double %177 to float
  %179 = load ptr, ptr %26, align 8, !tbaa !5
  %180 = load i64, ptr %14, align 8, !tbaa !9
  %181 = getelementptr inbounds float, ptr %179, i64 %180
  store float %178, ptr %181, align 4, !tbaa !15
  br label %182

182:                                              ; preds = %176
  %183 = load i64, ptr %14, align 8, !tbaa !9
  %184 = add nsw i64 %183, 1
  store i64 %184, ptr %14, align 8, !tbaa !9
  br label %107, !llvm.loop !23

185:                                              ; preds = %107
  %186 = load ptr, ptr %8, align 8, !tbaa !5
  %187 = load ptr, ptr %9, align 8, !tbaa !5
  call void @libmetis__SplitGraphPart(ptr noundef %186, ptr noundef %187, ptr noundef %21, ptr noundef %22)
  br label %188

188:                                              ; preds = %185, %96
  %189 = load ptr, ptr %9, align 8, !tbaa !5
  call void @libmetis__FreeGraph(ptr noundef %189, i32 noundef 0)
  %190 = load i64, ptr %10, align 8, !tbaa !9
  %191 = icmp sgt i64 %190, 3
  br i1 %191, label %192, label %216

192:                                              ; preds = %188
  %193 = load ptr, ptr %8, align 8, !tbaa !5
  %194 = load i64, ptr %10, align 8, !tbaa !9
  %195 = sdiv i64 %194, 2
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = load ptr, ptr %25, align 8, !tbaa !5
  %198 = load i64, ptr %13, align 8, !tbaa !9
  %199 = call i64 @libmetis__MCHMlevelRecursiveBisection(ptr noundef %193, ptr noundef %21, i64 noundef %195, ptr noundef %196, ptr noundef %197, i64 noundef %198)
  %200 = load i64, ptr %18, align 8, !tbaa !9
  %201 = add nsw i64 %200, %199
  store i64 %201, ptr %18, align 8, !tbaa !9
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = load i64, ptr %10, align 8, !tbaa !9
  %204 = load i64, ptr %10, align 8, !tbaa !9
  %205 = sdiv i64 %204, 2
  %206 = sub nsw i64 %203, %205
  %207 = load ptr, ptr %11, align 8, !tbaa !5
  %208 = load ptr, ptr %26, align 8, !tbaa !5
  %209 = load i64, ptr %13, align 8, !tbaa !9
  %210 = load i64, ptr %10, align 8, !tbaa !9
  %211 = sdiv i64 %210, 2
  %212 = add nsw i64 %209, %211
  %213 = call i64 @libmetis__MCHMlevelRecursiveBisection(ptr noundef %202, ptr noundef %22, i64 noundef %206, ptr noundef %207, ptr noundef %208, i64 noundef %212)
  %214 = load i64, ptr %18, align 8, !tbaa !9
  %215 = add nsw i64 %214, %213
  store i64 %215, ptr %18, align 8, !tbaa !9
  br label %235

216:                                              ; preds = %188
  %217 = load i64, ptr %10, align 8, !tbaa !9
  %218 = icmp eq i64 %217, 3
  br i1 %218, label %219, label %234

219:                                              ; preds = %216
  %220 = load ptr, ptr %8, align 8, !tbaa !5
  %221 = load i64, ptr %10, align 8, !tbaa !9
  %222 = load i64, ptr %10, align 8, !tbaa !9
  %223 = sdiv i64 %222, 2
  %224 = sub nsw i64 %221, %223
  %225 = load ptr, ptr %11, align 8, !tbaa !5
  %226 = load ptr, ptr %26, align 8, !tbaa !5
  %227 = load i64, ptr %13, align 8, !tbaa !9
  %228 = load i64, ptr %10, align 8, !tbaa !9
  %229 = sdiv i64 %228, 2
  %230 = add nsw i64 %227, %229
  %231 = call i64 @libmetis__MCHMlevelRecursiveBisection(ptr noundef %220, ptr noundef %22, i64 noundef %224, ptr noundef %225, ptr noundef %226, i64 noundef %230)
  %232 = load i64, ptr %18, align 8, !tbaa !9
  %233 = add nsw i64 %232, %231
  store i64 %233, ptr %18, align 8, !tbaa !9
  call void @libmetis__FreeGraph(ptr noundef %21, i32 noundef 0)
  br label %234

234:                                              ; preds = %219, %216
  br label %235

235:                                              ; preds = %234, %192
  call void (ptr, ...) @gk_free(ptr noundef %25, ptr noundef %26, ptr noundef null)
  %236 = load i64, ptr %18, align 8, !tbaa !9
  store i64 %236, ptr %7, align 8
  store i32 1, ptr %27, align 4
  br label %237

237:                                              ; preds = %235, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  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 248, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 248, 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
  %238 = load i64, ptr %7, align 8
  ret i64 %238
}

declare void @gk_free(ptr noundef, ...) #1

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"graphdef", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !13, i64 60, !13, i64 64, !13, i64 68, !13, 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}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !10, i64 208}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!12, !10, i64 112}
!18 = !{!12, !6, i64 96}
!19 = !{!12, !6, i64 128}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!12, !6, i64 224}
!23 = distinct !{!23, !21}


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

@.str.1 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 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 ptr @gk_fmalloc(i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i64 @libmetis__MCHMlevelRecursiveBisection(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5) local_unnamed_addr #2 {
  %7 = alloca [2 x float], align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %struct.graphdef, align 8
  %11 = alloca %struct.graphdef, align 8
  %12 = alloca [2 x float], align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #3
  store ptr null, ptr %14, align 8, !tbaa !5
  store ptr null, ptr %13, align 8, !tbaa !5
  %15 = load i64, ptr %1, align 8, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %1, i64 208
  %17 = load i64, ptr %16, align 8, !tbaa !13
  %18 = icmp eq i64 %15, 0
  br i1 %18, label %19, label %21

19:                                               ; preds = %6
  %20 = tail call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.1) #3
  br label %186

21:                                               ; preds = %6
  %22 = ashr i64 %2, 1
  %23 = sitofp i64 %22 to double
  %24 = sitofp i64 %2 to double
  %25 = fdiv double %23, %24
  %26 = fptrunc double %25 to float
  store float %26, ptr %12, align 4, !tbaa !14
  %27 = fsub float 1.000000e+00, %26
  %28 = getelementptr inbounds i8, ptr %12, i64 4
  store float %27, ptr %28, align 4, !tbaa !14
  %29 = icmp eq i64 %2, 2
  br i1 %29, label %30, label %31

30:                                               ; preds = %21
  call void @libmetis__MCHMlevelEdgeBisection(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef %4)
  br label %32

31:                                               ; preds = %21
  call void @libmetis__MCMlevelEdgeBisection(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %12, float noundef 1.000000e+00)
  br label %32

32:                                               ; preds = %31, %30
  %33 = getelementptr inbounds i8, ptr %1, i64 112
  %34 = load i64, ptr %33, align 8, !tbaa !16
  %35 = getelementptr inbounds i8, ptr %1, i64 96
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %37 = getelementptr inbounds i8, ptr %1, i64 128
  %38 = load ptr, ptr %37, align 8, !tbaa !18
  %39 = icmp sgt i64 %15, 0
  br i1 %39, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %32
  %xtraiter = and i64 %15, 3
  %40 = icmp ult i64 %15, 4
  br i1 %40, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %15, 9223372036854775804
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.07281 = phi i64 [ 0, %.lr.ph.preheader.new ], [ %68, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %41 = getelementptr inbounds i64, ptr %38, i64 %.07281
  %42 = load i64, ptr %41, align 8, !tbaa !19
  %43 = add nsw i64 %42, %5
  %44 = getelementptr inbounds i64, ptr %36, i64 %.07281
  %45 = load i64, ptr %44, align 8, !tbaa !19
  %46 = getelementptr inbounds i64, ptr %3, i64 %45
  store i64 %43, ptr %46, align 8, !tbaa !19
  %47 = or disjoint i64 %.07281, 1
  %48 = getelementptr inbounds i64, ptr %38, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !19
  %50 = add nsw i64 %49, %5
  %51 = getelementptr inbounds i64, ptr %36, i64 %47
  %52 = load i64, ptr %51, align 8, !tbaa !19
  %53 = getelementptr inbounds i64, ptr %3, i64 %52
  store i64 %50, ptr %53, align 8, !tbaa !19
  %54 = or disjoint i64 %.07281, 2
  %55 = getelementptr inbounds i64, ptr %38, i64 %54
  %56 = load i64, ptr %55, align 8, !tbaa !19
  %57 = add nsw i64 %56, %5
  %58 = getelementptr inbounds i64, ptr %36, i64 %54
  %59 = load i64, ptr %58, align 8, !tbaa !19
  %60 = getelementptr inbounds i64, ptr %3, i64 %59
  store i64 %57, ptr %60, align 8, !tbaa !19
  %61 = or disjoint i64 %.07281, 3
  %62 = getelementptr inbounds i64, ptr %38, i64 %61
  %63 = load i64, ptr %62, align 8, !tbaa !19
  %64 = add nsw i64 %63, %5
  %65 = getelementptr inbounds i64, ptr %36, i64 %61
  %66 = load i64, ptr %65, align 8, !tbaa !19
  %67 = getelementptr inbounds i64, ptr %3, i64 %66
  store i64 %64, ptr %67, align 8, !tbaa !19
  %68 = add nuw nsw i64 %.07281, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !20

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.07281.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %68, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %.07281.epil = phi i64 [ %75, %.lr.ph.epil ], [ %.07281.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %69 = getelementptr inbounds i64, ptr %38, i64 %.07281.epil
  %70 = load i64, ptr %69, align 8, !tbaa !19
  %71 = add nsw i64 %70, %5
  %72 = getelementptr inbounds i64, ptr %36, i64 %.07281.epil
  %73 = load i64, ptr %72, align 8, !tbaa !19
  %74 = getelementptr inbounds i64, ptr %3, i64 %73
  store i64 %71, ptr %74, align 8, !tbaa !19
  %75 = add nuw nsw i64 %.07281.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !22

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %32
  %76 = icmp sgt i64 %2, 2
  br i1 %76, label %77, label %.thread80

.thread80:                                        ; preds = %._crit_edge
  call void @libmetis__FreeGraph(ptr noundef nonnull %1, i32 noundef 0) #3
  br label %185

77:                                               ; preds = %._crit_edge
  %78 = getelementptr inbounds i8, ptr %1, i64 224
  %79 = load ptr, ptr %78, align 8, !tbaa !24
  %80 = call ptr @gk_fmalloc(i64 noundef %17, ptr noundef nonnull @.str.2) #3
  store ptr %80, ptr %13, align 8, !tbaa !5
  %81 = call ptr @gk_fmalloc(i64 noundef %17, ptr noundef nonnull @.str.2) #3
  store ptr %81, ptr %14, align 8, !tbaa !5
  %82 = icmp sgt i64 %17, 0
  br i1 %82, label %.lr.ph84, label %._crit_edge85

.lr.ph84:                                         ; preds = %77
  %83 = getelementptr float, ptr %79, i64 %17
  %min.iters.check = icmp ult i64 %17, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph84
  %84 = shl i64 %17, 2
  %scevgep = getelementptr i8, ptr %80, i64 %84
  %scevgep92 = getelementptr i8, ptr %81, i64 %84
  %scevgep93 = getelementptr i8, ptr %4, i64 %84
  %scevgep94 = getelementptr inbounds i8, ptr %12, i64 8
  %85 = shl i64 %17, 3
  %scevgep95 = getelementptr i8, ptr %79, i64 %85
  %bound0 = icmp ult ptr %80, %scevgep92
  %bound1 = icmp ult ptr %81, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound096 = icmp ult ptr %80, %scevgep93
  %bound197 = icmp ugt ptr %scevgep, %4
  %found.conflict98 = and i1 %bound096, %bound197
  %conflict.rdx = or i1 %found.conflict, %found.conflict98
  %bound099 = icmp ult ptr %80, %scevgep94
  %bound1100 = icmp ult ptr %12, %scevgep
  %found.conflict101 = and i1 %bound099, %bound1100
  %conflict.rdx102 = or i1 %conflict.rdx, %found.conflict101
  %bound0103 = icmp ult ptr %80, %scevgep95
  %bound1104 = icmp ult ptr %83, %scevgep
  %found.conflict105 = and i1 %bound0103, %bound1104
  %conflict.rdx106 = or i1 %conflict.rdx102, %found.conflict105
  %bound0107 = icmp ult ptr %80, %83
  %bound1108 = icmp ult ptr %79, %scevgep
  %found.conflict109 = and i1 %bound0107, %bound1108
  %conflict.rdx110 = or i1 %conflict.rdx106, %found.conflict109
  %bound0111 = icmp ult ptr %81, %scevgep93
  %bound1112 = icmp ugt ptr %scevgep92, %4
  %found.conflict113 = and i1 %bound0111, %bound1112
  %conflict.rdx114 = or i1 %conflict.rdx110, %found.conflict113
  %bound0115 = icmp ult ptr %81, %scevgep94
  %bound1116 = icmp ult ptr %12, %scevgep92
  %found.conflict117 = and i1 %bound0115, %bound1116
  %conflict.rdx118 = or i1 %conflict.rdx114, %found.conflict117
  %bound0119 = icmp ult ptr %81, %scevgep95
  %bound1120 = icmp ult ptr %83, %scevgep92
  %found.conflict121 = and i1 %bound0119, %bound1120
  %conflict.rdx122 = or i1 %conflict.rdx118, %found.conflict121
  %bound0123 = icmp ult ptr %81, %83
  %bound1124 = icmp ult ptr %79, %scevgep92
  %found.conflict125 = and i1 %bound0123, %bound1124
  %conflict.rdx126 = or i1 %conflict.rdx122, %found.conflict125
  br i1 %conflict.rdx126, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %17, 9223372036854775804
  %86 = load float, ptr %12, align 4, !tbaa !14, !alias.scope !25
  %broadcast.splatinsert = insertelement <4 x float> poison, float %86, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %87 = load float, ptr %28, align 4, !tbaa !14, !alias.scope !25
  %broadcast.splatinsert129 = insertelement <4 x float> poison, float %87, i64 0
  %broadcast.splat130 = shufflevector <4 x float> %broadcast.splatinsert129, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %88 = getelementptr inbounds float, ptr %4, i64 %index
  %wide.load = load <4 x float>, ptr %88, align 4, !tbaa !14, !alias.scope !28
  %89 = fmul <4 x float> %wide.load, %broadcast.splat
  %90 = getelementptr inbounds float, ptr %79, i64 %index
  %wide.load127 = load <4 x float>, ptr %90, align 4, !tbaa !14, !alias.scope !30
  %91 = fdiv <4 x float> %89, %wide.load127
  %92 = getelementptr inbounds float, ptr %80, i64 %index
  %93 = fpext <4 x float> %91 to <4 x double>
  %94 = fcmp ult <4 x double> %93, <double 1.010000e+00, double 1.010000e+00, double 1.010000e+00, double 1.010000e+00>
  %95 = select <4 x i1> %94, <4 x float> <float 0x3FF028F5C0000000, float 0x3FF028F5C0000000, float 0x3FF028F5C0000000, float 0x3FF028F5C0000000>, <4 x float> %91
  store <4 x float> %95, ptr %92, align 4, !tbaa !14, !alias.scope !32, !noalias !34
  %wide.load128 = load <4 x float>, ptr %88, align 4, !tbaa !14, !alias.scope !28
  %96 = fmul <4 x float> %wide.load128, %broadcast.splat130
  %97 = getelementptr float, ptr %83, i64 %index
  %wide.load131 = load <4 x float>, ptr %97, align 4, !tbaa !14, !alias.scope !37
  %98 = fdiv <4 x float> %96, %wide.load131
  %99 = getelementptr inbounds float, ptr %81, i64 %index
  %100 = fpext <4 x float> %98 to <4 x double>
  %101 = fcmp ult <4 x double> %100, <double 1.010000e+00, double 1.010000e+00, double 1.010000e+00, double 1.010000e+00>
  %102 = select <4 x i1> %101, <4 x float> <float 0x3FF028F5C0000000, float 0x3FF028F5C0000000, float 0x3FF028F5C0000000, float 0x3FF028F5C0000000>, <4 x float> %98
  store <4 x float> %102, ptr %99, align 4, !tbaa !14, !alias.scope !38, !noalias !39
  %index.next = add nuw i64 %index, 4
  %103 = icmp eq i64 %index.next, %n.vec
  br i1 %103, label %middle.block, label %vector.body, !llvm.loop !40

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %17, %n.vec
  br i1 %cmp.n, label %._crit_edge85, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph84
  %.182.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph84 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.182 = phi i64 [ %125, %scalar.ph ], [ %.182.ph, %scalar.ph.preheader ]
  %104 = getelementptr inbounds float, ptr %4, i64 %.182
  %105 = load float, ptr %104, align 4, !tbaa !14
  %106 = load float, ptr %12, align 4, !tbaa !14
  %107 = fmul float %105, %106
  %108 = getelementptr inbounds float, ptr %79, i64 %.182
  %109 = load float, ptr %108, align 4, !tbaa !14
  %110 = fdiv float %107, %109
  %111 = getelementptr inbounds float, ptr %80, i64 %.182
  %112 = fpext float %110 to double
  %113 = fcmp ult double %112, 1.010000e+00
  %114 = select i1 %113, float 0x3FF028F5C0000000, float %110
  store float %114, ptr %111, align 4, !tbaa !14
  %115 = load float, ptr %104, align 4, !tbaa !14
  %116 = load float, ptr %28, align 4, !tbaa !14
  %117 = fmul float %115, %116
  %118 = getelementptr float, ptr %83, i64 %.182
  %119 = load float, ptr %118, align 4, !tbaa !14
  %120 = fdiv float %117, %119
  %121 = getelementptr inbounds float, ptr %81, i64 %.182
  %122 = fpext float %120 to double
  %123 = fcmp ult double %122, 1.010000e+00
  %124 = select i1 %123, float 0x3FF028F5C0000000, float %120
  store float %124, ptr %121, align 4, !tbaa !14
  %125 = add nuw nsw i64 %.182, 1
  %exitcond90.not = icmp eq i64 %125, %17
  br i1 %exitcond90.not, label %._crit_edge85, label %scalar.ph, !llvm.loop !43

._crit_edge85:                                    ; preds = %scalar.ph, %middle.block, %77
  call void @libmetis__SplitGraphPart(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %10, ptr noundef nonnull %11) #3
  call void @libmetis__FreeGraph(ptr noundef nonnull %1, i32 noundef 0) #3
  %.not = icmp eq i64 %2, 3
  br i1 %.not, label %134, label %126

126:                                              ; preds = %._crit_edge85
  %127 = lshr i64 %2, 1
  %128 = call i64 @libmetis__MCHMlevelRecursiveBisection(ptr noundef %0, ptr noundef nonnull %10, i64 noundef %127, ptr noundef %3, ptr noundef %80, i64 noundef %5)
  %129 = add nsw i64 %128, %34
  %130 = sub nsw i64 %2, %127
  %131 = add nsw i64 %127, %5
  %132 = call i64 @libmetis__MCHMlevelRecursiveBisection(ptr noundef %0, ptr noundef nonnull %11, i64 noundef %130, ptr noundef %3, ptr noundef %81, i64 noundef %131)
  %133 = add nsw i64 %129, %132
  br label %185

134:                                              ; preds = %._crit_edge85
  %135 = add nsw i64 %5, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  store ptr null, ptr %9, align 8, !tbaa !5
  store ptr null, ptr %8, align 8, !tbaa !5
  %136 = load i64, ptr %11, align 8, !tbaa !9
  %137 = icmp eq i64 %136, 0
  br i1 %137, label %138, label %140

138:                                              ; preds = %134
  %139 = call i32 (ptr, ...) @mprintf(ptr noundef nonnull @.str.1) #3
  br label %libmetis__MCHMlevelRecursiveBisection.exit

140:                                              ; preds = %134
  store <2 x float> <float 5.000000e-01, float 5.000000e-01>, ptr %7, align 8, !tbaa !14
  call void @libmetis__MCHMlevelEdgeBisection(ptr noundef %0, ptr noundef nonnull %11, ptr noundef nonnull %7, ptr noundef %81)
  %141 = getelementptr inbounds i8, ptr %11, i64 112
  %142 = load i64, ptr %141, align 8, !tbaa !16
  %143 = getelementptr inbounds i8, ptr %11, i64 96
  %144 = load ptr, ptr %143, align 8, !tbaa !17
  %145 = getelementptr inbounds i8, ptr %11, i64 128
  %146 = load ptr, ptr %145, align 8, !tbaa !18
  %147 = icmp sgt i64 %136, 0
  br i1 %147, label %.lr.ph88.preheader, label %._crit_edge89

.lr.ph88.preheader:                               ; preds = %140
  %xtraiter132 = and i64 %136, 3
  %148 = icmp ult i64 %136, 4
  br i1 %148, label %._crit_edge89.loopexit.unr-lcssa, label %.lr.ph88.preheader.new

.lr.ph88.preheader.new:                           ; preds = %.lr.ph88.preheader
  %unroll_iter135 = and i64 %136, 9223372036854775804
  br label %.lr.ph88

.lr.ph88:                                         ; preds = %.lr.ph88, %.lr.ph88.preheader.new
  %.072.i86 = phi i64 [ 0, %.lr.ph88.preheader.new ], [ %176, %.lr.ph88 ]
  %niter136 = phi i64 [ 0, %.lr.ph88.preheader.new ], [ %niter136.next.3, %.lr.ph88 ]
  %149 = getelementptr inbounds i64, ptr %146, i64 %.072.i86
  %150 = load i64, ptr %149, align 8, !tbaa !19
  %151 = add nsw i64 %135, %150
  %152 = getelementptr inbounds i64, ptr %144, i64 %.072.i86
  %153 = load i64, ptr %152, align 8, !tbaa !19
  %154 = getelementptr inbounds i64, ptr %3, i64 %153
  store i64 %151, ptr %154, align 8, !tbaa !19
  %155 = or disjoint i64 %.072.i86, 1
  %156 = getelementptr inbounds i64, ptr %146, i64 %155
  %157 = load i64, ptr %156, align 8, !tbaa !19
  %158 = add nsw i64 %135, %157
  %159 = getelementptr inbounds i64, ptr %144, i64 %155
  %160 = load i64, ptr %159, align 8, !tbaa !19
  %161 = getelementptr inbounds i64, ptr %3, i64 %160
  store i64 %158, ptr %161, align 8, !tbaa !19
  %162 = or disjoint i64 %.072.i86, 2
  %163 = getelementptr inbounds i64, ptr %146, i64 %162
  %164 = load i64, ptr %163, align 8, !tbaa !19
  %165 = add nsw i64 %135, %164
  %166 = getelementptr inbounds i64, ptr %144, i64 %162
  %167 = load i64, ptr %166, align 8, !tbaa !19
  %168 = getelementptr inbounds i64, ptr %3, i64 %167
  store i64 %165, ptr %168, align 8, !tbaa !19
  %169 = or disjoint i64 %.072.i86, 3
  %170 = getelementptr inbounds i64, ptr %146, i64 %169
  %171 = load i64, ptr %170, align 8, !tbaa !19
  %172 = add nsw i64 %135, %171
  %173 = getelementptr inbounds i64, ptr %144, i64 %169
  %174 = load i64, ptr %173, align 8, !tbaa !19
  %175 = getelementptr inbounds i64, ptr %3, i64 %174
  store i64 %172, ptr %175, align 8, !tbaa !19
  %176 = add nuw nsw i64 %.072.i86, 4
  %niter136.next.3 = add i64 %niter136, 4
  %niter136.ncmp.3 = icmp eq i64 %niter136.next.3, %unroll_iter135
  br i1 %niter136.ncmp.3, label %._crit_edge89.loopexit.unr-lcssa, label %.lr.ph88, !llvm.loop !20

._crit_edge89.loopexit.unr-lcssa:                 ; preds = %.lr.ph88, %.lr.ph88.preheader
  %.072.i86.unr = phi i64 [ 0, %.lr.ph88.preheader ], [ %176, %.lr.ph88 ]
  %lcmp.mod134.not = icmp eq i64 %xtraiter132, 0
  br i1 %lcmp.mod134.not, label %._crit_edge89, label %.lr.ph88.epil

.lr.ph88.epil:                                    ; preds = %._crit_edge89.loopexit.unr-lcssa, %.lr.ph88.epil
  %.072.i86.epil = phi i64 [ %183, %.lr.ph88.epil ], [ %.072.i86.unr, %._crit_edge89.loopexit.unr-lcssa ]
  %epil.iter133 = phi i64 [ %epil.iter133.next, %.lr.ph88.epil ], [ 0, %._crit_edge89.loopexit.unr-lcssa ]
  %177 = getelementptr inbounds i64, ptr %146, i64 %.072.i86.epil
  %178 = load i64, ptr %177, align 8, !tbaa !19
  %179 = add nsw i64 %135, %178
  %180 = getelementptr inbounds i64, ptr %144, i64 %.072.i86.epil
  %181 = load i64, ptr %180, align 8, !tbaa !19
  %182 = getelementptr inbounds i64, ptr %3, i64 %181
  store i64 %179, ptr %182, align 8, !tbaa !19
  %183 = add nuw nsw i64 %.072.i86.epil, 1
  %epil.iter133.next = add i64 %epil.iter133, 1
  %epil.iter133.cmp.not = icmp eq i64 %epil.iter133.next, %xtraiter132
  br i1 %epil.iter133.cmp.not, label %._crit_edge89, label %.lr.ph88.epil, !llvm.loop !44

._crit_edge89:                                    ; preds = %._crit_edge89.loopexit.unr-lcssa, %.lr.ph88.epil, %140
  call void @libmetis__FreeGraph(ptr noundef nonnull %11, i32 noundef 0) #3
  call void (ptr, ...) @gk_free(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef null) #3
  br label %libmetis__MCHMlevelRecursiveBisection.exit

libmetis__MCHMlevelRecursiveBisection.exit:       ; preds = %138, %._crit_edge89
  %.0.i = phi i64 [ 0, %138 ], [ %142, %._crit_edge89 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  %184 = add nsw i64 %.0.i, %34
  call void @libmetis__FreeGraph(ptr noundef nonnull %10, i32 noundef 0) #3
  br label %185

185:                                              ; preds = %.thread80, %libmetis__MCHMlevelRecursiveBisection.exit, %126
  %.073 = phi i64 [ %133, %126 ], [ %184, %libmetis__MCHMlevelRecursiveBisection.exit ], [ %34, %.thread80 ]
  call void (ptr, ...) @gk_free(ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef null) #3
  br label %186

186:                                              ; preds = %185, %19
  %.0 = phi i64 [ 0, %19 ], [ %.073, %185 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %10) #3
  ret i64 %.0
}

declare void @gk_free(ptr noundef, ...) local_unnamed_addr #1

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!10, !11, i64 208}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!10, !11, i64 112}
!17 = !{!10, !6, i64 96}
!18 = !{!10, !6, i64 128}
!19 = !{!11, !11, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = !{!10, !6, i64 224}
!25 = !{!26}
!26 = distinct !{!26, !27}
!27 = distinct !{!27, !"LVerDomain"}
!28 = !{!29}
!29 = distinct !{!29, !27}
!30 = !{!31}
!31 = distinct !{!31, !27}
!32 = !{!33}
!33 = distinct !{!33, !27}
!34 = !{!35, !29, !26, !36, !31}
!35 = distinct !{!35, !27}
!36 = distinct !{!36, !27}
!37 = !{!36}
!38 = !{!35}
!39 = !{!29, !26, !36, !31}
!40 = distinct !{!40, !21, !41, !42}
!41 = !{!"llvm.loop.isvectorized", i32 1}
!42 = !{!"llvm.loop.unroll.runtime.disable"}
!43 = distinct !{!43, !21, !41}
!44 = distinct !{!44, !23}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InlinerPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass