; LLVM IR from tangjz/acm-icpc :: usaco/Training/Chapter 1 Getting started (skidesign)

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

@n = external dso_local global i32, align 4
@a = external dso_local global [1001 x i32], align 16
@sum = external dso_local global i32, align 4
@ans = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %6 = load ptr, ptr @stdin, align 8, !tbaa !5
  %7 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %6)
  %8 = load ptr, ptr @stdout, align 8, !tbaa !5
  %9 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %8)
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %21, %0
  %12 = load i32, ptr %2, align 4, !tbaa !9
  %13 = load i32, ptr @n, align 4, !tbaa !9
  %14 = icmp slt i32 %12, %13
  br i1 %14, label %16, label %15

15:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  br label %24

16:                                               ; preds = %11
  %17 = load i32, ptr %2, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds i32, ptr @a, i64 %18
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %19)
  br label %21

21:                                               ; preds = %16
  %22 = load i32, ptr %2, align 4, !tbaa !9
  %23 = add nsw i32 %22, 1
  store i32 %23, ptr %2, align 4, !tbaa !9
  br label %11, !llvm.loop !11

24:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %97, %24
  %26 = load i32, ptr %3, align 4, !tbaa !9
  %27 = add nsw i32 %26, 17
  %28 = icmp slt i32 %27, 101
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %100

30:                                               ; preds = %25
  store i32 0, ptr @sum, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %87, %30
  %32 = load i32, ptr %5, align 4, !tbaa !9
  %33 = load i32, ptr @n, align 4, !tbaa !9
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %90

36:                                               ; preds = %31
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [1001 x i32], ptr @a, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = load i32, ptr %3, align 4, !tbaa !9
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %43, label %59

43:                                               ; preds = %36
  %44 = load i32, ptr %3, align 4, !tbaa !9
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [1001 x i32], ptr @a, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = sub nsw i32 %44, %48
  %50 = load i32, ptr %3, align 4, !tbaa !9
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [1001 x i32], ptr @a, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = sub nsw i32 %50, %54
  %56 = mul nsw i32 %49, %55
  %57 = load i32, ptr @sum, align 4, !tbaa !9
  %58 = add nsw i32 %57, %56
  store i32 %58, ptr @sum, align 4, !tbaa !9
  br label %86

59:                                               ; preds = %36
  %60 = load i32, ptr %5, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1001 x i32], ptr @a, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = load i32, ptr %3, align 4, !tbaa !9
  %65 = add nsw i32 %64, 17
  %66 = icmp sgt i32 %63, %65
  br i1 %66, label %67, label %85

67:                                               ; preds = %59
  %68 = load i32, ptr %5, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [1001 x i32], ptr @a, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = load i32, ptr %3, align 4, !tbaa !9
  %73 = sub nsw i32 %71, %72
  %74 = sub nsw i32 %73, 17
  %75 = load i32, ptr %5, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [1001 x i32], ptr @a, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = load i32, ptr %3, align 4, !tbaa !9
  %80 = sub nsw i32 %78, %79
  %81 = sub nsw i32 %80, 17
  %82 = mul nsw i32 %74, %81
  %83 = load i32, ptr @sum, align 4, !tbaa !9
  %84 = add nsw i32 %83, %82
  store i32 %84, ptr @sum, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %67, %59
  br label %86

86:                                               ; preds = %85, %43
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %5, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %5, align 4, !tbaa !9
  br label %31, !llvm.loop !13

90:                                               ; preds = %35
  %91 = load i32, ptr @ans, align 4, !tbaa !9
  %92 = load i32, ptr @sum, align 4, !tbaa !9
  %93 = icmp sgt i32 %91, %92
  br i1 %93, label %94, label %96

94:                                               ; preds = %90
  %95 = load i32, ptr @sum, align 4, !tbaa !9
  store i32 %95, ptr @ans, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %94, %90
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %3, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %3, align 4, !tbaa !9
  br label %25, !llvm.loop !14

100:                                              ; preds = %29
  %101 = load i32, ptr @ans, align 4, !tbaa !9
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %101)
  ret i32 0
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @__isoc99_scanf(ptr noundef, ...) #1

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

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

declare i32 @printf(ptr noundef, ...) #1

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


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

@n = external dso_local global i32, align 4
@a = external dso_local global [1001 x i32], align 16
@sum = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = load ptr, ptr @stdin, align 8, !tbaa !5
  %2 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %1)
  %3 = load ptr, ptr @stdout, align 8, !tbaa !5
  %4 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %3)
  %5 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull @n)
  %6 = load i32, ptr @n, align 4, !tbaa !9
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %.preheader.thread

.preheader.thread:                                ; preds = %0
  %ans.promoted45 = load i32, ptr @ans, align 4, !tbaa !9
  br label %.preheader.split.preheader

.preheader:                                       ; preds = %.lr.ph
  %8 = icmp sgt i32 %57, 0
  %ans.promoted = load i32, ptr @ans, align 4, !tbaa !9
  br i1 %8, label %.lr.ph26.us.preheader, label %.preheader.split.preheader

.preheader.split.preheader:                       ; preds = %.preheader.thread, %.preheader
  %sum.promoted283133.ph = phi i32 [ %ans.promoted, %.preheader ], [ %ans.promoted45, %.preheader.thread ]
  br label %.preheader.split

.lr.ph26.us.preheader:                            ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %57 to i64
  %min.iters.check = icmp ult i32 %57, 8
  %n.vec = and i64 %wide.trip.count, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %.lr.ph26.us

.lr.ph26.us:                                      ; preds = %.lr.ph26.us.preheader, %35
  %.01934.us = phi i32 [ %36, %35 ], [ 0, %.lr.ph26.us.preheader ]
  %sum.promoted283133.us = phi i32 [ %sum.promoted2830.us, %35 ], [ %ans.promoted, %.lr.ph26.us.preheader ]
  %9 = add nuw nsw i32 %.01934.us, 17
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph26.us
  %indvars.iv39.ph = phi i64 [ 0, %.lr.ph26.us ], [ %n.vec, %middle.block ]
  %.ph = phi i32 [ 0, %.lr.ph26.us ], [ %33, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph26.us
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %.01934.us, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert53 = insertelement <4 x i32> poison, i32 %9, i64 0
  %broadcast.splat54 = shufflevector <4 x i32> %broadcast.splatinsert53, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %predphi56, %vector.body ]
  %vec.phi51 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %predphi57, %vector.body ]
  %10 = getelementptr inbounds [1001 x i32], ptr @a, i64 0, i64 %index
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  %wide.load = load <4 x i32>, ptr %10, align 16, !tbaa !9
  %wide.load52 = load <4 x i32>, ptr %11, align 16, !tbaa !9
  %12 = icmp sge <4 x i32> %wide.load, %broadcast.splat
  %13 = icmp sge <4 x i32> %wide.load52, %broadcast.splat
  %14 = icmp sgt <4 x i32> %wide.load, %broadcast.splat54
  %15 = icmp sgt <4 x i32> %wide.load52, %broadcast.splat54
  %16 = select <4 x i1> %12, <4 x i1> %14, <4 x i1> zeroinitializer
  %17 = select <4 x i1> %13, <4 x i1> %15, <4 x i1> zeroinitializer
  %18 = sub nsw <4 x i32> %wide.load, %broadcast.splat
  %19 = sub nsw <4 x i32> %wide.load52, %broadcast.splat
  %20 = add nsw <4 x i32> %18, <i32 -17, i32 -17, i32 -17, i32 -17>
  %21 = add nsw <4 x i32> %19, <i32 -17, i32 -17, i32 -17, i32 -17>
  %22 = mul nsw <4 x i32> %20, %20
  %23 = mul nsw <4 x i32> %21, %21
  %24 = sub nsw <4 x i32> %broadcast.splat, %wide.load
  %25 = sub nsw <4 x i32> %broadcast.splat, %wide.load52
  %26 = mul nsw <4 x i32> %24, %24
  %27 = mul nsw <4 x i32> %25, %25
  %28 = xor <4 x i1> %14, <i1 true, i1 true, i1 true, i1 true>
  %29 = xor <4 x i1> %15, <i1 true, i1 true, i1 true, i1 true>
  %30 = select <4 x i1> %12, <4 x i1> %28, <4 x i1> zeroinitializer
  %31 = select <4 x i1> %13, <4 x i1> %29, <4 x i1> zeroinitializer
  %predphi.v = select <4 x i1> %16, <4 x i32> %22, <4 x i32> %26
  %predphi55.v = select <4 x i1> %17, <4 x i32> %23, <4 x i32> %27
  %predphi = select <4 x i1> %30, <4 x i32> zeroinitializer, <4 x i32> %predphi.v
  %predphi56 = add <4 x i32> %vec.phi, %predphi
  %predphi55 = select <4 x i1> %31, <4 x i32> zeroinitializer, <4 x i32> %predphi55.v
  %predphi57 = add <4 x i32> %vec.phi51, %predphi55
  %index.next = add nuw i64 %index, 8
  %32 = icmp eq i64 %index.next, %n.vec
  br i1 %32, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %predphi57, %predphi56
  %33 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n, label %._crit_edge.us, label %scalar.ph.preheader

34:                                               ; preds = %._crit_edge.us
  store i32 %.lcssa, ptr @ans, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %34, %._crit_edge.us
  %sum.promoted2830.us = phi i32 [ %sum.promoted283133.us, %._crit_edge.us ], [ %.lcssa, %34 ]
  %36 = add nuw nsw i32 %.01934.us, 1
  %exitcond43.not = icmp eq i32 %36, 84
  br i1 %exitcond43.not, label %.split.us, label %.lr.ph26.us, !llvm.loop !15

scalar.ph:                                        ; preds = %scalar.ph.preheader, %52
  %indvars.iv39 = phi i64 [ %indvars.iv.next40, %52 ], [ %indvars.iv39.ph, %scalar.ph.preheader ]
  %37 = phi i32 [ %53, %52 ], [ %.ph, %scalar.ph.preheader ]
  %38 = getelementptr inbounds [1001 x i32], ptr @a, i64 0, i64 %indvars.iv39
  %39 = load i32, ptr %38, align 4, !tbaa !9
  %40 = icmp slt i32 %39, %.01934.us
  br i1 %40, label %48, label %41

41:                                               ; preds = %scalar.ph
  %42 = icmp sgt i32 %39, %9
  br i1 %42, label %43, label %52

43:                                               ; preds = %41
  %44 = sub nsw i32 %39, %.01934.us
  %45 = add nsw i32 %44, -17
  %46 = mul nsw i32 %45, %45
  %47 = add nsw i32 %37, %46
  br label %52

48:                                               ; preds = %scalar.ph
  %49 = sub nsw i32 %.01934.us, %39
  %50 = mul nsw i32 %49, %49
  %51 = add nsw i32 %37, %50
  br label %52

52:                                               ; preds = %48, %43, %41
  %53 = phi i32 [ %51, %48 ], [ %47, %43 ], [ %37, %41 ]
  %indvars.iv.next40 = add nuw nsw i64 %indvars.iv39, 1
  %exitcond42.not = icmp eq i64 %indvars.iv.next40, %wide.trip.count
  br i1 %exitcond42.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !16

._crit_edge.us:                                   ; preds = %52, %middle.block
  %.lcssa = phi i32 [ %33, %middle.block ], [ %53, %52 ]
  %54 = icmp sgt i32 %sum.promoted283133.us, %.lcssa
  br i1 %54, label %34, label %35

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %55 = getelementptr inbounds i32, ptr @a, i64 %indvars.iv
  %56 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %55)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %57 = load i32, ptr @n, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = icmp slt i64 %indvars.iv.next, %58
  br i1 %59, label %.lr.ph, label %.preheader, !llvm.loop !17

.split.us:                                        ; preds = %82, %35
  %60 = phi i32 [ %sum.promoted2830.us, %35 ], [ %spec.select63, %82 ]
  %.us-phi = phi i32 [ %.lcssa, %35 ], [ 0, %82 ]
  store i32 %.us-phi, ptr @sum, align 4, !tbaa !9
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %60)
  ret i32 0

.preheader.split:                                 ; preds = %82, %.preheader.split.preheader
  %.01934 = phi i32 [ 0, %.preheader.split.preheader ], [ %83, %82 ]
  %sum.promoted283133 = phi i32 [ %sum.promoted283133.ph, %.preheader.split.preheader ], [ %spec.select63, %82 ]
  %62 = icmp sgt i32 %sum.promoted283133, 0
  %sum.promoted2830 = select i1 %62, i32 0, i32 %sum.promoted283133
  %63 = icmp sgt i32 %sum.promoted2830, 0
  %sum.promoted2830.1 = select i1 %63, i32 0, i32 %sum.promoted2830
  %64 = xor i1 %62, true
  %65 = xor i1 %63, true
  %66 = xor i1 %64, true
  %67 = xor i1 %65, true
  %68 = or i1 %66, %67
  %69 = icmp sgt i32 %sum.promoted2830.1, 0
  %spec.select = select i1 %69, i32 0, i32 %sum.promoted2830.1
  %70 = xor i1 %68, true
  %71 = xor i1 %69, true
  %72 = xor i1 %70, true
  %73 = xor i1 %71, true
  %74 = or i1 %72, %73
  %75 = icmp sgt i32 %spec.select, 0
  %spec.select63 = select i1 %75, i32 0, i32 %spec.select
  %76 = xor i1 %74, true
  %77 = xor i1 %75, true
  %78 = xor i1 %76, true
  %79 = xor i1 %77, true
  %80 = or i1 %78, %79
  br i1 %80, label %81, label %82

81:                                               ; preds = %.preheader.split
  store i32 %spec.select63, ptr @ans, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %.preheader.split, %81
  %83 = add nuw nsw i32 %.01934, 4
  %exitcond.not.3 = icmp eq i32 %83, 84
  br i1 %exitcond.not.3, label %.split.us, label %.preheader.split, !llvm.loop !15
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #3

attributes #0 = { mustprogress norecurse 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 = { "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 = { nofree 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

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


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