; LLVM IR from eyangch/competitive-programming :: Codeforces/1362 (d)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, 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
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; 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 ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca i32, align 4
  %31 = alloca %"struct.std::pair", align 8
  %32 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %33 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %34 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %35 = alloca i32, align 4
  %36 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %37 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %38 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %39 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %40 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %41 = getelementptr i8, ptr %40, i64 -24
  %42 = load i64, ptr %41, align 8
  %43 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %42
  %44 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %43, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  %45 = 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)
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %47 = load i32, ptr %2, align 4, !tbaa !8
  %48 = zext i32 %47 to i64
  %49 = call ptr @llvm.stacksave.p0()
  store ptr %49, ptr %4, align 8
  %50 = alloca %"class.std::vector", i64 %48, align 16
  store i64 %48, ptr %5, align 8
  %51 = icmp eq i64 %48, 0
  br i1 %51, label %58, label %52

52:                                               ; preds = %0
  %53 = getelementptr inbounds %"class.std::vector", ptr %50, i64 %48
  br label %54

54:                                               ; preds = %54, %52
  %55 = phi ptr [ %50, %52 ], [ %56, %54 ]
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %55) #8
  %56 = getelementptr inbounds %"class.std::vector", ptr %55, i64 1
  %57 = icmp eq ptr %56, %53
  br i1 %57, label %58, label %54

58:                                               ; preds = %54, %0
  %59 = load i32, ptr %2, align 4, !tbaa !8
  %60 = zext i32 %59 to i64
  %61 = alloca %"class.std::unordered_set", i64 %60, align 16
  store i64 %60, ptr %6, align 8
  %62 = icmp eq i64 %60, 0
  br i1 %62, label %69, label %63

63:                                               ; preds = %58
  %64 = getelementptr inbounds %"class.std::unordered_set", ptr %61, i64 %60
  br label %65

65:                                               ; preds = %65, %63
  %66 = phi ptr [ %61, %63 ], [ %67, %65 ]
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %66) #8
  %67 = getelementptr inbounds %"class.std::unordered_set", ptr %66, i64 1
  %68 = icmp eq ptr %67, %64
  br i1 %68, label %69, label %65

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

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

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

75:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %76 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %77 unwind label %97

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %79 unwind label %97

79:                                               ; preds = %77
  %80 = load i32, ptr %8, align 4, !tbaa !8
  %81 = sub nsw i32 %80, 1
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %"class.std::vector", ptr %50, i64 %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %84 = load i32, ptr %9, align 4, !tbaa !8
  %85 = sub nsw i32 %84, 1
  store i32 %85, ptr %12, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %86 unwind label %101

86:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %87 = load i32, ptr %9, align 4, !tbaa !8
  %88 = sub nsw i32 %87, 1
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds %"class.std::vector", ptr %50, i64 %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %91 = load i32, ptr %8, align 4, !tbaa !8
  %92 = sub nsw i32 %91, 1
  store i32 %92, ptr %13, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %90, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %93 unwind label %105

93:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %7, align 4, !tbaa !8
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %7, align 4, !tbaa !8
  br label %70, !llvm.loop !11

97:                                               ; preds = %77, %75
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %10, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %11, align 4
  br label %109

101:                                              ; preds = %79
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %10, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %109

105:                                              ; preds = %86
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %10, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %109

109:                                              ; preds = %105, %101, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %372

110:                                              ; preds = %74
  %111 = load i32, ptr %2, align 4, !tbaa !8
  %112 = zext i32 %111 to i64
  %113 = alloca %"class.std::vector", i64 %112, align 16
  store i64 %112, ptr %14, align 8
  %114 = icmp eq i64 %112, 0
  br i1 %114, label %121, label %115

115:                                              ; preds = %110
  %116 = getelementptr inbounds %"class.std::vector", ptr %113, i64 %112
  br label %117

117:                                              ; preds = %117, %115
  %118 = phi ptr [ %113, %115 ], [ %119, %117 ]
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %118) #8
  %119 = getelementptr inbounds %"class.std::vector", ptr %118, i64 1
  %120 = icmp eq ptr %119, %116
  br i1 %120, label %121, label %117

121:                                              ; preds = %117, %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !8
  br label %122

122:                                              ; preds = %150, %121
  %123 = load i32, ptr %15, align 4, !tbaa !8
  %124 = load i32, ptr %2, align 4, !tbaa !8
  %125 = icmp slt i32 %123, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %162

127:                                              ; preds = %122
  %128 = load i32, ptr %15, align 4, !tbaa !8
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds %"class.std::vector", ptr %50, i64 %129
  %131 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %130) #8
  %132 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %131, ptr %132, align 8
  %133 = load i32, ptr %15, align 4, !tbaa !8
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds %"class.std::vector", ptr %50, i64 %134
  %136 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %135) #8
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %139, ptr %141)
          to label %142 unwind label %153

142:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %143 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %144 unwind label %157

144:                                              ; preds = %142
  %145 = load i32, ptr %18, align 4, !tbaa !8
  %146 = sub nsw i32 %145, 1
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds %"class.std::vector", ptr %113, i64 %147
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %148, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %149 unwind label %157

149:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %15, align 4, !tbaa !8
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %15, align 4, !tbaa !8
  br label %122, !llvm.loop !13

153:                                              ; preds = %127
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %10, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %11, align 4
  br label %161

157:                                              ; preds = %144, %142
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %10, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %161

161:                                              ; preds = %157, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %357

162:                                              ; preds = %126
  %163 = load i32, ptr %2, align 4, !tbaa !8
  %164 = zext i32 %163 to i64
  %165 = alloca i32, i64 %164, align 16
  store i64 %164, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !8
  br label %166

166:                                              ; preds = %311, %162
  %167 = load i32, ptr %21, align 4, !tbaa !8
  %168 = load i32, ptr %2, align 4, !tbaa !8
  %169 = icmp slt i32 %167, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %166
  store i32 8, ptr %22, align 4
  br label %314

171:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %172 = load i32, ptr %21, align 4, !tbaa !8
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds %"class.std::vector", ptr %113, i64 %173
  store ptr %174, ptr %23, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %175 = load ptr, ptr %23, align 8, !tbaa !14
  %176 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %175) #8
  %177 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %176, ptr %177, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %178 = load ptr, ptr %23, align 8, !tbaa !14
  %179 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %178) #8
  %180 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %179, ptr %180, align 8
  br label %181

181:                                              ; preds = %305, %171
  %182 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  br i1 %182, label %184, label %183

183:                                              ; preds = %181
  store i32 11, ptr %22, align 4
  br label %308

184:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  %186 = load i32, ptr %185, align 4, !tbaa !8
  store i32 %186, ptr %26, align 4, !tbaa !8
  %187 = load i32, ptr %26, align 4, !tbaa !8
  %188 = load i32, ptr %20, align 4, !tbaa !8
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %165, i64 %189
  store i32 %187, ptr %190, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %191 = load i32, ptr %26, align 4, !tbaa !8
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds %"class.std::vector", ptr %50, i64 %192
  store ptr %193, ptr %27, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %194 = load ptr, ptr %27, align 8, !tbaa !14
  %195 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %194) #8
  %196 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %195, ptr %196, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %197 = load ptr, ptr %27, align 8, !tbaa !14
  %198 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %197) #8
  %199 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %198, ptr %199, align 8
  br label %200

200:                                              ; preds = %215, %184
  %201 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #8
  br i1 %201, label %203, label %202

202:                                              ; preds = %200
  store i32 13, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %221

203:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %204 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  %205 = load i32, ptr %204, align 4, !tbaa !8
  store i32 %205, ptr %30, align 4, !tbaa !8
  %206 = load i32, ptr %30, align 4, !tbaa !8
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds %"class.std::unordered_set", ptr %61, i64 %207
  %209 = invoke { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %208, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %210 unwind label %217

210:                                              ; preds = %203
  %211 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 0
  %212 = extractvalue { ptr, i8 } %209, 0
  store ptr %212, ptr %211, align 8
  %213 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 1
  %214 = extractvalue { ptr, i8 } %209, 1
  store i8 %214, ptr %213, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %215

215:                                              ; preds = %210
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #8
  br label %200

217:                                              ; preds = %203
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %10, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %307

221:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %222 = load i32, ptr %26, align 4, !tbaa !8
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds %"class.std::unordered_set", ptr %61, i64 %223
  %225 = invoke ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56) %224, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %226 unwind label %241

226:                                              ; preds = %221
  %227 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %32, i32 0, i32 0
  %228 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %227, i32 0, i32 0
  store ptr %225, ptr %228, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %229 = load i32, ptr %26, align 4, !tbaa !8
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds %"class.std::unordered_set", ptr %61, i64 %230
  %232 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %231) #8
  %233 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %33, i32 0, i32 0
  %234 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %233, i32 0, i32 0
  store ptr %232, ptr %234, align 8
  %235 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br i1 %235, label %236, label %249

236:                                              ; preds = %226
  %237 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %238 unwind label %245

238:                                              ; preds = %236
  %239 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %237, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %240 unwind label %245

240:                                              ; preds = %238
  store i32 0, ptr %1, align 4
  store i32 1, ptr %22, align 4
  br label %302

241:                                              ; preds = %221
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %10, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %307

245:                                              ; preds = %238, %236
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %10, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %11, align 4
  br label %307

249:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %250 = load i32, ptr %26, align 4, !tbaa !8
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds %"class.std::unordered_set", ptr %61, i64 %251
  %253 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %252) #8
  %254 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %34, i32 0, i32 0
  %255 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %254, i32 0, i32 0
  store ptr %253, ptr %255, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 0, ptr %35, align 4, !tbaa !8
  br label %256

256:                                              ; preds = %290, %249
  %257 = load i32, ptr %35, align 4, !tbaa !8
  %258 = load i32, ptr %21, align 4, !tbaa !8
  %259 = icmp slt i32 %257, %258
  br i1 %259, label %261, label %260

260:                                              ; preds = %256
  store i32 15, ptr %22, align 4
  br label %293

261:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %262 = load i32, ptr %26, align 4, !tbaa !8
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds %"class.std::unordered_set", ptr %61, i64 %263
  %265 = invoke ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56) %264, ptr noundef nonnull align 4 dereferenceable(4) %35)
          to label %266 unwind label %281

266:                                              ; preds = %261
  %267 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %36, i32 0, i32 0
  %268 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %267, i32 0, i32 0
  store ptr %265, ptr %268, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %269 = load i32, ptr %26, align 4, !tbaa !8
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds %"class.std::unordered_set", ptr %61, i64 %270
  %272 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %271) #8
  %273 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %37, i32 0, i32 0
  %274 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %273, i32 0, i32 0
  store ptr %272, ptr %274, align 8
  %275 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br i1 %275, label %276, label %289

276:                                              ; preds = %266
  %277 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %278 unwind label %285

278:                                              ; preds = %276
  %279 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %277, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %280 unwind label %285

280:                                              ; preds = %278
  store i32 0, ptr %1, align 4
  store i32 1, ptr %22, align 4
  br label %293

281:                                              ; preds = %261
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %10, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  br label %295

285:                                              ; preds = %278, %276
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %10, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %11, align 4
  br label %295

289:                                              ; preds = %266
  br label %290

290:                                              ; preds = %289
  %291 = load i32, ptr %35, align 4, !tbaa !8
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %35, align 4, !tbaa !8
  br label %256, !llvm.loop !16

293:                                              ; preds = %280, %260
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  %294 = load i32, ptr %22, align 4
  switch i32 %294, label %299 [
    i32 15, label %296
  ]

295:                                              ; preds = %285, %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %307

296:                                              ; preds = %293
  %297 = load i32, ptr %20, align 4, !tbaa !8
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %20, align 4, !tbaa !8
  store i32 0, ptr %22, align 4
  br label %299

299:                                              ; preds = %296, %293
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  %300 = load i32, ptr %22, align 4
  switch i32 %300, label %302 [
    i32 0, label %301
  ]

301:                                              ; preds = %299
  store i32 0, ptr %22, align 4
  br label %302

302:                                              ; preds = %301, %299, %240
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  %303 = load i32, ptr %22, align 4
  switch i32 %303, label %308 [
    i32 0, label %304
  ]

304:                                              ; preds = %302
  br label %305

305:                                              ; preds = %304
  %306 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #8
  br label %181

307:                                              ; preds = %295, %245, %241, %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %349

308:                                              ; preds = %302, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  %309 = load i32, ptr %22, align 4
  switch i32 %309, label %314 [
    i32 11, label %310
  ]

310:                                              ; preds = %308
  br label %311

311:                                              ; preds = %310
  %312 = load i32, ptr %21, align 4, !tbaa !8
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %21, align 4, !tbaa !8
  br label %166, !llvm.loop !17

314:                                              ; preds = %308, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  %315 = load i32, ptr %22, align 4
  switch i32 %315, label %346 [
    i32 8, label %316
  ]

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

317:                                              ; preds = %332, %316
  %318 = load i32, ptr %38, align 4, !tbaa !8
  %319 = load i32, ptr %2, align 4, !tbaa !8
  %320 = icmp slt i32 %318, %319
  br i1 %320, label %322, label %321

321:                                              ; preds = %317
  store i32 18, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %339

322:                                              ; preds = %317
  %323 = load i32, ptr %38, align 4, !tbaa !8
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds i32, ptr %165, i64 %324
  %326 = load i32, ptr %325, align 4, !tbaa !8
  %327 = add nsw i32 %326, 1
  %328 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %327)
          to label %329 unwind label %335

329:                                              ; preds = %322
  %330 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %328, ptr noundef @.str)
          to label %331 unwind label %335

331:                                              ; preds = %329
  br label %332

332:                                              ; preds = %331
  %333 = load i32, ptr %38, align 4, !tbaa !8
  %334 = add nsw i32 %333, 1
  store i32 %334, ptr %38, align 4, !tbaa !8
  br label %317, !llvm.loop !18

335:                                              ; preds = %329, %322
  %336 = landingpad { ptr, i32 }
          cleanup
  %337 = extractvalue { ptr, i32 } %336, 0
  store ptr %337, ptr %10, align 8
  %338 = extractvalue { ptr, i32 } %336, 1
  store i32 %338, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %349

339:                                              ; preds = %321
  %340 = 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 %341 unwind label %342

341:                                              ; preds = %339
  store i32 0, ptr %1, align 4
  store i32 1, ptr %22, align 4
  br label %346

342:                                              ; preds = %339
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %10, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %11, align 4
  br label %349

346:                                              ; preds = %341, %314
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  %347 = getelementptr inbounds %"class.std::vector", ptr %113, i64 %112
  %348 = icmp eq ptr %113, %347
  br i1 %348, label %354, label %350

349:                                              ; preds = %342, %335, %307
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %357

350:                                              ; preds = %350, %346
  %351 = phi ptr [ %347, %346 ], [ %352, %350 ]
  %352 = getelementptr inbounds %"class.std::vector", ptr %351, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %352) #8
  %353 = icmp eq ptr %352, %113
  br i1 %353, label %354, label %350

354:                                              ; preds = %350, %346
  %355 = getelementptr inbounds %"class.std::unordered_set", ptr %61, i64 %60
  %356 = icmp eq ptr %61, %355
  br i1 %356, label %369, label %365

357:                                              ; preds = %349, %161
  %358 = getelementptr inbounds %"class.std::vector", ptr %113, i64 %112
  %359 = icmp eq ptr %113, %358
  br i1 %359, label %364, label %360

360:                                              ; preds = %360, %357
  %361 = phi ptr [ %358, %357 ], [ %362, %360 ]
  %362 = getelementptr inbounds %"class.std::vector", ptr %361, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %362) #8
  %363 = icmp eq ptr %362, %113
  br i1 %363, label %364, label %360

364:                                              ; preds = %360, %357
  br label %372

365:                                              ; preds = %365, %354
  %366 = phi ptr [ %355, %354 ], [ %367, %365 ]
  %367 = getelementptr inbounds %"class.std::unordered_set", ptr %366, i64 -1
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %367) #8
  %368 = icmp eq ptr %367, %61
  br i1 %368, label %369, label %365

369:                                              ; preds = %365, %354
  %370 = getelementptr inbounds %"class.std::vector", ptr %50, i64 %48
  %371 = icmp eq ptr %50, %370
  br i1 %371, label %386, label %382

372:                                              ; preds = %364, %109
  %373 = getelementptr inbounds %"class.std::unordered_set", ptr %61, i64 %60
  %374 = icmp eq ptr %61, %373
  br i1 %374, label %379, label %375

375:                                              ; preds = %375, %372
  %376 = phi ptr [ %373, %372 ], [ %377, %375 ]
  %377 = getelementptr inbounds %"class.std::unordered_set", ptr %376, i64 -1
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %377) #8
  %378 = icmp eq ptr %377, %61
  br i1 %378, label %379, label %375

379:                                              ; preds = %375, %372
  %380 = getelementptr inbounds %"class.std::vector", ptr %50, i64 %48
  %381 = icmp eq ptr %50, %380
  br i1 %381, label %393, label %389

382:                                              ; preds = %382, %369
  %383 = phi ptr [ %370, %369 ], [ %384, %382 ]
  %384 = getelementptr inbounds %"class.std::vector", ptr %383, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %384) #8
  %385 = icmp eq ptr %384, %50
  br i1 %385, label %386, label %382

386:                                              ; preds = %382, %369
  %387 = load ptr, ptr %4, align 8
  call void @llvm.stackrestore.p0(ptr %387)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  %388 = load i32, ptr %1, align 4
  ret i32 %388

389:                                              ; preds = %389, %379
  %390 = phi ptr [ %380, %379 ], [ %391, %389 ]
  %391 = getelementptr inbounds %"class.std::vector", ptr %390, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %391) #8
  %392 = icmp eq ptr %391, %50
  br i1 %392, label %393, label %389

393:                                              ; preds = %389, %379
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %394

394:                                              ; preds = %393
  %395 = load ptr, ptr %10, align 8
  %396 = load i32, ptr %11, align 4
  %397 = insertvalue { ptr, i32 } poison, ptr %395, 0
  %398 = insertvalue { ptr, i32 } %397, i32 %396, 1
  resume { ptr, i32 } %398
}

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 dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #6

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #5 align 2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1

; 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: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(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

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 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !10, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !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.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, 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
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; 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 i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %18 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %19 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %20 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %21 = getelementptr i8, ptr %20, i64 -24
  %22 = load i64, ptr %21, align 8
  %23 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %22
  %24 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %23, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %25 = 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)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %27 = load i32, ptr %1, align 4, !tbaa !8
  %28 = zext i32 %27 to i64
  %29 = call ptr @llvm.stacksave.p0()
  %30 = alloca %"class.std::vector", i64 %28, align 16
  %31 = icmp eq i32 %27, 0
  br i1 %31, label %.loopexit106, label %32

32:                                               ; preds = %0
  %33 = getelementptr inbounds %"class.std::vector", ptr %30, i64 %28
  br label %34

34:                                               ; preds = %34, %32
  %35 = phi ptr [ %30, %32 ], [ %36, %34 ]
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %35) #8
  %36 = getelementptr inbounds i8, ptr %35, i64 24
  %37 = icmp eq ptr %36, %33
  br i1 %37, label %.loopexit106, label %34

.loopexit106:                                     ; preds = %34, %0
  %38 = load i32, ptr %1, align 4, !tbaa !8
  %39 = zext i32 %38 to i64
  %40 = alloca %"class.std::unordered_set", i64 %39, align 16
  %41 = icmp eq i32 %38, 0
  br i1 %41, label %.loopexit105, label %42

42:                                               ; preds = %.loopexit106
  %43 = getelementptr inbounds %"class.std::unordered_set", ptr %40, i64 %39
  br label %44

44:                                               ; preds = %44, %42
  %45 = phi ptr [ %40, %42 ], [ %46, %44 ]
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %45) #8
  %46 = getelementptr inbounds i8, ptr %45, i64 56
  %47 = icmp eq ptr %46, %43
  br i1 %47, label %.loopexit105, label %44

.loopexit105:                                     ; preds = %44, %.loopexit106
  %invariant.gep = getelementptr i8, ptr %30, i64 -24
  %48 = load i32, ptr %2, align 4, !tbaa !8
  %49 = icmp sgt i32 %48, 0
  br i1 %49, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %67, %.loopexit105
  %50 = load i32, ptr %1, align 4, !tbaa !8
  %51 = zext i32 %50 to i64
  %52 = alloca %"class.std::vector", i64 %51, align 16
  %53 = icmp eq i32 %50, 0
  br i1 %53, label %.loopexit104.thread, label %78

.loopexit104.thread:                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  br label %._crit_edge129.thread

.lr.ph:                                           ; preds = %.loopexit105, %67
  %.035123 = phi i32 [ %68, %67 ], [ 0, %.loopexit105 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  %54 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %55 unwind label %71

55:                                               ; preds = %.lr.ph
  %56 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %57 unwind label %71

57:                                               ; preds = %55
  %58 = load i32, ptr %3, align 4, !tbaa !8
  %59 = sext i32 %58 to i64
  %gep = getelementptr %"class.std::vector", ptr %invariant.gep, i64 %59
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %60 = load i32, ptr %4, align 4, !tbaa !8
  %61 = add nsw i32 %60, -1
  store i32 %61, ptr %5, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %gep, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %62 unwind label %73

62:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %63 = load i32, ptr %4, align 4, !tbaa !8
  %64 = sext i32 %63 to i64
  %gep122 = getelementptr %"class.std::vector", ptr %invariant.gep, i64 %64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  %65 = load i32, ptr %3, align 4, !tbaa !8
  %66 = add nsw i32 %65, -1
  store i32 %66, ptr %6, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %gep122, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %67 unwind label %75

67:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  %68 = add nuw nsw i32 %.035123, 1
  %69 = load i32, ptr %2, align 4, !tbaa !8
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %.lr.ph, label %._crit_edge, !llvm.loop !11

71:                                               ; preds = %55, %.lr.ph
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %77

73:                                               ; preds = %57
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  br label %77

75:                                               ; preds = %62
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br label %77

77:                                               ; preds = %75, %73, %71
  %.pn81 = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  br label %.loopexit97

78:                                               ; preds = %._crit_edge
  %79 = getelementptr inbounds %"class.std::vector", ptr %52, i64 %51
  br label %80

80:                                               ; preds = %80, %78
  %81 = phi ptr [ %52, %78 ], [ %82, %80 ]
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %81) #8
  %82 = getelementptr inbounds i8, ptr %81, i64 24
  %83 = icmp eq ptr %82, %79
  br i1 %83, label %.loopexit104, label %80

.loopexit104:                                     ; preds = %80
  %.pre = load i32, ptr %1, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  %invariant.gep124 = getelementptr i8, ptr %52, i64 -24
  store i32 0, ptr %7, align 4, !tbaa !8
  %84 = icmp sgt i32 %.pre, 0
  br i1 %84, label %.lr.ph128, label %._crit_edge129.thread

._crit_edge129.thread:                            ; preds = %.loopexit104, %.loopexit104.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  br label %._crit_edge146.thread

._crit_edge129:                                   ; preds = %99
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  %85 = zext i32 %102 to i64
  %86 = alloca i32, i64 %85, align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  store i32 0, ptr %9, align 4, !tbaa !8
  %.not74141 = icmp sgt i32 %102, 0
  br i1 %.not74141, label %.lr.ph145, label %._crit_edge146.thread

.lr.ph128:                                        ; preds = %.loopexit104, %99
  %storemerge126 = phi i32 [ %101, %99 ], [ 0, %.loopexit104 ]
  %87 = sext i32 %storemerge126 to i64
  %88 = getelementptr inbounds %"class.std::vector", ptr %30, i64 %87
  %89 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #8
  %90 = load i32, ptr %7, align 4, !tbaa !8
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds %"class.std::vector", ptr %30, i64 %91
  %93 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %89, ptr %93)
          to label %94 unwind label %104

94:                                               ; preds = %.lr.ph128
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  %95 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %96 unwind label %106

96:                                               ; preds = %94
  %97 = load i32, ptr %8, align 4, !tbaa !8
  %98 = sext i32 %97 to i64
  %gep125 = getelementptr %"class.std::vector", ptr %invariant.gep124, i64 %98
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %gep125, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %99 unwind label %106

99:                                               ; preds = %96
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  %100 = load i32, ptr %7, align 4, !tbaa !8
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %7, align 4, !tbaa !8
  %102 = load i32, ptr %1, align 4, !tbaa !8
  %103 = icmp slt i32 %101, %102
  br i1 %103, label %.lr.ph128, label %._crit_edge129, !llvm.loop !13

104:                                              ; preds = %.lr.ph128
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %108

106:                                              ; preds = %96, %94
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br label %108

108:                                              ; preds = %106, %104
  %.pn78 = phi { ptr, i32 } [ %107, %106 ], [ %105, %104 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  br label %197

.lr.ph145:                                        ; preds = %._crit_edge129, %170
  %.050143 = phi i32 [ %.151.lcssa, %170 ], [ 0, %._crit_edge129 ]
  %storemerge71142 = phi i32 [ %172, %170 ], [ 0, %._crit_edge129 ]
  %109 = sext i32 %storemerge71142 to i64
  %110 = getelementptr inbounds %"class.std::vector", ptr %52, i64 %109
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %111 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #8
  store ptr %111, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %112 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #8
  store ptr %112, ptr %11, align 8
  %113 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br i1 %113, label %.lr.ph139.preheader, label %170

.lr.ph139.preheader:                              ; preds = %.lr.ph145
  %114 = sext i32 %.050143 to i64
  br label %.lr.ph139

.thread88.loopexit:                               ; preds = %._crit_edge136
  %115 = trunc nsw i64 %indvars.iv.next to i32
  br label %170

.lr.ph139:                                        ; preds = %.lr.ph139.preheader, %._crit_edge136
  %indvars.iv = phi i64 [ %114, %.lr.ph139.preheader ], [ %indvars.iv.next, %._crit_edge136 ]
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %117 = load i32, ptr %116, align 4, !tbaa !8
  %118 = getelementptr inbounds i32, ptr %86, i64 %indvars.iv
  store i32 %117, ptr %118, align 4, !tbaa !8
  %119 = sext i32 %117 to i64
  %120 = getelementptr inbounds %"class.std::vector", ptr %30, i64 %119
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %121 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  store ptr %121, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %122 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  store ptr %122, ptr %13, align 8
  %123 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br i1 %123, label %.lr.ph131, label %._crit_edge132

._crit_edge132:                                   ; preds = %131, %.lr.ph139
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %124 = getelementptr inbounds %"class.std::unordered_set", ptr %40, i64 %119
  %125 = invoke ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56) %124, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %136 unwind label %143

.lr.ph131:                                        ; preds = %.lr.ph139, %131
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %127 = load i32, ptr %126, align 4, !tbaa !8
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds %"class.std::unordered_set", ptr %40, i64 %128
  %130 = invoke { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %129, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %131 unwind label %134

131:                                              ; preds = %.lr.ph131
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %133 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br i1 %133, label %.lr.ph131, label %._crit_edge132

134:                                              ; preds = %.lr.ph131
  %135 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %169

136:                                              ; preds = %._crit_edge132
  store ptr %125, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %137 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %124) #8
  store ptr %137, ptr %15, align 8
  %138 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br i1 %138, label %139, label %147

139:                                              ; preds = %136
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %141 unwind label %145

141:                                              ; preds = %139
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %174 unwind label %145

143:                                              ; preds = %._crit_edge132
  %144 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  br label %169

145:                                              ; preds = %141, %139
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %169

147:                                              ; preds = %136
  %148 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %124) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #8
  store i32 0, ptr %16, align 4, !tbaa !8
  %149 = load i32, ptr %9, align 4, !tbaa !8
  %.not133 = icmp sgt i32 %149, 0
  br i1 %.not133, label %.lr.ph135, label %._crit_edge136

.lr.ph135:                                        ; preds = %147, %162
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  %150 = invoke ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56) %124, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %151 unwind label %158

151:                                              ; preds = %.lr.ph135
  store ptr %150, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %152 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %124) #8
  store ptr %152, ptr %18, align 8
  %153 = call noundef zeroext i1 @_ZNSt8__detaileqERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  br i1 %153, label %154, label %162

154:                                              ; preds = %151
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %156 unwind label %160

156:                                              ; preds = %154
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %select.unfold unwind label %160

158:                                              ; preds = %.lr.ph135
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  br label %166

160:                                              ; preds = %156, %154
  %161 = landingpad { ptr, i32 }
          cleanup
  br label %166

162:                                              ; preds = %151
  %163 = load i32, ptr %16, align 4, !tbaa !8
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %16, align 4, !tbaa !8
  %165 = load i32, ptr %9, align 4, !tbaa !8
  %.not = icmp slt i32 %164, %165
  br i1 %.not, label %.lr.ph135, label %._crit_edge136, !llvm.loop !14

166:                                              ; preds = %160, %158
  %.pn = phi { ptr, i32 } [ %161, %160 ], [ %159, %158 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  br label %169

select.unfold:                                    ; preds = %156
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  br label %174

._crit_edge136:                                   ; preds = %162, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #8
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %167 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %168 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br i1 %168, label %.lr.ph139, label %.thread88.loopexit

169:                                              ; preds = %166, %145, %143, %134
  %.pn75 = phi { ptr, i32 } [ %135, %134 ], [ %146, %145 ], [ %.pn, %166 ], [ %144, %143 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %197

170:                                              ; preds = %.lr.ph145, %.thread88.loopexit
  %.151.lcssa = phi i32 [ %.050143, %.lr.ph145 ], [ %115, %.thread88.loopexit ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  %171 = load i32, ptr %9, align 4, !tbaa !8
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %9, align 4, !tbaa !8
  %173 = load i32, ptr %1, align 4, !tbaa !8
  %.not74 = icmp slt i32 %172, %173
  br i1 %.not74, label %.lr.ph145, label %._crit_edge146, !llvm.loop !15

174:                                              ; preds = %select.unfold, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %191

._crit_edge146.thread:                            ; preds = %._crit_edge129, %._crit_edge129.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  br label %._crit_edge150

._crit_edge146:                                   ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  %175 = icmp sgt i32 %173, 0
  br i1 %175, label %.lr.ph149, label %._crit_edge150

._crit_edge150:                                   ; preds = %183, %._crit_edge146.thread, %._crit_edge146
  %176 = 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 %191 unwind label %189

.lr.ph149:                                        ; preds = %._crit_edge146, %183
  %indvars.iv165 = phi i64 [ %indvars.iv.next166, %183 ], [ 0, %._crit_edge146 ]
  %177 = getelementptr inbounds i32, ptr %86, i64 %indvars.iv165
  %178 = load i32, ptr %177, align 4, !tbaa !8
  %179 = add nsw i32 %178, 1
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %179)
          to label %181 unwind label %187

181:                                              ; preds = %.lr.ph149
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %180, ptr noundef nonnull @.str)
          to label %183 unwind label %187

183:                                              ; preds = %181
  %indvars.iv.next166 = add nuw nsw i64 %indvars.iv165, 1
  %184 = load i32, ptr %1, align 4, !tbaa !8
  %185 = sext i32 %184 to i64
  %186 = icmp slt i64 %indvars.iv.next166, %185
  br i1 %186, label %.lr.ph149, label %._crit_edge150, !llvm.loop !16

187:                                              ; preds = %181, %.lr.ph149
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %197

189:                                              ; preds = %._crit_edge150
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %197

191:                                              ; preds = %174, %._crit_edge150
  br i1 %53, label %.loopexit103, label %.preheader102.preheader

.preheader102.preheader:                          ; preds = %191
  %192 = getelementptr inbounds %"class.std::vector", ptr %52, i64 %51
  br label %.preheader102

.preheader102:                                    ; preds = %.preheader102.preheader, %.preheader102
  %193 = phi ptr [ %194, %.preheader102 ], [ %192, %.preheader102.preheader ]
  %194 = getelementptr inbounds i8, ptr %193, i64 -24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %194) #8
  %195 = icmp eq ptr %194, %52
  br i1 %195, label %.loopexit103, label %.preheader102

.loopexit103:                                     ; preds = %.preheader102, %191
  br i1 %41, label %.loopexit101, label %.preheader100.preheader

.preheader100.preheader:                          ; preds = %.loopexit103
  %196 = getelementptr inbounds %"class.std::unordered_set", ptr %40, i64 %39
  br label %.preheader100

197:                                              ; preds = %169, %187, %189, %108
  %.pn78.pn = phi { ptr, i32 } [ %.pn78, %108 ], [ %.pn75, %169 ], [ %188, %187 ], [ %190, %189 ]
  br i1 %53, label %.loopexit97, label %.preheader96.preheader

.preheader96.preheader:                           ; preds = %197
  %198 = getelementptr inbounds %"class.std::vector", ptr %52, i64 %51
  br label %.preheader96

.preheader96:                                     ; preds = %.preheader96.preheader, %.preheader96
  %199 = phi ptr [ %200, %.preheader96 ], [ %198, %.preheader96.preheader ]
  %200 = getelementptr inbounds i8, ptr %199, i64 -24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %200) #8
  %201 = icmp eq ptr %200, %52
  br i1 %201, label %.loopexit97, label %.preheader96

.preheader100:                                    ; preds = %.preheader100.preheader, %.preheader100
  %202 = phi ptr [ %203, %.preheader100 ], [ %196, %.preheader100.preheader ]
  %203 = getelementptr inbounds i8, ptr %202, i64 -56
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %203) #8
  %204 = icmp eq ptr %203, %40
  br i1 %204, label %.loopexit101, label %.preheader100

.loopexit101:                                     ; preds = %.preheader100, %.loopexit103
  br i1 %31, label %.loopexit99, label %.preheader98.preheader

.preheader98.preheader:                           ; preds = %.loopexit101
  %205 = getelementptr inbounds %"class.std::vector", ptr %30, i64 %28
  br label %.preheader98

.loopexit97:                                      ; preds = %.preheader96, %197, %77
  %.pn81.pn = phi { ptr, i32 } [ %.pn81, %77 ], [ %.pn78.pn, %197 ], [ %.pn78.pn, %.preheader96 ]
  br i1 %41, label %.loopexit95, label %.preheader94.preheader

.preheader94.preheader:                           ; preds = %.loopexit97
  %206 = getelementptr inbounds %"class.std::unordered_set", ptr %40, i64 %39
  br label %.preheader94

.preheader94:                                     ; preds = %.preheader94.preheader, %.preheader94
  %207 = phi ptr [ %208, %.preheader94 ], [ %206, %.preheader94.preheader ]
  %208 = getelementptr inbounds i8, ptr %207, i64 -56
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %208) #8
  %209 = icmp eq ptr %208, %40
  br i1 %209, label %.loopexit95, label %.preheader94

.loopexit95:                                      ; preds = %.preheader94, %.loopexit97
  br i1 %31, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.loopexit95
  %210 = getelementptr inbounds %"class.std::vector", ptr %30, i64 %28
  br label %.preheader

.preheader98:                                     ; preds = %.preheader98.preheader, %.preheader98
  %211 = phi ptr [ %212, %.preheader98 ], [ %205, %.preheader98.preheader ]
  %212 = getelementptr inbounds i8, ptr %211, i64 -24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %212) #8
  %213 = icmp eq ptr %212, %30
  br i1 %213, label %.loopexit99, label %.preheader98

.loopexit99:                                      ; preds = %.preheader98, %.loopexit101
  call void @llvm.stackrestore.p0(ptr %29)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %214 = phi ptr [ %215, %.preheader ], [ %210, %.preheader.preheader ]
  %215 = getelementptr inbounds i8, ptr %214, i64 -24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %215) #8
  %216 = icmp eq ptr %215, %30
  br i1 %216, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.loopexit95
  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 } %.pn81.pn
}

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 dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1

; 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: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5beginEv(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__detaileqERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev(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

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 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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