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

; 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.rpq_t = type { i64, i64, ptr, ptr }
%struct.rkv_t = type { float, i32 }

@.str.5 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__rpqCheckHeap = external hidden unnamed_addr constant [36 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 i32 @printf(ptr noundef, ...) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @libmetis__rpqCheckHeap(ptr noundef %0) #3 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.rpq_t, ptr %10, i32 0, i32 2
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %12, ptr %8, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.rpq_t, ptr %13, i32 0, i32 3
  %15 = load ptr, ptr %14, align 8, !tbaa !12
  store ptr %15, ptr %7, align 8, !tbaa !5
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.rpq_t, ptr %16, i32 0, i32 0
  %18 = load i64, ptr %17, align 8, !tbaa !13
  store i64 %18, ptr %6, align 8, !tbaa !14
  %19 = load i64, ptr %6, align 8, !tbaa !14
  %20 = icmp eq i64 %19, 0
  br i1 %20, label %21, label %22

21:                                               ; preds = %1
  store i32 1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %187

22:                                               ; preds = %1
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.rkv_t, ptr %24, i64 0
  %26 = getelementptr inbounds %struct.rkv_t, ptr %25, i32 0, i32 1
  %27 = load i32, ptr %26, align 4, !tbaa !15
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds i64, ptr %23, i64 %28
  %30 = load i64, ptr %29, align 8, !tbaa !14
  %31 = icmp eq i64 %30, 0
  br i1 %31, label %46, label %32

32:                                               ; preds = %22
  %33 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 34, ptr noundef @.str.5)
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.rkv_t, ptr %35, i64 0
  %37 = getelementptr inbounds %struct.rkv_t, ptr %36, i32 0, i32 1
  %38 = load i32, ptr %37, align 4, !tbaa !15
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds i64, ptr %34, i64 %39
  %41 = load i64, ptr %40, align 8, !tbaa !14
  %42 = icmp eq i64 %41, 0
  br i1 %42, label %43, label %44

43:                                               ; preds = %32
  br label %45

44:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.5, i32 noundef 34, ptr noundef @__PRETTY_FUNCTION__.libmetis__rpqCheckHeap) #5
  unreachable

45:                                               ; preds = %43
  br label %46

46:                                               ; preds = %45, %22
  store i64 1, ptr %4, align 8, !tbaa !14
  br label %47

47:                                               ; preds = %112, %46
  %48 = load i64, ptr %4, align 8, !tbaa !14
  %49 = load i64, ptr %6, align 8, !tbaa !14
  %50 = icmp ult i64 %48, %49
  br i1 %50, label %51, label %115

51:                                               ; preds = %47
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = load i64, ptr %4, align 8, !tbaa !14
  %55 = getelementptr inbounds %struct.rkv_t, ptr %53, i64 %54
  %56 = getelementptr inbounds %struct.rkv_t, ptr %55, i32 0, i32 1
  %57 = load i32, ptr %56, align 4, !tbaa !15
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i64, ptr %52, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !14
  %61 = load i64, ptr %4, align 8, !tbaa !14
  %62 = icmp eq i64 %60, %61
  br i1 %62, label %79, label %63

63:                                               ; preds = %51
  %64 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef 34, ptr noundef @.str.5)
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load i64, ptr %4, align 8, !tbaa !14
  %68 = getelementptr inbounds %struct.rkv_t, ptr %66, i64 %67
  %69 = getelementptr inbounds %struct.rkv_t, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !15
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i64, ptr %65, i64 %71
  %73 = load i64, ptr %72, align 8, !tbaa !14
  %74 = load i64, ptr %4, align 8, !tbaa !14
  %75 = icmp eq i64 %73, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %63
  br label %78

77:                                               ; preds = %63
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.5, i32 noundef 34, ptr noundef @__PRETTY_FUNCTION__.libmetis__rpqCheckHeap) #5
  unreachable

78:                                               ; preds = %76
  br label %79

79:                                               ; preds = %78, %51
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = load i64, ptr %4, align 8, !tbaa !14
  %82 = getelementptr inbounds %struct.rkv_t, ptr %80, i64 %81
  %83 = getelementptr inbounds %struct.rkv_t, ptr %82, i32 0, i32 0
  %84 = load float, ptr %83, align 4, !tbaa !19
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = load i64, ptr %4, align 8, !tbaa !14
  %87 = sub nsw i64 %86, 1
  %88 = sdiv i64 %87, 2
  %89 = getelementptr inbounds %struct.rkv_t, ptr %85, i64 %88
  %90 = getelementptr inbounds %struct.rkv_t, ptr %89, i32 0, i32 0
  %91 = load float, ptr %90, align 4, !tbaa !19
  %92 = fcmp ogt float %84, %91
  br i1 %92, label %93, label %111

93:                                               ; preds = %79
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i32 noundef 34, ptr noundef @.str.5)
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = load i64, ptr %4, align 8, !tbaa !14
  %97 = getelementptr inbounds %struct.rkv_t, ptr %95, i64 %96
  %98 = getelementptr inbounds %struct.rkv_t, ptr %97, i32 0, i32 0
  %99 = load float, ptr %98, align 4, !tbaa !19
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = load i64, ptr %4, align 8, !tbaa !14
  %102 = sub nsw i64 %101, 1
  %103 = sdiv i64 %102, 2
  %104 = getelementptr inbounds %struct.rkv_t, ptr %100, i64 %103
  %105 = getelementptr inbounds %struct.rkv_t, ptr %104, i32 0, i32 0
  %106 = load float, ptr %105, align 4, !tbaa !19
  %107 = fcmp ogt float %99, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %93
  br label %110

109:                                              ; preds = %93
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.5, i32 noundef 34, ptr noundef @__PRETTY_FUNCTION__.libmetis__rpqCheckHeap) #5
  unreachable

110:                                              ; preds = %108
  br label %111

111:                                              ; preds = %110, %79
  br label %112

112:                                              ; preds = %111
  %113 = load i64, ptr %4, align 8, !tbaa !14
  %114 = add nsw i64 %113, 1
  store i64 %114, ptr %4, align 8, !tbaa !14
  br label %47, !llvm.loop !20

115:                                              ; preds = %47
  store i64 1, ptr %4, align 8, !tbaa !14
  br label %116

116:                                              ; preds = %147, %115
  %117 = load i64, ptr %4, align 8, !tbaa !14
  %118 = load i64, ptr %6, align 8, !tbaa !14
  %119 = icmp ult i64 %117, %118
  br i1 %119, label %120, label %150

120:                                              ; preds = %116
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = load i64, ptr %4, align 8, !tbaa !14
  %123 = getelementptr inbounds %struct.rkv_t, ptr %121, i64 %122
  %124 = getelementptr inbounds %struct.rkv_t, ptr %123, i32 0, i32 0
  %125 = load float, ptr %124, align 4, !tbaa !19
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.rkv_t, ptr %126, i64 0
  %128 = getelementptr inbounds %struct.rkv_t, ptr %127, i32 0, i32 0
  %129 = load float, ptr %128, align 4, !tbaa !19
  %130 = fcmp ogt float %125, %129
  br i1 %130, label %131, label %146

131:                                              ; preds = %120
  %132 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef 34, ptr noundef @.str.5)
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = load i64, ptr %4, align 8, !tbaa !14
  %135 = getelementptr inbounds %struct.rkv_t, ptr %133, i64 %134
  %136 = getelementptr inbounds %struct.rkv_t, ptr %135, i32 0, i32 0
  %137 = load float, ptr %136, align 4, !tbaa !19
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.rkv_t, ptr %138, i64 0
  %140 = getelementptr inbounds %struct.rkv_t, ptr %139, i32 0, i32 0
  %141 = load float, ptr %140, align 4, !tbaa !19
  %142 = fcmp ogt float %137, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %131
  br label %145

144:                                              ; preds = %131
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.5, i32 noundef 34, ptr noundef @__PRETTY_FUNCTION__.libmetis__rpqCheckHeap) #5
  unreachable

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145, %120
  br label %147

147:                                              ; preds = %146
  %148 = load i64, ptr %4, align 8, !tbaa !14
  %149 = add nsw i64 %148, 1
  store i64 %149, ptr %4, align 8, !tbaa !14
  br label %116, !llvm.loop !22

150:                                              ; preds = %116
  store i64 0, ptr %4, align 8, !tbaa !14
  store i64 0, ptr %5, align 8, !tbaa !14
  br label %151

151:                                              ; preds = %167, %150
  %152 = load i64, ptr %4, align 8, !tbaa !14
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.rpq_t, ptr %153, i32 0, i32 1
  %155 = load i64, ptr %154, align 8, !tbaa !23
  %156 = icmp slt i64 %152, %155
  br i1 %156, label %157, label %170

157:                                              ; preds = %151
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = load i64, ptr %4, align 8, !tbaa !14
  %160 = getelementptr inbounds i64, ptr %158, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !14
  %162 = icmp ne i64 %161, -1
  br i1 %162, label %163, label %166

163:                                              ; preds = %157
  %164 = load i64, ptr %5, align 8, !tbaa !14
  %165 = add nsw i64 %164, 1
  store i64 %165, ptr %5, align 8, !tbaa !14
  br label %166

166:                                              ; preds = %163, %157
  br label %167

167:                                              ; preds = %166
  %168 = load i64, ptr %4, align 8, !tbaa !14
  %169 = add nsw i64 %168, 1
  store i64 %169, ptr %4, align 8, !tbaa !14
  br label %151, !llvm.loop !24

170:                                              ; preds = %151
  %171 = load i64, ptr %5, align 8, !tbaa !14
  %172 = load i64, ptr %6, align 8, !tbaa !14
  %173 = icmp eq i64 %171, %172
  br i1 %173, label %186, label %174

174:                                              ; preds = %170
  %175 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i32 noundef 34, ptr noundef @.str.5)
  %176 = load i64, ptr %5, align 8, !tbaa !14
  %177 = load i64, ptr %6, align 8, !tbaa !14
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, i64 noundef %176, i64 noundef %177)
  %179 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  %180 = load i64, ptr %5, align 8, !tbaa !14
  %181 = load i64, ptr %6, align 8, !tbaa !14
  %182 = icmp eq i64 %180, %181
  br i1 %182, label %183, label %184

183:                                              ; preds = %174
  br label %185

184:                                              ; preds = %174
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str.5, i32 noundef 34, ptr noundef @__PRETTY_FUNCTION__.libmetis__rpqCheckHeap) #5
  unreachable

185:                                              ; preds = %183
  br label %186

186:                                              ; preds = %185, %170
  store i32 1, ptr %2, align 4
  store i32 1, ptr %9, align 4
  br label %187

187:                                              ; preds = %186, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  %188 = load i32, ptr %2, align 4
  ret i32 %188
}

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 = { noreturn 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" }
attributes #3 = { 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 #4 = { nounwind }
attributes #5 = { noreturn 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, !6, i64 16}
!10 = !{!"", !11, i64 0, !11, i64 8, !6, i64 16, !6, i64 24}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 24}
!13 = !{!10, !11, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !18, i64 4}
!16 = !{!"", !17, i64 0, !18, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!16, !17, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!10, !11, i64 8}
!24 = distinct !{!24, !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.rkv_t = type { float, i32 }

@.str.5 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.libmetis__rpqCheckHeap = external hidden unnamed_addr constant [36 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @libmetis__rpqCheckHeap(ptr nocapture noundef readonly %0) local_unnamed_addr #2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 16
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load ptr, ptr %4, align 8, !tbaa !11
  %6 = load i64, ptr %0, align 8, !tbaa !12
  %7 = icmp eq i64 %6, 0
  br i1 %7, label %88, label %8

8:                                                ; preds = %1
  %9 = getelementptr inbounds i8, ptr %3, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !13
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds i64, ptr %5, i64 %11
  %13 = load i64, ptr %12, align 8, !tbaa !17
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %23, label %15

15:                                               ; preds = %8
  %16 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 34, ptr noundef nonnull @.str.5)
  %17 = load i32, ptr %9, align 4, !tbaa !13
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds i64, ptr %5, i64 %18
  %20 = load i64, ptr %19, align 8, !tbaa !17
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %23, label %22

22:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.5, i32 noundef 34, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__rpqCheckHeap) #4
  unreachable

23:                                               ; preds = %15, %8
  %.not58 = icmp eq i64 %6, 1
  br i1 %.not58, label %.preheader, label %.lr.ph

.preheader51:                                     ; preds = %51
  br i1 %.not58, label %.preheader, label %.lr.ph54.preheader

.lr.ph54.preheader:                               ; preds = %.preheader51
  %.pre = load float, ptr %3, align 4, !tbaa !18
  br label %.lr.ph54

.lr.ph:                                           ; preds = %23, %51
  %.04852 = phi i64 [ %52, %51 ], [ 1, %23 ]
  %24 = getelementptr inbounds %struct.rkv_t, ptr %3, i64 %.04852
  %25 = getelementptr inbounds i8, ptr %24, i64 4
  %26 = load i32, ptr %25, align 4, !tbaa !13
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds i64, ptr %5, i64 %27
  %29 = load i64, ptr %28, align 8, !tbaa !17
  %30 = icmp eq i64 %29, %.04852
  br i1 %30, label %39, label %31

31:                                               ; preds = %.lr.ph
  %32 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef 34, ptr noundef nonnull @.str.5)
  %33 = load i32, ptr %25, align 4, !tbaa !13
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds i64, ptr %5, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !17
  %37 = icmp eq i64 %36, %.04852
  br i1 %37, label %39, label %38

38:                                               ; preds = %31
  tail call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.5, i32 noundef 34, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__rpqCheckHeap) #4
  unreachable

39:                                               ; preds = %31, %.lr.ph
  %40 = load float, ptr %24, align 4, !tbaa !18
  %41 = add nsw i64 %.04852, -1
  %.udiv63 = lshr i64 %41, 1
  %42 = getelementptr inbounds %struct.rkv_t, ptr %3, i64 %.udiv63
  %43 = load float, ptr %42, align 4, !tbaa !18
  %44 = fcmp ogt float %40, %43
  br i1 %44, label %45, label %51

45:                                               ; preds = %39
  %46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, i32 noundef 34, ptr noundef nonnull @.str.5)
  %47 = load float, ptr %24, align 4, !tbaa !18
  %48 = load float, ptr %42, align 4, !tbaa !18
  %49 = fcmp ogt float %47, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %45
  tail call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.5, i32 noundef 34, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__rpqCheckHeap) #4
  unreachable

51:                                               ; preds = %39, %45
  %52 = add nuw i64 %.04852, 1
  %exitcond.not = icmp eq i64 %52, %6
  br i1 %exitcond.not, label %.preheader51, label %.lr.ph, !llvm.loop !19

.preheader:                                       ; preds = %76, %23, %.preheader51
  %53 = getelementptr inbounds i8, ptr %0, i64 8
  %54 = load i64, ptr %53, align 8, !tbaa !21
  %55 = icmp sgt i64 %54, 0
  br i1 %55, label %.lr.ph57.preheader, label %._crit_edge

.lr.ph57.preheader:                               ; preds = %.preheader
  %min.iters.check = icmp ult i64 %54, 4
  br i1 %min.iters.check, label %.lr.ph57.preheader66, label %vector.ph

.lr.ph57.preheader66:                             ; preds = %middle.block, %.lr.ph57.preheader
  %.256.ph = phi i64 [ 0, %.lr.ph57.preheader ], [ %n.vec, %middle.block ]
  %.04955.ph = phi i64 [ 0, %.lr.ph57.preheader ], [ %65, %middle.block ]
  br label %.lr.ph57

vector.ph:                                        ; preds = %.lr.ph57.preheader
  %n.vec = and i64 %54, 9223372036854775804
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %62, %vector.body ]
  %vec.phi64 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %63, %vector.body ]
  %56 = getelementptr inbounds i64, ptr %5, i64 %index
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  %wide.load = load <2 x i64>, ptr %56, align 8, !tbaa !17
  %wide.load65 = load <2 x i64>, ptr %57, align 8, !tbaa !17
  %58 = icmp ne <2 x i64> %wide.load, <i64 -1, i64 -1>
  %59 = icmp ne <2 x i64> %wide.load65, <i64 -1, i64 -1>
  %60 = zext <2 x i1> %58 to <2 x i64>
  %61 = zext <2 x i1> %59 to <2 x i64>
  %62 = add <2 x i64> %vec.phi, %60
  %63 = add <2 x i64> %vec.phi64, %61
  %index.next = add nuw i64 %index, 4
  %64 = icmp eq i64 %index.next, %n.vec
  br i1 %64, label %middle.block, label %vector.body, !llvm.loop !22

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %63, %62
  %65 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %54, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph57.preheader66

.lr.ph54:                                         ; preds = %.lr.ph54.preheader, %76
  %66 = phi float [ %77, %76 ], [ %.pre, %.lr.ph54.preheader ]
  %.153 = phi i64 [ %78, %76 ], [ 1, %.lr.ph54.preheader ]
  %67 = getelementptr inbounds %struct.rkv_t, ptr %3, i64 %.153
  %68 = load float, ptr %67, align 4, !tbaa !18
  %69 = fcmp ogt float %68, %66
  br i1 %69, label %70, label %76

70:                                               ; preds = %.lr.ph54
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21, i32 noundef 34, ptr noundef nonnull @.str.5)
  %72 = load float, ptr %67, align 4, !tbaa !18
  %73 = load float, ptr %3, align 4, !tbaa !18
  %74 = fcmp ogt float %72, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %70
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.5, i32 noundef 34, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__rpqCheckHeap) #4
  unreachable

76:                                               ; preds = %.lr.ph54, %70
  %77 = phi float [ %66, %.lr.ph54 ], [ %73, %70 ]
  %78 = add nuw i64 %.153, 1
  %exitcond61.not = icmp eq i64 %78, %6
  br i1 %exitcond61.not, label %.preheader, label %.lr.ph54, !llvm.loop !25

.lr.ph57:                                         ; preds = %.lr.ph57.preheader66, %.lr.ph57
  %.256 = phi i64 [ %82, %.lr.ph57 ], [ %.256.ph, %.lr.ph57.preheader66 ]
  %.04955 = phi i64 [ %spec.select, %.lr.ph57 ], [ %.04955.ph, %.lr.ph57.preheader66 ]
  %79 = getelementptr inbounds i64, ptr %5, i64 %.256
  %80 = load i64, ptr %79, align 8, !tbaa !17
  %.not = icmp ne i64 %80, -1
  %81 = zext i1 %.not to i64
  %spec.select = add nuw nsw i64 %.04955, %81
  %82 = add nuw nsw i64 %.256, 1
  %exitcond62.not = icmp eq i64 %82, %54
  br i1 %exitcond62.not, label %._crit_edge, label %.lr.ph57, !llvm.loop !26

._crit_edge:                                      ; preds = %.lr.ph57, %middle.block, %.preheader
  %.049.lcssa = phi i64 [ 0, %.preheader ], [ %65, %middle.block ], [ %spec.select, %.lr.ph57 ]
  %83 = icmp eq i64 %.049.lcssa, %6
  br i1 %83, label %88, label %84

84:                                               ; preds = %._crit_edge
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, i32 noundef 34, ptr noundef nonnull @.str.5)
  %86 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, i64 noundef %.049.lcssa, i64 noundef %6)
  %87 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  tail call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.5, i32 noundef 34, ptr noundef nonnull @__PRETTY_FUNCTION__.libmetis__rpqCheckHeap) #4
  unreachable

88:                                               ; preds = %._crit_edge, %1
  ret i32 1
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #3

attributes #0 = { 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" }
attributes #1 = { noreturn 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" }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn 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, !10, i64 16}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 24}
!12 = !{!6, !7, i64 0}
!13 = !{!14, !16, i64 4}
!14 = !{!"", !15, i64 0, !16, i64 4}
!15 = !{!"float", !8, i64 0}
!16 = !{!"int", !8, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!14, !15, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !7, i64 8}
!22 = distinct !{!22, !20, !23, !24}
!23 = !{!"llvm.loop.isvectorized", i32 1}
!24 = !{!"llvm.loop.unroll.runtime.disable"}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20, !24, !23}


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