; LLVM IR from siconos/siconos :: externals/lbl/metis4/mkwayrefine.ll_ (MocRefineKWayHorizontal)

; 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.controldef = type { i32, i32, i32, i32, i32, i32, float, i32, i32, i32, i32, %struct.workspacedef, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%struct.workspacedef = type { ptr, i32, i32, ptr, ptr, i32, ptr, ptr }
%struct.graphdef = type { ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local void @__MocRefineKWayHorizontal(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  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 i32 %3, ptr %9, align 4, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  %11 = load ptr, ptr %6, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.controldef, ptr %11, i32 0, i32 1
  %13 = load i32, ptr %12, align 4, !tbaa !11
  %14 = and i32 %13, 1
  %15 = icmp ne i32 %14, 0
  br i1 %15, label %16, label %22

16:                                               ; preds = %5
  %17 = call double @__seconds()
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.controldef, ptr %18, i32 0, i32 17
  %20 = load double, ptr %19, align 8, !tbaa !16
  %21 = fsub double %20, %17
  store double %21, ptr %19, align 8, !tbaa !16
  br label %22

22:                                               ; preds = %16, %5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = load i32, ptr %9, align 4, !tbaa !9
  call void @__MocComputeKWayPartitionParams(ptr noundef %23, ptr noundef %24, i32 noundef %25)
  br label %26

26:                                               ; preds = %111, %22
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.controldef, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 4, !tbaa !11
  %30 = and i32 %29, 1
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %38

32:                                               ; preds = %26
  %33 = call double @__seconds()
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.controldef, ptr %34, i32 0, i32 19
  %36 = load double, ptr %35, align 8, !tbaa !17
  %37 = fsub double %36, %33
  store double %37, ptr %35, align 8, !tbaa !17
  br label %38

38:                                               ; preds = %32, %26
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.graphdef, ptr %39, i32 0, i32 24
  %41 = load i32, ptr %40, align 8, !tbaa !18
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.graphdef, ptr %43, i32 0, i32 26
  %45 = load ptr, ptr %44, align 8, !tbaa !20
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = call i32 @__MocIsHBalanced(i32 noundef %41, i32 noundef %42, ptr noundef %45, ptr noundef %46)
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %60, label %49

49:                                               ; preds = %38
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load i32, ptr %9, align 4, !tbaa !9
  call void @__MocComputeKWayBalanceBoundary(ptr noundef %50, ptr noundef %51, i32 noundef %52)
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  call void @__MCGreedy_KWayEdgeBalanceHorizontal(ptr noundef %53, ptr noundef %54, i32 noundef %55, ptr noundef %56, i32 noundef 4)
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = load i32, ptr %9, align 4, !tbaa !9
  call void @__ComputeKWayBoundary(ptr noundef %57, ptr noundef %58, i32 noundef %59)
  br label %60

60:                                               ; preds = %49, %38
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = load i32, ptr %9, align 4, !tbaa !9
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  call void @__MCRandom_KWayEdgeRefineHorizontal(ptr noundef %61, ptr noundef %62, i32 noundef %63, ptr noundef %64, i32 noundef 10)
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.controldef, ptr %65, i32 0, i32 1
  %67 = load i32, ptr %66, align 4, !tbaa !11
  %68 = and i32 %67, 1
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %76

70:                                               ; preds = %60
  %71 = call double @__seconds()
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.controldef, ptr %72, i32 0, i32 19
  %74 = load double, ptr %73, align 8, !tbaa !17
  %75 = fadd double %74, %71
  store double %75, ptr %73, align 8, !tbaa !17
  br label %76

76:                                               ; preds = %70, %60
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = icmp eq ptr %77, %78
  br i1 %79, label %80, label %81

80:                                               ; preds = %76
  br label %112

81:                                               ; preds = %76
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.graphdef, ptr %82, i32 0, i32 28
  %84 = load ptr, ptr %83, align 8, !tbaa !21
  store ptr %84, ptr %8, align 8, !tbaa !5
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.controldef, ptr %85, i32 0, i32 1
  %87 = load i32, ptr %86, align 4, !tbaa !11
  %88 = and i32 %87, 1
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %96

90:                                               ; preds = %81
  %91 = call double @__seconds()
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.controldef, ptr %92, i32 0, i32 20
  %94 = load double, ptr %93, align 8, !tbaa !22
  %95 = fsub double %94, %91
  store double %95, ptr %93, align 8, !tbaa !22
  br label %96

96:                                               ; preds = %90, %81
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = load i32, ptr %9, align 4, !tbaa !9
  call void @__MocProjectKWayPartition(ptr noundef %97, ptr noundef %98, i32 noundef %99)
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.controldef, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !11
  %103 = and i32 %102, 1
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %111

105:                                              ; preds = %96
  %106 = call double @__seconds()
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.controldef, ptr %107, i32 0, i32 20
  %109 = load double, ptr %108, align 8, !tbaa !22
  %110 = fadd double %109, %106
  store double %110, ptr %108, align 8, !tbaa !22
  br label %111

111:                                              ; preds = %105, %96
  br label %26

112:                                              ; preds = %80
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.graphdef, ptr %113, i32 0, i32 24
  %115 = load i32, ptr %114, align 8, !tbaa !18
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.graphdef, ptr %117, i32 0, i32 26
  %119 = load ptr, ptr %118, align 8, !tbaa !20
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = call i32 @__MocIsHBalanced(i32 noundef %115, i32 noundef %116, ptr noundef %119, ptr noundef %120)
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %138, label %123

123:                                              ; preds = %112
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load i32, ptr %9, align 4, !tbaa !9
  call void @__MocComputeKWayBalanceBoundary(ptr noundef %124, ptr noundef %125, i32 noundef %126)
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  call void @__MCGreedy_KWayEdgeBalanceHorizontal(ptr noundef %127, ptr noundef %128, i32 noundef %129, ptr noundef %130, i32 noundef 4)
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = load i32, ptr %9, align 4, !tbaa !9
  call void @__ComputeKWayBoundary(ptr noundef %131, ptr noundef %132, i32 noundef %133)
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  call void @__MCRandom_KWayEdgeRefineHorizontal(ptr noundef %134, ptr noundef %135, i32 noundef %136, ptr noundef %137, i32 noundef 10)
  br label %138

138:                                              ; preds = %123, %112
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.controldef, ptr %139, i32 0, i32 1
  %141 = load i32, ptr %140, align 4, !tbaa !11
  %142 = and i32 %141, 1
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %150

144:                                              ; preds = %138
  %145 = call double @__seconds()
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.controldef, ptr %146, i32 0, i32 17
  %148 = load double, ptr %147, align 8, !tbaa !16
  %149 = fadd double %148, %145
  store double %149, ptr %147, align 8, !tbaa !16
  br label %150

150:                                              ; preds = %144, %138
  ret void
}

declare double @__seconds() #1

; Function Attrs: nounwind uwtable
declare dso_local void @__MocComputeKWayPartitionParams(ptr noundef, ptr noundef, i32 noundef) #0

declare i32 @__MocIsHBalanced(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @__MocComputeKWayBalanceBoundary(ptr noundef, ptr noundef, i32 noundef) #0

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @__MocProjectKWayPartition(ptr noundef, ptr noundef, i32 noundef) #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"controldef", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !13, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !14, i64 48, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !15, i64 200, !15, i64 208, !15, i64 216, !15, i64 224}
!13 = !{!"float", !7, i64 0}
!14 = !{!"workspacedef", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !10, i64 32, !6, i64 40, !6, i64 48}
!15 = !{!"double", !7, i64 0}
!16 = !{!12, !15, i64 144}
!17 = !{!12, !15, i64 160}
!18 = !{!19, !10, i64 176}
!19 = !{!"graphdef", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !6, i64 96, !6, i64 104, !10, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !10, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208}
!20 = !{!19, !6, i64 192}
!21 = !{!19, !6, i64 208}
!22 = !{!12, !15, i64 168}


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

; Function Attrs: nounwind uwtable
define dso_local void @__MocRefineKWayHorizontal(ptr noundef %0, ptr noundef readnone %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = getelementptr inbounds i8, ptr %0, i64 4
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = and i32 %7, 1
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %14, label %9

9:                                                ; preds = %5
  %10 = tail call double @__seconds() #2
  %11 = getelementptr inbounds i8, ptr %0, i64 144
  %12 = load double, ptr %11, align 8, !tbaa !14
  %13 = fsub double %12, %10
  store double %13, ptr %11, align 8, !tbaa !14
  br label %14

14:                                               ; preds = %9, %5
  tail call void @__MocComputeKWayPartitionParams(ptr noundef nonnull %0, ptr noundef %2, i32 noundef %3)
  %15 = getelementptr inbounds i8, ptr %0, i64 160
  %16 = getelementptr inbounds i8, ptr %0, i64 168
  br label %17

17:                                               ; preds = %.backedge, %14
  %.0 = phi ptr [ %2, %14 ], [ %42, %.backedge ]
  %18 = load i32, ptr %6, align 4, !tbaa !5
  %19 = and i32 %18, 1
  %.not56 = icmp eq i32 %19, 0
  br i1 %.not56, label %24, label %20

20:                                               ; preds = %17
  %21 = tail call double @__seconds() #2
  %22 = load double, ptr %15, align 8, !tbaa !15
  %23 = fsub double %22, %21
  store double %23, ptr %15, align 8, !tbaa !15
  br label %24

24:                                               ; preds = %20, %17
  %25 = getelementptr inbounds i8, ptr %.0, i64 176
  %26 = load i32, ptr %25, align 8, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %.0, i64 192
  %28 = load ptr, ptr %27, align 8, !tbaa !18
  %29 = tail call i32 @__MocIsHBalanced(i32 noundef %26, i32 noundef %3, ptr noundef %28, ptr noundef %4) #2
  %.not57 = icmp eq i32 %29, 0
  br i1 %.not57, label %30, label %31

30:                                               ; preds = %24
  tail call void @__MocComputeKWayBalanceBoundary(ptr noundef nonnull %0, ptr noundef nonnull %.0, i32 noundef %3)
  tail call void @__MCGreedy_KWayEdgeBalanceHorizontal(ptr noundef nonnull %0, ptr noundef nonnull %.0, i32 noundef %3, ptr noundef %4, i32 noundef 4) #2
  tail call void @__ComputeKWayBoundary(ptr noundef nonnull %0, ptr noundef nonnull %.0, i32 noundef %3) #2
  br label %31

31:                                               ; preds = %30, %24
  tail call void @__MCRandom_KWayEdgeRefineHorizontal(ptr noundef nonnull %0, ptr noundef nonnull %.0, i32 noundef %3, ptr noundef %4, i32 noundef 10) #2
  %32 = load i32, ptr %6, align 4, !tbaa !5
  %33 = and i32 %32, 1
  %.not58 = icmp eq i32 %33, 0
  br i1 %.not58, label %38, label %34

34:                                               ; preds = %31
  %35 = tail call double @__seconds() #2
  %36 = load double, ptr %15, align 8, !tbaa !15
  %37 = fadd double %35, %36
  store double %37, ptr %15, align 8, !tbaa !15
  br label %38

38:                                               ; preds = %34, %31
  %39 = icmp eq ptr %.0, %1
  br i1 %39, label %56, label %40

40:                                               ; preds = %38
  %41 = getelementptr inbounds i8, ptr %.0, i64 208
  %42 = load ptr, ptr %41, align 8, !tbaa !19
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = and i32 %43, 1
  %.not59 = icmp eq i32 %44, 0
  br i1 %.not59, label %49, label %45

45:                                               ; preds = %40
  %46 = tail call double @__seconds() #2
  %47 = load double, ptr %16, align 8, !tbaa !20
  %48 = fsub double %47, %46
  store double %48, ptr %16, align 8, !tbaa !20
  br label %49

49:                                               ; preds = %45, %40
  tail call void @__MocProjectKWayPartition(ptr noundef nonnull %0, ptr noundef %42, i32 noundef %3)
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = and i32 %50, 1
  %.not60 = icmp eq i32 %51, 0
  br i1 %.not60, label %.backedge, label %52

52:                                               ; preds = %49
  %53 = tail call double @__seconds() #2
  %54 = load double, ptr %16, align 8, !tbaa !20
  %55 = fadd double %53, %54
  store double %55, ptr %16, align 8, !tbaa !20
  br label %.backedge

.backedge:                                        ; preds = %52, %49
  br label %17

56:                                               ; preds = %38
  %57 = getelementptr inbounds i8, ptr %.0, i64 176
  %58 = getelementptr inbounds i8, ptr %.0, i64 192
  %59 = load i32, ptr %57, align 8, !tbaa !16
  %60 = load ptr, ptr %58, align 8, !tbaa !18
  %61 = tail call i32 @__MocIsHBalanced(i32 noundef %59, i32 noundef %3, ptr noundef %60, ptr noundef %4) #2
  %.not61 = icmp eq i32 %61, 0
  br i1 %.not61, label %62, label %63

62:                                               ; preds = %56
  tail call void @__MocComputeKWayBalanceBoundary(ptr noundef nonnull %0, ptr noundef nonnull %.0, i32 noundef %3)
  tail call void @__MCGreedy_KWayEdgeBalanceHorizontal(ptr noundef nonnull %0, ptr noundef nonnull %.0, i32 noundef %3, ptr noundef %4, i32 noundef 4) #2
  tail call void @__ComputeKWayBoundary(ptr noundef nonnull %0, ptr noundef nonnull %.0, i32 noundef %3) #2
  tail call void @__MCRandom_KWayEdgeRefineHorizontal(ptr noundef nonnull %0, ptr noundef nonnull %.0, i32 noundef %3, ptr noundef %4, i32 noundef 10) #2
  br label %63

63:                                               ; preds = %62, %56
  %64 = load i32, ptr %6, align 4, !tbaa !5
  %65 = and i32 %64, 1
  %.not62 = icmp eq i32 %65, 0
  br i1 %.not62, label %71, label %66

66:                                               ; preds = %63
  %67 = tail call double @__seconds() #2
  %68 = getelementptr inbounds i8, ptr %0, i64 144
  %69 = load double, ptr %68, align 8, !tbaa !14
  %70 = fadd double %67, %69
  store double %70, ptr %68, align 8, !tbaa !14
  br label %71

71:                                               ; preds = %66, %63
  ret void
}

declare double @__seconds() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @__MocComputeKWayPartitionParams(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare i32 @__MocIsHBalanced(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @__MocComputeKWayBalanceBoundary(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @__MocProjectKWayPartition(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 4}
!6 = !{!"controldef", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !11, i64 48, !13, i64 104, !13, i64 112, !13, i64 120, !13, 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}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"workspacedef", !12, i64 0, !7, i64 8, !7, i64 12, !12, i64 16, !12, i64 24, !7, i64 32, !12, i64 40, !12, i64 48}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"double", !8, i64 0}
!14 = !{!6, !13, i64 144}
!15 = !{!6, !13, i64 160}
!16 = !{!17, !7, i64 176}
!17 = !{!"graphdef", !12, i64 0, !12, i64 8, !7, i64 16, !7, i64 20, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !7, i64 88, !7, i64 92, !12, i64 96, !12, i64 104, !7, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !7, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208}
!18 = !{!17, !12, i64 192}
!19 = !{!17, !12, i64 208}
!20 = !{!6, !13, i64 168}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass