; LLVM IR from DionysiosB/CodeForces :: 0800-0899 (884E-BinaryMatrix)

; 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" }
%"class.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { [257 x i64] }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::bitset<16394>::reference" = type { ptr, i64 }

@_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 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca %"class.std::bitset", align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::bitset", align 8
  %13 = alloca i64, align 8
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca %"class.std::bitset<16394>::reference", align 8
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i64, align 8
  %21 = alloca %"class.std::bitset<16394>::reference", align 8
  %22 = alloca %"class.std::bitset<16394>::reference", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 16394, ptr %2, align 8, !tbaa !5
  %23 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef @_ZSt3decRSt8ios_base)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 2056, ptr %5) #7
  call void @_ZNSt6bitsetILm16394EEC2Ev(ptr noundef nonnull align 8 dereferenceable(2056) %5) #7
  %27 = call noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE5resetEv(ptr noundef nonnull align 8 dereferenceable(2056) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %189, %0
  %29 = load i64, ptr %7, align 8, !tbaa !5
  %30 = load i64, ptr %3, align 8, !tbaa !5
  %31 = icmp slt i64 %29, %30
  br i1 %31, label %33, label %32

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

33:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  %34 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %35 unwind label %42

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 2056, ptr %12) #7
  call void @_ZNSt6bitsetILm16394EEC2Ev(ptr noundef nonnull align 8 dereferenceable(2056) %12) #7
  %36 = call noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE5resetEv(ptr noundef nonnull align 8 dereferenceable(2056) %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store i64 0, ptr %13, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %115, %35
  %38 = load i64, ptr %13, align 8, !tbaa !5
  %39 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  %40 = icmp ult i64 %38, %39
  br i1 %40, label %46, label %41

41:                                               ; preds = %37
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %119

42:                                               ; preds = %33
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %10, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %11, align 4
  br label %193

46:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  %47 = load i64, ptr %13, align 8, !tbaa !5
  %48 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef %47)
          to label %49 unwind label %62

49:                                               ; preds = %46
  %50 = load i8, ptr %48, align 1, !tbaa !9
  store i8 %50, ptr %14, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !10
  %51 = load i8, ptr %14, align 1, !tbaa !9
  %52 = sext i8 %51 to i32
  %53 = icmp sle i32 48, %52
  br i1 %53, label %54, label %66

54:                                               ; preds = %49
  %55 = load i8, ptr %14, align 1, !tbaa !9
  %56 = sext i8 %55 to i32
  %57 = icmp sle i32 %56, 57
  br i1 %57, label %58, label %66

58:                                               ; preds = %54
  %59 = load i8, ptr %14, align 1, !tbaa !9
  %60 = sext i8 %59 to i32
  %61 = sub nsw i32 %60, 48
  store i32 %61, ptr %15, align 4, !tbaa !10
  br label %71

62:                                               ; preds = %46
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %10, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %11, align 4
  br label %118

66:                                               ; preds = %54, %49
  %67 = load i8, ptr %14, align 1, !tbaa !9
  %68 = sext i8 %67 to i32
  %69 = sub nsw i32 %68, 65
  %70 = add nsw i32 10, %69
  store i32 %70, ptr %15, align 4, !tbaa !10
  br label %71

71:                                               ; preds = %66, %58
  %72 = load i32, ptr %15, align 4, !tbaa !10
  %73 = and i32 %72, 8
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %84

75:                                               ; preds = %71
  %76 = load i64, ptr %13, align 8, !tbaa !5
  %77 = mul nsw i64 4, %76
  %78 = invoke noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE3setEmb(ptr noundef nonnull align 8 dereferenceable(2056) %12, i64 noundef %77, i1 noundef zeroext true)
          to label %79 unwind label %80

79:                                               ; preds = %75
  br label %84

80:                                               ; preds = %108, %98, %88, %75
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %10, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %118

84:                                               ; preds = %79, %71
  %85 = load i32, ptr %15, align 4, !tbaa !10
  %86 = and i32 %85, 4
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %94

88:                                               ; preds = %84
  %89 = load i64, ptr %13, align 8, !tbaa !5
  %90 = mul nsw i64 4, %89
  %91 = add nsw i64 %90, 1
  %92 = invoke noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE3setEmb(ptr noundef nonnull align 8 dereferenceable(2056) %12, i64 noundef %91, i1 noundef zeroext true)
          to label %93 unwind label %80

93:                                               ; preds = %88
  br label %94

94:                                               ; preds = %93, %84
  %95 = load i32, ptr %15, align 4, !tbaa !10
  %96 = and i32 %95, 2
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %104

98:                                               ; preds = %94
  %99 = load i64, ptr %13, align 8, !tbaa !5
  %100 = mul nsw i64 4, %99
  %101 = add nsw i64 %100, 2
  %102 = invoke noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE3setEmb(ptr noundef nonnull align 8 dereferenceable(2056) %12, i64 noundef %101, i1 noundef zeroext true)
          to label %103 unwind label %80

103:                                              ; preds = %98
  br label %104

104:                                              ; preds = %103, %94
  %105 = load i32, ptr %15, align 4, !tbaa !10
  %106 = and i32 %105, 1
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %114

108:                                              ; preds = %104
  %109 = load i64, ptr %13, align 8, !tbaa !5
  %110 = mul nsw i64 4, %109
  %111 = add nsw i64 %110, 3
  %112 = invoke noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE3setEmb(ptr noundef nonnull align 8 dereferenceable(2056) %12, i64 noundef %111, i1 noundef zeroext true)
          to label %113 unwind label %80

113:                                              ; preds = %108
  br label %114

114:                                              ; preds = %113, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  br label %115

115:                                              ; preds = %114
  %116 = load i64, ptr %13, align 8, !tbaa !5
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %13, align 8, !tbaa !5
  br label %37, !llvm.loop !12

118:                                              ; preds = %80, %62
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %192

119:                                              ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store i64 0, ptr %16, align 8, !tbaa !5
  br label %120

120:                                              ; preds = %131, %119
  %121 = load i64, ptr %16, align 8, !tbaa !5
  %122 = load i64, ptr %4, align 8, !tbaa !5
  %123 = icmp sle i64 %121, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %143

125:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %126 = load i64, ptr %16, align 8, !tbaa !5
  invoke void @_ZNSt6bitsetILm16394EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<16394>::reference") align 8 %17, ptr noundef nonnull align 8 dereferenceable(2056) %12, i64 noundef %126)
          to label %127 unwind label %134

127:                                              ; preds = %125
  %128 = call noundef zeroext i1 @_ZNKSt6bitsetILm16394EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i1 noundef zeroext %128)
          to label %130 unwind label %138

130:                                              ; preds = %127
  call void @_ZNSt6bitsetILm16394EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  br label %131

131:                                              ; preds = %130
  %132 = load i64, ptr %16, align 8, !tbaa !5
  %133 = add nsw i64 %132, 1
  store i64 %133, ptr %16, align 8, !tbaa !5
  br label %120, !llvm.loop !14

134:                                              ; preds = %125
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %10, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %11, align 4
  br label %142

138:                                              ; preds = %127
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %10, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %11, align 4
  call void @_ZNSt6bitsetILm16394EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  br label %142

142:                                              ; preds = %138, %134
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %192

143:                                              ; preds = %124
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %145 unwind label %151

145:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #7
  store i8 0, ptr %18, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  store i8 0, ptr %19, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store i64 0, ptr %20, align 8, !tbaa !5
  br label %146

146:                                              ; preds = %184, %145
  %147 = load i64, ptr %20, align 8, !tbaa !5
  %148 = load i64, ptr %4, align 8, !tbaa !5
  %149 = icmp sle i64 %147, %148
  br i1 %149, label %155, label %150

150:                                              ; preds = %146
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %188

151:                                              ; preds = %143
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %10, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %11, align 4
  br label %192

155:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  %156 = load i64, ptr %20, align 8, !tbaa !5
  invoke void @_ZNSt6bitsetILm16394EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<16394>::reference") align 8 %21, ptr noundef nonnull align 8 dereferenceable(2056) %12, i64 noundef %156)
          to label %157 unwind label %164

157:                                              ; preds = %155
  %158 = call noundef zeroext i1 @_ZNKSt6bitsetILm16394EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @_ZNSt6bitsetILm16394EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  br i1 %158, label %159, label %173

159:                                              ; preds = %157
  store i8 1, ptr %18, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  %160 = load i64, ptr %20, align 8, !tbaa !5
  invoke void @_ZNSt6bitsetILm16394EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<16394>::reference") align 8 %22, ptr noundef nonnull align 8 dereferenceable(2056) %5, i64 noundef %160)
          to label %161 unwind label %168

161:                                              ; preds = %159
  %162 = call noundef zeroext i1 @_ZNKSt6bitsetILm16394EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  call void @_ZNSt6bitsetILm16394EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br i1 %162, label %163, label %172

163:                                              ; preds = %161
  store i8 1, ptr %19, align 1, !tbaa !15
  br label %172

164:                                              ; preds = %155
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %10, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  br label %187

168:                                              ; preds = %159
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %10, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br label %187

172:                                              ; preds = %163, %161
  br label %183

173:                                              ; preds = %157
  %174 = load i8, ptr %18, align 1, !tbaa !15, !range !17, !noundef !18
  %175 = trunc i8 %174 to i1
  br i1 %175, label %176, label %182

176:                                              ; preds = %173
  %177 = load i8, ptr %19, align 1, !tbaa !15, !range !17, !noundef !18
  %178 = trunc i8 %177 to i1
  br i1 %178, label %182, label %179

179:                                              ; preds = %176
  %180 = load i64, ptr %6, align 8, !tbaa !5
  %181 = add nsw i64 %180, 1
  store i64 %181, ptr %6, align 8, !tbaa !5
  br label %182

182:                                              ; preds = %179, %176, %173
  store i8 0, ptr %19, align 1, !tbaa !15
  store i8 0, ptr %18, align 1, !tbaa !15
  br label %183

183:                                              ; preds = %182, %172
  br label %184

184:                                              ; preds = %183
  %185 = load i64, ptr %20, align 8, !tbaa !5
  %186 = add nsw i64 %185, 1
  store i64 %186, ptr %20, align 8, !tbaa !5
  br label %146, !llvm.loop !19

187:                                              ; preds = %168, %164
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  br label %192

188:                                              ; preds = %150
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %12, i64 2056, i1 false)
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 2056, ptr %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  br label %189

189:                                              ; preds = %188
  %190 = load i64, ptr %7, align 8, !tbaa !5
  %191 = add nsw i64 %190, 1
  store i64 %191, ptr %7, align 8, !tbaa !5
  br label %28, !llvm.loop !20

192:                                              ; preds = %187, %151, %142, %118
  call void @llvm.lifetime.end.p0(i64 2056, ptr %12) #7
  br label %193

193:                                              ; preds = %192, %42
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 2056, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %200

194:                                              ; preds = %32
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt3decRSt8ios_base)
  %196 = load i64, ptr %6, align 8, !tbaa !5
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %195, i64 noundef %196)
  %198 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 2056, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %199 = load i32, ptr %1, align 4
  ret i32 %199

200:                                              ; preds = %193
  %201 = load ptr, ptr %10, align 8
  %202 = load i32, ptr %11, align 4
  %203 = insertvalue { ptr, i32 } poison, ptr %201, 0
  %204 = insertvalue { ptr, i32 } %203, i32 %202, 1
  resume { ptr, i32 } %204
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE3setEmb(ptr noundef nonnull align 8 dereferenceable(2056), i64 noundef, i1 noundef zeroext) #3 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 noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm16394EEixEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset<16394>::reference") align 8, ptr noundef nonnull align 8 dereferenceable(2056), i64 noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6bitsetILm16394EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm16394EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 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) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}


; 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" }
%"class.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { [257 x i64] }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::bitset<16394>::reference" = type { ptr, i64 }

@_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 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::bitset", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::bitset", align 8
  %6 = alloca %"class.std::bitset<16394>::reference", align 8
  %7 = alloca %"class.std::bitset<16394>::reference", align 8
  %8 = alloca %"class.std::bitset<16394>::reference", align 8
  %9 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %10 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull @_ZSt3decRSt8ios_base)
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 2056, ptr nonnull %3) #7
  call void @_ZNSt6bitsetILm16394EEC2Ev(ptr noundef nonnull align 8 dereferenceable(2056) %3) #7
  %13 = call noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE5resetEv(ptr noundef nonnull align 8 dereferenceable(2056) %3) #7
  %14 = load i64, ptr %1, align 8, !tbaa !5
  %15 = icmp sgt i64 %14, 0
  br i1 %15, label %.lr.ph73, label %._crit_edge74

._crit_edge74:                                    ; preds = %._crit_edge69, %0
  %.043.lcssa = phi i64 [ 0, %0 ], [ %.144.lcssa, %._crit_edge69 ]
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt3decRSt8ios_base)
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %16, i64 noundef %.043.lcssa)
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 2056, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret i32 0

.lr.ph73:                                         ; preds = %0, %._crit_edge69
  %.04271 = phi i64 [ %67, %._crit_edge69 ], [ 0, %0 ]
  %.04370 = phi i64 [ %.144.lcssa, %._crit_edge69 ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  %19 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %20 unwind label %24

20:                                               ; preds = %.lr.ph73
  call void @llvm.lifetime.start.p0(i64 2056, ptr nonnull %5) #7
  call void @_ZNSt6bitsetILm16394EEC2Ev(ptr noundef nonnull align 8 dereferenceable(2056) %5) #7
  %21 = call noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE5resetEv(ptr noundef nonnull align 8 dereferenceable(2056) %5) #7
  %22 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  %.not76 = icmp eq i64 %22, 0
  br i1 %.not76, label %.preheader54, label %.lr.ph

.preheader54:                                     ; preds = %54, %20
  %23 = load i64, ptr %2, align 8, !tbaa !5
  %.not60 = icmp slt i64 %23, 0
  br i1 %.not60, label %._crit_edge, label %.lr.ph62

24:                                               ; preds = %.lr.ph73
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %84

.lr.ph:                                           ; preds = %20, %54
  %.03759 = phi i64 [ %55, %54 ], [ 0, %20 ]
  %26 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %4, i64 noundef %.03759)
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %28 = zext i8 %27 to i32
  %29 = add i8 %27, -48
  %or.cond = icmp ult i8 %29, 10
  %.036.v = select i1 %or.cond, i32 -48, i32 -55
  %.036 = add nsw i32 %.036.v, %28
  %30 = and i32 %.036, 8
  %.not47 = icmp eq i32 %30, 0
  br i1 %.not47, label %36, label %31

31:                                               ; preds = %.lr.ph
  %32 = shl nsw i64 %.03759, 2
  %33 = invoke noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE3setEmb(ptr noundef nonnull align 8 dereferenceable(2056) %5, i64 noundef %32, i1 noundef zeroext true)
          to label %36 unwind label %34

34:                                               ; preds = %50, %44, %38, %31
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %83

36:                                               ; preds = %31, %.lr.ph
  %37 = and i32 %.036, 4
  %.not48 = icmp eq i32 %37, 0
  br i1 %.not48, label %42, label %38

38:                                               ; preds = %36
  %39 = shl nsw i64 %.03759, 2
  %40 = or disjoint i64 %39, 1
  %41 = invoke noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE3setEmb(ptr noundef nonnull align 8 dereferenceable(2056) %5, i64 noundef %40, i1 noundef zeroext true)
          to label %42 unwind label %34

42:                                               ; preds = %38, %36
  %43 = and i32 %.036, 2
  %.not49 = icmp eq i32 %43, 0
  br i1 %.not49, label %48, label %44

44:                                               ; preds = %42
  %45 = shl nsw i64 %.03759, 2
  %46 = or disjoint i64 %45, 2
  %47 = invoke noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE3setEmb(ptr noundef nonnull align 8 dereferenceable(2056) %5, i64 noundef %46, i1 noundef zeroext true)
          to label %48 unwind label %34

48:                                               ; preds = %44, %42
  %49 = and i32 %.036, 1
  %.not50 = icmp eq i32 %49, 0
  br i1 %.not50, label %54, label %50

50:                                               ; preds = %48
  %51 = shl nsw i64 %.03759, 2
  %52 = or disjoint i64 %51, 3
  %53 = invoke noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE3setEmb(ptr noundef nonnull align 8 dereferenceable(2056) %5, i64 noundef %52, i1 noundef zeroext true)
          to label %54 unwind label %34

54:                                               ; preds = %50, %48
  %55 = add nuw nsw i64 %.03759, 1
  %56 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  %57 = icmp ult i64 %55, %56
  br i1 %57, label %.lr.ph, label %.preheader54, !llvm.loop !10

._crit_edge:                                      ; preds = %62, %.preheader54
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader unwind label %70

.preheader:                                       ; preds = %._crit_edge
  %59 = load i64, ptr %2, align 8, !tbaa !5
  %.not4663 = icmp slt i64 %59, 0
  br i1 %.not4663, label %._crit_edge69, label %.lr.ph68

.lr.ph62:                                         ; preds = %.preheader54, %62
  %.03561 = phi i64 [ %63, %62 ], [ 0, %.preheader54 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @_ZNSt6bitsetILm16394EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<16394>::reference") align 8 %6, ptr noundef nonnull align 8 dereferenceable(2056) %5, i64 noundef %.03561)
  %60 = call noundef zeroext i1 @_ZNKSt6bitsetILm16394EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEb(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i1 noundef zeroext %60)
          to label %62 unwind label %65

62:                                               ; preds = %.lr.ph62
  call void @_ZNSt6bitsetILm16394EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  %63 = add nuw nsw i64 %.03561, 1
  %64 = load i64, ptr %2, align 8, !tbaa !5
  %.not.not = icmp slt i64 %.03561, %64
  br i1 %.not.not, label %.lr.ph62, label %._crit_edge, !llvm.loop !12

65:                                               ; preds = %.lr.ph62
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6bitsetILm16394EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %83

._crit_edge69:                                    ; preds = %80, %.preheader
  %.144.lcssa = phi i64 [ %.04370, %.preheader ], [ %.3, %80 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(2056) %3, ptr noundef nonnull align 8 dereferenceable(2056) %5, i64 2056, i1 false)
  call void @llvm.lifetime.end.p0(i64 2056, ptr nonnull %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  %67 = add nuw nsw i64 %.04271, 1
  %68 = load i64, ptr %1, align 8, !tbaa !5
  %69 = icmp slt i64 %67, %68
  br i1 %69, label %.lr.ph73, label %._crit_edge74, !llvm.loop !13

70:                                               ; preds = %._crit_edge
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %83

.lr.ph68:                                         ; preds = %.preheader, %80
  %.067 = phi i64 [ %81, %80 ], [ 0, %.preheader ]
  %.03266 = phi i8 [ %.1, %80 ], [ 0, %.preheader ]
  %.03365 = phi i1 [ %72, %80 ], [ false, %.preheader ]
  %.14464 = phi i64 [ %.3, %80 ], [ %.04370, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @_ZNSt6bitsetILm16394EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<16394>::reference") align 8 %7, ptr noundef nonnull align 8 dereferenceable(2056) %5, i64 noundef %.067)
  %72 = call noundef zeroext i1 @_ZNKSt6bitsetILm16394EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @_ZNSt6bitsetILm16394EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br i1 %72, label %73, label %75

73:                                               ; preds = %.lr.ph68
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @_ZNSt6bitsetILm16394EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<16394>::reference") align 8 %8, ptr noundef nonnull align 8 dereferenceable(2056) %3, i64 noundef %.067)
  %74 = call noundef zeroext i1 @_ZNKSt6bitsetILm16394EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @_ZNSt6bitsetILm16394EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  %spec.select = select i1 %74, i8 1, i8 %.03266
  br label %80

75:                                               ; preds = %.lr.ph68
  br i1 %.03365, label %76, label %80

76:                                               ; preds = %75
  %77 = and i8 %.03266, 1
  %78 = xor i8 %77, 1
  %79 = zext nneg i8 %78 to i64
  %spec.select53 = add nsw i64 %.14464, %79
  br label %80

80:                                               ; preds = %76, %73, %75
  %.3 = phi i64 [ %.14464, %73 ], [ %.14464, %75 ], [ %spec.select53, %76 ]
  %.1 = phi i8 [ %spec.select, %73 ], [ 0, %75 ], [ 0, %76 ]
  %81 = add nuw nsw i64 %.067, 1
  %82 = load i64, ptr %2, align 8, !tbaa !5
  %.not46.not = icmp slt i64 %.067, %82
  br i1 %.not46.not, label %.lr.ph68, label %._crit_edge69, !llvm.loop !14

83:                                               ; preds = %70, %65, %34
  %.pn = phi { ptr, i32 } [ %35, %34 ], [ %66, %65 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 2056, ptr nonnull %5) #7
  br label %84

84:                                               ; preds = %83, %24
  %.pn.pn = phi { ptr, i32 } [ %.pn, %83 ], [ %25, %24 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 2056, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(2056) ptr @_ZNSt6bitsetILm16394EE3setEmb(ptr noundef nonnull align 8 dereferenceable(2056), i64 noundef, i1 noundef zeroext) 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) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm16394EEixEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset<16394>::reference") align 8, ptr noundef nonnull align 8 dereferenceable(2056), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6bitsetILm16394EE9referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm16394EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #5 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 #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 align 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long", !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: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass