; LLVM IR from tangjz/acm-icpc :: lydsy (2067)

; 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.Edge = type { i32, i32 }

@n = external dso_local global i32, align 4
@lnk = external dso_local global [100001 x i32], align 16
@deg = external dso_local global [100001 x i32], align 16
@lim = external dso_local global i32, align 4
@e = external dso_local global [200003 x %struct.Edge], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z4dfs2ii(i32 noundef, i32 noundef) #1

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

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

16:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %66

17:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %19 = getelementptr inbounds %struct.Edge, ptr %5, i32 0, i32 0
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %23, ptr %19, align 4, !tbaa !9
  %24 = getelementptr inbounds %struct.Edge, ptr %5, i32 0, i32 1
  %25 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %25, ptr %24, align 4, !tbaa !11
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = shl i32 %26, 1
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %28
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 4 %5, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = shl i32 %30, 1
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %33
  store i32 %31, ptr %34, align 4, !tbaa !5
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %40 = getelementptr inbounds %struct.Edge, ptr %6, i32 0, i32 0
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  store i32 %44, ptr %40, align 4, !tbaa !9
  %45 = getelementptr inbounds %struct.Edge, ptr %6, i32 0, i32 1
  %46 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %46, ptr %45, align 4, !tbaa !11
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = shl i32 %47, 1
  %49 = or i32 %48, 1
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %50
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %51, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = shl i32 %52, 1
  %54 = or i32 %53, 1
  %55 = load i32, ptr %4, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %56
  store i32 %54, ptr %57, align 4, !tbaa !5
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %60, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %63

63:                                               ; preds = %17
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %2, align 4, !tbaa !5
  br label %12, !llvm.loop !13

66:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %80, %66
  %68 = load i32, ptr %10, align 4, !tbaa !5
  %69 = load i32, ptr @n, align 4, !tbaa !5
  %70 = icmp sle i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %83

72:                                               ; preds = %67
  %73 = load i32, ptr %10, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = and i32 %76, 1
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = add nsw i32 %78, %77
  store i32 %79, ptr %7, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %72
  %81 = load i32, ptr %10, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %10, align 4, !tbaa !5
  br label %67, !llvm.loop !15

83:                                               ; preds = %71
  store i32 1, ptr %8, align 4, !tbaa !5
  %84 = load i32, ptr @n, align 4, !tbaa !5
  %85 = sub nsw i32 %84, 1
  store i32 %85, ptr %9, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %101, %83
  %87 = load i32, ptr %8, align 4, !tbaa !5
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %90, label %102

90:                                               ; preds = %86
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = load i32, ptr %9, align 4, !tbaa !5
  %93 = add nsw i32 %91, %92
  %94 = ashr i32 %93, 1
  store i32 %94, ptr @lim, align 4, !tbaa !5
  %95 = call noundef zeroext i1 @_Z4dfs2ii(i32 noundef 1, i32 noundef -1)
  br i1 %95, label %96, label %98

96:                                               ; preds = %90
  %97 = load i32, ptr @lim, align 4, !tbaa !5
  store i32 %97, ptr %9, align 4, !tbaa !5
  br label %101

98:                                               ; preds = %90
  %99 = load i32, ptr @lim, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %8, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %98, %96
  br label %86, !llvm.loop !16

102:                                              ; preds = %86
  %103 = load i32, ptr %7, align 4, !tbaa !5
  %104 = sdiv i32 %103, 2
  %105 = load i32, ptr %8, align 4, !tbaa !5
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %104, i32 noundef %105)
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i32 0
}

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

; 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 i32 @printf(ptr noundef, ...) #3

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


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

%struct.Edge = type { i32, i32 }

@n = external dso_local global i32, align 4
@lnk = external dso_local local_unnamed_addr global [100001 x i32], align 16
@deg = external dso_local local_unnamed_addr global [100001 x i32], align 16
@lim = external dso_local local_unnamed_addr global i32, align 4
@e = external dso_local local_unnamed_addr global [200003 x %struct.Edge], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z4dfs2ii(i32 noundef, i32 noundef) local_unnamed_addr #1

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

.preheader:                                       ; preds = %.lr.ph, %0
  %.lcssa = phi i32 [ %4, %0 ], [ %39, %.lr.ph ]
  %.not25 = icmp slt i32 %.lcssa, 1
  br i1 %.not25, label %._crit_edge34, label %.lr.ph28.preheader

.lr.ph28.preheader:                               ; preds = %.preheader
  %6 = add nuw i32 %.lcssa, 1
  %wide.trip.count = zext i32 %6 to i64
  %7 = zext nneg i32 %.lcssa to i64
  %min.iters.check = icmp ult i32 %.lcssa, 8
  br i1 %min.iters.check, label %.lr.ph28.preheader50, label %vector.ph

.lr.ph28.preheader50:                             ; preds = %middle.block, %.lr.ph28.preheader
  %indvars.iv39.ph = phi i64 [ 1, %.lr.ph28.preheader ], [ %ind.end, %middle.block ]
  %.02126.ph = phi i32 [ 0, %.lr.ph28.preheader ], [ %15, %middle.block ]
  br label %.lr.ph28

vector.ph:                                        ; preds = %.lr.ph28.preheader
  %n.vec = and i64 %7, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  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 ], [ %12, %vector.body ]
  %vec.phi48 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %13, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %8 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %offset.idx
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  %wide.load = load <4 x i32>, ptr %8, align 4, !tbaa !5
  %wide.load49 = load <4 x i32>, ptr %9, align 4, !tbaa !5
  %10 = and <4 x i32> %wide.load, <i32 1, i32 1, i32 1, i32 1>
  %11 = and <4 x i32> %wide.load49, <i32 1, i32 1, i32 1, i32 1>
  %12 = add <4 x i32> %10, %vec.phi
  %13 = add <4 x i32> %11, %vec.phi48
  %index.next = add nuw i64 %index, 8
  %14 = icmp eq i64 %index.next, %n.vec
  br i1 %14, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %13, %12
  %15 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %7
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph28.preheader50

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %17 = load i32, ptr %1, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %18
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = shl nuw i64 %indvars.iv, 1
  %23 = trunc nuw i64 %22 to i32
  %sext = shl i64 %indvars.iv, 33
  %24 = ashr exact i64 %sext, 32
  %25 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %24
  store i32 %20, ptr %25, align 16, !tbaa !5
  %.sroa.411.0..sroa_idx = getelementptr inbounds i8, ptr %25, i64 4
  store i32 %21, ptr %.sroa.411.0..sroa_idx, align 4, !tbaa !5
  store i32 %23, ptr %19, align 4, !tbaa !5
  %26 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %18
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %26, align 4, !tbaa !5
  %29 = sext i32 %21 to i64
  %30 = getelementptr inbounds [100001 x i32], ptr @lnk, i64 0, i64 %29
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = trunc i64 %22 to i32
  %33 = or disjoint i32 %32, 1
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [200003 x %struct.Edge], ptr @e, i64 0, i64 %34
  store i32 %31, ptr %35, align 8, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %35, i64 4
  store i32 %17, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  store i32 %33, ptr %30, align 4, !tbaa !5
  %36 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %29
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %36, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %39 = load i32, ptr @n, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = icmp slt i64 %indvars.iv.next, %40
  br i1 %41, label %.lr.ph, label %.preheader, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph28, %middle.block
  %.lcssa46 = phi i32 [ %15, %middle.block ], [ %48, %.lr.ph28 ]
  %42 = lshr i32 %.lcssa46, 1
  %43 = icmp sgt i32 %.lcssa, 2
  br i1 %43, label %.lr.ph33.preheader, label %._crit_edge34

.lr.ph33.preheader:                               ; preds = %._crit_edge
  %44 = add nsw i32 %.lcssa, -1
  br label %.lr.ph33

.lr.ph28:                                         ; preds = %.lr.ph28.preheader50, %.lr.ph28
  %indvars.iv39 = phi i64 [ %indvars.iv.next40, %.lr.ph28 ], [ %indvars.iv39.ph, %.lr.ph28.preheader50 ]
  %.02126 = phi i32 [ %48, %.lr.ph28 ], [ %.02126.ph, %.lr.ph28.preheader50 ]
  %45 = getelementptr inbounds [100001 x i32], ptr @deg, i64 0, i64 %indvars.iv39
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = and i32 %46, 1
  %48 = add nuw nsw i32 %47, %.02126
  %indvars.iv.next40 = add nuw nsw i64 %indvars.iv39, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next40, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph28, !llvm.loop !14

.lr.ph33:                                         ; preds = %.lr.ph33.preheader, %.lr.ph33
  %.01831 = phi i32 [ %.1, %.lr.ph33 ], [ %44, %.lr.ph33.preheader ]
  %.01930 = phi i32 [ %.120, %.lr.ph33 ], [ 1, %.lr.ph33.preheader ]
  %49 = add nsw i32 %.01831, %.01930
  %50 = ashr i32 %49, 1
  store i32 %50, ptr @lim, align 4, !tbaa !5
  %51 = call noundef zeroext i1 @_Z4dfs2ii(i32 noundef 1, i32 noundef -1)
  %52 = load i32, ptr @lim, align 4
  %53 = add nsw i32 %52, 1
  %.120 = select i1 %51, i32 %.01930, i32 %53
  %.1 = select i1 %51, i32 %52, i32 %.01831
  %54 = icmp slt i32 %.120, %.1
  br i1 %54, label %.lr.ph33, label %._crit_edge34, !llvm.loop !15

._crit_edge34:                                    ; preds = %.lr.ph33, %.preheader, %._crit_edge
  %.021.lcssa43 = phi i32 [ %42, %._crit_edge ], [ 0, %.preheader ], [ %42, %.lr.ph33 ]
  %.019.lcssa = phi i32 [ 1, %._crit_edge ], [ 1, %.preheader ], [ %.120, %.lr.ph33 ]
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.021.lcssa43, i32 noundef %.019.lcssa)
  ret i32 0
}

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

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

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

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


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