; LLVM IR from tangjz/acm-icpc :: Summer_Training/2016-07-21 (L - La Vie en rose - tjz)

; 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 { [79 x i64] }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@pos = external dso_local global [26 x [3 x %"class.std::bitset"]], align 16
@f = external dso_local global [3 x %"class.std::bitset"], align 16
@str = external dso_local global [100010 x i8], align 16
@pat = external dso_local global [5010 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1

; 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
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::bitset", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::bitset", align 8
  %15 = alloca %"class.std::bitset", align 8
  %16 = alloca %"class.std::bitset", align 8
  %17 = alloca %"class.std::bitset", align 8
  %18 = alloca %"class.std::bitset", align 8
  %19 = alloca %"class.std::bitset", align 8
  %20 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %22

22:                                               ; preds = %172, %0
  %23 = load i32, ptr @t, align 4, !tbaa !5
  %24 = add nsw i32 %23, -1
  store i32 %24, ptr @t, align 4, !tbaa !5
  %25 = icmp ne i32 %23, 0
  br i1 %25, label %26, label %174

26:                                               ; preds = %22
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n, ptr noundef @m, ptr noundef getelementptr inbounds (i8, ptr @str, i64 1), ptr noundef getelementptr inbounds (i8, ptr @pat, i64 1))
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %38, %26
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = icmp slt i32 %29, 26
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %41

32:                                               ; preds = %28
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [26 x [3 x %"class.std::bitset"]], ptr @pos, i64 0, i64 %34
  %36 = getelementptr inbounds [3 x %"class.std::bitset"], ptr %35, i64 0, i64 0
  %37 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) %36) #7
  br label %38

38:                                               ; preds = %32
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %2, align 4, !tbaa !5
  br label %28, !llvm.loop !9

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

42:                                               ; preds = %61, %41
  %43 = load i32, ptr %3, align 4, !tbaa !5
  %44 = load i32, ptr @m, align 4, !tbaa !5
  %45 = icmp sle i32 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %64

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [5010 x i8], ptr @pat, i64 0, i64 %49
  %51 = load i8, ptr %50, align 1, !tbaa !11
  %52 = sext i8 %51 to i32
  %53 = sub nsw i32 %52, 97
  store i32 %53, ptr %4, align 4, !tbaa !5
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [26 x [3 x %"class.std::bitset"]], ptr @pos, i64 0, i64 %55
  %57 = getelementptr inbounds [3 x %"class.std::bitset"], ptr %56, i64 0, i64 0
  %58 = load i32, ptr %3, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE3setEmb(ptr noundef nonnull align 8 dereferenceable(632) %57, i64 noundef %59, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %61

61:                                               ; preds = %47
  %62 = load i32, ptr %3, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %3, align 4, !tbaa !5
  br label %42, !llvm.loop !12

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

65:                                               ; preds = %92, %64
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = icmp slt i32 %66, 26
  br i1 %67, label %69, label %68

68:                                               ; preds = %65
  store i32 10, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %95

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

70:                                               ; preds = %88, %69
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = icmp slt i32 %71, 3
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  store i32 13, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %91

74:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 632, ptr %8) #7
  %75 = load i32, ptr %5, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [26 x [3 x %"class.std::bitset"]], ptr @pos, i64 0, i64 %76
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = sub nsw i32 %78, 1
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [3 x %"class.std::bitset"], ptr %77, i64 0, i64 %80
  call void @_ZNKSt6bitsetILm5000EErsEm(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %8, ptr noundef nonnull align 8 dereferenceable(632) %81, i64 noundef 1) #7
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [26 x [3 x %"class.std::bitset"]], ptr @pos, i64 0, i64 %83
  %85 = load i32, ptr %7, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [3 x %"class.std::bitset"], ptr %84, i64 0, i64 %86
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %87, ptr align 8 %8, i64 632, i1 false)
  call void @llvm.lifetime.end.p0(i64 632, ptr %8) #7
  br label %88

88:                                               ; preds = %74
  %89 = load i32, ptr %7, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %7, align 4, !tbaa !5
  br label %70, !llvm.loop !13

91:                                               ; preds = %73
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %5, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %5, align 4, !tbaa !5
  br label %65, !llvm.loop !14

95:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %105, %95
  %97 = load i32, ptr %9, align 4, !tbaa !5
  %98 = icmp slt i32 %97, 3
  br i1 %98, label %100, label %99

99:                                               ; preds = %96
  store i32 16, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %108

100:                                              ; preds = %96
  %101 = load i32, ptr %9, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [3 x %"class.std::bitset"], ptr @f, i64 0, i64 %102
  %104 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) %103) #7
  br label %105

105:                                              ; preds = %100
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %9, align 4, !tbaa !5
  br label %96, !llvm.loop !15

108:                                              ; preds = %99
  %109 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE3setEmb(ptr noundef nonnull align 8 dereferenceable(632) @f, i64 noundef 0, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 1, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 2, ptr %12, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %152, %108
  %111 = load i32, ptr %10, align 4, !tbaa !5
  %112 = load i32, ptr @n, align 4, !tbaa !5
  %113 = icmp sle i32 %111, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  store i32 19, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %155

115:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %116 = load i32, ptr %10, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [100010 x i8], ptr @str, i64 0, i64 %117
  %119 = load i8, ptr %118, align 1, !tbaa !11
  %120 = sext i8 %119 to i32
  %121 = sub nsw i32 %120, 97
  store i32 %121, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 632, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 632, ptr %15) #7
  %122 = load i32, ptr %13, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [26 x [3 x %"class.std::bitset"]], ptr @pos, i64 0, i64 %123
  %125 = getelementptr inbounds [3 x %"class.std::bitset"], ptr %124, i64 0, i64 2
  call void @_ZStanILm5000EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %15, ptr noundef nonnull align 8 dereferenceable(632) @f, ptr noundef nonnull align 8 dereferenceable(632) %125) #7
  call void @_ZNKSt6bitsetILm5000EElsEm(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %14, ptr noundef nonnull align 8 dereferenceable(632) %15, i64 noundef 1) #7
  %126 = load i32, ptr %12, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [3 x %"class.std::bitset"], ptr @f, i64 0, i64 %127
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %128, ptr align 8 %14, i64 632, i1 false)
  call void @llvm.lifetime.end.p0(i64 632, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 632, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 632, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 632, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 632, ptr %18) #7
  %129 = load i32, ptr %13, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [26 x [3 x %"class.std::bitset"]], ptr @pos, i64 0, i64 %130
  %132 = getelementptr inbounds [3 x %"class.std::bitset"], ptr %131, i64 0, i64 1
  call void @_ZStanILm5000EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %18, ptr noundef nonnull align 8 dereferenceable(632) @f, ptr noundef nonnull align 8 dereferenceable(632) %132) #7
  call void @llvm.lifetime.start.p0(i64 632, ptr %19) #7
  %133 = load i32, ptr %11, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [3 x %"class.std::bitset"], ptr @f, i64 0, i64 %134
  %136 = load i32, ptr %13, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [26 x [3 x %"class.std::bitset"]], ptr @pos, i64 0, i64 %137
  %139 = getelementptr inbounds [3 x %"class.std::bitset"], ptr %138, i64 0, i64 0
  call void @_ZStanILm5000EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %19, ptr noundef nonnull align 8 dereferenceable(632) %135, ptr noundef nonnull align 8 dereferenceable(632) %139) #7
  call void @_ZStorILm5000EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %17, ptr noundef nonnull align 8 dereferenceable(632) %18, ptr noundef nonnull align 8 dereferenceable(632) %19) #7
  call void @_ZNKSt6bitsetILm5000EElsEm(ptr dead_on_unwind writable sret(%"class.std::bitset") align 8 %16, ptr noundef nonnull align 8 dereferenceable(632) %17, i64 noundef 1) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @f, ptr align 8 %16, i64 632, i1 false)
  call void @llvm.lifetime.end.p0(i64 632, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 632, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 632, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 632, ptr %16) #7
  %140 = load i32, ptr @m, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = call noundef zeroext i1 @_ZNKSt6bitsetILm5000EE4testEm(ptr noundef nonnull align 8 dereferenceable(632) @f, i64 noundef %141)
  %143 = zext i1 %142 to i64
  %144 = select i1 %142, i8 49, i8 48
  %145 = load i32, ptr %10, align 4, !tbaa !5
  %146 = load i32, ptr @m, align 4, !tbaa !5
  %147 = sub nsw i32 %145, %146
  %148 = add nsw i32 %147, 1
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [100010 x i8], ptr @str, i64 0, i64 %149
  store i8 %144, ptr %150, align 1, !tbaa !11
  %151 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE3setEmb(ptr noundef nonnull align 8 dereferenceable(632) @f, i64 noundef 0, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %152

152:                                              ; preds = %115
  %153 = load i32, ptr %10, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %10, align 4, !tbaa !5
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12) #7
  br label %110, !llvm.loop !16

155:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %156 = load i32, ptr @n, align 4, !tbaa !5
  %157 = load i32, ptr @m, align 4, !tbaa !5
  %158 = sub nsw i32 %156, %157
  %159 = add nsw i32 %158, 2
  store i32 %159, ptr %20, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %169, %155
  %161 = load i32, ptr %20, align 4, !tbaa !5
  %162 = load i32, ptr @n, align 4, !tbaa !5
  %163 = icmp sle i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  store i32 22, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %172

165:                                              ; preds = %160
  %166 = load i32, ptr %20, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [100010 x i8], ptr @str, i64 0, i64 %167
  store i8 48, ptr %168, align 1, !tbaa !11
  br label %169

169:                                              ; preds = %165
  %170 = load i32, ptr %20, align 4, !tbaa !5
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %20, align 4, !tbaa !5
  br label %160, !llvm.loop !17

172:                                              ; preds = %164
  %173 = call i32 @puts(ptr noundef getelementptr inbounds (i8, ptr @str, i64 1))
  br label %22, !llvm.loop !18

174:                                              ; preds = %22
  ret i32 0
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE3setEmb(ptr noundef nonnull align 8 dereferenceable(632), i64 noundef, i1 noundef zeroext) #4 align 2

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

; 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) #5

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6bitsetILm5000EE4testEm(ptr noundef nonnull align 8 dereferenceable(632), i64 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6

declare i32 @puts(ptr noundef) #1

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 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 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !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 { [79 x i64] }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@pos = external dso_local global [26 x [3 x %"class.std::bitset"]], align 16
@f = external dso_local global [3 x %"class.std::bitset"], align 16
@str = external dso_local global [100010 x i8], align 16
@pat = external dso_local global [5010 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %"class.std::bitset", align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::bitset", align 8
  %5 = alloca %"class.std::bitset", align 8
  %6 = alloca %"class.std::bitset", align 8
  %7 = alloca %"class.std::bitset", align 8
  %8 = alloca %"class.std::bitset", align 8
  %9 = alloca %"class.std::bitset", align 8
  %10 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %11 = load i32, ptr @t, align 4, !tbaa !5
  %12 = add nsw i32 %11, -1
  store i32 %12, ptr @t, align 4, !tbaa !5
  %.not56 = icmp eq i32 %11, 0
  br i1 %.not56, label %._crit_edge59, label %.lr.ph58

.lr.ph58:                                         ; preds = %0, %._crit_edge55
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull getelementptr inbounds (i8, ptr @str, i64 1), ptr noundef nonnull getelementptr inbounds (i8, ptr @pat, i64 1))
  %14 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) @pos) #8
  %15 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 1896)) #8
  %16 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 3792)) #8
  %17 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 5688)) #8
  %18 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 7584)) #8
  %19 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 9480)) #8
  %20 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 11376)) #8
  %21 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 13272)) #8
  %22 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 15168)) #8
  %23 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 17064)) #8
  %24 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 18960)) #8
  %25 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 20856)) #8
  %26 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 22752)) #8
  %27 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 24648)) #8
  %28 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 26544)) #8
  %29 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 28440)) #8
  %30 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 30336)) #8
  %31 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 32232)) #8
  %32 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 34128)) #8
  %33 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 36024)) #8
  %34 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 37920)) #8
  %35 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 39816)) #8
  %36 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 41712)) #8
  %37 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 43608)) #8
  %38 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 45504)) #8
  %39 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @pos, i64 47400)) #8
  %40 = load i32, ptr @m, align 4, !tbaa !5
  %.not3543 = icmp slt i32 %40, 1
  br i1 %.not3543, label %.preheader.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph58, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph58 ]
  %41 = getelementptr inbounds [5010 x i8], ptr @pat, i64 0, i64 %indvars.iv
  %42 = load i8, ptr %41, align 1, !tbaa !9
  %43 = sext i8 %42 to i64
  %44 = add nsw i64 %43, -97
  %45 = getelementptr inbounds [26 x [3 x %"class.std::bitset"]], ptr @pos, i64 0, i64 %44
  %46 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE3setEmb(ptr noundef nonnull align 8 dereferenceable(632) %45, i64 noundef %indvars.iv, i1 noundef zeroext true)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %47 = load i32, ptr @m, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %.not35.not = icmp slt i64 %indvars.iv, %48
  br i1 %.not35.not, label %.lr.ph, label %.preheader.preheader, !llvm.loop !10

.preheader.preheader:                             ; preds = %.lr.ph, %.lr.ph58
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %.preheader ], [ 0, %.preheader.preheader ]
  call void @llvm.lifetime.start.p0(i64 632, ptr nonnull %1) #8
  %49 = getelementptr inbounds [26 x [3 x %"class.std::bitset"]], ptr @pos, i64 0, i64 %indvars.iv66, i64 0
  call void @_ZNKSt6bitsetILm5000EErsEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %1, ptr noundef nonnull align 8 dereferenceable(632) %49, i64 noundef 1) #8
  %50 = getelementptr inbounds [26 x [3 x %"class.std::bitset"]], ptr @pos, i64 0, i64 %indvars.iv66, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(632) %50, ptr noundef nonnull align 8 dereferenceable(632) %1, i64 632, i1 false)
  call void @llvm.lifetime.end.p0(i64 632, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 632, ptr nonnull %1) #8
  call void @_ZNKSt6bitsetILm5000EErsEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %1, ptr noundef nonnull align 8 dereferenceable(632) %50, i64 noundef 1) #8
  %51 = getelementptr inbounds [26 x [3 x %"class.std::bitset"]], ptr @pos, i64 0, i64 %indvars.iv66, i64 2
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(632) %51, ptr noundef nonnull align 8 dereferenceable(632) %1, i64 632, i1 false)
  call void @llvm.lifetime.end.p0(i64 632, ptr nonnull %1) #8
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next67, 26
  br i1 %exitcond.not, label %.preheader39.preheader, label %.preheader, !llvm.loop !12

.preheader39.preheader:                           ; preds = %.preheader
  %52 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) @f) #8
  %53 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @f, i64 632)) #8
  %54 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE5resetEv(ptr noundef nonnull align 8 dereferenceable(632) getelementptr inbounds (i8, ptr @f, i64 1264)) #8
  %55 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE3setEmb(ptr noundef nonnull align 8 dereferenceable(632) @f, i64 noundef 0, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  store i32 1, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  store i32 2, ptr %3, align 4, !tbaa !5
  %56 = load i32, ptr @n, align 4, !tbaa !5
  %.not3648 = icmp slt i32 %56, 1
  br i1 %.not3648, label %._crit_edge, label %.lr.ph50

._crit_edge:                                      ; preds = %.lr.ph50, %.preheader39.preheader
  %.lcssa = phi i32 [ %56, %.preheader39.preheader ], [ %87, %.lr.ph50 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  %57 = load i32, ptr @m, align 4, !tbaa !5
  %58 = add i32 %.lcssa, 2
  %59 = sub i32 %58, %57
  %.not3751 = icmp sgt i32 %59, %.lcssa
  br i1 %.not3751, label %._crit_edge55, label %.lr.ph54.preheader

.lr.ph54.preheader:                               ; preds = %._crit_edge
  %60 = sext i32 %59 to i64
  %scevgep = getelementptr i8, ptr @str, i64 %60
  %61 = add i32 %57, -2
  %62 = zext i32 %61 to i64
  %63 = add nuw nsw i64 %62, 1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1) %scevgep, i8 48, i64 %63, i1 false), !tbaa !9
  br label %._crit_edge55

.lr.ph50:                                         ; preds = %.preheader39.preheader, %.lr.ph50
  %indvars.iv73 = phi i64 [ %indvars.iv.next74, %.lr.ph50 ], [ 1, %.preheader39.preheader ]
  %64 = getelementptr inbounds [100010 x i8], ptr @str, i64 0, i64 %indvars.iv73
  %65 = load i8, ptr %64, align 1, !tbaa !9
  %66 = sext i8 %65 to i64
  %67 = add nsw i64 %66, -97
  call void @llvm.lifetime.start.p0(i64 632, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 632, ptr nonnull %5) #8
  %68 = getelementptr inbounds [26 x [3 x %"class.std::bitset"]], ptr @pos, i64 0, i64 %67
  %69 = getelementptr inbounds i8, ptr %68, i64 1264
  call void @_ZStanILm5000EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %5, ptr noundef nonnull align 8 dereferenceable(632) @f, ptr noundef nonnull align 8 dereferenceable(632) %69) #8
  call void @_ZNKSt6bitsetILm5000EElsEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %4, ptr noundef nonnull align 8 dereferenceable(632) %5, i64 noundef 1) #8
  %70 = load i32, ptr %3, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [3 x %"class.std::bitset"], ptr @f, i64 0, i64 %71
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(632) %72, ptr noundef nonnull align 8 dereferenceable(632) %4, i64 632, i1 false)
  call void @llvm.lifetime.end.p0(i64 632, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 632, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 632, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 632, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 632, ptr nonnull %8) #8
  %73 = getelementptr inbounds i8, ptr %68, i64 632
  call void @_ZStanILm5000EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %8, ptr noundef nonnull align 8 dereferenceable(632) @f, ptr noundef nonnull align 8 dereferenceable(632) %73) #8
  call void @llvm.lifetime.start.p0(i64 632, ptr nonnull %9) #8
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [3 x %"class.std::bitset"], ptr @f, i64 0, i64 %75
  call void @_ZStanILm5000EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %9, ptr noundef nonnull align 8 dereferenceable(632) %76, ptr noundef nonnull align 8 dereferenceable(632) %68) #8
  call void @_ZStorILm5000EESt6bitsetIXT_EERKS1_S3_(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %7, ptr noundef nonnull align 8 dereferenceable(632) %8, ptr noundef nonnull align 8 dereferenceable(632) %9) #8
  call void @_ZNKSt6bitsetILm5000EElsEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset") align 8 %6, ptr noundef nonnull align 8 dereferenceable(632) %7, i64 noundef 1) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(632) @f, ptr noundef nonnull align 8 dereferenceable(632) %6, i64 632, i1 false)
  call void @llvm.lifetime.end.p0(i64 632, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 632, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 632, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 632, ptr nonnull %6) #8
  %77 = load i32, ptr @m, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = call noundef zeroext i1 @_ZNKSt6bitsetILm5000EE4testEm(ptr noundef nonnull align 8 dereferenceable(632) @f, i64 noundef %78)
  %80 = select i1 %79, i8 49, i8 48
  %81 = load i32, ptr @m, align 4, !tbaa !5
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %82 = trunc nuw i64 %indvars.iv.next74 to i32
  %83 = sub i32 %82, %81
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [100010 x i8], ptr @str, i64 0, i64 %84
  store i8 %80, ptr %85, align 1, !tbaa !9
  %86 = call noundef nonnull align 8 dereferenceable(632) ptr @_ZNSt6bitsetILm5000EE3setEmb(ptr noundef nonnull align 8 dereferenceable(632) @f, i64 noundef 0, i1 noundef zeroext true)
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3) #8
  %87 = load i32, ptr @n, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %.not36.not = icmp slt i64 %indvars.iv73, %88
  br i1 %.not36.not, label %.lr.ph50, label %._crit_edge, !llvm.loop !13

._crit_edge55:                                    ; preds = %.lr.ph54.preheader, %._crit_edge
  %89 = call i32 @puts(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @str, i64 1))
  %90 = load i32, ptr @t, align 4, !tbaa !5
  %91 = add nsw i32 %90, -1
  store i32 %91, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %90, 0
  br i1 %.not, label %._crit_edge59, label %.lr.ph58, !llvm.loop !14

._crit_edge59:                                    ; preds = %._crit_edge55, %0
  ret i32 0
}

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

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

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

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

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

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

; 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) #5

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass