; LLVM IR from manishbisht/Competitive-Programming :: AtCoder/AtCoder Beginner Contest 043 (Be Together)

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

@n = external dso_local global i64, align 8
@a = external dso_local global [105 x i64], align 16
@i = external dso_local global i64, align 8
@temp = external dso_local global i64, align 8
@ans1 = external dso_local global i64, align 8
@ans2 = external dso_local global i64, align 8
@_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
  store i32 0, ptr %1, align 4
  %2 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @n)
  store i64 0, ptr @i, align 8, !tbaa !5
  br label %3

3:                                                ; preds = %11, %0
  %4 = load i64, ptr @i, align 8, !tbaa !5
  %5 = load i64, ptr @n, align 8, !tbaa !5
  %6 = icmp slt i64 %4, %5
  br i1 %6, label %7, label %14

7:                                                ; preds = %3
  %8 = load i64, ptr @i, align 8, !tbaa !5
  %9 = getelementptr inbounds [105 x i64], ptr @a, i64 0, i64 %8
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %9)
  br label %11

11:                                               ; preds = %7
  %12 = load i64, ptr @i, align 8, !tbaa !5
  %13 = add nsw i64 %12, 1
  store i64 %13, ptr @i, align 8, !tbaa !5
  br label %3, !llvm.loop !9

14:                                               ; preds = %3
  %15 = load i64, ptr @a, align 16, !tbaa !5
  store i64 %15, ptr @temp, align 8, !tbaa !5
  store i64 1, ptr @i, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %26, %14
  %17 = load i64, ptr @i, align 8, !tbaa !5
  %18 = load i64, ptr @n, align 8, !tbaa !5
  %19 = icmp slt i64 %17, %18
  br i1 %19, label %20, label %29

20:                                               ; preds = %16
  %21 = load i64, ptr @temp, align 8, !tbaa !5
  %22 = load i64, ptr @i, align 8, !tbaa !5
  %23 = getelementptr inbounds [105 x i64], ptr @a, i64 0, i64 %22
  %24 = load i64, ptr %23, align 8, !tbaa !5
  %25 = add nsw i64 %21, %24
  store i64 %25, ptr @temp, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %20
  %27 = load i64, ptr @i, align 8, !tbaa !5
  %28 = add nsw i64 %27, 1
  store i64 %28, ptr @i, align 8, !tbaa !5
  br label %16, !llvm.loop !11

29:                                               ; preds = %16
  %30 = load i64, ptr @temp, align 8, !tbaa !5
  %31 = load i64, ptr @n, align 8, !tbaa !5
  %32 = sdiv i64 %30, %31
  store i64 %32, ptr @temp, align 8, !tbaa !5
  store i64 0, ptr @ans1, align 8, !tbaa !5
  store i64 0, ptr @ans2, align 8, !tbaa !5
  store i64 0, ptr @i, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %66, %29
  %34 = load i64, ptr @i, align 8, !tbaa !5
  %35 = load i64, ptr @n, align 8, !tbaa !5
  %36 = icmp slt i64 %34, %35
  br i1 %36, label %37, label %69

37:                                               ; preds = %33
  %38 = load i64, ptr @ans1, align 8, !tbaa !5
  %39 = load i64, ptr @i, align 8, !tbaa !5
  %40 = getelementptr inbounds [105 x i64], ptr @a, i64 0, i64 %39
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = load i64, ptr @temp, align 8, !tbaa !5
  %43 = sub nsw i64 %41, %42
  %44 = load i64, ptr @i, align 8, !tbaa !5
  %45 = getelementptr inbounds [105 x i64], ptr @a, i64 0, i64 %44
  %46 = load i64, ptr %45, align 8, !tbaa !5
  %47 = load i64, ptr @temp, align 8, !tbaa !5
  %48 = sub nsw i64 %46, %47
  %49 = mul nsw i64 %43, %48
  %50 = add nsw i64 %38, %49
  store i64 %50, ptr @ans1, align 8, !tbaa !5
  %51 = load i64, ptr @ans2, align 8, !tbaa !5
  %52 = load i64, ptr @i, align 8, !tbaa !5
  %53 = getelementptr inbounds [105 x i64], ptr @a, i64 0, i64 %52
  %54 = load i64, ptr %53, align 8, !tbaa !5
  %55 = load i64, ptr @temp, align 8, !tbaa !5
  %56 = sub nsw i64 %54, %55
  %57 = sub nsw i64 %56, 1
  %58 = load i64, ptr @i, align 8, !tbaa !5
  %59 = getelementptr inbounds [105 x i64], ptr @a, i64 0, i64 %58
  %60 = load i64, ptr %59, align 8, !tbaa !5
  %61 = load i64, ptr @temp, align 8, !tbaa !5
  %62 = sub nsw i64 %60, %61
  %63 = sub nsw i64 %62, 1
  %64 = mul nsw i64 %57, %63
  %65 = add nsw i64 %51, %64
  store i64 %65, ptr @ans2, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %37
  %67 = load i64, ptr @i, align 8, !tbaa !5
  %68 = add nsw i64 %67, 1
  store i64 %68, ptr @i, align 8, !tbaa !5
  br label %33, !llvm.loop !12

69:                                               ; preds = %33
  %70 = load i64, ptr @ans1, align 8, !tbaa !5
  %71 = load i64, ptr @ans2, align 8, !tbaa !5
  %72 = icmp slt i64 %70, %71
  br i1 %72, label %73, label %77

73:                                               ; preds = %69
  %74 = load i64, ptr @ans1, align 8, !tbaa !5
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %74)
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %81

77:                                               ; preds = %69
  %78 = load i64, ptr @ans2, align 8, !tbaa !5
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %78)
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %81

81:                                               ; preds = %77, %73
  ret i32 0
}

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 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)) #2

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 = { 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 = { 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" }

!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 = !{!"long long", !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}
!12 = distinct !{!12, !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" }

@n = external dso_local global i64, align 8
@a = external dso_local global [105 x i64], align 16
@i = external dso_local local_unnamed_addr global i64, align 8
@temp = external dso_local local_unnamed_addr global i64, align 8
@ans1 = external dso_local local_unnamed_addr global i64, align 8
@ans2 = external dso_local local_unnamed_addr global i64, align 8
@_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 @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @n)
  store i64 0, ptr @i, align 8, !tbaa !5
  %2 = load i64, ptr @n, align 8, !tbaa !5
  %3 = icmp sgt i64 %2, 0
  br i1 %3, label %.lr.ph, label %.thread

.thread:                                          ; preds = %0
  %4 = load i64, ptr @a, align 16, !tbaa !5
  %5 = sdiv i64 %4, %2
  store i64 %5, ptr @temp, align 8, !tbaa !5
  store i64 0, ptr @ans1, align 8, !tbaa !5
  store i64 0, ptr @ans2, align 8, !tbaa !5
  br label %.thread33

.lr.ph:                                           ; preds = %0, %.lr.ph
  %storemerge8 = phi i64 [ %9, %.lr.ph ], [ 0, %0 ]
  %6 = getelementptr inbounds [105 x i64], ptr @a, i64 0, i64 %storemerge8
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %8 = load i64, ptr @i, align 8, !tbaa !5
  %9 = add nsw i64 %8, 1
  store i64 %9, ptr @i, align 8, !tbaa !5
  %10 = load i64, ptr @n, align 8, !tbaa !5
  %11 = icmp slt i64 %9, %10
  br i1 %11, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph
  %12 = load i64, ptr @a, align 16, !tbaa !5
  %13 = icmp sgt i64 %10, 1
  br i1 %13, label %.lr.ph11.preheader, label %._crit_edge12

.lr.ph11.preheader:                               ; preds = %._crit_edge
  %14 = add nsw i64 %10, -1
  %min.iters.check = icmp ult i64 %10, 5
  br i1 %min.iters.check, label %.lr.ph11.preheader74, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph11.preheader
  %n.vec = and i64 %14, -4
  %ind.end = or disjoint i64 %n.vec, 1
  %15 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %12, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ %15, %vector.ph ], [ %18, %vector.body ]
  %vec.phi42 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %19, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %16 = getelementptr inbounds [105 x i64], ptr @a, i64 0, i64 %offset.idx
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  %wide.load = load <2 x i64>, ptr %16, align 8, !tbaa !5
  %wide.load43 = load <2 x i64>, ptr %17, align 8, !tbaa !5
  %18 = add <2 x i64> %wide.load, %vec.phi
  %19 = add <2 x i64> %wide.load43, %vec.phi42
  %index.next = add nuw i64 %index, 4
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %19, %18
  %21 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %14, %n.vec
  br i1 %cmp.n, label %._crit_edge12, label %.lr.ph11.preheader74

.lr.ph11.preheader74:                             ; preds = %middle.block, %.lr.ph11.preheader
  %storemerge69.ph = phi i64 [ 1, %.lr.ph11.preheader ], [ %ind.end, %middle.block ]
  %.ph75 = phi i64 [ %12, %.lr.ph11.preheader ], [ %21, %middle.block ]
  br label %.lr.ph11

.lr.ph11:                                         ; preds = %.lr.ph11.preheader74, %.lr.ph11
  %storemerge69 = phi i64 [ %26, %.lr.ph11 ], [ %storemerge69.ph, %.lr.ph11.preheader74 ]
  %22 = phi i64 [ %25, %.lr.ph11 ], [ %.ph75, %.lr.ph11.preheader74 ]
  %23 = getelementptr inbounds [105 x i64], ptr @a, i64 0, i64 %storemerge69
  %24 = load i64, ptr %23, align 8, !tbaa !5
  %25 = add nsw i64 %24, %22
  %26 = add nuw nsw i64 %storemerge69, 1
  %exitcond.not = icmp eq i64 %26, %10
  br i1 %exitcond.not, label %._crit_edge12, label %.lr.ph11, !llvm.loop !14

._crit_edge12:                                    ; preds = %.lr.ph11, %middle.block, %._crit_edge
  %27 = phi i64 [ %12, %._crit_edge ], [ %21, %middle.block ], [ %25, %.lr.ph11 ]
  %28 = sdiv i64 %27, %10
  store i64 %28, ptr @temp, align 8, !tbaa !5
  store i64 0, ptr @ans1, align 8, !tbaa !5
  store i64 0, ptr @ans2, align 8, !tbaa !5
  %29 = icmp sgt i64 %10, 0
  br i1 %29, label %.lr.ph17, label %.thread33

.lr.ph17:                                         ; preds = %._crit_edge12
  %30 = xor i64 %28, -1
  %min.iters.check46 = icmp ult i64 %10, 4
  br i1 %min.iters.check46, label %scalar.ph45.preheader, label %vector.ph47

vector.ph47:                                      ; preds = %.lr.ph17
  %n.vec49 = and i64 %10, 9223372036854775804
  %broadcast.splatinsert = insertelement <2 x i64> poison, i64 %28, i64 0
  %broadcast.splat = shufflevector <2 x i64> %broadcast.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert59 = insertelement <2 x i64> poison, i64 %30, i64 0
  %broadcast.splat60 = shufflevector <2 x i64> %broadcast.splatinsert59, <2 x i64> poison, <2 x i32> zeroinitializer
  br label %vector.body51

vector.body51:                                    ; preds = %vector.body51, %vector.ph47
  %index52 = phi i64 [ 0, %vector.ph47 ], [ %index.next61, %vector.body51 ]
  %vec.phi53 = phi <2 x i64> [ zeroinitializer, %vector.ph47 ], [ %37, %vector.body51 ]
  %vec.phi54 = phi <2 x i64> [ zeroinitializer, %vector.ph47 ], [ %38, %vector.body51 ]
  %vec.phi55 = phi <2 x i64> [ zeroinitializer, %vector.ph47 ], [ %43, %vector.body51 ]
  %vec.phi56 = phi <2 x i64> [ zeroinitializer, %vector.ph47 ], [ %44, %vector.body51 ]
  %31 = getelementptr inbounds [105 x i64], ptr @a, i64 0, i64 %index52
  %32 = getelementptr inbounds i8, ptr %31, i64 16
  %wide.load57 = load <2 x i64>, ptr %31, align 16, !tbaa !5
  %wide.load58 = load <2 x i64>, ptr %32, align 16, !tbaa !5
  %33 = sub nsw <2 x i64> %wide.load57, %broadcast.splat
  %34 = sub nsw <2 x i64> %wide.load58, %broadcast.splat
  %35 = mul nsw <2 x i64> %33, %33
  %36 = mul nsw <2 x i64> %34, %34
  %37 = add <2 x i64> %35, %vec.phi53
  %38 = add <2 x i64> %36, %vec.phi54
  %39 = add <2 x i64> %wide.load57, %broadcast.splat60
  %40 = add <2 x i64> %wide.load58, %broadcast.splat60
  %41 = mul nsw <2 x i64> %39, %39
  %42 = mul nsw <2 x i64> %40, %40
  %43 = add <2 x i64> %vec.phi55, %41
  %44 = add <2 x i64> %vec.phi56, %42
  %index.next61 = add nuw i64 %index52, 4
  %45 = icmp eq i64 %index.next61, %n.vec49
  br i1 %45, label %middle.block44, label %vector.body51, !llvm.loop !15

middle.block44:                                   ; preds = %vector.body51
  %bin.rdx62 = add <2 x i64> %38, %37
  %46 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx62)
  %bin.rdx63 = add <2 x i64> %44, %43
  %47 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx63)
  %cmp.n64 = icmp eq i64 %10, %n.vec49
  br i1 %cmp.n64, label %.loopexit, label %scalar.ph45.preheader

scalar.ph45.preheader:                            ; preds = %middle.block44, %.lr.ph17
  %storemerge715.ph = phi i64 [ 0, %.lr.ph17 ], [ %n.vec49, %middle.block44 ]
  %.ph = phi i64 [ 0, %.lr.ph17 ], [ %46, %middle.block44 ]
  %.ph67 = phi i64 [ 0, %.lr.ph17 ], [ %47, %middle.block44 ]
  br label %scalar.ph45

scalar.ph45:                                      ; preds = %scalar.ph45.preheader, %scalar.ph45
  %storemerge715 = phi i64 [ %58, %scalar.ph45 ], [ %storemerge715.ph, %scalar.ph45.preheader ]
  %48 = phi i64 [ %54, %scalar.ph45 ], [ %.ph, %scalar.ph45.preheader ]
  %49 = phi i64 [ %57, %scalar.ph45 ], [ %.ph67, %scalar.ph45.preheader ]
  %50 = getelementptr inbounds [105 x i64], ptr @a, i64 0, i64 %storemerge715
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %52 = sub nsw i64 %51, %28
  %53 = mul nsw i64 %52, %52
  %54 = add nuw nsw i64 %53, %48
  %55 = add i64 %51, %30
  %56 = mul nsw i64 %55, %55
  %57 = add nuw nsw i64 %49, %56
  %58 = add nuw nsw i64 %storemerge715, 1
  %exitcond28.not = icmp eq i64 %58, %10
  br i1 %exitcond28.not, label %.loopexit, label %scalar.ph45, !llvm.loop !16

.thread33:                                        ; preds = %._crit_edge12, %.thread
  store i64 0, ptr @i, align 8, !tbaa !5
  br label %59

.loopexit:                                        ; preds = %scalar.ph45, %middle.block44
  %.lcssa39 = phi i64 [ %46, %middle.block44 ], [ %54, %scalar.ph45 ]
  %.lcssa = phi i64 [ %47, %middle.block44 ], [ %57, %scalar.ph45 ]
  store i64 %.lcssa39, ptr @ans1, align 8, !tbaa !5
  store i64 %.lcssa, ptr @ans2, align 8, !tbaa !5
  store i64 %10, ptr @i, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umin.i64(i64 %.lcssa39, i64 %.lcssa)
  br label %59

59:                                               ; preds = %.loopexit, %.thread33
  %.sink38 = phi i64 [ 0, %.thread33 ], [ %spec.select, %.loopexit ]
  %60 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.sink38)
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #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 = { 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 = { 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 #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 = !{!"long long", !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, !12, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !10, !13, !12}
!15 = distinct !{!15, !10, !12, !13}
!16 = distinct !{!16, !10, !13, !12}


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