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

; 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__MocGrowBisection(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca float, align 4
  %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 float %3, ptr %8, align 4, !tbaa !9
  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 !11
  store i64 %23, ptr %12, align 8, !tbaa !15
  %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 !16
  store ptr %28, ptr %20, align 8, !tbaa !5
  %29 = load i64, ptr %12, align 8, !tbaa !15
  %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 !15
  %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 !17
  %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 !15
  store i64 0, ptr %18, align 8, !tbaa !15
  br label %40

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

44:                                               ; preds = %40
  %45 = load i64, ptr %12, align 8, !tbaa !15
  %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 !15
  %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 !15
  %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
  call void @libmetis__MocInit2WayBalance(ptr noundef %60, ptr noundef %61, ptr noundef %62)
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libmetis__MocFM_2WayEdgeRefine(ptr noundef %63, ptr noundef %64, ptr noundef %65, i64 noundef 4)
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libmetis__MocBalance2Way(ptr noundef %66, ptr noundef %67, ptr noundef %68, float noundef 0x3FF051EB80000000)
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  call void @libmetis__MocFM_2WayEdgeRefine(ptr noundef %69, ptr noundef %70, ptr noundef %71, i64 noundef 4)
  %72 = load i64, ptr %18, align 8, !tbaa !15
  %73 = icmp eq i64 %72, 0
  br i1 %73, label %80, label %74

74:                                               ; preds = %44
  %75 = load i64, ptr %15, align 8, !tbaa !15
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.graphdef, ptr %76, i32 0, i32 16
  %78 = load i64, ptr %77, align 8, !tbaa !21
  %79 = icmp sge i64 %75, %78
  br i1 %79, label %80, label %92

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

90:                                               ; preds = %80
  br label %96

91:                                               ; preds = %80
  br label %92

92:                                               ; preds = %91, %74
  br label %93

93:                                               ; preds = %92
  %94 = load i64, ptr %18, align 8, !tbaa !15
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %18, align 8, !tbaa !15
  br label %40, !llvm.loop !22

96:                                               ; preds = %90, %40
  %97 = load i64, ptr %15, align 8, !tbaa !15
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.graphdef, ptr %98, i32 0, i32 16
  store i64 %97, ptr %99, align 8, !tbaa !21
  %100 = load ptr, ptr %20, align 8, !tbaa !5
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  %102 = load i64, ptr %12, align 8, !tbaa !15
  %103 = mul i64 8, %102
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %100, ptr align 1 %101, i64 %103, 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

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__MocInit2WayBalance(ptr noundef, ptr noundef, ptr noundef) #1

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

declare void @libmetis__MocBalance2Way(ptr noundef, ptr noundef, ptr noundef, float 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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"graphdef", !13, i64 0, !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !13, i64 112, !13, i64 120, !6, i64 128, !6, i64 136, !13, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !13, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240}
!13 = !{!"long", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !6, i64 128}
!17 = !{!18, !13, i64 0}
!18 = !{!"controldef", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !10, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !19, i64 88, !20, i64 152, !20, i64 160, !20, i64 168, !20, i64 176, !20, i64 184, !20, i64 192, !20, i64 200, !20, i64 208, !20, i64 216, !20, i64 224, !20, i64 232, !20, i64 240, !20, i64 248, !20, i64 256, !20, i64 264, !20, i64 272}
!19 = !{!"workspacedef", !6, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !6, i64 48, !6, i64 56}
!20 = !{!"double", !7, i64 0}
!21 = !{!12, !13, i64 112}
!22 = distinct !{!22, !23}
!23 = !{!"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__MocGrowBisection(ptr noundef %0, ptr noundef %1, ptr noundef %2, float 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__MocInit2WayBalance(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2)
  tail call void @libmetis__MocFM_2WayEdgeRefine(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, i64 noundef 4) #5
  tail call void @libmetis__MocBalance2Way(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, float noundef 0x3FF051EB80000000) #5
  tail call void @libmetis__MocFM_2WayEdgeRefine(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, 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, %34
  %.043 = phi i64 [ %.1, %34 ], [ %.pre, %4 ]
  %.03842 = phi i64 [ %35, %34 ], [ 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__MocInit2WayBalance(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2)
  tail call void @libmetis__MocFM_2WayEdgeRefine(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, i64 noundef 4) #5
  tail call void @libmetis__MocBalance2Way(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, float noundef 0x3FF051EB80000000) #5
  tail call void @libmetis__MocFM_2WayEdgeRefine(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, i64 noundef 4) #5
  %31 = load i64, ptr %14, align 8, !tbaa !20
  %.not41 = icmp slt i64 %.043, %31
  br i1 %.not41, label %34, label %32

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

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

.loopexit:                                        ; preds = %32, %34, %4
  %.2 = phi i64 [ 0, %4 ], [ 0, %32 ], [ %.1, %34 ]
  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

; Function Attrs: nounwind uwtable
declare dso_local void @libmetis__MocInit2WayBalance(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @libmetis__MocBalance2Way(ptr noundef, ptr noundef, ptr noundef, float 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