; LLVM IR from kazunetakahashi/atcoder :: 2019/0511_diverta2019 (B)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@R = external dso_local global i32, align 4
@G = external dso_local global i32, align 4
@B = external dso_local global i32, align 4
@N = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; 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
  %6 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @R)
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) @G)
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(4) @B)
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) @N)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %47, %0
  %12 = load i32, ptr %3, align 4, !tbaa !5
  %13 = load i32, ptr @N, align 4, !tbaa !5
  %14 = icmp sle i32 %12, %13
  br i1 %14, label %16, label %15

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

16:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %43, %16
  %18 = load i32, ptr %5, align 4, !tbaa !5
  %19 = load i32, ptr @N, align 4, !tbaa !5
  %20 = icmp sle i32 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %46

22:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %23 = load i32, ptr @N, align 4, !tbaa !5
  %24 = load i32, ptr @R, align 4, !tbaa !5
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = mul nsw i32 %24, %25
  %27 = sub nsw i32 %23, %26
  %28 = load i32, ptr @G, align 4, !tbaa !5
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = mul nsw i32 %28, %29
  %31 = sub nsw i32 %27, %30
  store i32 %31, ptr %6, align 4, !tbaa !5
  %32 = load i32, ptr %6, align 4, !tbaa !5
  %33 = icmp sge i32 %32, 0
  br i1 %33, label %34, label %42

34:                                               ; preds = %22
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = load i32, ptr @B, align 4, !tbaa !5
  %37 = srem i32 %35, %36
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %42

39:                                               ; preds = %34
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %2, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %39, %34, %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %43

43:                                               ; preds = %42
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %5, align 4, !tbaa !5
  br label %17, !llvm.loop !9

46:                                               ; preds = %21
  br label %47

47:                                               ; preds = %46
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %3, align 4, !tbaa !5
  br label %11, !llvm.loop !11

50:                                               ; preds = %15
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %51)
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %54 = load i32, ptr %1, align 4
  ret i32 %54
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #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 noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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 = { 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 #4 = { inlinehint 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 #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}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@R = external dso_local global i32, align 4
@G = external dso_local global i32, align 4
@B = external dso_local global i32, align 4
@N = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @R)
  %2 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 4 dereferenceable(4) @G)
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) @B)
  %4 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %5 = load i32, ptr @N, align 4, !tbaa !5
  %.not21 = icmp slt i32 %5, 0
  br i1 %.not21, label %._crit_edge24, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %0
  %6 = load i32, ptr @R, align 4
  %7 = load i32, ptr @G, align 4
  %8 = load i32, ptr @B, align 4
  %9 = add nuw i32 %5, 1
  %min.iters.check = icmp ult i32 %5, 7
  %n.vec = and i32 %9, -8
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %7, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert31 = insertelement <4 x i32> poison, i32 %5, i64 0
  %broadcast.splat32 = shufflevector <4 x i32> %broadcast.splatinsert31, <4 x i32> poison, <4 x i32> zeroinitializer
  %cmp.n = icmp eq i32 %9, %n.vec
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %.023 = phi i32 [ 0, %.preheader.lr.ph ], [ %.2.lcssa, %._crit_edge ]
  %.01222 = phi i32 [ 0, %.preheader.lr.ph ], [ %67, %._crit_edge ]
  %.neg = mul i32 %6, %.01222
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader
  %.120.ph = phi i32 [ %.023, %.preheader ], [ %64, %middle.block ]
  %.01119.ph = phi i32 [ 0, %.preheader ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.preheader
  %10 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %.023, i64 0
  %broadcast.splatinsert29 = insertelement <4 x i32> poison, i32 %.neg, i64 0
  %broadcast.splat30 = shufflevector <4 x i32> %broadcast.splatinsert29, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %pred.srem.continue46, %vector.ph
  %index = phi i32 [ 0, %vector.ph ], [ %index.next, %pred.srem.continue46 ]
  %vec.phi = phi <4 x i32> [ %10, %vector.ph ], [ %predphi, %pred.srem.continue46 ]
  %vec.phi27 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %predphi47, %pred.srem.continue46 ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %pred.srem.continue46 ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %11 = mul <4 x i32> %broadcast.splat, %vec.ind
  %12 = mul <4 x i32> %broadcast.splat, %step.add
  %13 = add <4 x i32> %11, %broadcast.splat30
  %14 = add <4 x i32> %12, %broadcast.splat30
  %15 = sub <4 x i32> %broadcast.splat32, %13
  %16 = sub <4 x i32> %broadcast.splat32, %14
  %17 = icmp sgt <4 x i32> %15, <i32 -1, i32 -1, i32 -1, i32 -1>
  %18 = icmp sgt <4 x i32> %16, <i32 -1, i32 -1, i32 -1, i32 -1>
  %19 = extractelement <4 x i1> %17, i64 0
  br i1 %19, label %pred.srem.if, label %pred.srem.continue

pred.srem.if:                                     ; preds = %vector.body
  %20 = extractelement <4 x i32> %15, i64 0
  %21 = srem i32 %20, %8
  %22 = insertelement <4 x i32> poison, i32 %21, i64 0
  br label %pred.srem.continue

pred.srem.continue:                               ; preds = %pred.srem.if, %vector.body
  %23 = phi <4 x i32> [ poison, %vector.body ], [ %22, %pred.srem.if ]
  %24 = extractelement <4 x i1> %17, i64 1
  br i1 %24, label %pred.srem.if33, label %pred.srem.continue34

pred.srem.if33:                                   ; preds = %pred.srem.continue
  %25 = extractelement <4 x i32> %15, i64 1
  %26 = srem i32 %25, %8
  %27 = insertelement <4 x i32> %23, i32 %26, i64 1
  br label %pred.srem.continue34

pred.srem.continue34:                             ; preds = %pred.srem.if33, %pred.srem.continue
  %28 = phi <4 x i32> [ %23, %pred.srem.continue ], [ %27, %pred.srem.if33 ]
  %29 = extractelement <4 x i1> %17, i64 2
  br i1 %29, label %pred.srem.if35, label %pred.srem.continue36

pred.srem.if35:                                   ; preds = %pred.srem.continue34
  %30 = extractelement <4 x i32> %15, i64 2
  %31 = srem i32 %30, %8
  %32 = insertelement <4 x i32> %28, i32 %31, i64 2
  br label %pred.srem.continue36

pred.srem.continue36:                             ; preds = %pred.srem.if35, %pred.srem.continue34
  %33 = phi <4 x i32> [ %28, %pred.srem.continue34 ], [ %32, %pred.srem.if35 ]
  %34 = extractelement <4 x i1> %17, i64 3
  br i1 %34, label %pred.srem.if37, label %pred.srem.continue38

pred.srem.if37:                                   ; preds = %pred.srem.continue36
  %35 = extractelement <4 x i32> %15, i64 3
  %36 = srem i32 %35, %8
  %37 = insertelement <4 x i32> %33, i32 %36, i64 3
  br label %pred.srem.continue38

pred.srem.continue38:                             ; preds = %pred.srem.if37, %pred.srem.continue36
  %38 = phi <4 x i32> [ %33, %pred.srem.continue36 ], [ %37, %pred.srem.if37 ]
  %39 = extractelement <4 x i1> %18, i64 0
  br i1 %39, label %pred.srem.if39, label %pred.srem.continue40

pred.srem.if39:                                   ; preds = %pred.srem.continue38
  %40 = extractelement <4 x i32> %16, i64 0
  %41 = srem i32 %40, %8
  %42 = insertelement <4 x i32> poison, i32 %41, i64 0
  br label %pred.srem.continue40

pred.srem.continue40:                             ; preds = %pred.srem.if39, %pred.srem.continue38
  %43 = phi <4 x i32> [ poison, %pred.srem.continue38 ], [ %42, %pred.srem.if39 ]
  %44 = extractelement <4 x i1> %18, i64 1
  br i1 %44, label %pred.srem.if41, label %pred.srem.continue42

pred.srem.if41:                                   ; preds = %pred.srem.continue40
  %45 = extractelement <4 x i32> %16, i64 1
  %46 = srem i32 %45, %8
  %47 = insertelement <4 x i32> %43, i32 %46, i64 1
  br label %pred.srem.continue42

pred.srem.continue42:                             ; preds = %pred.srem.if41, %pred.srem.continue40
  %48 = phi <4 x i32> [ %43, %pred.srem.continue40 ], [ %47, %pred.srem.if41 ]
  %49 = extractelement <4 x i1> %18, i64 2
  br i1 %49, label %pred.srem.if43, label %pred.srem.continue44

pred.srem.if43:                                   ; preds = %pred.srem.continue42
  %50 = extractelement <4 x i32> %16, i64 2
  %51 = srem i32 %50, %8
  %52 = insertelement <4 x i32> %48, i32 %51, i64 2
  br label %pred.srem.continue44

pred.srem.continue44:                             ; preds = %pred.srem.if43, %pred.srem.continue42
  %53 = phi <4 x i32> [ %48, %pred.srem.continue42 ], [ %52, %pred.srem.if43 ]
  %54 = extractelement <4 x i1> %18, i64 3
  br i1 %54, label %pred.srem.if45, label %pred.srem.continue46

pred.srem.if45:                                   ; preds = %pred.srem.continue44
  %55 = extractelement <4 x i32> %16, i64 3
  %56 = srem i32 %55, %8
  %57 = insertelement <4 x i32> %53, i32 %56, i64 3
  br label %pred.srem.continue46

pred.srem.continue46:                             ; preds = %pred.srem.if45, %pred.srem.continue44
  %58 = phi <4 x i32> [ %53, %pred.srem.continue44 ], [ %57, %pred.srem.if45 ]
  %59 = icmp eq <4 x i32> %38, zeroinitializer
  %60 = icmp eq <4 x i32> %58, zeroinitializer
  %narrow = select <4 x i1> %17, <4 x i1> %59, <4 x i1> zeroinitializer
  %61 = zext <4 x i1> %narrow to <4 x i32>
  %predphi = add <4 x i32> %vec.phi, %61
  %narrow48 = select <4 x i1> %18, <4 x i1> %60, <4 x i1> zeroinitializer
  %62 = zext <4 x i1> %narrow48 to <4 x i32>
  %predphi47 = add <4 x i32> %vec.phi27, %62
  %index.next = add nuw i32 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %63 = icmp eq i32 %index.next, %n.vec
  br i1 %63, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %pred.srem.continue46
  %bin.rdx = add <4 x i32> %predphi47, %predphi
  %64 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge24:                                    ; preds = %._crit_edge, %0
  %.0.lcssa = phi i32 [ 0, %0 ], [ %.2.lcssa, %._crit_edge ]
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.0.lcssa)
  %66 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0

._crit_edge:                                      ; preds = %74, %middle.block
  %.2.lcssa = phi i32 [ %64, %middle.block ], [ %.2, %74 ]
  %67 = add nuw i32 %.01222, 1
  %exitcond26.not = icmp eq i32 %.01222, %5
  br i1 %exitcond26.not, label %._crit_edge24, label %.preheader, !llvm.loop !13

scalar.ph:                                        ; preds = %scalar.ph.preheader, %74
  %.120 = phi i32 [ %.2, %74 ], [ %.120.ph, %scalar.ph.preheader ]
  %.01119 = phi i32 [ %75, %74 ], [ %.01119.ph, %scalar.ph.preheader ]
  %.neg16 = mul i32 %7, %.01119
  %reass.add = add i32 %.neg16, %.neg
  %68 = sub i32 %5, %reass.add
  %69 = icmp sgt i32 %68, -1
  br i1 %69, label %70, label %74

70:                                               ; preds = %scalar.ph
  %71 = srem i32 %68, %8
  %72 = icmp eq i32 %71, 0
  %73 = zext i1 %72 to i32
  %spec.select = add nsw i32 %.120, %73
  br label %74

74:                                               ; preds = %70, %scalar.ph
  %.2 = phi i32 [ %.120, %scalar.ph ], [ %spec.select, %70 ]
  %75 = add nuw i32 %.01119, 1
  %exitcond.not = icmp eq i32 %.01119, %5
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !14
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #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 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 = { 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 #3 = { inlinehint 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 #4 = { 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 = !{!"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}


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