; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/194 Division 1/D/D.ll (Z1fi)

; 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::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { [16 x i64] }

@rows = external dso_local global [1010 x %"class.std::bitset"], align 16
@a = external dso_local global [1010 x [1010 x i32]], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z1fi(i32 noundef %0) #0 {
  %2 = alloca i1, align 1
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::bitset", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::bitset", align 8
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %22, %1
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %14 = load i32, ptr @n, align 4, !tbaa !5
  %15 = icmp sle i32 %13, %14
  br i1 %15, label %17, label %16

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

17:                                               ; preds = %12
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [1010 x %"class.std::bitset"], ptr @rows, i64 0, i64 %19
  %21 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1010EE5resetEv(ptr noundef nonnull align 8 dereferenceable(128) %20) #5
  br label %22

22:                                               ; preds = %17
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %4, align 4, !tbaa !5
  br label %12, !llvm.loop !9

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

26:                                               ; preds = %59, %25
  %27 = load i32, ptr %5, align 4, !tbaa !5
  %28 = load i32, ptr @n, align 4, !tbaa !5
  %29 = icmp sle i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %62

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %55, %31
  %33 = load i32, ptr %7, align 4, !tbaa !5
  %34 = load i32, ptr @m, align 4, !tbaa !5
  %35 = icmp sle i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %58

37:                                               ; preds = %32
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [1010 x [1010 x i32]], ptr @a, i64 0, i64 %39
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [1010 x i32], ptr %40, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = icmp sge i32 %44, %45
  br i1 %46, label %47, label %54

47:                                               ; preds = %37
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [1010 x %"class.std::bitset"], ptr @rows, i64 0, i64 %49
  %51 = load i32, ptr %7, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1010EE3setEmb(ptr noundef nonnull align 8 dereferenceable(128) %50, i64 noundef %52, i1 noundef zeroext true)
  br label %54

54:                                               ; preds = %47, %37
  br label %55

55:                                               ; preds = %54
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %7, align 4, !tbaa !5
  br label %32, !llvm.loop !11

58:                                               ; preds = %36
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %5, align 4, !tbaa !5
  br label %26, !llvm.loop !12

62:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 128, ptr %8) #5
  call void @_ZNSt6bitsetILm1010EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %100, %62
  %64 = load i32, ptr %9, align 4, !tbaa !5
  %65 = load i32, ptr @n, align 4, !tbaa !5
  %66 = icmp sle i32 %64, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  store i32 11, ptr %6, align 4
  br label %103

68:                                               ; preds = %63
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [1010 x %"class.std::bitset"], ptr @rows, i64 0, i64 %70
  %72 = call noundef i64 @_ZNKSt6bitsetILm1010EE5countEv(ptr noundef nonnull align 8 dereferenceable(128) %71) #5
  %73 = icmp ule i64 %72, 1
  br i1 %73, label %74, label %75

74:                                               ; preds = %68
  br label %100

75:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %76 = load i32, ptr %9, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %10, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %94, %75
  %79 = load i32, ptr %10, align 4, !tbaa !5
  %80 = load i32, ptr @n, align 4, !tbaa !5
  %81 = icmp sle i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  store i32 14, ptr %6, align 4
  br label %97

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 128, ptr %11) #5
  %84 = load i32, ptr %9, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [1010 x %"class.std::bitset"], ptr @rows, i64 0, i64 %85
  %87 = load i32, ptr %10, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [1010 x %"class.std::bitset"], ptr @rows, i64 0, i64 %88
  call void @_ZStanILm1010EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %11, ptr noundef nonnull align 8 dereferenceable(128) %86, ptr noundef nonnull align 8 dereferenceable(128) %89) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %11, i64 128, i1 false)
  call void @llvm.lifetime.end.p0(i64 128, ptr %11) #5
  %90 = call noundef i64 @_ZNKSt6bitsetILm1010EE5countEv(ptr noundef nonnull align 8 dereferenceable(128) %8) #5
  %91 = icmp ugt i64 %90, 1
  br i1 %91, label %92, label %93

92:                                               ; preds = %83
  store i1 true, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %97

93:                                               ; preds = %83
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %10, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %10, align 4, !tbaa !5
  br label %78, !llvm.loop !13

97:                                               ; preds = %92, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %98 = load i32, ptr %6, align 4
  switch i32 %98, label %103 [
    i32 14, label %99
  ]

99:                                               ; preds = %97
  br label %100

100:                                              ; preds = %99, %74
  %101 = load i32, ptr %9, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %9, align 4, !tbaa !5
  br label %63, !llvm.loop !14

103:                                              ; preds = %97, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %104 = load i32, ptr %6, align 4
  switch i32 %104, label %106 [
    i32 11, label %105
  ]

105:                                              ; preds = %103
  store i1 false, ptr %2, align 1
  store i32 1, ptr %6, align 4
  br label %106

106:                                              ; preds = %105, %103
  call void @llvm.lifetime.end.p0(i64 128, ptr %8) #5
  %107 = load i1, ptr %2, align 1
  ret i1 %107
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1010EE5resetEv(ptr noundef nonnull align 8 dereferenceable(128)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1010EE3setEmb(ptr noundef nonnull align 8 dereferenceable(128), i64 noundef, i1 noundef zeroext) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm1010EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6bitsetILm1010EE5countEv(ptr noundef nonnull align 8 dereferenceable(128)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZStanILm1010EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) #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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind 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 nounwind 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 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !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::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { [16 x i64] }

@rows = external dso_local global [1010 x %"class.std::bitset"], align 16
@a = external dso_local local_unnamed_addr global [1010 x [1010 x i32]], align 16
@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z1fi(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca %"class.std::bitset", align 8
  %3 = alloca %"class.std::bitset", align 8
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %.not42 = icmp slt i32 %4, 1
  br i1 %.not42, label %._crit_edge49, label %.lr.ph

.preheader39:                                     ; preds = %.lr.ph
  %.not3047 = icmp slt i32 %9, 1
  %5 = load i32, ptr @m, align 4
  %6 = icmp slt i32 %5, 1
  %or.cond = select i1 %.not3047, i1 true, i1 %6
  br i1 %or.cond, label %._crit_edge49, label %.preheader38

.lr.ph:                                           ; preds = %1, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %1 ]
  %7 = getelementptr inbounds [1010 x %"class.std::bitset"], ptr @rows, i64 0, i64 %indvars.iv
  %8 = tail call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1010EE5resetEv(ptr noundef nonnull align 8 dereferenceable(128) %7) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %.not.not = icmp slt i64 %indvars.iv, %10
  br i1 %.not.not, label %.lr.ph, label %.preheader39, !llvm.loop !9

.preheader38:                                     ; preds = %.preheader39, %._crit_edge
  %11 = phi i32 [ %16, %._crit_edge ], [ %9, %.preheader39 ]
  %12 = phi i32 [ %17, %._crit_edge ], [ %5, %.preheader39 ]
  %13 = phi i32 [ %18, %._crit_edge ], [ %5, %.preheader39 ]
  %indvars.iv62 = phi i64 [ %indvars.iv.next63, %._crit_edge ], [ 1, %.preheader39 ]
  %.not3344 = icmp slt i32 %13, 1
  br i1 %.not3344, label %._crit_edge, label %.lr.ph46

.lr.ph46:                                         ; preds = %.preheader38
  %14 = getelementptr inbounds [1010 x %"class.std::bitset"], ptr @rows, i64 0, i64 %indvars.iv62
  br label %20

._crit_edge49:                                    ; preds = %._crit_edge, %1, %.preheader39
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %2) #5
  call void @_ZNSt6bitsetILm1010EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128) %2) #5
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %.not3150 = icmp sgt i32 %15, 0
  br i1 %.not3150, label %.lr.ph54, label %.critedge36

._crit_edge.loopexit:                             ; preds = %26
  %.pre70 = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader38
  %16 = phi i32 [ %.pre70, %._crit_edge.loopexit ], [ %11, %.preheader38 ]
  %17 = phi i32 [ %27, %._crit_edge.loopexit ], [ %12, %.preheader38 ]
  %18 = phi i32 [ %27, %._crit_edge.loopexit ], [ %13, %.preheader38 ]
  %indvars.iv.next63 = add nuw nsw i64 %indvars.iv62, 1
  %19 = sext i32 %16 to i64
  %.not30.not = icmp slt i64 %indvars.iv62, %19
  br i1 %.not30.not, label %.preheader38, label %._crit_edge49, !llvm.loop !11

20:                                               ; preds = %.lr.ph46, %26
  %21 = phi i32 [ %12, %.lr.ph46 ], [ %27, %26 ]
  %indvars.iv59 = phi i64 [ 1, %.lr.ph46 ], [ %indvars.iv.next60, %26 ]
  %22 = getelementptr inbounds [1010 x [1010 x i32]], ptr @a, i64 0, i64 %indvars.iv62, i64 %indvars.iv59
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %.not34 = icmp slt i32 %23, %0
  br i1 %.not34, label %26, label %24

24:                                               ; preds = %20
  %25 = tail call noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1010EE3setEmb(ptr noundef nonnull align 8 dereferenceable(128) %14, i64 noundef %indvars.iv59, i1 noundef zeroext true)
  %.pre = load i32, ptr @m, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %20, %24
  %27 = phi i32 [ %21, %20 ], [ %.pre, %24 ]
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %28 = sext i32 %27 to i64
  %.not33.not = icmp slt i64 %indvars.iv59, %28
  br i1 %.not33.not, label %20, label %._crit_edge.loopexit, !llvm.loop !13

.lr.ph54:                                         ; preds = %._crit_edge49, %.critedge
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %.critedge ], [ 1, %._crit_edge49 ]
  %29 = getelementptr inbounds [1010 x %"class.std::bitset"], ptr @rows, i64 0, i64 %indvars.iv65
  %30 = call noundef i64 @_ZNKSt6bitsetILm1010EE5countEv(ptr noundef nonnull align 8 dereferenceable(128) %29) #5
  %31 = icmp ult i64 %30, 2
  br i1 %31, label %.lr.ph54..critedge_crit_edge, label %.preheader

.lr.ph54..critedge_crit_edge:                     ; preds = %.lr.ph54
  %.pre71 = load i32, ptr @n, align 4, !tbaa !5
  %.pre72 = sext i32 %.pre71 to i64
  br label %.critedge

.preheader:                                       ; preds = %.lr.ph54, %34
  %indvars.iv67 = phi i64 [ %indvars.iv.next68, %34 ], [ %indvars.iv65, %.lr.ph54 ]
  %32 = load i32, ptr @n, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %.not32.not.not = icmp slt i64 %indvars.iv67, %33
  br i1 %.not32.not.not, label %34, label %.critedge

34:                                               ; preds = %.preheader
  %indvars.iv.next68 = add nuw nsw i64 %indvars.iv67, 1
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #5
  %35 = getelementptr inbounds [1010 x %"class.std::bitset"], ptr @rows, i64 0, i64 %indvars.iv.next68
  call void @_ZStanILm1010EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %3, ptr noundef nonnull align 8 dereferenceable(128) %29, ptr noundef nonnull align 8 dereferenceable(128) %35) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %2, ptr noundef nonnull align 8 dereferenceable(128) %3, i64 128, i1 false)
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #5
  %36 = call noundef i64 @_ZNKSt6bitsetILm1010EE5countEv(ptr noundef nonnull align 8 dereferenceable(128) %2) #5
  %37 = icmp ugt i64 %36, 1
  br i1 %37, label %.critedge36, label %.preheader, !llvm.loop !14

.critedge:                                        ; preds = %.preheader, %.lr.ph54..critedge_crit_edge
  %.pre-phi = phi i64 [ %.pre72, %.lr.ph54..critedge_crit_edge ], [ %33, %.preheader ]
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %.not31 = icmp slt i64 %indvars.iv65, %.pre-phi
  br i1 %.not31, label %.lr.ph54, label %.critedge36, !llvm.loop !15

.critedge36:                                      ; preds = %.critedge, %34, %._crit_edge49
  %.not3141 = phi i1 [ false, %._crit_edge49 ], [ true, %34 ], [ false, %.critedge ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %2) #5
  ret i1 %.not3141
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1010EE5resetEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZNSt6bitsetILm1010EE3setEmb(ptr noundef nonnull align 8 dereferenceable(128), i64 noundef, i1 noundef zeroext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm1010EEC2Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6bitsetILm1010EE5countEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZStanILm1010EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind noalias writable sret(%"class.std::bitset") align 8, ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #3

; Function Attrs: mustprogress 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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind 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 nounwind 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 = { mustprogress 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10, !12}
!12 = !{!"llvm.loop.unswitch.partial.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass