; LLVM IR from brpapa/algorithms :: solutions/spoj/SARRAY.ll (Z8build_sav)

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

@T = external dso_local global [100010 x i8], align 16
@N = external dso_local global i32, align 4
@ra = external dso_local global [100010 x i32], align 16
@temp_ra = external dso_local global [100010 x i32], align 16
@sa = external dso_local global [100010 x i32], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13counting_sorti(i32 noundef) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8build_sav() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #2
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %4

4:                                                ; preds = %17, %0
  %5 = load i32, ptr %1, align 4, !tbaa !5
  %6 = load i32, ptr @N, align 4, !tbaa !5
  %7 = icmp slt i32 %5, %6
  br i1 %7, label %8, label %20

8:                                                ; preds = %4
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds [100010 x i8], ptr @T, i64 0, i64 %10
  %12 = load i8, ptr %11, align 1, !tbaa !9
  %13 = sext i8 %12 to i32
  %14 = load i32, ptr %1, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %15
  store i32 %13, ptr %16, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %8
  %18 = load i32, ptr %1, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %1, align 4, !tbaa !5
  br label %4, !llvm.loop !10

20:                                               ; preds = %4
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %30, %20
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = load i32, ptr @N, align 4, !tbaa !5
  %24 = icmp slt i32 %22, %23
  br i1 %24, label %25, label %33

25:                                               ; preds = %21
  %26 = load i32, ptr %1, align 4, !tbaa !5
  %27 = load i32, ptr %1, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [100010 x i32], ptr @sa, i64 0, i64 %28
  store i32 %26, ptr %29, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %25
  %31 = load i32, ptr %1, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %1, align 4, !tbaa !5
  br label %21, !llvm.loop !12

33:                                               ; preds = %21
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %131, %33
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = load i32, ptr @N, align 4, !tbaa !5
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %38, label %134

38:                                               ; preds = %34
  %39 = load i32, ptr %2, align 4, !tbaa !5
  call void @_Z13counting_sorti(i32 noundef %39)
  call void @_Z13counting_sorti(i32 noundef 0)
  store i32 0, ptr %3, align 4, !tbaa !5
  %40 = load i32, ptr @sa, align 16, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [100010 x i32], ptr @temp_ra, i64 0, i64 %41
  store i32 0, ptr %42, align 4, !tbaa !5
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %98, %38
  %44 = load i32, ptr %1, align 4, !tbaa !5
  %45 = load i32, ptr @N, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %47, label %101

47:                                               ; preds = %43
  %48 = load i32, ptr %1, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [100010 x i32], ptr @sa, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = load i32, ptr %1, align 4, !tbaa !5
  %56 = sub nsw i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100010 x i32], ptr @sa, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = icmp eq i32 %54, %62
  br i1 %63, label %64, label %87

64:                                               ; preds = %47
  %65 = load i32, ptr %1, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [100010 x i32], ptr @sa, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = load i32, ptr %2, align 4, !tbaa !5
  %70 = add nsw i32 %68, %69
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = load i32, ptr %1, align 4, !tbaa !5
  %75 = sub nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [100010 x i32], ptr @sa, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = load i32, ptr %2, align 4, !tbaa !5
  %80 = add nsw i32 %78, %79
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = icmp eq i32 %73, %83
  br i1 %84, label %85, label %87

85:                                               ; preds = %64
  %86 = load i32, ptr %3, align 4, !tbaa !5
  br label %90

87:                                               ; preds = %64, %47
  %88 = load i32, ptr %3, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %3, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %87, %85
  %91 = phi i32 [ %86, %85 ], [ %89, %87 ]
  %92 = load i32, ptr %1, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [100010 x i32], ptr @sa, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [100010 x i32], ptr @temp_ra, i64 0, i64 %96
  store i32 %91, ptr %97, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %90
  %99 = load i32, ptr %1, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %1, align 4, !tbaa !5
  br label %43, !llvm.loop !13

101:                                              ; preds = %43
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %114, %101
  %103 = load i32, ptr %1, align 4, !tbaa !5
  %104 = load i32, ptr @N, align 4, !tbaa !5
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %106, label %117

106:                                              ; preds = %102
  %107 = load i32, ptr %1, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [100010 x i32], ptr @temp_ra, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = load i32, ptr %1, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %112
  store i32 %110, ptr %113, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %106
  %115 = load i32, ptr %1, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %1, align 4, !tbaa !5
  br label %102, !llvm.loop !14

117:                                              ; preds = %102
  %118 = load i32, ptr @N, align 4, !tbaa !5
  %119 = sub nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [100010 x i32], ptr @sa, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = load i32, ptr @N, align 4, !tbaa !5
  %127 = sub nsw i32 %126, 1
  %128 = icmp eq i32 %125, %127
  br i1 %128, label %129, label %130

129:                                              ; preds = %117
  br label %134

130:                                              ; preds = %117
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %2, align 4, !tbaa !5
  %133 = shl i32 %132, 1
  store i32 %133, ptr %2, align 4, !tbaa !5
  br label %34, !llvm.loop !15

134:                                              ; preds = %129, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #2
  ret void
}

attributes #0 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}


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

@T = external dso_local local_unnamed_addr global [100010 x i8], align 16
@N = external dso_local local_unnamed_addr global i32, align 4
@ra = external dso_local local_unnamed_addr global [100010 x i32], align 16
@temp_ra = external dso_local local_unnamed_addr global [100010 x i32], align 16
@sa = external dso_local local_unnamed_addr global [100010 x i32], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z13counting_sorti(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8build_sav() local_unnamed_addr #0 {
  %1 = load i32, ptr @N, align 4, !tbaa !5
  %2 = icmp sgt i32 %1, 0
  br i1 %2, label %.lr.ph.preheader, label %._crit_edge44

.lr.ph.preheader:                                 ; preds = %0
  %wide.trip.count = zext nneg i32 %1 to i64
  %min.iters.check = icmp ult i32 %1, 8
  br i1 %min.iters.check, label %.lr.ph.preheader75, label %vector.ph

.lr.ph.preheader75:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %3 = getelementptr inbounds [100010 x i8], ptr @T, i64 0, i64 %index
  %4 = getelementptr inbounds i8, ptr %3, i64 4
  %wide.load = load <4 x i8>, ptr %3, align 8, !tbaa !9
  %wide.load61 = load <4 x i8>, ptr %4, align 4, !tbaa !9
  %5 = sext <4 x i8> %wide.load to <4 x i32>
  %6 = sext <4 x i8> %wide.load61 to <4 x i32>
  %7 = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %index
  %8 = getelementptr inbounds i8, ptr %7, i64 16
  store <4 x i32> %5, ptr %7, align 16, !tbaa !5
  store <4 x i32> %6, ptr %8, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %9 = icmp eq i64 %index.next, %n.vec
  br i1 %9, label %middle.block, label %vector.body, !llvm.loop !10

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader31, label %.lr.ph.preheader75

.preheader31:                                     ; preds = %.lr.ph, %middle.block
  br i1 %2, label %.lr.ph35.preheader, label %._crit_edge44

.lr.ph35.preheader:                               ; preds = %.preheader31
  %wide.trip.count50 = zext nneg i32 %1 to i64
  %min.iters.check64 = icmp ult i32 %1, 8
  br i1 %min.iters.check64, label %.lr.ph35.preheader74, label %vector.ph65

.lr.ph35.preheader74:                             ; preds = %middle.block62, %.lr.ph35.preheader
  %indvars.iv47.ph = phi i64 [ 0, %.lr.ph35.preheader ], [ %n.vec67, %middle.block62 ]
  br label %.lr.ph35

vector.ph65:                                      ; preds = %.lr.ph35.preheader
  %n.vec67 = and i64 %wide.trip.count, 2147483640
  br label %vector.body69

vector.body69:                                    ; preds = %vector.body69, %vector.ph65
  %index70 = phi i64 [ 0, %vector.ph65 ], [ %index.next72, %vector.body69 ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph65 ], [ %vec.ind.next, %vector.body69 ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %10 = getelementptr inbounds [100010 x i32], ptr @sa, i64 0, i64 %index70
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  store <4 x i32> %vec.ind, ptr %10, align 16, !tbaa !5
  store <4 x i32> %step.add, ptr %11, align 16, !tbaa !5
  %index.next72 = add nuw i64 %index70, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %12 = icmp eq i64 %index.next72, %n.vec67
  br i1 %12, label %middle.block62, label %vector.body69, !llvm.loop !14

middle.block62:                                   ; preds = %vector.body69
  %cmp.n73 = icmp eq i64 %n.vec67, %wide.trip.count
  br i1 %cmp.n73, label %.preheader30, label %.lr.ph35.preheader74

.lr.ph:                                           ; preds = %.lr.ph.preheader75, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader75 ]
  %13 = getelementptr inbounds [100010 x i8], ptr @T, i64 0, i64 %indvars.iv
  %14 = load i8, ptr %13, align 1, !tbaa !9
  %15 = sext i8 %14 to i32
  %16 = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %indvars.iv
  store i32 %15, ptr %16, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader31, label %.lr.ph, !llvm.loop !15

.preheader30:                                     ; preds = %.lr.ph35, %middle.block62
  %.not = icmp eq i32 %1, 1
  br i1 %.not, label %._crit_edge44, label %.lr.ph43

.lr.ph35:                                         ; preds = %.lr.ph35.preheader74, %.lr.ph35
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %.lr.ph35 ], [ %indvars.iv47.ph, %.lr.ph35.preheader74 ]
  %17 = getelementptr inbounds [100010 x i32], ptr @sa, i64 0, i64 %indvars.iv47
  %18 = trunc nuw nsw i64 %indvars.iv47 to i32
  store i32 %18, ptr %17, align 4, !tbaa !5
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %exitcond51.not = icmp eq i64 %indvars.iv.next48, %wide.trip.count50
  br i1 %exitcond51.not, label %.preheader30, label %.lr.ph35, !llvm.loop !16

.lr.ph43:                                         ; preds = %.preheader30, %._crit_edge
  %.02642 = phi i32 [ %58, %._crit_edge ], [ 1, %.preheader30 ]
  tail call void @_Z13counting_sorti(i32 noundef %.02642)
  tail call void @_Z13counting_sorti(i32 noundef 0)
  %19 = load i32, ptr @sa, align 16, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [100010 x i32], ptr @temp_ra, i64 0, i64 %20
  store i32 0, ptr %21, align 4, !tbaa !5
  %22 = load i32, ptr @N, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 1
  br i1 %23, label %.lr.ph38.preheader, label %.preheader

.lr.ph38.preheader:                               ; preds = %.lr.ph43
  %wide.trip.count55 = zext nneg i32 %22 to i64
  %.phi.trans.insert = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %20
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  br label %.lr.ph38

.preheader:                                       ; preds = %47, %.lr.ph43
  %24 = icmp sgt i32 %22, 0
  br i1 %24, label %.lr.ph41.preheader, label %._crit_edge

.lr.ph41.preheader:                               ; preds = %.preheader
  %25 = zext nneg i32 %22 to i64
  %26 = shl nuw nsw i64 %25, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 @ra, ptr nonnull align 16 @temp_ra, i64 %26, i1 false), !tbaa !5
  br label %._crit_edge

.lr.ph38:                                         ; preds = %.lr.ph38.preheader, %47
  %27 = phi i32 [ %.pre, %.lr.ph38.preheader ], [ %33, %47 ]
  %28 = phi i32 [ %19, %.lr.ph38.preheader ], [ %30, %47 ]
  %indvars.iv52 = phi i64 [ 1, %.lr.ph38.preheader ], [ %indvars.iv.next53, %47 ]
  %.037 = phi i32 [ 0, %.lr.ph38.preheader ], [ %48, %47 ]
  %29 = getelementptr inbounds [100010 x i32], ptr @sa, i64 0, i64 %indvars.iv52
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = icmp eq i32 %33, %27
  br i1 %34, label %35, label %45

35:                                               ; preds = %.lr.ph38
  %36 = add nsw i32 %30, %.02642
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = add nsw i32 %28, %.02642
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = icmp eq i32 %39, %43
  br i1 %44, label %47, label %45

45:                                               ; preds = %35, %.lr.ph38
  %46 = add nsw i32 %.037, 1
  br label %47

47:                                               ; preds = %35, %45
  %48 = phi i32 [ %46, %45 ], [ %.037, %35 ]
  %49 = getelementptr inbounds [100010 x i32], ptr @temp_ra, i64 0, i64 %31
  store i32 %48, ptr %49, align 4, !tbaa !5
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %exitcond56.not = icmp eq i64 %indvars.iv.next53, %wide.trip.count55
  br i1 %exitcond56.not, label %.preheader, label %.lr.ph38, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph41.preheader, %.preheader
  %50 = add nsw i32 %22, -1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [100010 x i32], ptr @sa, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [100010 x i32], ptr @ra, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = icmp ne i32 %56, %50
  %58 = shl i32 %.02642, 1
  %59 = icmp slt i32 %58, %22
  %or.cond = and i1 %57, %59
  br i1 %or.cond, label %.lr.ph43, label %._crit_edge44, !llvm.loop !18

._crit_edge44:                                    ; preds = %._crit_edge, %0, %.preheader31, %.preheader30
  ret void
}

; 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) #1

attributes #0 = { mustprogress 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }

!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++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11, !12, !13}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !11, !12, !13}
!15 = distinct !{!15, !11, !13, !12}
!16 = distinct !{!16, !11, !13, !12}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SROAPass,SimplifyCFGPass,TailCallElimPass