; LLVM IR from siconos/siconos :: externals/lbl/metis4 (kmetis)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.graphdef = type { 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 }
%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 }

; 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 @METIS_WPartGraphKway(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) #1 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %struct.graphdef, align 8
  %28 = alloca %struct.controldef, align 8
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store ptr %3, ptr %16, align 8, !tbaa !5
  store ptr %4, ptr %17, align 8, !tbaa !5
  store ptr %5, ptr %18, align 8, !tbaa !5
  store ptr %6, ptr %19, align 8, !tbaa !5
  store ptr %7, ptr %20, align 8, !tbaa !5
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  store ptr %11, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 216, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 232, ptr %28) #3
  %29 = load ptr, ptr %19, align 8, !tbaa !5
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = icmp eq i32 %30, 1
  br i1 %31, label %32, label %37

32:                                               ; preds = %12
  %33 = load ptr, ptr %13, align 8, !tbaa !5
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = load ptr, ptr %15, align 8, !tbaa !5
  call void @__Change2CNumbering(i32 noundef %34, ptr noundef %35, ptr noundef %36)
  br label %37

37:                                               ; preds = %32, %12
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = load i32, ptr %38, align 4, !tbaa !9
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  %41 = load ptr, ptr %15, align 8, !tbaa !5
  %42 = load ptr, ptr %16, align 8, !tbaa !5
  %43 = load ptr, ptr %17, align 8, !tbaa !5
  %44 = load ptr, ptr %18, align 8, !tbaa !5
  %45 = load i32, ptr %44, align 4, !tbaa !9
  call void @__SetUpGraph(ptr noundef %27, i32 noundef 2, i32 noundef %39, i32 noundef 1, ptr noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %43, i32 noundef %45)
  %46 = load ptr, ptr %22, align 8, !tbaa !5
  %47 = getelementptr inbounds i32, ptr %46, i64 0
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %55

50:                                               ; preds = %37
  %51 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 2
  store i32 3, ptr %51, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 3
  store i32 1, ptr %52, align 4, !tbaa !16
  %53 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 4
  store i32 3, ptr %53, align 8, !tbaa !17
  %54 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 1
  store i32 0, ptr %54, align 4, !tbaa !18
  br label %72

55:                                               ; preds = %37
  %56 = load ptr, ptr %22, align 8, !tbaa !5
  %57 = getelementptr inbounds i32, ptr %56, i64 1
  %58 = load i32, ptr %57, align 4, !tbaa !9
  %59 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 2
  store i32 %58, ptr %59, align 8, !tbaa !11
  %60 = load ptr, ptr %22, align 8, !tbaa !5
  %61 = getelementptr inbounds i32, ptr %60, i64 2
  %62 = load i32, ptr %61, align 4, !tbaa !9
  %63 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 3
  store i32 %62, ptr %63, align 4, !tbaa !16
  %64 = load ptr, ptr %22, align 8, !tbaa !5
  %65 = getelementptr inbounds i32, ptr %64, i64 3
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 4
  store i32 %66, ptr %67, align 8, !tbaa !17
  %68 = load ptr, ptr %22, align 8, !tbaa !5
  %69 = getelementptr inbounds i32, ptr %68, i64 4
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 1
  store i32 %70, ptr %71, align 4, !tbaa !18
  br label %72

72:                                               ; preds = %55, %50
  %73 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 7
  store i32 2, ptr %73, align 4, !tbaa !19
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = load ptr, ptr %20, align 8, !tbaa !5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = call i32 @__ilog2(i32 noundef %77)
  %79 = mul nsw i32 40, %78
  %80 = sdiv i32 %75, %79
  %81 = load ptr, ptr %20, align 8, !tbaa !5
  %82 = load i32, ptr %81, align 4, !tbaa !9
  %83 = mul nsw i32 20, %82
  %84 = icmp sge i32 %80, %83
  br i1 %84, label %85, label %93

85:                                               ; preds = %72
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = load ptr, ptr %20, align 8, !tbaa !5
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = call i32 @__ilog2(i32 noundef %89)
  %91 = mul nsw i32 40, %90
  %92 = sdiv i32 %87, %91
  br label %97

93:                                               ; preds = %72
  %94 = load ptr, ptr %20, align 8, !tbaa !5
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = mul nsw i32 20, %95
  br label %97

97:                                               ; preds = %93, %85
  %98 = phi i32 [ %92, %85 ], [ %96, %93 ]
  %99 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 0
  store i32 %98, ptr %99, align 8, !tbaa !20
  %100 = getelementptr inbounds %struct.graphdef, ptr %27, i32 0, i32 5
  %101 = load ptr, ptr %100, align 8, !tbaa !21
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %109

103:                                              ; preds = %97
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = getelementptr inbounds %struct.graphdef, ptr %27, i32 0, i32 5
  %107 = load ptr, ptr %106, align 8, !tbaa !21
  %108 = call i32 @__idxsum(i32 noundef %105, ptr noundef %107)
  br label %112

109:                                              ; preds = %97
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %109, %103
  %113 = phi i32 [ %108, %103 ], [ %111, %109 ]
  %114 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 0
  %115 = load i32, ptr %114, align 8, !tbaa !20
  %116 = sdiv i32 %113, %115
  %117 = sitofp i32 %116 to double
  %118 = fmul double 1.500000e+00, %117
  %119 = fptosi double %118 to i32
  %120 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 5
  store i32 %119, ptr %120, align 4, !tbaa !23
  call void @__InitRandom(i32 noundef -1)
  %121 = load ptr, ptr %20, align 8, !tbaa !5
  %122 = load i32, ptr %121, align 4, !tbaa !9
  call void @__AllocateWorkSpace(ptr noundef %28, ptr noundef %27, i32 noundef %122)
  %123 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 1
  %124 = load i32, ptr %123, align 4, !tbaa !18
  %125 = and i32 %124, 1
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %128

127:                                              ; preds = %112
  call void @__InitTimers(ptr noundef %28)
  br label %128

128:                                              ; preds = %127, %112
  %129 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 1
  %130 = load i32, ptr %129, align 4, !tbaa !18
  %131 = and i32 %130, 1
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %138

133:                                              ; preds = %128
  %134 = call double @__seconds()
  %135 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 12
  %136 = load double, ptr %135, align 8, !tbaa !24
  %137 = fsub double %136, %134
  store double %137, ptr %135, align 8, !tbaa !24
  br label %138

138:                                              ; preds = %133, %128
  %139 = load ptr, ptr %20, align 8, !tbaa !5
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = load ptr, ptr %24, align 8, !tbaa !5
  %142 = load ptr, ptr %21, align 8, !tbaa !5
  %143 = call i32 @__MlevelKWayPartitioning(ptr noundef %28, ptr noundef %27, i32 noundef %140, ptr noundef %141, ptr noundef %142, float noundef 0x3FF07AE140000000)
  %144 = load ptr, ptr %23, align 8, !tbaa !5
  store i32 %143, ptr %144, align 4, !tbaa !9
  %145 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 1
  %146 = load i32, ptr %145, align 4, !tbaa !18
  %147 = and i32 %146, 1
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %154

149:                                              ; preds = %138
  %150 = call double @__seconds()
  %151 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 12
  %152 = load double, ptr %151, align 8, !tbaa !24
  %153 = fadd double %152, %150
  store double %153, ptr %151, align 8, !tbaa !24
  br label %154

154:                                              ; preds = %149, %138
  %155 = getelementptr inbounds %struct.controldef, ptr %28, i32 0, i32 1
  %156 = load i32, ptr %155, align 4, !tbaa !18
  %157 = and i32 %156, 1
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %160

159:                                              ; preds = %154
  call void @__PrintTimers(ptr noundef %28)
  br label %160

160:                                              ; preds = %159, %154
  call void @__FreeWorkSpace(ptr noundef %28, ptr noundef %27)
  %161 = load ptr, ptr %19, align 8, !tbaa !5
  %162 = load i32, ptr %161, align 4, !tbaa !9
  %163 = icmp eq i32 %162, 1
  br i1 %163, label %164, label %170

164:                                              ; preds = %160
  %165 = load ptr, ptr %13, align 8, !tbaa !5
  %166 = load i32, ptr %165, align 4, !tbaa !9
  %167 = load ptr, ptr %14, align 8, !tbaa !5
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  %169 = load ptr, ptr %24, align 8, !tbaa !5
  call void @__Change2FNumbering(i32 noundef %166, ptr noundef %167, ptr noundef %168, ptr noundef %169)
  br label %170

170:                                              ; preds = %164, %160
  call void @llvm.lifetime.end.p0(i64 232, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 216, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #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 void @__Change2CNumbering(i32 noundef, ptr noundef, ptr noundef) #2

declare void @__SetUpGraph(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

declare i32 @__ilog2(i32 noundef) #2

declare i32 @__idxsum(i32 noundef, ptr noundef) #2

declare void @__InitRandom(i32 noundef) #2

declare void @__AllocateWorkSpace(ptr noundef, ptr noundef, i32 noundef) #2

declare void @__InitTimers(ptr noundef) #2

declare double @__seconds() #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @__MlevelKWayPartitioning(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, float noundef) #1

declare void @__PrintTimers(ptr noundef) #2

declare void @__FreeWorkSpace(ptr noundef, ptr noundef) #2

declare void @__Change2FNumbering(i32 noundef, ptr noundef, ptr 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 8}
!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, !10, i64 12}
!17 = !{!12, !10, i64 16}
!18 = !{!12, !10, i64 4}
!19 = !{!12, !10, i64 28}
!20 = !{!12, !10, i64 0}
!21 = !{!22, !6, i64 32}
!22 = !{!"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}
!23 = !{!12, !10, i64 20}
!24 = !{!12, !15, i64 104}


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

%struct.graphdef = type { 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 }
%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 }

; Function Attrs: mustprogress 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 @METIS_WPartGraphKway(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef readonly %5, ptr nocapture noundef readonly %6, ptr nocapture noundef readonly %7, ptr noundef %8, ptr nocapture noundef readonly %9, ptr nocapture noundef writeonly %10, ptr noundef %11) local_unnamed_addr #1 {
  %13 = alloca %struct.graphdef, align 8
  %14 = alloca %struct.controldef, align 8
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 232, ptr nonnull %14) #3
  %15 = load i32, ptr %6, align 4, !tbaa !5
  %16 = icmp eq i32 %15, 1
  br i1 %16, label %17, label %19

17:                                               ; preds = %12
  %18 = load i32, ptr %0, align 4, !tbaa !5
  tail call void @__Change2CNumbering(i32 noundef %18, ptr noundef %1, ptr noundef %2) #3
  br label %19

19:                                               ; preds = %17, %12
  %20 = load i32, ptr %0, align 4, !tbaa !5
  %21 = load i32, ptr %5, align 4, !tbaa !5
  call void @__SetUpGraph(ptr noundef nonnull %13, i32 noundef 2, i32 noundef %20, i32 noundef 1, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %21) #3
  %22 = load i32, ptr %9, align 4, !tbaa !5
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %27, label %24

24:                                               ; preds = %19
  %25 = getelementptr inbounds i8, ptr %9, i64 4
  %26 = load <4 x i32>, ptr %25, align 4, !tbaa !5
  br label %27

27:                                               ; preds = %19, %24
  %28 = phi <4 x i32> [ %26, %24 ], [ <i32 3, i32 1, i32 3, i32 0>, %19 ]
  %29 = getelementptr inbounds i8, ptr %14, i64 4
  %30 = shufflevector <4 x i32> %28, <4 x i32> poison, <4 x i32> <i32 3, i32 0, i32 1, i32 2>
  store <4 x i32> %30, ptr %29, align 4
  %31 = getelementptr inbounds i8, ptr %14, i64 28
  store i32 2, ptr %31, align 4, !tbaa !9
  %32 = load i32, ptr %0, align 4, !tbaa !5
  %33 = load i32, ptr %7, align 4, !tbaa !5
  %34 = call i32 @__ilog2(i32 noundef %33) #3
  %35 = mul nsw i32 %34, 40
  %36 = sdiv i32 %32, %35
  %37 = load i32, ptr %7, align 4, !tbaa !5
  %38 = mul nsw i32 %37, 20
  %.not = icmp slt i32 %36, %38
  br i1 %.not, label %44, label %39

39:                                               ; preds = %27
  %40 = load i32, ptr %0, align 4, !tbaa !5
  %41 = call i32 @__ilog2(i32 noundef %37) #3
  %42 = mul nsw i32 %41, 40
  %43 = sdiv i32 %40, %42
  br label %44

44:                                               ; preds = %27, %39
  %45 = phi i32 [ %43, %39 ], [ %38, %27 ]
  store i32 %45, ptr %14, align 8, !tbaa !15
  %46 = getelementptr inbounds i8, ptr %13, i64 32
  %47 = load ptr, ptr %46, align 8, !tbaa !16
  %.not34 = icmp eq ptr %47, null
  %48 = load i32, ptr %0, align 4, !tbaa !5
  br i1 %.not34, label %51, label %49

49:                                               ; preds = %44
  %50 = call i32 @__idxsum(i32 noundef %48, ptr noundef nonnull %47) #3
  br label %51

51:                                               ; preds = %44, %49
  %52 = phi i32 [ %50, %49 ], [ %48, %44 ]
  %53 = sdiv i32 %52, %45
  %54 = sitofp i32 %53 to double
  %55 = fmul double %54, 1.500000e+00
  %56 = fptosi double %55 to i32
  %57 = getelementptr inbounds i8, ptr %14, i64 20
  store i32 %56, ptr %57, align 4, !tbaa !18
  call void @__InitRandom(i32 noundef -1) #3
  %58 = load i32, ptr %7, align 4, !tbaa !5
  call void @__AllocateWorkSpace(ptr noundef nonnull %14, ptr noundef nonnull %13, i32 noundef %58) #3
  %59 = load i32, ptr %29, align 4, !tbaa !19
  %60 = and i32 %59, 1
  %.not35 = icmp eq i32 %60, 0
  br i1 %.not35, label %.thread, label %61

61:                                               ; preds = %51
  call void @__InitTimers(ptr noundef nonnull %14) #3
  %.pre = load i32, ptr %29, align 4, !tbaa !19
  %.pre43 = and i32 %.pre, 1
  %62 = icmp eq i32 %.pre43, 0
  br i1 %62, label %.thread, label %63

63:                                               ; preds = %61
  %64 = call double @__seconds() #3
  %65 = getelementptr inbounds i8, ptr %14, i64 104
  %66 = load double, ptr %65, align 8, !tbaa !20
  %67 = fsub double %66, %64
  store double %67, ptr %65, align 8, !tbaa !20
  br label %.thread

.thread:                                          ; preds = %51, %63, %61
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = call i32 @__MlevelKWayPartitioning(ptr noundef nonnull %14, ptr noundef nonnull %13, i32 noundef %68, ptr noundef %11, ptr noundef %8, float noundef 0x3FF07AE140000000)
  store i32 %69, ptr %10, align 4, !tbaa !5
  %70 = load i32, ptr %29, align 4, !tbaa !19
  %71 = and i32 %70, 1
  %.not37 = icmp eq i32 %71, 0
  br i1 %.not37, label %.thread47, label %72

72:                                               ; preds = %.thread
  %73 = call double @__seconds() #3
  %74 = getelementptr inbounds i8, ptr %14, i64 104
  %75 = load double, ptr %74, align 8, !tbaa !20
  %76 = fadd double %73, %75
  store double %76, ptr %74, align 8, !tbaa !20
  %.pre42 = load i32, ptr %29, align 4, !tbaa !19
  %.pre44 = and i32 %.pre42, 1
  %77 = icmp eq i32 %.pre44, 0
  br i1 %77, label %.thread47, label %78

78:                                               ; preds = %72
  call void @__PrintTimers(ptr noundef nonnull %14) #3
  br label %.thread47

.thread47:                                        ; preds = %.thread, %78, %72
  call void @__FreeWorkSpace(ptr noundef nonnull %14, ptr noundef nonnull %13) #3
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = icmp eq i32 %79, 1
  br i1 %80, label %81, label %83

81:                                               ; preds = %.thread47
  %82 = load i32, ptr %0, align 4, !tbaa !5
  call void @__Change2FNumbering(i32 noundef %82, ptr noundef %1, ptr noundef %2, ptr noundef %11) #3
  br label %83

83:                                               ; preds = %81, %.thread47
  call void @llvm.lifetime.end.p0(i64 232, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %13) #3
  ret void
}

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

declare void @__Change2CNumbering(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @__SetUpGraph(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @__ilog2(i32 noundef) local_unnamed_addr #2

declare i32 @__idxsum(i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @__InitRandom(i32 noundef) local_unnamed_addr #2

declare void @__AllocateWorkSpace(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @__InitTimers(ptr noundef) local_unnamed_addr #2

declare double @__seconds() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @__MlevelKWayPartitioning(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, float noundef) local_unnamed_addr #1

declare void @__PrintTimers(ptr noundef) local_unnamed_addr #2

declare void @__FreeWorkSpace(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @__Change2FNumbering(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass