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

; 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.graph_t = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%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.23 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [39 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__Print2WayRefineStats(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3, i32 noundef %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store float %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %12 = load i32, ptr %10, align 4, !tbaa !11
  %13 = icmp eq i32 %12, -2
  br i1 %13, label %14, label %102

14:                                               ; preds = %5
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.graph_t, ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 8, !tbaa !13
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.graph_t, ptr %19, i32 0, i32 21
  %21 = load i32, ptr %20, align 8, !tbaa !15
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.graph_t, ptr %22, i32 0, i32 17
  %24 = load i32, ptr %23, align 8, !tbaa !16
  %25 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, i32 noundef %18, i32 noundef %21, i32 noundef %24)
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %27

27:                                               ; preds = %89, %14
  %28 = load i32, ptr %11, align 4, !tbaa !11
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.graph_t, ptr %29, i32 0, i32 2
  %31 = load i32, ptr %30, align 8, !tbaa !17
  %32 = icmp slt i32 %28, %31
  br i1 %32, label %33, label %92

33:                                               ; preds = %27
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.graph_t, ptr %34, i32 0, i32 20
  %36 = load ptr, ptr %35, align 8, !tbaa !18
  %37 = load i32, ptr %11, align 4, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i32, ptr %36, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !11
  %41 = sitofp i32 %40 to float
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.graph_t, ptr %42, i32 0, i32 9
  %44 = load ptr, ptr %43, align 8, !tbaa !19
  %45 = load i32, ptr %11, align 4, !tbaa !11
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds float, ptr %44, i64 %46
  %48 = load float, ptr %47, align 4, !tbaa !9
  %49 = fmul float %41, %48
  %50 = fpext float %49 to double
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.graph_t, ptr %51, i32 0, i32 20
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.graph_t, ptr %54, i32 0, i32 2
  %56 = load i32, ptr %55, align 8, !tbaa !17
  %57 = load i32, ptr %11, align 4, !tbaa !11
  %58 = add nsw i32 %56, %57
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %53, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !11
  %62 = sitofp i32 %61 to float
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.graph_t, ptr %63, i32 0, i32 9
  %65 = load ptr, ptr %64, align 8, !tbaa !19
  %66 = load i32, ptr %11, align 4, !tbaa !11
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds float, ptr %65, i64 %67
  %69 = load float, ptr %68, align 4, !tbaa !9
  %70 = fmul float %62, %69
  %71 = fpext float %70 to double
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = load i32, ptr %11, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds float, ptr %72, i64 %74
  %76 = load float, ptr %75, align 4, !tbaa !9
  %77 = fpext float %76 to double
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.graph_t, ptr %79, i32 0, i32 2
  %81 = load i32, ptr %80, align 8, !tbaa !17
  %82 = load i32, ptr %11, align 4, !tbaa !11
  %83 = add nsw i32 %81, %82
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds float, ptr %78, i64 %84
  %86 = load float, ptr %85, align 4, !tbaa !9
  %87 = fpext float %86 to double
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, double noundef %50, double noundef %71, double noundef %77, double noundef %87)
  br label %89

89:                                               ; preds = %33
  %90 = load i32, ptr %11, align 4, !tbaa !11
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %11, align 4, !tbaa !11
  br label %27, !llvm.loop !20

92:                                               ; preds = %27
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ctrl_t, ptr %94, i32 0, i32 25
  %96 = load ptr, ptr %95, align 8, !tbaa !22
  %97 = call float @libmetis__ComputeLoadImbalance(ptr noundef %93, i32 noundef 2, ptr noundef %96)
  %98 = fpext float %97 to double
  %99 = load float, ptr %9, align 4, !tbaa !9
  %100 = fpext float %99 to double
  %101 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, double noundef %98, double noundef %100)
  br label %170

102:                                              ; preds = %5
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.graph_t, ptr %103, i32 0, i32 17
  %105 = load i32, ptr %104, align 8, !tbaa !16
  %106 = load i32, ptr %10, align 4, !tbaa !11
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.graph_t, ptr %107, i32 0, i32 21
  %109 = load i32, ptr %108, align 8, !tbaa !15
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, i32 noundef %105, i32 noundef %106, i32 noundef %109)
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %111

111:                                              ; preds = %157, %102
  %112 = load i32, ptr %11, align 4, !tbaa !11
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.graph_t, ptr %113, i32 0, i32 2
  %115 = load i32, ptr %114, align 8, !tbaa !17
  %116 = icmp slt i32 %112, %115
  br i1 %116, label %117, label %160

117:                                              ; preds = %111
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.graph_t, ptr %118, i32 0, i32 20
  %120 = load ptr, ptr %119, align 8, !tbaa !18
  %121 = load i32, ptr %11, align 4, !tbaa !11
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds i32, ptr %120, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !11
  %125 = sitofp i32 %124 to float
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.graph_t, ptr %126, i32 0, i32 9
  %128 = load ptr, ptr %127, align 8, !tbaa !19
  %129 = load i32, ptr %11, align 4, !tbaa !11
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds float, ptr %128, i64 %130
  %132 = load float, ptr %131, align 4, !tbaa !9
  %133 = fmul float %125, %132
  %134 = fpext float %133 to double
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.graph_t, ptr %135, i32 0, i32 20
  %137 = load ptr, ptr %136, align 8, !tbaa !18
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.graph_t, ptr %138, i32 0, i32 2
  %140 = load i32, ptr %139, align 8, !tbaa !17
  %141 = load i32, ptr %11, align 4, !tbaa !11
  %142 = add nsw i32 %140, %141
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds i32, ptr %137, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !11
  %146 = sitofp i32 %145 to float
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.graph_t, ptr %147, i32 0, i32 9
  %149 = load ptr, ptr %148, align 8, !tbaa !19
  %150 = load i32, ptr %11, align 4, !tbaa !11
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds float, ptr %149, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !9
  %154 = fmul float %146, %153
  %155 = fpext float %154 to double
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, double noundef %134, double noundef %155)
  br label %157

157:                                              ; preds = %117
  %158 = load i32, ptr %11, align 4, !tbaa !11
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %11, align 4, !tbaa !11
  br label %111, !llvm.loop !26

160:                                              ; preds = %111
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.ctrl_t, ptr %162, i32 0, i32 25
  %164 = load ptr, ptr %163, align 8, !tbaa !22
  %165 = call float @libmetis__ComputeLoadImbalance(ptr noundef %161, i32 noundef 2, ptr noundef %164)
  %166 = fpext float %165 to double
  %167 = load float, ptr %9, align 4, !tbaa !9
  %168 = fpext float %167 to double
  %169 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, double noundef %166, double noundef %168)
  br label %170

170:                                              ; preds = %160, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  ret void
}

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

@.str.23 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__Print2WayRefineStats(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readonly %2, float noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = icmp eq i32 %4, -2
  %7 = getelementptr inbounds i8, ptr %1, i64 136
  br i1 %6, label %8, label %50

8:                                                ; preds = %5
  %9 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  %10 = load i32, ptr %1, align 8, !tbaa !5
  %11 = load i32, ptr %7, align 8, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %1, i64 112
  %13 = load i32, ptr %12, align 8, !tbaa !12
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26, i32 noundef %10, i32 noundef %11, i32 noundef %13)
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27)
  %16 = getelementptr inbounds i8, ptr %1, i64 8
  %17 = load i32, ptr %16, align 8, !tbaa !13
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %.lr.ph47, label %._crit_edge48

.lr.ph47:                                         ; preds = %8
  %19 = getelementptr inbounds i8, ptr %1, i64 128
  %20 = getelementptr inbounds i8, ptr %1, i64 64
  br label %21

21:                                               ; preds = %.lr.ph47, %21
  %indvars.iv50 = phi i64 [ 0, %.lr.ph47 ], [ %indvars.iv.next51, %21 ]
  %22 = phi i32 [ %17, %.lr.ph47 ], [ %47, %21 ]
  %23 = load ptr, ptr %19, align 8, !tbaa !14
  %24 = getelementptr inbounds i32, ptr %23, i64 %indvars.iv50
  %25 = load i32, ptr %24, align 4, !tbaa !15
  %26 = sitofp i32 %25 to float
  %27 = load ptr, ptr %20, align 8, !tbaa !16
  %28 = getelementptr inbounds float, ptr %27, i64 %indvars.iv50
  %29 = load float, ptr %28, align 4, !tbaa !17
  %30 = fmul float %29, %26
  %31 = fpext float %30 to double
  %32 = trunc nuw nsw i64 %indvars.iv50 to i32
  %33 = add nsw i32 %22, %32
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds i32, ptr %23, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %37 = sitofp i32 %36 to float
  %38 = fmul float %29, %37
  %39 = fpext float %38 to double
  %40 = getelementptr inbounds float, ptr %2, i64 %indvars.iv50
  %41 = load float, ptr %40, align 4, !tbaa !17
  %42 = fpext float %41 to double
  %43 = getelementptr inbounds float, ptr %2, i64 %34
  %44 = load float, ptr %43, align 4, !tbaa !17
  %45 = fpext float %44 to double
  %46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28, double noundef %31, double noundef %39, double noundef %42, double noundef %45)
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %47 = load i32, ptr %16, align 8, !tbaa !13
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv.next51, %48
  br i1 %49, label %21, label %._crit_edge48, !llvm.loop !19

50:                                               ; preds = %5
  %51 = getelementptr inbounds i8, ptr %1, i64 112
  %52 = load i32, ptr %51, align 8, !tbaa !12
  %53 = load i32, ptr %7, align 8, !tbaa !11
  %54 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, i32 noundef %52, i32 noundef %4, i32 noundef %53)
  %55 = getelementptr inbounds i8, ptr %1, i64 8
  %56 = load i32, ptr %55, align 8, !tbaa !13
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %.lr.ph, label %._crit_edge48

.lr.ph:                                           ; preds = %50
  %58 = getelementptr inbounds i8, ptr %1, i64 128
  %59 = getelementptr inbounds i8, ptr %1, i64 64
  br label %60

60:                                               ; preds = %.lr.ph, %60
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %60 ]
  %61 = phi i32 [ %56, %.lr.ph ], [ %80, %60 ]
  %62 = load ptr, ptr %58, align 8, !tbaa !14
  %63 = getelementptr inbounds i32, ptr %62, i64 %indvars.iv
  %64 = load i32, ptr %63, align 4, !tbaa !15
  %65 = sitofp i32 %64 to float
  %66 = load ptr, ptr %59, align 8, !tbaa !16
  %67 = getelementptr inbounds float, ptr %66, i64 %indvars.iv
  %68 = load float, ptr %67, align 4, !tbaa !17
  %69 = fmul float %68, %65
  %70 = fpext float %69 to double
  %71 = trunc nuw nsw i64 %indvars.iv to i32
  %72 = add nsw i32 %61, %71
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr %62, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !15
  %76 = sitofp i32 %75 to float
  %77 = fmul float %68, %76
  %78 = fpext float %77 to double
  %79 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, double noundef %70, double noundef %78)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %80 = load i32, ptr %55, align 8, !tbaa !13
  %81 = sext i32 %80 to i64
  %82 = icmp slt i64 %indvars.iv.next, %81
  br i1 %82, label %60, label %._crit_edge48, !llvm.loop !21

._crit_edge48:                                    ; preds = %60, %21, %50, %8
  %83 = getelementptr inbounds i8, ptr %0, i64 120
  %84 = load ptr, ptr %83, align 8, !tbaa !22
  %85 = tail call float @libmetis__ComputeLoadImbalance(ptr noundef nonnull %1, i32 noundef 2, ptr noundef %84) #3
  %86 = fpext float %85 to double
  %87 = fpext float %3 to double
  %88 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29, double noundef %86, double noundef %87)
  ret void
}

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

declare float @libmetis__ComputeLoadImbalance(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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, !7, i64 0}
!6 = !{!"graph_t", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 116, !10, i64 120, !10, i64 128, !7, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 136}
!12 = !{!6, !7, i64 112}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !10, i64 128}
!15 = !{!7, !7, i64 0}
!16 = !{!6, !10, i64 64}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !10, i64 120}
!23 = !{!"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, !18, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !18, i64 128, !24, i64 136, !24, i64 144, !24, i64 152, !24, i64 160, !24, i64 168, !24, i64 176, !24, i64 184, !24, i64 192, !24, i64 200, !24, i64 208, !24, i64 216, !24, i64 224, !10, i64 232, !25, i64 240, !25, i64 248, !25, 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}
!24 = !{!"double", !8, i64 0}
!25 = !{!"long", !8, i64 0}


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