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

; 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 }

@.str.3 = external hidden unnamed_addr constant [29 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

declare ptr @libmetis__idxsmalloc(i64 noundef, i64 noundef, ptr noundef) #1

declare i64 @libmetis__idxargmax(i64 noundef, ptr noundef) #1

declare i64 @libmetis__idxsum(i64 noundef, ptr noundef, i64 noundef) #1

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

declare void @gk_free(ptr noundef, ...) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__ComputePartitionBalance(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, 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 ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca float, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  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) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.graphdef, ptr %16, i32 0, i32 0
  %18 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %18, ptr %11, align 8, !tbaa !9
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.graphdef, ptr %19, i32 0, i32 28
  %21 = load i64, ptr %20, align 8, !tbaa !14
  store i64 %21, ptr %12, align 8, !tbaa !9
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.graphdef, ptr %22, i32 0, i32 3
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  store ptr %24, ptr %14, align 8, !tbaa !5
  %25 = load i64, ptr %6, align 8, !tbaa !9
  %26 = call ptr @libmetis__idxsmalloc(i64 noundef %25, i64 noundef 0, ptr noundef @.str.3)
  store ptr %26, ptr %13, align 8, !tbaa !5
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %65

29:                                               ; preds = %4
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %30

30:                                               ; preds = %43, %29
  %31 = load i64, ptr %9, align 8, !tbaa !9
  %32 = load i64, ptr %11, align 8, !tbaa !9
  %33 = icmp slt i64 %31, %32
  br i1 %33, label %34, label %46

34:                                               ; preds = %30
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load i64, ptr %9, align 8, !tbaa !9
  %38 = getelementptr inbounds i64, ptr %36, i64 %37
  %39 = load i64, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds i64, ptr %35, i64 %39
  %41 = load i64, ptr %40, align 8, !tbaa !9
  %42 = add nsw i64 %41, 1
  store i64 %42, ptr %40, align 8, !tbaa !9
  br label %43

43:                                               ; preds = %34
  %44 = load i64, ptr %9, align 8, !tbaa !9
  %45 = add nsw i64 %44, 1
  store i64 %45, ptr %9, align 8, !tbaa !9
  br label %30, !llvm.loop !16

46:                                               ; preds = %30
  %47 = load i64, ptr %6, align 8, !tbaa !9
  %48 = sitofp i64 %47 to double
  %49 = fmul double 1.000000e+00, %48
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = load i64, ptr %6, align 8, !tbaa !9
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = call i64 @libmetis__idxargmax(i64 noundef %51, ptr noundef %52)
  %54 = getelementptr inbounds i64, ptr %50, i64 %53
  %55 = load i64, ptr %54, align 8, !tbaa !9
  %56 = sitofp i64 %55 to double
  %57 = fmul double %49, %56
  %58 = load i64, ptr %11, align 8, !tbaa !9
  %59 = sitofp i64 %58 to double
  %60 = fmul double 1.000000e+00, %59
  %61 = fdiv double %57, %60
  %62 = fptrunc double %61 to float
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds float, ptr %63, i64 0
  store float %62, ptr %64, align 4, !tbaa !18
  br label %126

65:                                               ; preds = %4
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %122, %65
  %67 = load i64, ptr %10, align 8, !tbaa !9
  %68 = load i64, ptr %12, align 8, !tbaa !9
  %69 = icmp slt i64 %67, %68
  br i1 %69, label %70, label %125

70:                                               ; preds = %66
  %71 = load i64, ptr %6, align 8, !tbaa !9
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = call ptr @libmetis__idxset(i64 noundef %71, i64 noundef 0, ptr noundef %72)
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %74

74:                                               ; preds = %97, %70
  %75 = load i64, ptr %9, align 8, !tbaa !9
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.graphdef, ptr %76, i32 0, i32 0
  %78 = load i64, ptr %77, align 8, !tbaa !11
  %79 = icmp slt i64 %75, %78
  br i1 %79, label %80, label %100

80:                                               ; preds = %74
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = load i64, ptr %9, align 8, !tbaa !9
  %83 = load i64, ptr %12, align 8, !tbaa !9
  %84 = mul nsw i64 %82, %83
  %85 = load i64, ptr %10, align 8, !tbaa !9
  %86 = add nsw i64 %84, %85
  %87 = getelementptr inbounds i64, ptr %81, i64 %86
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = load i64, ptr %9, align 8, !tbaa !9
  %92 = getelementptr inbounds i64, ptr %90, i64 %91
  %93 = load i64, ptr %92, align 8, !tbaa !9
  %94 = getelementptr inbounds i64, ptr %89, i64 %93
  %95 = load i64, ptr %94, align 8, !tbaa !9
  %96 = add nsw i64 %95, %88
  store i64 %96, ptr %94, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %80
  %98 = load i64, ptr %9, align 8, !tbaa !9
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %9, align 8, !tbaa !9
  br label %74, !llvm.loop !20

100:                                              ; preds = %74
  %101 = load i64, ptr %6, align 8, !tbaa !9
  %102 = sitofp i64 %101 to double
  %103 = fmul double 1.000000e+00, %102
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = load i64, ptr %6, align 8, !tbaa !9
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = call i64 @libmetis__idxargmax(i64 noundef %105, ptr noundef %106)
  %108 = getelementptr inbounds i64, ptr %104, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !9
  %110 = sitofp i64 %109 to double
  %111 = fmul double %103, %110
  %112 = load i64, ptr %6, align 8, !tbaa !9
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = call i64 @libmetis__idxsum(i64 noundef %112, ptr noundef %113, i64 noundef 1)
  %115 = sitofp i64 %114 to double
  %116 = fmul double 1.000000e+00, %115
  %117 = fdiv double %111, %116
  %118 = fptrunc double %117 to float
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = load i64, ptr %10, align 8, !tbaa !9
  %121 = getelementptr inbounds float, ptr %119, i64 %120
  store float %118, ptr %121, align 4, !tbaa !18
  br label %122

122:                                              ; preds = %100
  %123 = load i64, ptr %10, align 8, !tbaa !9
  %124 = add nsw i64 %123, 1
  store i64 %124, ptr %10, align 8, !tbaa !9
  br label %66, !llvm.loop !21

125:                                              ; preds = %66
  br label %126

126:                                              ; preds = %125, %46
  call void (ptr, ...) @gk_free(ptr noundef %13, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"graphdef", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !13, i64 60, !13, i64 64, !13, i64 68, !13, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !10, i64 120, !6, i64 128, !6, i64 136, !10, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !10, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !10, i64 208}
!15 = !{!12, !6, i64 24}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}


; 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.3 = external hidden unnamed_addr constant [29 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

declare ptr @libmetis__idxsmalloc(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare i64 @libmetis__idxargmax(i64 noundef, ptr noundef) local_unnamed_addr #1

declare i64 @libmetis__idxsum(i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

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

declare void @gk_free(ptr noundef, ...) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @libmetis__ComputePartitionBalance(ptr nocapture noundef readonly %0, i64 noundef %1, ptr nocapture noundef readonly %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #2 {
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %6 = load i64, ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 208
  %8 = load i64, ptr %7, align 8, !tbaa !12
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load ptr, ptr %9, align 8, !tbaa !13
  %11 = tail call ptr @libmetis__idxsmalloc(i64 noundef %1, i64 noundef 0, ptr noundef nonnull @.str.3) #3
  store ptr %11, ptr %5, align 8, !tbaa !14
  %12 = icmp eq ptr %10, null
  br i1 %12, label %.preheader, label %.preheader35

.preheader35:                                     ; preds = %4
  %13 = icmp sgt i64 %8, 0
  br i1 %13, label %.lr.ph38, label %.loopexit

.lr.ph38:                                         ; preds = %.preheader35
  %14 = sitofp i64 %1 to double
  br label %56

.preheader:                                       ; preds = %4
  %15 = icmp sgt i64 %6, 0
  br i1 %15, label %.lr.ph40.preheader, label %._crit_edge41

.lr.ph40.preheader:                               ; preds = %.preheader
  %xtraiter = and i64 %6, 3
  %16 = icmp ult i64 %6, 4
  br i1 %16, label %._crit_edge41.loopexit.unr-lcssa, label %.lr.ph40.preheader.new

.lr.ph40.preheader.new:                           ; preds = %.lr.ph40.preheader
  %unroll_iter = and i64 %6, 9223372036854775804
  br label %.lr.ph40

.lr.ph40:                                         ; preds = %.lr.ph40, %.lr.ph40.preheader.new
  %.039 = phi i64 [ 0, %.lr.ph40.preheader.new ], [ %40, %.lr.ph40 ]
  %niter = phi i64 [ 0, %.lr.ph40.preheader.new ], [ %niter.next.3, %.lr.ph40 ]
  %17 = getelementptr inbounds i64, ptr %2, i64 %.039
  %18 = load i64, ptr %17, align 8, !tbaa !15
  %19 = getelementptr inbounds i64, ptr %11, i64 %18
  %20 = load i64, ptr %19, align 8, !tbaa !15
  %21 = add nsw i64 %20, 1
  store i64 %21, ptr %19, align 8, !tbaa !15
  %22 = or disjoint i64 %.039, 1
  %23 = getelementptr inbounds i64, ptr %2, i64 %22
  %24 = load i64, ptr %23, align 8, !tbaa !15
  %25 = getelementptr inbounds i64, ptr %11, i64 %24
  %26 = load i64, ptr %25, align 8, !tbaa !15
  %27 = add nsw i64 %26, 1
  store i64 %27, ptr %25, align 8, !tbaa !15
  %28 = or disjoint i64 %.039, 2
  %29 = getelementptr inbounds i64, ptr %2, i64 %28
  %30 = load i64, ptr %29, align 8, !tbaa !15
  %31 = getelementptr inbounds i64, ptr %11, i64 %30
  %32 = load i64, ptr %31, align 8, !tbaa !15
  %33 = add nsw i64 %32, 1
  store i64 %33, ptr %31, align 8, !tbaa !15
  %34 = or disjoint i64 %.039, 3
  %35 = getelementptr inbounds i64, ptr %2, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !15
  %37 = getelementptr inbounds i64, ptr %11, i64 %36
  %38 = load i64, ptr %37, align 8, !tbaa !15
  %39 = add nsw i64 %38, 1
  store i64 %39, ptr %37, align 8, !tbaa !15
  %40 = add nuw nsw i64 %.039, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge41.loopexit.unr-lcssa, label %.lr.ph40, !llvm.loop !16

._crit_edge41.loopexit.unr-lcssa:                 ; preds = %.lr.ph40, %.lr.ph40.preheader
  %.039.unr = phi i64 [ 0, %.lr.ph40.preheader ], [ %40, %.lr.ph40 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge41, label %.lr.ph40.epil

.lr.ph40.epil:                                    ; preds = %._crit_edge41.loopexit.unr-lcssa, %.lr.ph40.epil
  %.039.epil = phi i64 [ %46, %.lr.ph40.epil ], [ %.039.unr, %._crit_edge41.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph40.epil ], [ 0, %._crit_edge41.loopexit.unr-lcssa ]
  %41 = getelementptr inbounds i64, ptr %2, i64 %.039.epil
  %42 = load i64, ptr %41, align 8, !tbaa !15
  %43 = getelementptr inbounds i64, ptr %11, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !15
  %45 = add nsw i64 %44, 1
  store i64 %45, ptr %43, align 8, !tbaa !15
  %46 = add nuw nsw i64 %.039.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge41, label %.lr.ph40.epil, !llvm.loop !18

._crit_edge41:                                    ; preds = %._crit_edge41.loopexit.unr-lcssa, %.lr.ph40.epil, %.preheader
  %47 = sitofp i64 %1 to double
  %48 = tail call i64 @libmetis__idxargmax(i64 noundef %1, ptr noundef %11) #3
  %49 = getelementptr inbounds i64, ptr %11, i64 %48
  %50 = load i64, ptr %49, align 8, !tbaa !15
  %51 = sitofp i64 %50 to double
  %52 = fmul double %47, %51
  %53 = sitofp i64 %6 to double
  %54 = fdiv double %52, %53
  %55 = fptrunc double %54 to float
  store float %55, ptr %3, align 4, !tbaa !20
  br label %.loopexit

56:                                               ; preds = %.lr.ph38, %._crit_edge
  %.03137 = phi i64 [ 0, %.lr.ph38 ], [ %80, %._crit_edge ]
  %57 = tail call ptr @libmetis__idxset(i64 noundef %1, i64 noundef 0, ptr noundef %11) #3
  %invariant.gep = getelementptr i64, ptr %10, i64 %.03137
  %58 = load i64, ptr %0, align 8, !tbaa !5
  %59 = icmp sgt i64 %58, 0
  br i1 %59, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %56, %.lr.ph
  %.136 = phi i64 [ %67, %.lr.ph ], [ 0, %56 ]
  %60 = mul nuw nsw i64 %.136, %8
  %gep = getelementptr i64, ptr %invariant.gep, i64 %60
  %61 = load i64, ptr %gep, align 8, !tbaa !15
  %62 = getelementptr inbounds i64, ptr %2, i64 %.136
  %63 = load i64, ptr %62, align 8, !tbaa !15
  %64 = getelementptr inbounds i64, ptr %11, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !15
  %66 = add nsw i64 %65, %61
  store i64 %66, ptr %64, align 8, !tbaa !15
  %67 = add nuw nsw i64 %.136, 1
  %68 = load i64, ptr %0, align 8, !tbaa !5
  %69 = icmp slt i64 %67, %68
  br i1 %69, label %.lr.ph, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %.lr.ph, %56
  %70 = tail call i64 @libmetis__idxargmax(i64 noundef %1, ptr noundef %11) #3
  %71 = getelementptr inbounds i64, ptr %11, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !15
  %73 = sitofp i64 %72 to double
  %74 = fmul double %14, %73
  %75 = tail call i64 @libmetis__idxsum(i64 noundef %1, ptr noundef %11, i64 noundef 1) #3
  %76 = sitofp i64 %75 to double
  %77 = fdiv double %74, %76
  %78 = fptrunc double %77 to float
  %79 = getelementptr inbounds float, ptr %3, i64 %.03137
  store float %78, ptr %79, align 4, !tbaa !20
  %80 = add nuw nsw i64 %.03137, 1
  %exitcond.not = icmp eq i64 %80, %8
  br i1 %exitcond.not, label %.loopexit, label %56, !llvm.loop !23

.loopexit:                                        ; preds = %._crit_edge, %.preheader35, %._crit_edge41
  call void (ptr, ...) @gk_free(ptr noundef nonnull %5, ptr noundef null) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #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 = !{!"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, !7, i64 208}
!13 = !{!6, !10, i64 24}
!14 = !{!10, !10, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.unroll.disable"}
!20 = !{!21, !21, i64 0}
!21 = !{!"float", !8, i64 0}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}


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