; LLVM IR from ekoontz/graphlab :: src/graphlab/extern/metis/libmetis/minitpart2.ll_libmetis (MocGrowBisection2)

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

@.str.2 = external hidden unnamed_addr constant [23 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__MocGrowBisection2(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.graphdef, ptr %21, i32 0, i32 0
  %23 = load i64, ptr %22, align 8, !tbaa !9
  store i64 %23, ptr %12, align 8, !tbaa !13
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  call void @libmetis__MocAllocate2WayPartitionMemory(ptr noundef %24, ptr noundef %25)
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.graphdef, ptr %26, i32 0, i32 18
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  store ptr %28, ptr %20, align 8, !tbaa !5
  %29 = load i64, ptr %12, align 8, !tbaa !13
  %30 = call ptr @libmetis__idxmalloc(i64 noundef %29, ptr noundef @.str.2)
  store ptr %30, ptr %19, align 8, !tbaa !5
  %31 = load i64, ptr %12, align 8, !tbaa !13
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.controldef, ptr %32, i32 0, i32 0
  %34 = load i64, ptr %33, align 8, !tbaa !15
  %35 = icmp sle i64 %31, %34
  %36 = zext i1 %35 to i64
  %37 = select i1 %35, i32 3, i32 8
  %38 = mul nsw i32 2, %37
  %39 = sext i32 %38 to i64
  store i64 %39, ptr %17, align 8, !tbaa !13
  store i64 0, ptr %18, align 8, !tbaa !13
  br label %40

40:                                               ; preds = %97, %4
  %41 = load i64, ptr %18, align 8, !tbaa !13
  %42 = load i64, ptr %17, align 8, !tbaa !13
  %43 = icmp slt i64 %41, %42
  br i1 %43, label %44, label %100

44:                                               ; preds = %40
  %45 = load i64, ptr %12, align 8, !tbaa !13
  %46 = load ptr, ptr %20, align 8, !tbaa !5
  %47 = call ptr @libmetis__idxset(i64 noundef %45, i64 noundef 1, ptr noundef %46)
  %48 = load ptr, ptr %20, align 8, !tbaa !5
  %49 = load i64, ptr %12, align 8, !tbaa !13
  %50 = sitofp i64 %49 to double
  %51 = fmul double 0x3E00000000000000, %50
  %52 = call i32 @rand() #5
  %53 = sitofp i32 %52 to double
  %54 = fmul double %51, %53
  %55 = fptosi double %54 to i32
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i64, ptr %48, i64 %56
  store i64 0, ptr %57, align 8, !tbaa !13
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  call void @libmetis__MocCompute2WayPartitionParams(ptr noundef %58, ptr noundef %59)
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  call void @libmetis__MocBalance2Way2(ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %63)
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  call void @libmetis__MocFM_2WayEdgeRefine2(ptr noundef %64, ptr noundef %65, ptr noundef %66, ptr noundef %67, i64 noundef 4)
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  call void @libmetis__MocBalance2Way2(ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71)
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  call void @libmetis__MocFM_2WayEdgeRefine2(ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, i64 noundef 4)
  %76 = load i64, ptr %18, align 8, !tbaa !13
  %77 = icmp eq i64 %76, 0
  br i1 %77, label %84, label %78

78:                                               ; preds = %44
  %79 = load i64, ptr %15, align 8, !tbaa !13
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.graphdef, ptr %80, i32 0, i32 16
  %82 = load i64, ptr %81, align 8, !tbaa !20
  %83 = icmp sgt i64 %79, %82
  br i1 %83, label %84, label %96

84:                                               ; preds = %78, %44
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.graphdef, ptr %85, i32 0, i32 16
  %87 = load i64, ptr %86, align 8, !tbaa !20
  store i64 %87, ptr %15, align 8, !tbaa !13
  %88 = load ptr, ptr %19, align 8, !tbaa !5
  %89 = load ptr, ptr %20, align 8, !tbaa !5
  %90 = load i64, ptr %12, align 8, !tbaa !13
  %91 = mul i64 8, %90
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %88, ptr align 1 %89, i64 %91, i1 false)
  %92 = load i64, ptr %15, align 8, !tbaa !13
  %93 = icmp eq i64 %92, 0
  br i1 %93, label %94, label %95

94:                                               ; preds = %84
  br label %100

95:                                               ; preds = %84
  br label %96

96:                                               ; preds = %95, %78
  br label %97

97:                                               ; preds = %96
  %98 = load i64, ptr %18, align 8, !tbaa !13
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %18, align 8, !tbaa !13
  br label %40, !llvm.loop !21

100:                                              ; preds = %94, %40
  %101 = load i64, ptr %15, align 8, !tbaa !13
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.graphdef, ptr %102, i32 0, i32 16
  store i64 %101, ptr %103, align 8, !tbaa !20
  %104 = load ptr, ptr %20, align 8, !tbaa !5
  %105 = load ptr, ptr %19, align 8, !tbaa !5
  %106 = load i64, ptr %12, align 8, !tbaa !13
  %107 = mul i64 8, %106
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %104, ptr align 1 %105, i64 %107, i1 false)
  call void (ptr, ...) @gk_free(ptr noundef %19, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  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 @libmetis__MocAllocate2WayPartitionMemory(ptr noundef, ptr noundef) #2

declare ptr @libmetis__idxmalloc(i64 noundef, ptr noundef) #2

declare ptr @libmetis__idxset(i64 noundef, i64 noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @rand() #3

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

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

declare void @libmetis__MocFM_2WayEdgeRefine2(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare void @gk_free(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 "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"graphdef", !11, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !11, i64 112, !11, i64 120, !6, i64 128, !6, i64 136, !11, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !11, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !6, i64 128}
!15 = !{!16, !11, i64 0}
!16 = !{!"controldef", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !17, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !18, i64 88, !19, i64 152, !19, i64 160, !19, i64 168, !19, i64 176, !19, i64 184, !19, i64 192, !19, i64 200, !19, i64 208, !19, i64 216, !19, i64 224, !19, i64 232, !19, i64 240, !19, i64 248, !19, i64 256, !19, i64 264, !19, i64 272}
!17 = !{!"float", !7, i64 0}
!18 = !{!"workspacedef", !6, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !6, i64 32, !11, i64 40, !6, i64 48, !6, i64 56}
!19 = !{!"double", !7, i64 0}
!20 = !{!10, !11, i64 112}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; 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.2 = external hidden unnamed_addr constant [23 x i8], align 1

; 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 @libmetis__MocGrowBisection2(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %6 = load i64, ptr %1, align 8, !tbaa !5
  tail call void @libmetis__MocAllocate2WayPartitionMemory(ptr noundef %0, ptr noundef nonnull %1) #5
  %7 = getelementptr inbounds i8, ptr %1, i64 128
  %8 = load ptr, ptr %7, align 8, !tbaa !12
  %9 = tail call ptr @libmetis__idxmalloc(i64 noundef %6, ptr noundef nonnull @.str.2) #5
  store ptr %9, ptr %5, align 8, !tbaa !13
  %10 = load i64, ptr %0, align 8, !tbaa !14
  %.not = icmp sgt i64 %6, %10
  %11 = select i1 %.not, i64 16, i64 6
  %12 = sitofp i64 %6 to double
  %13 = fmul double %12, 0x3E00000000000000
  %14 = getelementptr inbounds i8, ptr %1, i64 112
  %15 = shl i64 %6, 3
  %16 = tail call ptr @libmetis__idxset(i64 noundef %6, i64 noundef 1, ptr noundef %8) #5
  %17 = tail call i32 @rand() #5
  %18 = sitofp i32 %17 to double
  %19 = fmul double %13, %18
  %20 = fptosi double %19 to i32
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds i64, ptr %8, i64 %21
  store i64 0, ptr %22, align 8, !tbaa !19
  tail call void @libmetis__MocCompute2WayPartitionParams(ptr noundef nonnull %0, ptr noundef nonnull %1) #5
  tail call void @libmetis__MocBalance2Way2(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3) #5
  tail call void @libmetis__MocFM_2WayEdgeRefine2(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, i64 noundef 4) #5
  tail call void @libmetis__MocBalance2Way2(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3) #5
  tail call void @libmetis__MocFM_2WayEdgeRefine2(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, i64 noundef 4) #5
  %.pre = load i64, ptr %14, align 8, !tbaa !20
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr nonnull align 1 %8, i64 %15, i1 false)
  %23 = icmp eq i64 %.pre, 0
  br i1 %23, label %.loopexit, label %.peel.next

.peel.next:                                       ; preds = %4, %35
  %.046 = phi i64 [ %.1, %35 ], [ %.pre, %4 ]
  %.04245 = phi i64 [ %36, %35 ], [ 1, %4 ]
  %24 = tail call ptr @libmetis__idxset(i64 noundef %6, i64 noundef 1, ptr noundef %8) #5
  %25 = tail call i32 @rand() #5
  %26 = sitofp i32 %25 to double
  %27 = fmul double %13, %26
  %28 = fptosi double %27 to i32
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds i64, ptr %8, i64 %29
  store i64 0, ptr %30, align 8, !tbaa !19
  tail call void @libmetis__MocCompute2WayPartitionParams(ptr noundef nonnull %0, ptr noundef nonnull %1) #5
  tail call void @libmetis__MocBalance2Way2(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3) #5
  tail call void @libmetis__MocFM_2WayEdgeRefine2(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, i64 noundef 4) #5
  tail call void @libmetis__MocBalance2Way2(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3) #5
  tail call void @libmetis__MocFM_2WayEdgeRefine2(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, i64 noundef 4) #5
  %31 = load i64, ptr %14, align 8, !tbaa !20
  %32 = icmp sgt i64 %.046, %31
  br i1 %32, label %33, label %35

33:                                               ; preds = %.peel.next
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr nonnull align 1 %8, i64 %15, i1 false)
  %34 = icmp eq i64 %31, 0
  br i1 %34, label %.loopexit, label %35

35:                                               ; preds = %.peel.next, %33
  %.1 = phi i64 [ %31, %33 ], [ %.046, %.peel.next ]
  %36 = add nuw nsw i64 %.04245, 1
  %exitcond.not = icmp eq i64 %36, %11
  br i1 %exitcond.not, label %.loopexit, label %.peel.next, !llvm.loop !21

.loopexit:                                        ; preds = %33, %35, %4
  %.2 = phi i64 [ 0, %4 ], [ 0, %33 ], [ %.1, %35 ]
  store i64 %.2, ptr %14, align 8, !tbaa !20
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 %9, i64 %15, i1 false)
  call void (ptr, ...) @gk_free(ptr noundef nonnull %5, ptr noundef null) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  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 @libmetis__MocAllocate2WayPartitionMemory(ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @libmetis__idxmalloc(i64 noundef, ptr noundef) local_unnamed_addr #2

declare ptr @libmetis__idxset(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #3

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

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

declare void @libmetis__MocFM_2WayEdgeRefine2(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare void @gk_free(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 "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 = !{!"graphdef", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !7, i64 120, !10, i64 128, !10, i64 136, !7, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !7, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !10, i64 128}
!13 = !{!10, !10, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"controldef", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !16, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !17, i64 88, !18, i64 152, !18, i64 160, !18, i64 168, !18, i64 176, !18, i64 184, !18, i64 192, !18, i64 200, !18, i64 208, !18, i64 216, !18, i64 224, !18, i64 232, !18, i64 240, !18, i64 248, !18, i64 256, !18, i64 264, !18, i64 272}
!16 = !{!"float", !8, i64 0}
!17 = !{!"workspacedef", !10, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !10, i64 48, !10, i64 56}
!18 = !{!"double", !8, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!6, !7, i64 112}
!21 = distinct !{!21, !22, !23}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.peeled.count", i32 1}


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