; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/243 Division 1/D (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::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 }
%"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 }
%"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.__gnu_cxx::__normal_iterator" = type { ptr }

@p = external dso_local global [100100 x %"class.std::unordered_set"], align 16
@pts = external dso_local global [100100 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [103 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 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 %"struct.std::pair", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %40, %0
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = icmp slt i32 %30, 100100
  br i1 %31, label %33, label %32

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

33:                                               ; preds = %29
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %35
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56) %36, i64 noundef 1024)
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %38
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE15max_load_factorEf(ptr noundef nonnull align 8 dereferenceable(56) %39, float noundef 2.500000e-01)
  br label %40

40:                                               ; preds = %33
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %2, align 4, !tbaa !5
  br label %29, !llvm.loop !9

43:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %44 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %63, %43
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = load i32, ptr %3, align 4, !tbaa !5
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %66

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %51 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %5, ptr noundef %6)
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %53
  %55 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %54, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %56 = getelementptr inbounds { ptr, i8 }, ptr %7, i32 0, i32 0
  %57 = extractvalue { ptr, i8 } %55, 0
  store ptr %57, ptr %56, align 8
  %58 = getelementptr inbounds { ptr, i8 }, ptr %7, i32 0, i32 1
  %59 = extractvalue { ptr, i8 } %55, 1
  store i8 %59, ptr %58, align 8
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %61
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %63

63:                                               ; preds = %50
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %4, align 4, !tbaa !5
  br label %45, !llvm.loop !11

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

67:                                               ; preds = %86, %66
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = icmp slt i32 %68, 100100
  br i1 %69, label %71, label %70

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

71:                                               ; preds = %67
  %72 = load i32, ptr %8, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %73
  %75 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #7
  %76 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %75, ptr %76, align 8
  %77 = load i32, ptr %8, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %78
  %80 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #7
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %83, ptr %85)
  br label %86

86:                                               ; preds = %71
  %87 = load i32, ptr %8, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %8, align 4, !tbaa !5
  br label %67, !llvm.loop !12

89:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %90

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

93:                                               ; preds = %90
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %255

94:                                               ; preds = %90
  %95 = load i32, ptr %13, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %96
  %98 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %97) #7
  %99 = icmp ule i64 %98, 330
  br i1 %99, label %100, label %244

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

101:                                              ; preds = %240, %100
  %102 = load i32, ptr %15, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = load i32, ptr %13, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %105
  %107 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %106) #7
  %108 = icmp ult i64 %103, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %101
  store i32 14, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %243

110:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %111 = load i32, ptr %15, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %16, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %235, %110
  %114 = load i32, ptr %16, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = load i32, ptr %13, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %117
  %119 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #7
  %120 = icmp ult i64 %115, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %113
  store i32 17, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %239

122:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %123 = load i32, ptr %13, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %124
  %126 = load i32, ptr %16, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %125, i64 noundef %127) #7
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = load i32, ptr %13, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %131
  %133 = load i32, ptr %15, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %134) #7
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = sub nsw i32 %129, %136
  store i32 %137, ptr %17, align 4, !tbaa !5
  %138 = load i32, ptr %13, align 4, !tbaa !5
  %139 = load i32, ptr %17, align 4, !tbaa !5
  %140 = sub nsw i32 %138, %139
  %141 = icmp sge i32 %140, 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  br i1 %141, label %142, label %183

142:                                              ; preds = %122
  %143 = load i32, ptr %13, align 4, !tbaa !5
  %144 = load i32, ptr %17, align 4, !tbaa !5
  %145 = sub nsw i32 %143, %144
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %146
  %148 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %147) #7
  %149 = icmp ugt i64 %148, 330
  br i1 %149, label %150, label %183

150:                                              ; preds = %142
  %151 = load i32, ptr %13, align 4, !tbaa !5
  %152 = load i32, ptr %17, align 4, !tbaa !5
  %153 = sub nsw i32 %151, %152
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %154
  %156 = load i32, ptr %13, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %157
  %159 = load i32, ptr %15, align 4, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %158, i64 noundef %160) #7
  %162 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %155, ptr noundef nonnull align 4 dereferenceable(4) %161)
          to label %163 unwind label %188

163:                                              ; preds = %150
  %164 = icmp ne i64 %162, 0
  br i1 %164, label %165, label %183

165:                                              ; preds = %163
  %166 = load i32, ptr %13, align 4, !tbaa !5
  %167 = load i32, ptr %17, align 4, !tbaa !5
  %168 = sub nsw i32 %166, %167
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %169
  %171 = load i32, ptr %13, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %172
  %174 = load i32, ptr %15, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %173, i64 noundef %175) #7
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = load i32, ptr %17, align 4, !tbaa !5
  %179 = add nsw i32 %177, %178
  store i32 %179, ptr %20, align 4, !tbaa !5
  %180 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %170, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %181 unwind label %192

181:                                              ; preds = %165
  %182 = icmp ne i64 %180, 0
  br label %183

183:                                              ; preds = %181, %163, %142, %122
  %184 = phi i1 [ false, %163 ], [ false, %142 ], [ false, %122 ], [ %182, %181 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br i1 %184, label %185, label %196

185:                                              ; preds = %183
  %186 = load i32, ptr %12, align 4, !tbaa !5
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %12, align 4, !tbaa !5
  br label %196

188:                                              ; preds = %216, %201, %150
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %18, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %19, align 4
  br label %238

192:                                              ; preds = %165
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %18, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %238

196:                                              ; preds = %185, %183
  %197 = load i32, ptr %13, align 4, !tbaa !5
  %198 = load i32, ptr %17, align 4, !tbaa !5
  %199 = add nsw i32 %197, %198
  %200 = icmp slt i32 %199, 100100
  br i1 %200, label %201, label %234

201:                                              ; preds = %196
  %202 = load i32, ptr %13, align 4, !tbaa !5
  %203 = load i32, ptr %17, align 4, !tbaa !5
  %204 = add nsw i32 %202, %203
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %205
  %207 = load i32, ptr %13, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %208
  %210 = load i32, ptr %15, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %209, i64 noundef %211) #7
  %213 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %206, ptr noundef nonnull align 4 dereferenceable(4) %212)
          to label %214 unwind label %188

214:                                              ; preds = %201
  %215 = icmp ne i64 %213, 0
  br i1 %215, label %216, label %234

216:                                              ; preds = %214
  %217 = load i32, ptr %13, align 4, !tbaa !5
  %218 = load i32, ptr %17, align 4, !tbaa !5
  %219 = add nsw i32 %217, %218
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %220
  %222 = load i32, ptr %13, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %223
  %225 = load i32, ptr %16, align 4, !tbaa !5
  %226 = sext i32 %225 to i64
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %224, i64 noundef %226) #7
  %228 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %221, ptr noundef nonnull align 4 dereferenceable(4) %227)
          to label %229 unwind label %188

229:                                              ; preds = %216
  %230 = icmp ne i64 %228, 0
  br i1 %230, label %231, label %234

231:                                              ; preds = %229
  %232 = load i32, ptr %12, align 4, !tbaa !5
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %12, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %231, %229, %214, %196
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %235

235:                                              ; preds = %234
  %236 = load i32, ptr %16, align 4, !tbaa !5
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %16, align 4, !tbaa !5
  br label %113, !llvm.loop !13

238:                                              ; preds = %192, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %254

239:                                              ; preds = %121
  br label %240

240:                                              ; preds = %239
  %241 = load i32, ptr %15, align 4, !tbaa !5
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %15, align 4, !tbaa !5
  br label %101, !llvm.loop !14

243:                                              ; preds = %109
  br label %250

244:                                              ; preds = %94
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %245 unwind label %246

245:                                              ; preds = %244
  br label %250

246:                                              ; preds = %244
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %18, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %19, align 4
  br label %254

250:                                              ; preds = %245, %243
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %13, align 4, !tbaa !5
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %13, align 4, !tbaa !5
  br label %90, !llvm.loop !15

254:                                              ; preds = %246, %238
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %382

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

256:                                              ; preds = %370, %255
  %257 = load i32, ptr %21, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %260 = icmp ult i64 %258, %259
  br i1 %260, label %262, label %261

261:                                              ; preds = %256
  store i32 20, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %373

262:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %263 = load i32, ptr %21, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %264) #7
  %266 = load i32, ptr %265, align 4, !tbaa !5
  store i32 %266, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %267 = load i32, ptr %21, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %23, align 4, !tbaa !5
  br label %269

269:                                              ; preds = %366, %262
  %270 = load i32, ptr %23, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %273 = icmp ult i64 %271, %272
  br i1 %273, label %275, label %274

274:                                              ; preds = %269
  store i32 23, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %369

275:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %276 = load i32, ptr %23, align 4, !tbaa !5
  %277 = sext i32 %276 to i64
  %278 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %277) #7
  %279 = load i32, ptr %278, align 4, !tbaa !5
  store i32 %279, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %280 = load i32, ptr %24, align 4, !tbaa !5
  %281 = load i32, ptr %22, align 4, !tbaa !5
  %282 = sub nsw i32 %280, %281
  store i32 %282, ptr %25, align 4, !tbaa !5
  %283 = load i32, ptr %25, align 4, !tbaa !5
  %284 = icmp sge i32 %283, 0
  br i1 %284, label %285, label %286

285:                                              ; preds = %275
  br label %288

286:                                              ; preds = %275
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.6, i32 noundef 92, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

287:                                              ; No predecessors!
  br label %288

288:                                              ; preds = %287, %285
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %289

289:                                              ; preds = %362, %288
  %290 = load i32, ptr %26, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = load i32, ptr %22, align 4, !tbaa !5
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %293
  %295 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %294) #7
  %296 = icmp ult i64 %291, %295
  br i1 %296, label %298, label %297

297:                                              ; preds = %289
  store i32 26, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %365

298:                                              ; preds = %289
  %299 = load i32, ptr %22, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %300
  %302 = load i32, ptr %26, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %301, i64 noundef %303) #7
  %305 = load i32, ptr %304, align 4, !tbaa !5
  store i32 %305, ptr %24, align 4, !tbaa !5
  %306 = load i32, ptr %24, align 4, !tbaa !5
  %307 = load i32, ptr %25, align 4, !tbaa !5
  %308 = add nsw i32 %306, %307
  %309 = icmp sge i32 %308, 100100
  br i1 %309, label %315, label %310

310:                                              ; preds = %298
  %311 = load i32, ptr %22, align 4, !tbaa !5
  %312 = load i32, ptr %25, align 4, !tbaa !5
  %313 = add nsw i32 %311, %312
  %314 = icmp sge i32 %313, 100100
  br i1 %314, label %315, label %316

315:                                              ; preds = %310, %298
  br label %362

316:                                              ; preds = %310
  %317 = load i32, ptr %22, align 4, !tbaa !5
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %318
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %320 = load i32, ptr %24, align 4, !tbaa !5
  %321 = load i32, ptr %25, align 4, !tbaa !5
  %322 = add nsw i32 %320, %321
  store i32 %322, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %323 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %319, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %324 unwind label %352

324:                                              ; preds = %316
  %325 = icmp ne i64 %323, 0
  br i1 %325, label %326, label %347

326:                                              ; preds = %324
  %327 = load i32, ptr %22, align 4, !tbaa !5
  %328 = load i32, ptr %25, align 4, !tbaa !5
  %329 = add nsw i32 %327, %328
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %330
  %332 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %331, ptr noundef nonnull align 4 dereferenceable(4) %24)
          to label %333 unwind label %352

333:                                              ; preds = %326
  %334 = icmp ne i64 %332, 0
  br i1 %334, label %335, label %347

335:                                              ; preds = %333
  %336 = load i32, ptr %22, align 4, !tbaa !5
  %337 = load i32, ptr %25, align 4, !tbaa !5
  %338 = add nsw i32 %336, %337
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %339
  %341 = load i32, ptr %24, align 4, !tbaa !5
  %342 = load i32, ptr %25, align 4, !tbaa !5
  %343 = add nsw i32 %341, %342
  store i32 %343, ptr %28, align 4, !tbaa !5
  %344 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %340, ptr noundef nonnull align 4 dereferenceable(4) %28)
          to label %345 unwind label %356

345:                                              ; preds = %335
  %346 = icmp ne i64 %344, 0
  br label %347

347:                                              ; preds = %345, %333, %324
  %348 = phi i1 [ false, %333 ], [ false, %324 ], [ %346, %345 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br i1 %348, label %349, label %361

349:                                              ; preds = %347
  %350 = load i32, ptr %12, align 4, !tbaa !5
  %351 = add nsw i32 %350, 1
  store i32 %351, ptr %12, align 4, !tbaa !5
  br label %361

352:                                              ; preds = %326, %316
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %18, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %19, align 4
  br label %360

356:                                              ; preds = %335
  %357 = landingpad { ptr, i32 }
          cleanup
  %358 = extractvalue { ptr, i32 } %357, 0
  store ptr %358, ptr %18, align 8
  %359 = extractvalue { ptr, i32 } %357, 1
  store i32 %359, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %360

360:                                              ; preds = %356, %352
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %382

361:                                              ; preds = %349, %347
  br label %362

362:                                              ; preds = %361, %315
  %363 = load i32, ptr %26, align 4, !tbaa !5
  %364 = add nsw i32 %363, 1
  store i32 %364, ptr %26, align 4, !tbaa !5
  br label %289, !llvm.loop !16

365:                                              ; preds = %297
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %366

366:                                              ; preds = %365
  %367 = load i32, ptr %23, align 4, !tbaa !5
  %368 = add nsw i32 %367, 1
  store i32 %368, ptr %23, align 4, !tbaa !5
  br label %269, !llvm.loop !17

369:                                              ; preds = %274
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %370

370:                                              ; preds = %369
  %371 = load i32, ptr %21, align 4, !tbaa !5
  %372 = add nsw i32 %371, 1
  store i32 %372, ptr %21, align 4, !tbaa !5
  br label %256, !llvm.loop !18

373:                                              ; preds = %261
  %374 = load i32, ptr %12, align 4, !tbaa !5
  %375 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %374)
          to label %376 unwind label %378

376:                                              ; preds = %373
  store i32 0, ptr %1, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  %377 = load i32, ptr %1, align 4
  ret i32 %377

378:                                              ; preds = %373
  %379 = landingpad { ptr, i32 }
          cleanup
  %380 = extractvalue { ptr, i32 } %379, 0
  store ptr %380, ptr %18, align 8
  %381 = extractvalue { ptr, i32 } %379, 1
  store i32 %381, ptr %19, align 4
  br label %382

382:                                              ; preds = %378, %360, %254
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %383

383:                                              ; preds = %382
  %384 = load ptr, ptr %18, align 8
  %385 = load i32, ptr %19, align 4
  %386 = insertvalue { ptr, i32 } poison, ptr %384, 0
  %387 = insertvalue { ptr, i32 } %386, i32 %385, 1
  resume { ptr, i32 } %387
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE15max_load_factorEf(ptr noundef nonnull align 8 dereferenceable(56), float noundef) #3 align 2

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

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

; 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)) #3 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)) #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

declare i32 @printf(ptr noundef, ...) #4

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::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 }
%"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 }

@p = external dso_local global [100100 x %"class.std::unordered_set"], align 16
@pts = external dso_local global [100100 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [103 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::vector", align 8
  %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
  br label %14

10:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %.preheader105.preheader

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

14:                                               ; preds = %0, %14
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %14 ]
  %15 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %indvars.iv
  tail call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56) %15, i64 noundef 1024)
  tail call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE15max_load_factorEf(ptr noundef nonnull align 8 dereferenceable(56) %15, float noundef 2.500000e-01)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 100100
  br i1 %exitcond.not, label %10, label %14, !llvm.loop !9

.lr.ph:                                           ; preds = %10, %.lr.ph
  %.071122 = phi i32 [ %24, %.lr.ph ], [ 0, %10 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %18
  %20 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %19, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %22
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %24 = add nuw nsw i32 %.071122, 1
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %.lr.ph, label %.preheader105.preheader, !llvm.loop !11

27:                                               ; preds = %.preheader105
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %33

.preheader105:                                    ; preds = %.preheader105.preheader, %.preheader105
  %indvars.iv154 = phi i64 [ %indvars.iv.next155, %.preheader105 ], [ 0, %.preheader105.preheader ]
  %28 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %indvars.iv154
  %29 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  %30 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %29, ptr %30)
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %exitcond157.not = icmp eq i64 %indvars.iv.next155, 100100
  br i1 %exitcond157.not, label %27, label %.preheader105, !llvm.loop !12

31:                                               ; preds = %.loopexit104
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %32 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %.not149 = icmp eq i64 %32, 0
  br i1 %.not149, label %._crit_edge146, label %.lr.ph145

33:                                               ; preds = %27, %.loopexit104
  %.074132 = phi i32 [ 0, %27 ], [ %.5, %.loopexit104 ]
  %storemerge131 = phi i32 [ 0, %27 ], [ %129, %.loopexit104 ]
  %34 = sext i32 %storemerge131 to i64
  %35 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %34
  %36 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  %37 = icmp ult i64 %36, 331
  br i1 %37, label %.preheader103, label %125

.preheader103:                                    ; preds = %33
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %39
  %41 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #7
  %.not148 = icmp eq i64 %41, 0
  br i1 %.not148, label %.loopexit104, label %.lr.ph129

.loopexit102:                                     ; preds = %119, %.lr.ph129
  %.276.lcssa = phi i32 [ %.175127, %.lr.ph129 ], [ %.4, %119 ]
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %43
  %45 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #7
  %46 = icmp ugt i64 %45, %indvars.iv.next164
  %indvars.iv.next159 = add i64 %indvars.iv158, 1
  br i1 %46, label %.lr.ph129, label %.loopexit104, !llvm.loop !13

.lr.ph129:                                        ; preds = %.preheader103, %.loopexit102
  %indvars.iv163 = phi i64 [ %indvars.iv.next164, %.loopexit102 ], [ 0, %.preheader103 ]
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %.loopexit102 ], [ 1, %.preheader103 ]
  %.175127 = phi i32 [ %.276.lcssa, %.loopexit102 ], [ %.074132, %.preheader103 ]
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %48
  %50 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #7
  %51 = icmp ugt i64 %50, %indvars.iv.next164
  br i1 %51, label %.lr.ph126, label %.loopexit102

.lr.ph126:                                        ; preds = %.lr.ph129, %119
  %indvars.iv160 = phi i64 [ %indvars.iv.next161, %119 ], [ %indvars.iv158, %.lr.ph129 ]
  %.276124 = phi i32 [ %.4, %119 ], [ %.175127, %.lr.ph129 ]
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %53
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %indvars.iv160) #7
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %58
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %indvars.iv163) #7
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = sub nsw i32 %56, %61
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %.not91 = icmp slt i32 %63, %62
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  br i1 %.not91, label %.critedge, label %64

64:                                               ; preds = %.lr.ph126
  %65 = sub nsw i32 %63, %62
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %66
  %68 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %67) #7
  %69 = icmp ugt i64 %68, 330
  br i1 %69, label %70, label %.critedge

70:                                               ; preds = %64
  %71 = load i32, ptr %5, align 4, !tbaa !5
  %72 = sub nsw i32 %71, %62
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %73
  %75 = sext i32 %71 to i64
  %76 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %75
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %indvars.iv163) #7
  %78 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %74, ptr noundef nonnull align 4 dereferenceable(4) %77)
          to label %79 unwind label %93

79:                                               ; preds = %70
  %.not92 = icmp eq i64 %78, 0
  br i1 %.not92, label %.critedge, label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %5, align 4, !tbaa !5
  %82 = sub nsw i32 %81, %62
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %83
  %85 = sext i32 %81 to i64
  %86 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %85
  %87 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %indvars.iv163) #7
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = add nsw i32 %88, %62
  store i32 %89, ptr %6, align 4, !tbaa !5
  %90 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %84, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %91 unwind label %95

91:                                               ; preds = %80
  %.not93 = icmp ne i64 %90, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  %92 = zext i1 %.not93 to i32
  %spec.select = add nsw i32 %.276124, %92
  br label %97

93:                                               ; preds = %109, %101, %70
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %131

95:                                               ; preds = %80
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %131

.critedge:                                        ; preds = %.lr.ph126, %64, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %97

97:                                               ; preds = %91, %.critedge
  %.377 = phi i32 [ %.276124, %.critedge ], [ %spec.select, %91 ]
  %98 = load i32, ptr %5, align 4, !tbaa !5
  %99 = add nsw i32 %98, %62
  %100 = icmp slt i32 %99, 100100
  br i1 %100, label %101, label %119

101:                                              ; preds = %97
  %102 = sext i32 %99 to i64
  %103 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %102
  %104 = sext i32 %98 to i64
  %105 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %104
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %indvars.iv163) #7
  %107 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %103, ptr noundef nonnull align 4 dereferenceable(4) %106)
          to label %108 unwind label %93

108:                                              ; preds = %101
  %.not94 = icmp eq i64 %107, 0
  %.pre180 = load i32, ptr %5, align 4, !tbaa !5
  br i1 %.not94, label %119, label %109

109:                                              ; preds = %108
  %110 = add nsw i32 %.pre180, %62
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %111
  %113 = sext i32 %.pre180 to i64
  %114 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %113
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %indvars.iv160) #7
  %116 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %112, ptr noundef nonnull align 4 dereferenceable(4) %115)
          to label %117 unwind label %93

117:                                              ; preds = %109
  %.not99 = icmp ne i64 %116, 0
  %118 = zext i1 %.not99 to i32
  %spec.select100 = add nsw i32 %.377, %118
  %.pre = load i32, ptr %5, align 4, !tbaa !5
  br label %119

119:                                              ; preds = %117, %108, %97
  %120 = phi i32 [ %.pre180, %108 ], [ %98, %97 ], [ %.pre, %117 ]
  %.4 = phi i32 [ %.377, %108 ], [ %.377, %97 ], [ %spec.select100, %117 ]
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %121
  %123 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #7
  %124 = icmp ugt i64 %123, %indvars.iv.next161
  br i1 %124, label %.lr.ph126, label %.loopexit102, !llvm.loop !14

125:                                              ; preds = %33
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %.loopexit104 unwind label %126

126:                                              ; preds = %125
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %131

.loopexit104:                                     ; preds = %.loopexit102, %.preheader103, %125
  %.5 = phi i32 [ %.074132, %125 ], [ %.074132, %.preheader103 ], [ %.276.lcssa, %.loopexit102 ]
  %128 = load i32, ptr %5, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %5, align 4, !tbaa !5
  %130 = icmp slt i32 %128, 100099
  br i1 %130, label %33, label %31, !llvm.loop !15

131:                                              ; preds = %93, %95, %126
  %.pn95.pn = phi { ptr, i32 } [ %127, %126 ], [ %94, %93 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %182

.loopexit:                                        ; preds = %._crit_edge, %.lr.ph145
  %.7.lcssa = phi i32 [ %.6142, %.lr.ph145 ], [ %.8.lcssa, %._crit_edge ]
  %132 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %133 = icmp ugt i64 %132, %indvars.iv.next178
  %indvars.iv.next173 = add i64 %indvars.iv172, 1
  br i1 %133, label %.lr.ph145, label %._crit_edge146, !llvm.loop !16

._crit_edge146:                                   ; preds = %.loopexit, %31
  %.6.lcssa = phi i32 [ %.5, %31 ], [ %.7.lcssa, %.loopexit ]
  %134 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %.6.lcssa)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

.lr.ph145:                                        ; preds = %31, %.loopexit
  %indvars.iv177 = phi i64 [ %indvars.iv.next178, %.loopexit ], [ 0, %31 ]
  %indvars.iv172 = phi i64 [ %indvars.iv.next173, %.loopexit ], [ 1, %31 ]
  %.6142 = phi i32 [ %.7.lcssa, %.loopexit ], [ %.5, %31 ]
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv177) #7
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %137 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %138 = icmp ugt i64 %137, %indvars.iv.next178
  br i1 %138, label %.lr.ph140, label %.loopexit

.lr.ph140:                                        ; preds = %.lr.ph145
  %139 = sext i32 %136 to i64
  %140 = getelementptr inbounds [100100 x %"class.std::vector"], ptr @pts, i64 0, i64 %139
  %141 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %139
  br label %142

142:                                              ; preds = %.lr.ph140, %._crit_edge
  %indvars.iv174 = phi i64 [ %indvars.iv172, %.lr.ph140 ], [ %indvars.iv.next175, %._crit_edge ]
  %.7137 = phi i32 [ %.6142, %.lr.ph140 ], [ %.8.lcssa, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv174) #7
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %.fr151 = freeze i32 %144
  store i32 %.fr151, ptr %7, align 4, !tbaa !5
  %145 = sub nsw i32 %.fr151, %136
  %146 = icmp sgt i32 %145, -1
  br i1 %146, label %.preheader, label %155

.preheader:                                       ; preds = %142
  %147 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #7
  %.not150 = icmp eq i64 %147, 0
  br i1 %.not150, label %._crit_edge, label %.lr.ph135

.lr.ph135:                                        ; preds = %.preheader
  %148 = icmp sgt i32 %.fr151, 100099
  %149 = sext i32 %.fr151 to i64
  %150 = getelementptr inbounds [100100 x %"class.std::unordered_set"], ptr @p, i64 0, i64 %149
  br i1 %148, label %.lr.ph135.split.us, label %.lr.ph135.split

.lr.ph135.split.us:                               ; preds = %.lr.ph135, %.lr.ph135.split.us
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %.lr.ph135.split.us ], [ 0, %.lr.ph135 ]
  %151 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %indvars.iv169) #7
  %152 = load i32, ptr %151, align 4, !tbaa !5
  store i32 %152, ptr %7, align 4, !tbaa !5
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %153 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #7
  %154 = icmp ugt i64 %153, %indvars.iv.next170
  br i1 %154, label %.lr.ph135.split.us, label %._crit_edge, !llvm.loop !17

155:                                              ; preds = %142
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, i32 noundef 92, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

._crit_edge:                                      ; preds = %179, %.lr.ph135.split.us, %.preheader
  %.8.lcssa = phi i32 [ %.7137, %.preheader ], [ %.7137, %.lr.ph135.split.us ], [ %.9, %179 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %156 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %157 = icmp ugt i64 %156, %indvars.iv.next175
  br i1 %157, label %142, label %.loopexit, !llvm.loop !18

.lr.ph135.split:                                  ; preds = %.lr.ph135, %179
  %indvars.iv166 = phi i64 [ %indvars.iv.next167, %179 ], [ 0, %.lr.ph135 ]
  %.8133 = phi i32 [ %.9, %179 ], [ %.7137, %.lr.ph135 ]
  %158 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %indvars.iv166) #7
  %159 = load i32, ptr %158, align 4, !tbaa !5
  store i32 %159, ptr %7, align 4, !tbaa !5
  %160 = add nsw i32 %159, %145
  %161 = icmp sgt i32 %160, 100099
  br i1 %161, label %179, label %162

162:                                              ; preds = %.lr.ph135.split
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 %160, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %163 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %141, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %164 unwind label %174

164:                                              ; preds = %162
  %.not = icmp eq i64 %163, 0
  br i1 %.not, label %.critedge2, label %165

165:                                              ; preds = %164
  %166 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %150, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %167 unwind label %174

167:                                              ; preds = %165
  %.not88 = icmp eq i64 %166, 0
  br i1 %.not88, label %.critedge2, label %168

168:                                              ; preds = %167
  %169 = load i32, ptr %7, align 4, !tbaa !5
  %170 = add nsw i32 %169, %145
  store i32 %170, ptr %9, align 4, !tbaa !5
  %171 = invoke noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5countERKi(ptr noundef nonnull align 8 dereferenceable(56) %150, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %172 unwind label %176

172:                                              ; preds = %168
  %.not90 = icmp ne i64 %171, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  %173 = zext i1 %.not90 to i32
  %spec.select101 = add nsw i32 %.8133, %173
  br label %179

174:                                              ; preds = %165, %162
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %178

176:                                              ; preds = %168
  %177 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  br label %178

178:                                              ; preds = %176, %174
  %.pn = phi { ptr, i32 } [ %177, %176 ], [ %175, %174 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  br label %182

.critedge2:                                       ; preds = %164, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  br label %179

179:                                              ; preds = %172, %.critedge2, %.lr.ph135.split
  %.9 = phi i32 [ %.8133, %.lr.ph135.split ], [ %.8133, %.critedge2 ], [ %spec.select101, %172 ]
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %180 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %140) #7
  %181 = icmp ugt i64 %180, %indvars.iv.next167
  br i1 %181, label %.lr.ph135.split, label %._crit_edge, !llvm.loop !17

182:                                              ; preds = %178, %131
  %.pn95.pn.pn = phi { ptr, i32 } [ %.pn95.pn, %131 ], [ %.pn, %178 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn95.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE15max_load_factorEf(ptr noundef nonnull align 8 dereferenceable(56), float noundef) local_unnamed_addr #3 align 2

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

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

; 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 #3 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 #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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