; LLVM IR from GGiecold-zz/Cluster_Ensembles :: src/Cluster_Ensembles/Hypergraph_Partitioning/metis-5.1.0/libmetis (options)

; 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.ctrl_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, float, ptr, ptr, ptr, float, double, double, double, double, double, double, double, double, double, double, double, double, ptr, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [6 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: nounwind uwtable
define dso_local void @libmetis__PrintCtrl(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %6 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %7 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.ctrl_t, ptr %8, i32 0, i32 1
  %10 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %10, label %17 [
    i32 0, label %11
    i32 1, label %13
    i32 2, label %15
  ]

11:                                               ; preds = %1
  %12 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  br label %19

13:                                               ; preds = %1
  %14 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  br label %19

15:                                               ; preds = %1
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  br label %19

17:                                               ; preds = %1
  %18 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %19

19:                                               ; preds = %17, %15, %13, %11
  %20 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.ctrl_t, ptr %21, i32 0, i32 3
  %23 = load i32, ptr %22, align 4, !tbaa !15
  switch i32 %23, label %28 [
    i32 0, label %24
    i32 1, label %26
  ]

24:                                               ; preds = %19
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  br label %30

26:                                               ; preds = %19
  %27 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %30

28:                                               ; preds = %19
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %30

30:                                               ; preds = %28, %26, %24
  %31 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.ctrl_t, ptr %32, i32 0, i32 4
  %34 = load i32, ptr %33, align 8, !tbaa !16
  switch i32 %34, label %45 [
    i32 0, label %35
    i32 1, label %37
    i32 2, label %39
    i32 3, label %41
    i32 4, label %43
  ]

35:                                               ; preds = %30
  %36 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  br label %47

37:                                               ; preds = %30
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  br label %47

39:                                               ; preds = %30
  %40 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  br label %47

41:                                               ; preds = %30
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  br label %47

43:                                               ; preds = %30
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  br label %47

45:                                               ; preds = %30
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %47

47:                                               ; preds = %45, %43, %41, %39, %37, %35
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ctrl_t, ptr %49, i32 0, i32 5
  %51 = load i32, ptr %50, align 4, !tbaa !17
  switch i32 %51, label %60 [
    i32 0, label %52
    i32 1, label %54
    i32 2, label %56
    i32 3, label %58
  ]

52:                                               ; preds = %47
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
  br label %62

54:                                               ; preds = %47
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
  br label %62

56:                                               ; preds = %47
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
  br label %62

58:                                               ; preds = %47
  %59 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  br label %62

60:                                               ; preds = %47
  %61 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  br label %62

62:                                               ; preds = %60, %58, %56, %54, %52
  %63 = load ptr, ptr %2, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ctrl_t, ptr %63, i32 0, i32 8
  %65 = load i32, ptr %64, align 8, !tbaa !18
  %66 = icmp ne i32 %65, 0
  %67 = zext i1 %66 to i64
  %68 = select i1 %66, ptr @.str.27, ptr @.str.28
  %69 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, ptr noundef %68)
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.ctrl_t, ptr %70, i32 0, i32 20
  %72 = load i32, ptr %71, align 8, !tbaa !19
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, i32 noundef %72)
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ctrl_t, ptr %74, i32 0, i32 17
  %76 = load i32, ptr %75, align 4, !tbaa !20
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, i32 noundef %76)
  %78 = load ptr, ptr %2, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.ctrl_t, ptr %78, i32 0, i32 15
  %80 = load i32, ptr %79, align 4, !tbaa !21
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.31, i32 noundef %80)
  %82 = load ptr, ptr %2, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ctrl_t, ptr %82, i32 0, i32 0
  %84 = load i32, ptr %83, align 8, !tbaa !22
  %85 = icmp eq i32 %84, 2
  br i1 %85, label %86, label %110

86:                                               ; preds = %62
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ctrl_t, ptr %87, i32 0, i32 11
  %89 = load i32, ptr %88, align 4, !tbaa !23
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, i32 noundef %89)
  %91 = load ptr, ptr %2, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ctrl_t, ptr %91, i32 0, i32 13
  %93 = load i32, ptr %92, align 4, !tbaa !24
  %94 = icmp ne i32 %93, 0
  %95 = zext i1 %94 to i64
  %96 = select i1 %94, ptr @.str.27, ptr @.str.28
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.33, ptr noundef %96)
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ctrl_t, ptr %98, i32 0, i32 14
  %100 = load i32, ptr %99, align 8, !tbaa !25
  %101 = icmp ne i32 %100, 0
  %102 = zext i1 %101 to i64
  %103 = select i1 %101, ptr @.str.27, ptr @.str.28
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, ptr noundef %103)
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.ctrl_t, ptr %105, i32 0, i32 22
  %107 = load float, ptr %106, align 8, !tbaa !26
  %108 = fpext float %107 to double
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, double noundef %108)
  br label %218

110:                                              ; preds = %62
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.ctrl_t, ptr %111, i32 0, i32 21
  %113 = load i32, ptr %112, align 4, !tbaa !27
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.36, i32 noundef %113)
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ctrl_t, ptr %115, i32 0, i32 16
  %117 = load i32, ptr %116, align 8, !tbaa !28
  %118 = call i32 (ptr, ...) @printf(ptr noundef @.str.37, i32 noundef %117)
  %119 = load ptr, ptr %2, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.ctrl_t, ptr %119, i32 0, i32 12
  %121 = load i32, ptr %120, align 8, !tbaa !29
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.38, i32 noundef %121)
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ctrl_t, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !22
  %126 = icmp eq i32 %125, 1
  br i1 %126, label %127, label %142

127:                                              ; preds = %110
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.ctrl_t, ptr %128, i32 0, i32 9
  %130 = load i32, ptr %129, align 4, !tbaa !30
  %131 = icmp ne i32 %130, 0
  %132 = zext i1 %131 to i64
  %133 = select i1 %131, ptr @.str.27, ptr @.str.28
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.39, ptr noundef %133)
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.ctrl_t, ptr %135, i32 0, i32 10
  %137 = load i32, ptr %136, align 8, !tbaa !31
  %138 = icmp ne i32 %137, 0
  %139 = zext i1 %138 to i64
  %140 = select i1 %138, ptr @.str.27, ptr @.str.28
  %141 = call i32 (ptr, ...) @printf(ptr noundef @.str.40, ptr noundef %140)
  br label %142

142:                                              ; preds = %127, %110
  %143 = load ptr, ptr %2, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ctrl_t, ptr %143, i32 0, i32 20
  %145 = load i32, ptr %144, align 8, !tbaa !19
  %146 = icmp eq i32 %145, 1
  br i1 %146, label %147, label %148

147:                                              ; preds = %142
  br label %163

148:                                              ; preds = %142
  %149 = load ptr, ptr %2, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ctrl_t, ptr %149, i32 0, i32 20
  %151 = load i32, ptr %150, align 8, !tbaa !19
  %152 = icmp eq i32 %151, 2
  br i1 %152, label %153, label %154

153:                                              ; preds = %148
  br label %161

154:                                              ; preds = %148
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.ctrl_t, ptr %155, i32 0, i32 20
  %157 = load i32, ptr %156, align 8, !tbaa !19
  %158 = icmp eq i32 %157, 3
  %159 = zext i1 %158 to i64
  %160 = select i1 %158, i32 2, i32 1
  br label %161

161:                                              ; preds = %154, %153
  %162 = phi i32 [ 3, %153 ], [ %160, %154 ]
  br label %163

163:                                              ; preds = %161, %147
  %164 = phi i32 [ 5, %147 ], [ %162, %161 ]
  store i32 %164, ptr %5, align 4, !tbaa !32
  %165 = call i32 (ptr, ...) @printf(ptr noundef @.str.41)
  store i32 0, ptr %3, align 4, !tbaa !32
  br label %166

166:                                              ; preds = %213, %163
  %167 = load i32, ptr %3, align 4, !tbaa !32
  %168 = load ptr, ptr %2, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ctrl_t, ptr %168, i32 0, i32 21
  %170 = load i32, ptr %169, align 4, !tbaa !27
  %171 = icmp slt i32 %167, %170
  br i1 %171, label %172, label %216

172:                                              ; preds = %166
  %173 = load i32, ptr %3, align 4, !tbaa !32
  %174 = load i32, ptr %5, align 4, !tbaa !32
  %175 = srem i32 %173, %174
  %176 = icmp eq i32 %175, 0
  br i1 %176, label %177, label %179

177:                                              ; preds = %172
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.42)
  br label %179

179:                                              ; preds = %177, %172
  %180 = load i32, ptr %3, align 4, !tbaa !32
  %181 = call i32 (ptr, ...) @printf(ptr noundef @.str.43, i32 noundef %180)
  store i32 0, ptr %4, align 4, !tbaa !32
  br label %182

182:                                              ; preds = %208, %179
  %183 = load i32, ptr %4, align 4, !tbaa !32
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.ctrl_t, ptr %184, i32 0, i32 20
  %186 = load i32, ptr %185, align 8, !tbaa !19
  %187 = icmp slt i32 %183, %186
  br i1 %187, label %188, label %211

188:                                              ; preds = %182
  %189 = load i32, ptr %4, align 4, !tbaa !32
  %190 = icmp eq i32 %189, 0
  %191 = zext i1 %190 to i64
  %192 = select i1 %190, ptr @.str.45, ptr @.str.46
  %193 = load ptr, ptr %2, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.ctrl_t, ptr %193, i32 0, i32 24
  %195 = load ptr, ptr %194, align 8, !tbaa !33
  %196 = load i32, ptr %3, align 4, !tbaa !32
  %197 = load ptr, ptr %2, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.ctrl_t, ptr %197, i32 0, i32 20
  %199 = load i32, ptr %198, align 8, !tbaa !19
  %200 = mul nsw i32 %196, %199
  %201 = load i32, ptr %4, align 4, !tbaa !32
  %202 = add nsw i32 %200, %201
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds float, ptr %195, i64 %203
  %205 = load float, ptr %204, align 4, !tbaa !34
  %206 = fpext float %205 to double
  %207 = call i32 (ptr, ...) @printf(ptr noundef @.str.44, ptr noundef %192, double noundef %206)
  br label %208

208:                                              ; preds = %188
  %209 = load i32, ptr %4, align 4, !tbaa !32
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %4, align 4, !tbaa !32
  br label %182, !llvm.loop !35

211:                                              ; preds = %182
  %212 = call i32 (ptr, ...) @printf(ptr noundef @.str.47)
  br label %213

213:                                              ; preds = %211
  %214 = load i32, ptr %3, align 4, !tbaa !32
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %3, align 4, !tbaa !32
  br label %166, !llvm.loop !37

216:                                              ; preds = %166
  %217 = call i32 (ptr, ...) @printf(ptr noundef @.str.48)
  br label %218

218:                                              ; preds = %216, %86
  %219 = call i32 (ptr, ...) @printf(ptr noundef @.str.49)
  store i32 0, ptr %3, align 4, !tbaa !32
  br label %220

220:                                              ; preds = %236, %218
  %221 = load i32, ptr %3, align 4, !tbaa !32
  %222 = load ptr, ptr %2, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.ctrl_t, ptr %222, i32 0, i32 20
  %224 = load i32, ptr %223, align 8, !tbaa !19
  %225 = icmp slt i32 %221, %224
  br i1 %225, label %226, label %239

226:                                              ; preds = %220
  %227 = load ptr, ptr %2, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.ctrl_t, ptr %227, i32 0, i32 23
  %229 = load ptr, ptr %228, align 8, !tbaa !38
  %230 = load i32, ptr %3, align 4, !tbaa !32
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds float, ptr %229, i64 %231
  %233 = load float, ptr %232, align 4, !tbaa !34
  %234 = fpext float %233 to double
  %235 = call i32 (ptr, ...) @printf(ptr noundef @.str.50, double noundef %234)
  br label %236

236:                                              ; preds = %226
  %237 = load i32, ptr %3, align 4, !tbaa !32
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %3, align 4, !tbaa !32
  br label %220, !llvm.loop !39

239:                                              ; preds = %220
  %240 = call i32 (ptr, ...) @printf(ptr noundef @.str.48)
  %241 = call i32 (ptr, ...) @printf(ptr noundef @.str.48)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #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 i32 @printf(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, !11, i64 4}
!10 = !{!"ctrl_t", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !12, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !12, i64 128, !13, i64 136, !13, i64 144, !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, !6, i64 232, !14, i64 240, !14, i64 248, !14, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!10, !11, i64 12}
!16 = !{!10, !11, i64 16}
!17 = !{!10, !11, i64 20}
!18 = !{!10, !11, i64 32}
!19 = !{!10, !11, i64 88}
!20 = !{!10, !11, i64 68}
!21 = !{!10, !11, i64 60}
!22 = !{!10, !11, i64 0}
!23 = !{!10, !11, i64 44}
!24 = !{!10, !11, i64 52}
!25 = !{!10, !11, i64 56}
!26 = !{!10, !12, i64 96}
!27 = !{!10, !11, i64 92}
!28 = !{!10, !11, i64 64}
!29 = !{!10, !11, i64 48}
!30 = !{!10, !11, i64 36}
!31 = !{!10, !11, i64 40}
!32 = !{!11, !11, i64 0}
!33 = !{!10, !6, i64 112}
!34 = !{!12, !12, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = !{!10, !6, i64 104}
!39 = distinct !{!39, !36}


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

@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [6 x i8], align 1
@switch.table.libmetis__PrintCtrl = private unnamed_addr constant [3 x ptr] [ptr @.str.8, ptr @.str.9, ptr @.str.10], align 8
@switch.table.libmetis__PrintCtrl.1 = private unnamed_addr constant [5 x ptr] [ptr @.str.16, ptr @.str.17, ptr @.str.18, ptr @.str.19, ptr @.str.20], align 8
@switch.table.libmetis__PrintCtrl.2 = private unnamed_addr constant [4 x ptr] [ptr @.str.22, ptr @.str.23, ptr @.str.24, ptr @.str.25], align 8

; Function Attrs: nofree nounwind uwtable
define dso_local void @libmetis__PrintCtrl(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %4 = getelementptr inbounds i8, ptr %0, i64 4
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = icmp ult i32 %5, 3
  br i1 %6, label %switch.lookup, label %8

switch.lookup:                                    ; preds = %1
  %7 = zext nneg i32 %5 to i64
  %switch.gep = getelementptr inbounds [3 x ptr], ptr @switch.table.libmetis__PrintCtrl, i64 0, i64 %7
  %switch.load = load ptr, ptr %switch.gep, align 8
  br label %8

8:                                                ; preds = %1, %switch.lookup
  %.str.11.sink = phi ptr [ %switch.load, %switch.lookup ], [ @.str.11, %1 ]
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.11.sink)
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12)
  %11 = getelementptr inbounds i8, ptr %0, i64 12
  %12 = load i32, ptr %11, align 4, !tbaa !14
  %switch.selectcmp = icmp eq i32 %12, 1
  %switch.select = select i1 %switch.selectcmp, ptr @.str.14, ptr @.str.11
  %switch.selectcmp61 = icmp eq i32 %12, 0
  %switch.select62 = select i1 %switch.selectcmp61, ptr @.str.13, ptr %switch.select
  %13 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %switch.select62)
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = load i32, ptr %15, align 8, !tbaa !15
  %17 = icmp ult i32 %16, 5
  br i1 %17, label %switch.lookup64, label %19

switch.lookup64:                                  ; preds = %8
  %18 = zext nneg i32 %16 to i64
  %switch.gep65 = getelementptr inbounds [5 x ptr], ptr @switch.table.libmetis__PrintCtrl.1, i64 0, i64 %18
  %switch.load66 = load ptr, ptr %switch.gep65, align 8
  br label %19

19:                                               ; preds = %8, %switch.lookup64
  %.str.11.sink59 = phi ptr [ %switch.load66, %switch.lookup64 ], [ @.str.11, %8 ]
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.11.sink59)
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21)
  %22 = getelementptr inbounds i8, ptr %0, i64 20
  %23 = load i32, ptr %22, align 4, !tbaa !16
  %24 = icmp ult i32 %23, 4
  br i1 %24, label %switch.lookup67, label %26

switch.lookup67:                                  ; preds = %19
  %25 = zext nneg i32 %23 to i64
  %switch.gep68 = getelementptr inbounds [4 x ptr], ptr @switch.table.libmetis__PrintCtrl.2, i64 0, i64 %25
  %switch.load69 = load ptr, ptr %switch.gep68, align 8
  br label %26

26:                                               ; preds = %19, %switch.lookup67
  %.str.11.sink60 = phi ptr [ %switch.load69, %switch.lookup67 ], [ @.str.11, %19 ]
  %27 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.11.sink60)
  %28 = getelementptr inbounds i8, ptr %0, i64 32
  %29 = load i32, ptr %28, align 8, !tbaa !17
  %.not = icmp eq i32 %29, 0
  %30 = select i1 %.not, ptr @.str.28, ptr @.str.27
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, ptr noundef nonnull %30)
  %32 = getelementptr inbounds i8, ptr %0, i64 88
  %33 = load i32, ptr %32, align 8, !tbaa !18
  %34 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29, i32 noundef %33)
  %35 = getelementptr inbounds i8, ptr %0, i64 68
  %36 = load i32, ptr %35, align 4, !tbaa !19
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, i32 noundef %36)
  %38 = getelementptr inbounds i8, ptr %0, i64 60
  %39 = load i32, ptr %38, align 4, !tbaa !20
  %40 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31, i32 noundef %39)
  %41 = load i32, ptr %0, align 8, !tbaa !21
  %42 = icmp eq i32 %41, 2
  br i1 %42, label %43, label %59

43:                                               ; preds = %26
  %44 = getelementptr inbounds i8, ptr %0, i64 44
  %45 = load i32, ptr %44, align 4, !tbaa !22
  %46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, i32 noundef %45)
  %47 = getelementptr inbounds i8, ptr %0, i64 52
  %48 = load i32, ptr %47, align 4, !tbaa !23
  %.not45 = icmp eq i32 %48, 0
  %49 = select i1 %.not45, ptr @.str.28, ptr @.str.27
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33, ptr noundef nonnull %49)
  %51 = getelementptr inbounds i8, ptr %0, i64 56
  %52 = load i32, ptr %51, align 8, !tbaa !24
  %.not46 = icmp eq i32 %52, 0
  %53 = select i1 %.not46, ptr @.str.28, ptr @.str.27
  %54 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, ptr noundef nonnull %53)
  %55 = getelementptr inbounds i8, ptr %0, i64 96
  %56 = load float, ptr %55, align 8, !tbaa !25
  %57 = fpext float %56 to double
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35, double noundef %57)
  br label %126

59:                                               ; preds = %26
  %60 = getelementptr inbounds i8, ptr %0, i64 92
  %61 = load i32, ptr %60, align 4, !tbaa !26
  %62 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.36, i32 noundef %61)
  %63 = getelementptr inbounds i8, ptr %0, i64 64
  %64 = load i32, ptr %63, align 8, !tbaa !27
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.37, i32 noundef %64)
  %66 = getelementptr inbounds i8, ptr %0, i64 48
  %67 = load i32, ptr %66, align 8, !tbaa !28
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, i32 noundef %67)
  %69 = load i32, ptr %0, align 8, !tbaa !21
  %70 = icmp eq i32 %69, 1
  br i1 %70, label %71, label %80

71:                                               ; preds = %59
  %72 = getelementptr inbounds i8, ptr %0, i64 36
  %73 = load i32, ptr %72, align 4, !tbaa !29
  %.not43 = icmp eq i32 %73, 0
  %74 = select i1 %.not43, ptr @.str.28, ptr @.str.27
  %75 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.39, ptr noundef nonnull %74)
  %76 = getelementptr inbounds i8, ptr %0, i64 40
  %77 = load i32, ptr %76, align 8, !tbaa !30
  %.not44 = icmp eq i32 %77, 0
  %78 = select i1 %.not44, ptr @.str.28, ptr @.str.27
  %79 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, ptr noundef nonnull %78)
  br label %80

80:                                               ; preds = %71, %59
  %81 = load i32, ptr %32, align 8, !tbaa !18
  switch i32 %81, label %82 [
    i32 1, label %85
    i32 2, label %.fold.split
  ]

82:                                               ; preds = %80
  %83 = icmp eq i32 %81, 3
  %84 = select i1 %83, i32 2, i32 1
  br label %85

.fold.split:                                      ; preds = %80
  br label %85

85:                                               ; preds = %80, %.fold.split, %82
  %86 = phi i32 [ 5, %80 ], [ %84, %82 ], [ 3, %.fold.split ]
  %87 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41)
  %88 = load i32, ptr %60, align 4, !tbaa !26
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %.lr.ph50, label %._crit_edge51

.lr.ph50:                                         ; preds = %85
  %90 = getelementptr inbounds i8, ptr %0, i64 112
  br label %91

91:                                               ; preds = %.lr.ph50, %._crit_edge
  %.048 = phi i32 [ 0, %.lr.ph50 ], [ %122, %._crit_edge ]
  %92 = urem i32 %.048, %86
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %96

94:                                               ; preds = %91
  %95 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42)
  br label %96

96:                                               ; preds = %94, %91
  %97 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.43, i32 noundef %.048)
  %98 = load i32, ptr %32, align 8, !tbaa !18
  %99 = icmp sgt i32 %98, 0
  br i1 %99, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %96
  %100 = load ptr, ptr %90, align 8, !tbaa !31
  %101 = mul nuw nsw i32 %98, %.048
  %102 = zext nneg i32 %101 to i64
  %103 = getelementptr inbounds float, ptr %100, i64 %102
  %104 = load float, ptr %103, align 4, !tbaa !32
  %105 = fpext float %104 to double
  %106 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.44, ptr noundef nonnull @.str.45, double noundef %105)
  %107 = load i32, ptr %32, align 8, !tbaa !18
  %108 = icmp sgt i32 %107, 1
  br i1 %108, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %109 = phi i32 [ %119, %.lr.ph ], [ %107, %.lr.ph.preheader ]
  %.04047 = phi i32 [ %118, %.lr.ph ], [ 1, %.lr.ph.preheader ]
  %110 = load ptr, ptr %90, align 8, !tbaa !31
  %111 = mul nsw i32 %109, %.048
  %112 = add nsw i32 %111, %.04047
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds float, ptr %110, i64 %113
  %115 = load float, ptr %114, align 4, !tbaa !32
  %116 = fpext float %115 to double
  %117 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.44, ptr noundef nonnull @.str.46, double noundef %116)
  %118 = add nuw nsw i32 %.04047, 1
  %119 = load i32, ptr %32, align 8, !tbaa !18
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %.lr.ph, label %._crit_edge, !llvm.loop !33

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph.preheader, %96
  %121 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.47)
  %122 = add nuw nsw i32 %.048, 1
  %123 = load i32, ptr %60, align 4, !tbaa !26
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %91, label %._crit_edge51, !llvm.loop !36

._crit_edge51:                                    ; preds = %._crit_edge, %85
  %125 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.48)
  br label %126

126:                                              ; preds = %._crit_edge51, %43
  %127 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.49)
  %128 = load i32, ptr %32, align 8, !tbaa !18
  %129 = icmp sgt i32 %128, 0
  br i1 %129, label %.lr.ph54, label %._crit_edge55

.lr.ph54:                                         ; preds = %126
  %130 = getelementptr inbounds i8, ptr %0, i64 104
  br label %131

131:                                              ; preds = %.lr.ph54, %131
  %indvars.iv = phi i64 [ 0, %.lr.ph54 ], [ %indvars.iv.next, %131 ]
  %132 = load ptr, ptr %130, align 8, !tbaa !37
  %133 = getelementptr inbounds float, ptr %132, i64 %indvars.iv
  %134 = load float, ptr %133, align 4, !tbaa !32
  %135 = fpext float %134 to double
  %136 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50, double noundef %135)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %137 = load i32, ptr %32, align 8, !tbaa !18
  %138 = sext i32 %137 to i64
  %139 = icmp slt i64 %indvars.iv.next, %138
  br i1 %139, label %131, label %._crit_edge55, !llvm.loop !38

._crit_edge55:                                    ; preds = %131, %126
  %140 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.48)
  %141 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.48)
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

attributes #0 = { nofree 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 = { nofree nounwind "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" }

!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 4}
!6 = !{!"ctrl_t", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !10, i64 80, !7, i64 88, !7, i64 92, !11, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !11, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !10, i64 232, !13, i64 240, !13, i64 248, !13, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!"double", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !7, i64 12}
!15 = !{!6, !7, i64 16}
!16 = !{!6, !7, i64 20}
!17 = !{!6, !7, i64 32}
!18 = !{!6, !7, i64 88}
!19 = !{!6, !7, i64 68}
!20 = !{!6, !7, i64 60}
!21 = !{!6, !7, i64 0}
!22 = !{!6, !7, i64 44}
!23 = !{!6, !7, i64 52}
!24 = !{!6, !7, i64 56}
!25 = !{!6, !11, i64 96}
!26 = !{!6, !7, i64 92}
!27 = !{!6, !7, i64 64}
!28 = !{!6, !7, i64 48}
!29 = !{!6, !7, i64 36}
!30 = !{!6, !7, i64 40}
!31 = !{!6, !10, i64 112}
!32 = !{!11, !11, i64 0}
!33 = distinct !{!33, !34, !35}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!"llvm.loop.peeled.count", i32 1}
!36 = distinct !{!36, !34}
!37 = !{!6, !10, i64 104}
!38 = distinct !{!38, !34}


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