; LLVM IR from eyangch/competitive-programming :: Codeforces/1360 (f)

; 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" }
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"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::allocator" = type { i8 }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_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 i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %21 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %27 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %28 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %30
  %32 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %31, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %34

34:                                               ; preds = %269, %0
  %35 = load i32, ptr %2, align 4, !tbaa !8
  %36 = add nsw i32 %35, -1
  store i32 %36, ptr %2, align 4, !tbaa !8
  %37 = icmp ne i32 %35, 0
  br i1 %37, label %38, label %293

38:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %41 = load i32, ptr %3, align 4, !tbaa !8
  %42 = zext i32 %41 to i64
  %43 = call ptr @llvm.stacksave.p0()
  store ptr %43, ptr %5, align 8
  %44 = alloca %"class.std::__cxx11::basic_string", i64 %42, align 16
  store i64 %42, ptr %6, align 8
  %45 = icmp eq i64 %42, 0
  br i1 %45, label %52, label %46

46:                                               ; preds = %38
  %47 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %44, i64 %42
  br label %48

48:                                               ; preds = %48, %46
  %49 = phi ptr [ %44, %46 ], [ %50, %48 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %49) #8
  %50 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %49, i64 1
  %51 = icmp eq ptr %50, %47
  br i1 %51, label %52, label %48

52:                                               ; preds = %48, %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !8
  br label %53

53:                                               ; preds = %64, %52
  %54 = load i32, ptr %7, align 4, !tbaa !8
  %55 = load i32, ptr %3, align 4, !tbaa !8
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %71

58:                                               ; preds = %53
  %59 = load i32, ptr %7, align 4, !tbaa !8
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %44, i64 %60
  %62 = 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) %61)
          to label %63 unwind label %67

63:                                               ; preds = %58
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %7, align 4, !tbaa !8
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %7, align 4, !tbaa !8
  br label %53, !llvm.loop !11

67:                                               ; preds = %58
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %8, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %285

71:                                               ; preds = %57
  %72 = load i32, ptr %4, align 4, !tbaa !8
  %73 = zext i32 %72 to i64
  %74 = alloca %"class.std::unordered_set", i64 %73, align 16
  store i64 %73, ptr %10, align 8
  %75 = icmp eq i64 %73, 0
  br i1 %75, label %82, label %76

76:                                               ; preds = %71
  %77 = getelementptr inbounds %"class.std::unordered_set", ptr %74, i64 %73
  br label %78

78:                                               ; preds = %78, %76
  %79 = phi ptr [ %74, %76 ], [ %80, %78 ]
  call void @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %79) #8
  %80 = getelementptr inbounds %"class.std::unordered_set", ptr %79, i64 1
  %81 = icmp eq ptr %80, %77
  br i1 %81, label %82, label %78

82:                                               ; preds = %78, %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !8
  br label %83

83:                                               ; preds = %119, %82
  %84 = load i32, ptr %11, align 4, !tbaa !8
  %85 = load i32, ptr %3, align 4, !tbaa !8
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 7, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %122

88:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !8
  br label %89

89:                                               ; preds = %111, %88
  %90 = load i32, ptr %13, align 4, !tbaa !8
  %91 = load i32, ptr %4, align 4, !tbaa !8
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  store i32 10, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %118

94:                                               ; preds = %89
  %95 = load i32, ptr %13, align 4, !tbaa !8
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds %"class.std::unordered_set", ptr %74, i64 %96
  %98 = load i32, ptr %11, align 4, !tbaa !8
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %44, i64 %99
  %101 = load i32, ptr %13, align 4, !tbaa !8
  %102 = sext i32 %101 to i64
  %103 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %100, i64 noundef %102)
          to label %104 unwind label %114

104:                                              ; preds = %94
  %105 = invoke { ptr, i8 } @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEE6insertERKc(ptr noundef nonnull align 8 dereferenceable(56) %97, ptr noundef nonnull align 1 dereferenceable(1) %103)
          to label %106 unwind label %114

106:                                              ; preds = %104
  %107 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
  %108 = extractvalue { ptr, i8 } %105, 0
  store ptr %108, ptr %107, align 8
  %109 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
  %110 = extractvalue { ptr, i8 } %105, 1
  store i8 %110, ptr %109, align 8
  br label %111

111:                                              ; preds = %106
  %112 = load i32, ptr %13, align 4, !tbaa !8
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %13, align 4, !tbaa !8
  br label %89, !llvm.loop !13

114:                                              ; preds = %104, %94
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %8, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %277

118:                                              ; preds = %93
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %11, align 4, !tbaa !8
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %11, align 4, !tbaa !8
  br label %83, !llvm.loop !14

122:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %123 unwind label %129

123:                                              ; preds = %122
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !8
  br label %124

124:                                              ; preds = %244, %123
  %125 = load i32, ptr %17, align 4, !tbaa !8
  %126 = load i32, ptr %4, align 4, !tbaa !8
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %133, label %128

128:                                              ; preds = %124
  store i32 13, ptr %12, align 4
  br label %248

129:                                              ; preds = %122
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %8, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %9, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #8
  br label %276

133:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #8
  %134 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %44, i64 0
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %134)
          to label %135 unwind label %150

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %136 = load i32, ptr %17, align 4, !tbaa !8
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds %"class.std::unordered_set", ptr %74, i64 %137
  store ptr %138, ptr %19, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %139 = load ptr, ptr %19, align 8, !tbaa !15
  %140 = call ptr @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %139) #8
  %141 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %20, i32 0, i32 0
  %142 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %141, i32 0, i32 0
  store ptr %140, ptr %142, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %143 = load ptr, ptr %19, align 8, !tbaa !15
  %144 = call ptr @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %143) #8
  %145 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %21, i32 0, i32 0
  %146 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %145, i32 0, i32 0
  store ptr %144, ptr %146, align 8
  br label %147

147:                                              ; preds = %234, %135
  %148 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIcLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #8
  br i1 %148, label %154, label %149

149:                                              ; preds = %147
  store i32 16, ptr %12, align 4
  br label %238

150:                                              ; preds = %133
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %8, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %9, align 4
  br label %247

154:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #8
  %155 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt8__detail14_Node_iteratorIcLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  %156 = load i8, ptr %155, align 1, !tbaa !17
  store i8 %156, ptr %22, align 1, !tbaa !17
  %157 = load i8, ptr %22, align 1, !tbaa !17
  %158 = load i32, ptr %17, align 4, !tbaa !8
  %159 = sext i32 %158 to i64
  %160 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %18, i64 noundef %159)
          to label %161 unwind label %167

161:                                              ; preds = %154
  store i8 %157, ptr %160, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  store i8 1, ptr %23, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 1, ptr %24, align 4, !tbaa !8
  br label %162

162:                                              ; preds = %213, %161
  %163 = load i32, ptr %24, align 4, !tbaa !8
  %164 = load i32, ptr %3, align 4, !tbaa !8
  %165 = icmp slt i32 %163, %164
  br i1 %165, label %171, label %166

166:                                              ; preds = %162
  store i32 18, ptr %12, align 4
  br label %216

167:                                              ; preds = %154
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %8, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %9, align 4
  br label %237

171:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !8
  br label %172

172:                                              ; preds = %202, %171
  %173 = load i32, ptr %26, align 4, !tbaa !8
  %174 = load i32, ptr %4, align 4, !tbaa !8
  %175 = icmp slt i32 %173, %174
  br i1 %175, label %177, label %176

176:                                              ; preds = %172
  store i32 21, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %205

177:                                              ; preds = %172
  %178 = load i32, ptr %26, align 4, !tbaa !8
  %179 = sext i32 %178 to i64
  %180 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %18, i64 noundef %179)
          to label %181 unwind label %197

181:                                              ; preds = %177
  %182 = load i8, ptr %180, align 1, !tbaa !17
  %183 = sext i8 %182 to i32
  %184 = load i32, ptr %24, align 4, !tbaa !8
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %44, i64 %185
  %187 = load i32, ptr %26, align 4, !tbaa !8
  %188 = sext i32 %187 to i64
  %189 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %186, i64 noundef %188)
          to label %190 unwind label %197

190:                                              ; preds = %181
  %191 = load i8, ptr %189, align 1, !tbaa !17
  %192 = sext i8 %191 to i32
  %193 = icmp ne i32 %183, %192
  br i1 %193, label %194, label %201

194:                                              ; preds = %190
  %195 = load i32, ptr %25, align 4, !tbaa !8
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %25, align 4, !tbaa !8
  br label %201

197:                                              ; preds = %181, %177
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %8, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %236

201:                                              ; preds = %194, %190
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %26, align 4, !tbaa !8
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %26, align 4, !tbaa !8
  br label %172, !llvm.loop !20

205:                                              ; preds = %176
  %206 = load i32, ptr %25, align 4, !tbaa !8
  %207 = icmp sgt i32 %206, 1
  br i1 %207, label %208, label %209

208:                                              ; preds = %205
  store i8 0, ptr %23, align 1, !tbaa !18
  store i32 18, ptr %12, align 4
  br label %210

209:                                              ; preds = %205
  store i32 0, ptr %12, align 4
  br label %210

210:                                              ; preds = %209, %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  %211 = load i32, ptr %12, align 4
  switch i32 %211, label %216 [
    i32 0, label %212
  ]

212:                                              ; preds = %210
  br label %213

213:                                              ; preds = %212
  %214 = load i32, ptr %24, align 4, !tbaa !8
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %24, align 4, !tbaa !8
  br label %162, !llvm.loop !21

216:                                              ; preds = %210, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %217

217:                                              ; preds = %216
  %218 = load i8, ptr %23, align 1, !tbaa !18, !range !22, !noundef !23
  %219 = trunc i8 %218 to i1
  br i1 %219, label %220, label %227

220:                                              ; preds = %217
  %221 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %222 unwind label %223

222:                                              ; preds = %220
  store i32 24, ptr %12, align 4
  br label %228

223:                                              ; preds = %220
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %8, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %9, align 4
  br label %236

227:                                              ; preds = %217
  store i32 0, ptr %12, align 4
  br label %228

228:                                              ; preds = %227, %222
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  %229 = load i32, ptr %12, align 4
  switch i32 %229, label %231 [
    i32 0, label %230
  ]

230:                                              ; preds = %228
  store i32 0, ptr %12, align 4
  br label %231

231:                                              ; preds = %230, %228
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  %232 = load i32, ptr %12, align 4
  switch i32 %232, label %238 [
    i32 0, label %233
  ]

233:                                              ; preds = %231
  br label %234

234:                                              ; preds = %233
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIcLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  br label %147

236:                                              ; preds = %223, %197
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  br label %237

237:                                              ; preds = %236, %167
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  br label %247

238:                                              ; preds = %231, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  %239 = load i32, ptr %12, align 4
  switch i32 %239, label %241 [
    i32 16, label %240
  ]

240:                                              ; preds = %238
  store i32 0, ptr %12, align 4
  br label %241

241:                                              ; preds = %240, %238
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  %242 = load i32, ptr %12, align 4
  switch i32 %242, label %248 [
    i32 0, label %243
  ]

243:                                              ; preds = %241
  br label %244

244:                                              ; preds = %243
  %245 = load i32, ptr %17, align 4, !tbaa !8
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %17, align 4, !tbaa !8
  br label %124, !llvm.loop !24

247:                                              ; preds = %237, %150
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %275

248:                                              ; preds = %241, %128
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  %249 = load i32, ptr %12, align 4
  switch i32 %249, label %300 [
    i32 13, label %250
    i32 24, label %251
  ]

250:                                              ; preds = %248
  br label %251

251:                                              ; preds = %250, %248
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %253 unwind label %271

253:                                              ; preds = %251
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %252, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %255 unwind label %271

255:                                              ; preds = %253
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  %256 = getelementptr inbounds %"class.std::unordered_set", ptr %74, i64 %73
  %257 = icmp eq ptr %74, %256
  br i1 %257, label %262, label %258

258:                                              ; preds = %258, %255
  %259 = phi ptr [ %256, %255 ], [ %260, %258 ]
  %260 = getelementptr inbounds %"class.std::unordered_set", ptr %259, i64 -1
  call void @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %260) #8
  %261 = icmp eq ptr %260, %74
  br i1 %261, label %262, label %258

262:                                              ; preds = %258, %255
  %263 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %44, i64 %42
  %264 = icmp eq ptr %44, %263
  br i1 %264, label %269, label %265

265:                                              ; preds = %265, %262
  %266 = phi ptr [ %263, %262 ], [ %267, %265 ]
  %267 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %266, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %267) #8
  %268 = icmp eq ptr %267, %44
  br i1 %268, label %269, label %265

269:                                              ; preds = %265, %262
  %270 = load ptr, ptr %5, align 8
  call void @llvm.stackrestore.p0(ptr %270)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %34, !llvm.loop !25

271:                                              ; preds = %253, %251
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %8, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %9, align 4
  br label %275

275:                                              ; preds = %271, %247
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #8
  br label %276

276:                                              ; preds = %275, %129
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  br label %277

277:                                              ; preds = %276, %114
  %278 = getelementptr inbounds %"class.std::unordered_set", ptr %74, i64 %73
  %279 = icmp eq ptr %74, %278
  br i1 %279, label %284, label %280

280:                                              ; preds = %280, %277
  %281 = phi ptr [ %278, %277 ], [ %282, %280 ]
  %282 = getelementptr inbounds %"class.std::unordered_set", ptr %281, i64 -1
  call void @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %282) #8
  %283 = icmp eq ptr %282, %74
  br i1 %283, label %284, label %280

284:                                              ; preds = %280, %277
  br label %285

285:                                              ; preds = %284, %67
  %286 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %44, i64 %42
  %287 = icmp eq ptr %44, %286
  br i1 %287, label %292, label %288

288:                                              ; preds = %288, %285
  %289 = phi ptr [ %286, %285 ], [ %290, %288 ]
  %290 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %289, i64 -1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %290) #8
  %291 = icmp eq ptr %290, %44
  br i1 %291, label %292, label %288

292:                                              ; preds = %288, %285
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %295

293:                                              ; preds = %34
  store i32 0, ptr %1, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %294 = load i32, ptr %1, align 4
  ret i32 %294

295:                                              ; preds = %292
  %296 = load ptr, ptr %8, align 8
  %297 = load i32, ptr %9, align 4
  %298 = insertvalue { ptr, i32 } poison, ptr %296, 0
  %299 = insertvalue { ptr, i32 } %298, i32 %297, 1
  resume { ptr, i32 } %299

300:                                              ; preds = %248
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #2 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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)) #1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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


; 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::__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::allocator" = type { i8 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@_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 i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %9 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %10 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %11 = getelementptr i8, ptr %10, i64 -24
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %12
  %14 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %13, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %16 = load i32, ptr %1, align 4, !tbaa !8
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr %1, align 4, !tbaa !8
  %.not151 = icmp eq i32 %16, 0
  br i1 %.not151, label %._crit_edge154, label %.lr.ph153

.lr.ph153:                                        ; preds = %0, %.loopexit85
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %20 = load i32, ptr %2, align 4, !tbaa !8
  %21 = zext i32 %20 to i64
  %22 = call ptr @llvm.stacksave.p0()
  %23 = alloca %"class.std::__cxx11::basic_string", i64 %21, align 16
  %24 = icmp eq i32 %20, 0
  br i1 %24, label %.loopexit89, label %25

25:                                               ; preds = %.lr.ph153
  %26 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %23, i64 %21
  br label %27

27:                                               ; preds = %27, %25
  %28 = phi ptr [ %23, %25 ], [ %29, %27 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  %29 = getelementptr inbounds i8, ptr %28, i64 32
  %30 = icmp eq ptr %29, %26
  br i1 %30, label %.loopexit89, label %27

.loopexit89:                                      ; preds = %27, %.lr.ph153
  %31 = load i32, ptr %2, align 4, !tbaa !8
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %40, %.loopexit89
  %33 = phi i32 [ %31, %.loopexit89 ], [ %41, %40 ]
  %34 = load i32, ptr %3, align 4, !tbaa !8
  %35 = zext i32 %34 to i64
  %36 = alloca %"class.std::unordered_set", i64 %35, align 16
  %37 = icmp eq i32 %34, 0
  br i1 %37, label %.loopexit88, label %46

.lr.ph:                                           ; preds = %.loopexit89, %40
  %indvars.iv = phi i64 [ %indvars.iv.next, %40 ], [ 0, %.loopexit89 ]
  %38 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %23, i64 %indvars.iv
  %39 = 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) %38)
          to label %40 unwind label %44

40:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %41 = load i32, ptr %2, align 4, !tbaa !8
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next, %42
  br i1 %43, label %.lr.ph, label %._crit_edge, !llvm.loop !11

44:                                               ; preds = %.lr.ph
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit80

46:                                               ; preds = %._crit_edge
  %47 = getelementptr inbounds %"class.std::unordered_set", ptr %36, i64 %35
  br label %48

48:                                               ; preds = %48, %46
  %49 = phi ptr [ %36, %46 ], [ %50, %48 ]
  call void @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %49) #8
  %50 = getelementptr inbounds i8, ptr %49, i64 56
  %51 = icmp eq ptr %50, %47
  br i1 %51, label %.loopexit88.loopexit, label %48

.loopexit88.loopexit:                             ; preds = %48
  %.pre = load i32, ptr %2, align 4, !tbaa !8
  br label %.loopexit88

.loopexit88:                                      ; preds = %.loopexit88.loopexit, %._crit_edge
  %52 = phi i32 [ %.pre, %.loopexit88.loopexit ], [ %33, %._crit_edge ]
  %53 = icmp sgt i32 %52, 0
  %54 = load i32, ptr %3, align 4
  %55 = icmp sgt i32 %54, 0
  %or.cond = select i1 %53, i1 %55, i1 false
  br i1 %or.cond, label %.preheader83, label %._crit_edge129

.preheader83:                                     ; preds = %.loopexit88, %._crit_edge127
  %56 = phi i32 [ %60, %._crit_edge127 ], [ %52, %.loopexit88 ]
  %57 = phi i32 [ %61, %._crit_edge127 ], [ %54, %.loopexit88 ]
  %indvars.iv204 = phi i64 [ %indvars.iv.next205, %._crit_edge127 ], [ 0, %.loopexit88 ]
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %.lr.ph126, label %._crit_edge127

.lr.ph126:                                        ; preds = %.preheader83
  %59 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %23, i64 %indvars.iv204
  br label %64

._crit_edge129:                                   ; preds = %._crit_edge127, %.loopexit88
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %74 unwind label %77

._crit_edge127.loopexit:                          ; preds = %68
  %.pre216 = load i32, ptr %2, align 4, !tbaa !8
  br label %._crit_edge127

._crit_edge127:                                   ; preds = %._crit_edge127.loopexit, %.preheader83
  %60 = phi i32 [ %.pre216, %._crit_edge127.loopexit ], [ %56, %.preheader83 ]
  %61 = phi i32 [ %69, %._crit_edge127.loopexit ], [ %57, %.preheader83 ]
  %indvars.iv.next205 = add nuw nsw i64 %indvars.iv204, 1
  %62 = sext i32 %60 to i64
  %63 = icmp slt i64 %indvars.iv.next205, %62
  br i1 %63, label %.preheader83, label %._crit_edge129, !llvm.loop !13

64:                                               ; preds = %.lr.ph126, %68
  %indvars.iv201 = phi i64 [ 0, %.lr.ph126 ], [ %indvars.iv.next202, %68 ]
  %65 = getelementptr inbounds %"class.std::unordered_set", ptr %36, i64 %indvars.iv201
  %66 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %59, i64 noundef %indvars.iv201)
  %67 = invoke { ptr, i8 } @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEE6insertERKc(ptr noundef nonnull align 8 dereferenceable(56) %65, ptr noundef nonnull align 1 dereferenceable(1) %66)
          to label %68 unwind label %72

68:                                               ; preds = %64
  %indvars.iv.next202 = add nuw nsw i64 %indvars.iv201, 1
  %69 = load i32, ptr %3, align 4, !tbaa !8
  %70 = sext i32 %69 to i64
  %71 = icmp slt i64 %indvars.iv.next202, %70
  br i1 %71, label %64, label %._crit_edge127.loopexit, !llvm.loop !15

72:                                               ; preds = %64
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %136

74:                                               ; preds = %._crit_edge129
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  %75 = load i32, ptr %3, align 4, !tbaa !8
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %.lr.ph148, label %._crit_edge149

77:                                               ; preds = %._crit_edge129
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  br label %135

.lr.ph148:                                        ; preds = %74, %.loopexit220
  %indvars.iv213 = phi i64 [ %indvars.iv.next214, %.loopexit220 ], [ 0, %74 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %23)
          to label %79 unwind label %84

79:                                               ; preds = %.lr.ph148
  %80 = getelementptr inbounds %"class.std::unordered_set", ptr %36, i64 %indvars.iv213
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %81 = call ptr @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %80) #8
  store ptr %81, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %82 = call ptr @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %80) #8
  store ptr %82, ptr %8, align 8
  %83 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIcLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  br i1 %83, label %.lr.ph145, label %.loopexit220

84:                                               ; preds = %.lr.ph148
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %117

.lr.ph145:                                        ; preds = %79, %.critedge
  %86 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt8__detail14_Node_iteratorIcLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  %87 = load i8, ptr %86, align 1, !tbaa !16
  %88 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %indvars.iv213)
  store i8 %87, ptr %88, align 1, !tbaa !16
  %89 = load i32, ptr %2, align 4, !tbaa !8
  %.not76134 = icmp sgt i32 %89, 1
  %90 = load i32, ptr %3, align 4
  %91 = icmp sgt i32 %90, 0
  %or.cond264 = select i1 %.not76134, i1 %91, i1 false
  br i1 %or.cond264, label %.preheader81, label %.critedge78

._crit_edge133.thread:                            ; preds = %.preheader81, %._crit_edge133
  %92 = phi i32 [ %105, %._crit_edge133 ], [ %95, %.preheader81 ]
  %indvars.iv.next211 = add nuw nsw i64 %indvars.iv210, 1
  %93 = load i32, ptr %2, align 4, !tbaa !8
  %94 = sext i32 %93 to i64
  %.not76 = icmp slt i64 %indvars.iv.next211, %94
  br i1 %.not76, label %.preheader81, label %.critedge78, !llvm.loop !17

.preheader81:                                     ; preds = %.lr.ph145, %._crit_edge133.thread
  %95 = phi i32 [ %92, %._crit_edge133.thread ], [ %90, %.lr.ph145 ]
  %indvars.iv210 = phi i64 [ %indvars.iv.next211, %._crit_edge133.thread ], [ 1, %.lr.ph145 ]
  %96 = icmp sgt i32 %95, 0
  br i1 %96, label %.lr.ph132, label %._crit_edge133.thread

.lr.ph132:                                        ; preds = %.preheader81
  %97 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %23, i64 %indvars.iv210
  br label %99

._crit_edge133:                                   ; preds = %99
  %98 = icmp ult i32 %spec.select, 2
  br i1 %98, label %._crit_edge133.thread, label %.critedge

99:                                               ; preds = %.lr.ph132, %99
  %indvars.iv207 = phi i64 [ 0, %.lr.ph132 ], [ %indvars.iv.next208, %99 ]
  %.040130 = phi i32 [ 0, %.lr.ph132 ], [ %spec.select, %99 ]
  %100 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %indvars.iv207)
  %101 = load i8, ptr %100, align 1, !tbaa !16
  %102 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %97, i64 noundef %indvars.iv207)
  %103 = load i8, ptr %102, align 1, !tbaa !16
  %.not69 = icmp ne i8 %101, %103
  %104 = zext i1 %.not69 to i32
  %spec.select = add nuw nsw i32 %.040130, %104
  %indvars.iv.next208 = add nuw nsw i64 %indvars.iv207, 1
  %105 = load i32, ptr %3, align 4, !tbaa !8
  %106 = sext i32 %105 to i64
  %107 = icmp slt i64 %indvars.iv.next208, %106
  br i1 %107, label %99, label %._crit_edge133, !llvm.loop !18

.critedge78:                                      ; preds = %.lr.ph145, %._crit_edge133.thread
  %108 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %113 unwind label %109

109:                                              ; preds = %.critedge78
  %110 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  br label %117

.critedge:                                        ; preds = %._crit_edge133
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIcLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  %112 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIcLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  br i1 %112, label %.lr.ph145, label %.loopexit220

113:                                              ; preds = %.critedge78
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %._crit_edge149

.loopexit220:                                     ; preds = %.critedge, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  %indvars.iv.next214 = add nuw nsw i64 %indvars.iv213, 1
  %114 = load i32, ptr %3, align 4, !tbaa !8
  %115 = sext i32 %114 to i64
  %116 = icmp slt i64 %indvars.iv.next214, %115
  br i1 %116, label %.lr.ph148, label %._crit_edge149, !llvm.loop !19

117:                                              ; preds = %109, %84
  %.pn = phi { ptr, i32 } [ %110, %109 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %134

._crit_edge149:                                   ; preds = %.loopexit220, %113, %74
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %119 unwind label %132

119:                                              ; preds = %._crit_edge149
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %121 unwind label %132

121:                                              ; preds = %119
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  br i1 %37, label %.loopexit87, label %.preheader86.preheader

.preheader86.preheader:                           ; preds = %121
  %122 = getelementptr inbounds %"class.std::unordered_set", ptr %36, i64 %35
  br label %.preheader86

.preheader86:                                     ; preds = %.preheader86.preheader, %.preheader86
  %123 = phi ptr [ %124, %.preheader86 ], [ %122, %.preheader86.preheader ]
  %124 = getelementptr inbounds i8, ptr %123, i64 -56
  call void @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %124) #8
  %125 = icmp eq ptr %124, %36
  br i1 %125, label %.loopexit87, label %.preheader86

.loopexit87:                                      ; preds = %.preheader86, %121
  br i1 %24, label %.loopexit85, label %.preheader84.preheader

.preheader84.preheader:                           ; preds = %.loopexit87
  %126 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %23, i64 %21
  br label %.preheader84

.preheader84:                                     ; preds = %.preheader84.preheader, %.preheader84
  %127 = phi ptr [ %128, %.preheader84 ], [ %126, %.preheader84.preheader ]
  %128 = getelementptr inbounds i8, ptr %127, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %128) #8
  %129 = icmp eq ptr %128, %23
  br i1 %129, label %.loopexit85, label %.preheader84

.loopexit85:                                      ; preds = %.preheader84, %.loopexit87
  call void @llvm.stackrestore.p0(ptr %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  %130 = load i32, ptr %1, align 4, !tbaa !8
  %131 = add nsw i32 %130, -1
  store i32 %131, ptr %1, align 4, !tbaa !8
  %.not = icmp eq i32 %130, 0
  br i1 %.not, label %._crit_edge154, label %.lr.ph153, !llvm.loop !20

132:                                              ; preds = %119, %._crit_edge149
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %134

134:                                              ; preds = %132, %117
  %.pn66 = phi { ptr, i32 } [ %133, %132 ], [ %.pn, %117 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  br label %135

135:                                              ; preds = %134, %77
  %.pn66.pn = phi { ptr, i32 } [ %.pn66, %134 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  br label %136

136:                                              ; preds = %135, %72
  %.pn70 = phi { ptr, i32 } [ %73, %72 ], [ %.pn66.pn, %135 ]
  br i1 %37, label %.loopexit80, label %.preheader79.preheader

.preheader79.preheader:                           ; preds = %136
  %137 = getelementptr inbounds %"class.std::unordered_set", ptr %36, i64 %35
  br label %.preheader79

.preheader79:                                     ; preds = %.preheader79.preheader, %.preheader79
  %138 = phi ptr [ %139, %.preheader79 ], [ %137, %.preheader79.preheader ]
  %139 = getelementptr inbounds i8, ptr %138, i64 -56
  call void @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %139) #8
  %140 = icmp eq ptr %139, %36
  br i1 %140, label %.loopexit80, label %.preheader79

.loopexit80:                                      ; preds = %.preheader79, %136, %44
  %.pn72 = phi { ptr, i32 } [ %45, %44 ], [ %.pn70, %136 ], [ %.pn70, %.preheader79 ]
  br i1 %24, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.loopexit80
  %141 = getelementptr inbounds %"class.std::__cxx11::basic_string", ptr %23, i64 %21
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %142 = phi ptr [ %143, %.preheader ], [ %141, %.preheader.preheader ]
  %143 = getelementptr inbounds i8, ptr %142, i64 -32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %143) #8
  %144 = icmp eq ptr %143, %23
  br i1 %144, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.loopexit80
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn72

._crit_edge154:                                   ; preds = %.loopexit85, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0
}

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 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 #1

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setIcSt4hashIcESt8equal_toIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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


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