; LLVM IR from manishbisht/Competitive-Programming :: Codechef/ACMIND16 (Robolympic Batons)

; 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
@m = external dso_local global i64, align 8
@a = external dso_local global [500005 x i64], align 16
@i = external dso_local global i64, align 8
@j = external dso_local global i64, align 8
@b = external dso_local global [500005 x i64], align 16
@k = external dso_local global i64, align 8
@ans = 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)
  %3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) @m)
  store i64 0, ptr @i, align 8, !tbaa !5
  br label %4

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

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

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

15:                                               ; preds = %4
  store i64 0, ptr @i, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %30, %15
  %17 = load i64, ptr @i, align 8, !tbaa !5
  %18 = load i64, ptr @m, align 8, !tbaa !5
  %19 = icmp slt i64 %17, %18
  br i1 %19, label %20, label %33

20:                                               ; preds = %16
  %21 = load i64, ptr @i, align 8, !tbaa !5
  %22 = getelementptr inbounds [500005 x i64], ptr @b, i64 0, i64 %21
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %24 = load i64, ptr @i, align 8, !tbaa !5
  %25 = getelementptr inbounds [500005 x i64], ptr @b, i64 0, i64 %24
  %26 = load i64, ptr %25, align 8, !tbaa !5
  %27 = sub nsw i64 %26, 1
  %28 = load i64, ptr @i, align 8, !tbaa !5
  %29 = getelementptr inbounds [500005 x i64], ptr @b, i64 0, i64 %28
  store i64 %27, ptr %29, align 8, !tbaa !5
  br label %30

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

33:                                               ; preds = %16
  store i64 0, ptr @ans, align 8, !tbaa !5
  store i64 0, ptr @i, align 8, !tbaa !5
  br label %34

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

38:                                               ; preds = %34
  store i64 0, ptr @k, align 8, !tbaa !5
  store i64 0, ptr @j, align 8, !tbaa !5
  br label %39

39:                                               ; preds = %67, %38
  %40 = load i64, ptr @j, align 8, !tbaa !5
  %41 = load i64, ptr @m, align 8, !tbaa !5
  %42 = icmp slt i64 %40, %41
  br i1 %42, label %43, label %70

43:                                               ; preds = %39
  %44 = load i64, ptr @j, align 8, !tbaa !5
  %45 = getelementptr inbounds [500005 x i64], ptr @b, i64 0, i64 %44
  %46 = load i64, ptr %45, align 8, !tbaa !5
  %47 = add nsw i64 %46, 1
  %48 = load i64, ptr @j, align 8, !tbaa !5
  %49 = getelementptr inbounds [500005 x i64], ptr @b, i64 0, i64 %48
  store i64 %47, ptr %49, align 8, !tbaa !5
  %50 = load i64, ptr @j, align 8, !tbaa !5
  %51 = getelementptr inbounds [500005 x i64], ptr @b, i64 0, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !5
  %53 = load i64, ptr @n, align 8, !tbaa !5
  %54 = srem i64 %52, %53
  %55 = load i64, ptr @j, align 8, !tbaa !5
  %56 = getelementptr inbounds [500005 x i64], ptr @b, i64 0, i64 %55
  store i64 %54, ptr %56, align 8, !tbaa !5
  %57 = load i64, ptr @j, align 8, !tbaa !5
  %58 = getelementptr inbounds [500005 x i64], ptr @b, i64 0, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !5
  %60 = getelementptr inbounds [500005 x i64], ptr @a, i64 0, i64 %59
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %62 = icmp eq i64 %61, 1
  br i1 %62, label %63, label %66

63:                                               ; preds = %43
  %64 = load i64, ptr @k, align 8, !tbaa !5
  %65 = add nsw i64 %64, 1
  store i64 %65, ptr @k, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %63, %43
  br label %67

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

70:                                               ; preds = %39
  %71 = load i64, ptr @k, align 8, !tbaa !5
  %72 = load i64, ptr @m, align 8, !tbaa !5
  %73 = icmp eq i64 %71, %72
  br i1 %73, label %74, label %77

74:                                               ; preds = %70
  %75 = load i64, ptr @ans, align 8, !tbaa !5
  %76 = add nsw i64 %75, 1
  store i64 %76, ptr @ans, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %74, %70
  br label %78

78:                                               ; preds = %77
  %79 = load i64, ptr @i, align 8, !tbaa !5
  %80 = add nsw i64 %79, 1
  store i64 %80, ptr @i, align 8, !tbaa !5
  br label %34, !llvm.loop !13

81:                                               ; preds = %34
  %82 = load i64, ptr @ans, align 8, !tbaa !5
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %82)
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %83, ptr noundef @_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)) #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}
!13 = distinct !{!13, !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
@m = external dso_local global i64, align 8
@a = external dso_local global [500005 x i64], align 16
@i = external dso_local local_unnamed_addr global i64, align 8
@j = external dso_local local_unnamed_addr global i64, align 8
@b = external dso_local global [500005 x i64], align 16
@k = external dso_local local_unnamed_addr global i64, align 8
@ans = 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)
  %2 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(8) @m)
  store i64 0, ptr @i, align 8, !tbaa !5
  %3 = load i64, ptr @n, align 8, !tbaa !5
  %4 = icmp sgt i64 %3, 0
  br i1 %4, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %.lr.ph, %0
  %5 = phi i64 [ %3, %0 ], [ %12, %.lr.ph ]
  store i64 0, ptr @i, align 8, !tbaa !5
  %6 = load i64, ptr @m, align 8, !tbaa !5
  %7 = icmp sgt i64 %6, 0
  br i1 %7, label %.lr.ph9, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %storemerge7 = phi i64 [ %11, %.lr.ph ], [ 0, %0 ]
  %8 = getelementptr inbounds [500005 x i64], ptr @a, i64 0, i64 %storemerge7
  %9 = 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) %8)
  %10 = load i64, ptr @i, align 8, !tbaa !5
  %11 = add nsw i64 %10, 1
  store i64 %11, ptr @i, align 8, !tbaa !5
  %12 = load i64, ptr @n, align 8, !tbaa !5
  %13 = icmp slt i64 %11, %12
  br i1 %13, label %.lr.ph, label %.preheader, !llvm.loop !9

.lr.ph9:                                          ; preds = %.preheader, %.lr.ph9
  %storemerge48 = phi i64 [ %20, %.lr.ph9 ], [ 0, %.preheader ]
  %14 = getelementptr inbounds [500005 x i64], ptr @b, i64 0, i64 %storemerge48
  %15 = 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) %14)
  %16 = load i64, ptr @i, align 8, !tbaa !5
  %17 = getelementptr inbounds [500005 x i64], ptr @b, i64 0, i64 %16
  %18 = load i64, ptr %17, align 8, !tbaa !5
  %19 = add nsw i64 %18, -1
  store i64 %19, ptr %17, align 8, !tbaa !5
  %20 = add nsw i64 %16, 1
  store i64 %20, ptr @i, align 8, !tbaa !5
  %21 = load i64, ptr @m, align 8, !tbaa !5
  %22 = icmp slt i64 %20, %21
  br i1 %22, label %.lr.ph9, label %._crit_edge.loopexit, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %.lr.ph9
  %.pre = load i64, ptr @n, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %23 = phi i64 [ %5, %.preheader ], [ %.pre, %._crit_edge.loopexit ]
  %.lcssa = phi i64 [ %6, %.preheader ], [ %21, %._crit_edge.loopexit ]
  store i64 0, ptr @ans, align 8, !tbaa !5
  %24 = icmp sgt i64 %23, 0
  br i1 %24, label %.lr.ph20, label %63

.lr.ph20:                                         ; preds = %._crit_edge
  %25 = icmp sgt i64 %.lcssa, 0
  br i1 %25, label %.lr.ph12.us.preheader, label %.lr.ph20.split

.lr.ph12.us.preheader:                            ; preds = %.lr.ph20
  %xtraiter = and i64 %.lcssa, 1
  %26 = icmp eq i64 %.lcssa, 1
  %unroll_iter = and i64 %.lcssa, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph12.us

.lr.ph12.us:                                      ; preds = %.lr.ph12.us.preheader, %30
  %storemerge518.us = phi i64 [ %32, %30 ], [ 0, %.lr.ph12.us.preheader ]
  %27 = phi i64 [ %31, %30 ], [ 0, %.lr.ph12.us.preheader ]
  br i1 %26, label %._crit_edge13.us.unr-lcssa, label %.lr.ph12.us.new

28:                                               ; preds = %._crit_edge13.us
  %29 = add nsw i64 %27, 1
  store i64 %29, ptr @ans, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %28, %._crit_edge13.us
  %31 = phi i64 [ %27, %._crit_edge13.us ], [ %29, %28 ]
  %32 = add nuw nsw i64 %storemerge518.us, 1
  %exitcond42.not = icmp eq i64 %32, %23
  br i1 %exitcond42.not, label %._crit_edge21, label %.lr.ph12.us, !llvm.loop !12

.lr.ph12.us.new:                                  ; preds = %.lr.ph12.us, %.lr.ph12.us.new
  %storemerge610.us = phi i64 [ %51, %.lr.ph12.us.new ], [ 0, %.lr.ph12.us ]
  %33 = phi i64 [ %spec.select.1, %.lr.ph12.us.new ], [ 0, %.lr.ph12.us ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph12.us.new ], [ 0, %.lr.ph12.us ]
  %34 = getelementptr inbounds [500005 x i64], ptr @b, i64 0, i64 %storemerge610.us
  %35 = load i64, ptr %34, align 16, !tbaa !5
  %36 = add nsw i64 %35, 1
  %37 = srem i64 %36, %23
  store i64 %37, ptr %34, align 16, !tbaa !5
  %38 = getelementptr inbounds [500005 x i64], ptr @a, i64 0, i64 %37
  %39 = load i64, ptr %38, align 8, !tbaa !5
  %40 = icmp eq i64 %39, 1
  %41 = zext i1 %40 to i64
  %spec.select = add nuw nsw i64 %33, %41
  %42 = or disjoint i64 %storemerge610.us, 1
  %43 = getelementptr inbounds [500005 x i64], ptr @b, i64 0, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %45 = add nsw i64 %44, 1
  %46 = srem i64 %45, %23
  store i64 %46, ptr %43, align 8, !tbaa !5
  %47 = getelementptr inbounds [500005 x i64], ptr @a, i64 0, i64 %46
  %48 = load i64, ptr %47, align 8, !tbaa !5
  %49 = icmp eq i64 %48, 1
  %50 = zext i1 %49 to i64
  %spec.select.1 = add nuw nsw i64 %spec.select, %50
  %51 = add nuw nsw i64 %storemerge610.us, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge13.us.unr-lcssa, label %.lr.ph12.us.new, !llvm.loop !13

._crit_edge13.us.unr-lcssa:                       ; preds = %.lr.ph12.us.new, %.lr.ph12.us
  %spec.select.lcssa.ph = phi i64 [ poison, %.lr.ph12.us ], [ %spec.select.1, %.lr.ph12.us.new ]
  %storemerge610.us.unr = phi i64 [ 0, %.lr.ph12.us ], [ %51, %.lr.ph12.us.new ]
  %.unr = phi i64 [ 0, %.lr.ph12.us ], [ %spec.select.1, %.lr.ph12.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge13.us, label %._crit_edge13.us.epilog-lcssa

._crit_edge13.us.epilog-lcssa:                    ; preds = %._crit_edge13.us.unr-lcssa
  %52 = getelementptr inbounds [500005 x i64], ptr @b, i64 0, i64 %storemerge610.us.unr
  %53 = load i64, ptr %52, align 8, !tbaa !5
  %54 = add nsw i64 %53, 1
  %55 = srem i64 %54, %23
  store i64 %55, ptr %52, align 8, !tbaa !5
  %56 = getelementptr inbounds [500005 x i64], ptr @a, i64 0, i64 %55
  %57 = load i64, ptr %56, align 8, !tbaa !5
  %58 = icmp eq i64 %57, 1
  %59 = zext i1 %58 to i64
  %spec.select.epil = add nuw nsw i64 %.unr, %59
  br label %._crit_edge13.us

._crit_edge13.us:                                 ; preds = %._crit_edge13.us.unr-lcssa, %._crit_edge13.us.epilog-lcssa
  %spec.select.lcssa = phi i64 [ %spec.select.lcssa.ph, %._crit_edge13.us.unr-lcssa ], [ %spec.select.epil, %._crit_edge13.us.epilog-lcssa ]
  %60 = icmp eq i64 %spec.select.lcssa, %.lcssa
  br i1 %60, label %28, label %30

.lr.ph20.split:                                   ; preds = %.lr.ph20
  %61 = icmp eq i64 %.lcssa, 0
  br i1 %61, label %.lr.ph20.split.split.us.preheader, label %._crit_edge21

.lr.ph20.split.split.us.preheader:                ; preds = %.lr.ph20.split
  store i64 %23, ptr @ans, align 8, !tbaa !5
  br label %._crit_edge21

._crit_edge21:                                    ; preds = %30, %.lr.ph20.split, %.lr.ph20.split.split.us.preheader
  %62 = phi i64 [ %23, %.lr.ph20.split.split.us.preheader ], [ 0, %.lr.ph20.split ], [ %31, %30 ]
  %.us-phi = phi i64 [ 0, %.lr.ph20.split.split.us.preheader ], [ 0, %.lr.ph20.split ], [ %.lcssa, %30 ]
  %.us-phi25 = phi i64 [ 0, %.lr.ph20.split.split.us.preheader ], [ 0, %.lr.ph20.split ], [ %spec.select.lcssa, %30 ]
  store i64 %.us-phi25, ptr @k, align 8, !tbaa !5
  store i64 %.us-phi, ptr @j, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %._crit_edge21, %._crit_edge
  %64 = phi i64 [ %62, %._crit_edge21 ], [ 0, %._crit_edge ]
  %storemerge5.lcssa = phi i64 [ %23, %._crit_edge21 ], [ 0, %._crit_edge ]
  store i64 %storemerge5.lcssa, ptr @i, align 8, !tbaa !5
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %64)
  %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
}

; 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

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}
!13 = distinct !{!13, !10}


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