; LLVM IR from tangjz/acm-icpc :: leetcode/extra (tusimple_001-抵御台风)

; 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::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.__gnu_cxx::__normal_iterator.0" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr }

@__dso_handle = external hidden global i8
@_ZZ4mainE3buf = external hidden global [1001 x [11 x i8]], align 16
@_ZZ4mainE2pL = external hidden global [1001 x [11 x i32]], align 16
@_ZZ4mainE2pU = external hidden global [1001 x [11 x i32]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ4mainE5match = external hidden global [10001 x i32], align 16
@_ZZ4mainE3vis = external hidden global [10001 x i8], align 16
@_ZZ4mainE1e = external hidden global [10001 x %"class.std::vector"], align 16
@_ZGVZ4mainE1e = external hidden global i64, align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

; 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 i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.std::function", align 8
  %28 = alloca %class.anon, align 8
  %29 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #0
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #0
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #0
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #0
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #0
  store i32 0, ptr %6, align 4, !tbaa !5
  %30 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #0
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %127, %0
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %31
  %37 = load i32, ptr %7, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [1001 x [11 x i8]], ptr @_ZZ4mainE3buf, i64 0, i64 %38
  %40 = getelementptr inbounds [11 x i8], ptr %39, i64 0, i64 0
  %41 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %40)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #0
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %123, %36
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #0
  br label %126

47:                                               ; preds = %42
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pU, i64 0, i64 %49
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [11 x i32], ptr %50, i64 0, i64 %52
  store i32 -1, ptr %53, align 4, !tbaa !5
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pL, i64 0, i64 %55
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [11 x i32], ptr %56, i64 0, i64 %58
  store i32 -1, ptr %59, align 4, !tbaa !5
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1001 x [11 x i8]], ptr @_ZZ4mainE3buf, i64 0, i64 %61
  %63 = load i32, ptr %9, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [11 x i8], ptr %62, i64 0, i64 %64
  %66 = load i8, ptr %65, align 1, !tbaa !9
  %67 = sext i8 %66 to i32
  %68 = icmp ne i32 %67, 35
  br i1 %68, label %69, label %70

69:                                               ; preds = %47
  br label %123

70:                                               ; preds = %47
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %6, align 4, !tbaa !5
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = icmp sgt i32 %73, 0
  br i1 %74, label %75, label %97

75:                                               ; preds = %70
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [1001 x [11 x i8]], ptr @_ZZ4mainE3buf, i64 0, i64 %77
  %79 = load i32, ptr %9, align 4, !tbaa !5
  %80 = sub nsw i32 %79, 1
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [11 x i8], ptr %78, i64 0, i64 %81
  %83 = load i8, ptr %82, align 1, !tbaa !9
  %84 = sext i8 %83 to i32
  %85 = icmp eq i32 %84, 35
  br i1 %85, label %86, label %97

86:                                               ; preds = %75
  %87 = load i32, ptr %4, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %4, align 4, !tbaa !5
  %89 = load i32, ptr %7, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pL, i64 0, i64 %90
  %92 = load i32, ptr %9, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [11 x i32], ptr %91, i64 0, i64 %93
  store i32 %87, ptr %94, align 4, !tbaa !5
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = add nsw i32 %95, -1
  store i32 %96, ptr %6, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %86, %75, %70
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = icmp sgt i32 %98, 0
  br i1 %99, label %100, label %122

100:                                              ; preds = %97
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = sub nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [1001 x [11 x i8]], ptr @_ZZ4mainE3buf, i64 0, i64 %103
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [11 x i8], ptr %104, i64 0, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !9
  %109 = sext i8 %108 to i32
  %110 = icmp eq i32 %109, 35
  br i1 %110, label %111, label %122

111:                                              ; preds = %100
  %112 = load i32, ptr %5, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %5, align 4, !tbaa !5
  %114 = load i32, ptr %7, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pU, i64 0, i64 %115
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [11 x i32], ptr %116, i64 0, i64 %118
  store i32 %112, ptr %119, align 4, !tbaa !5
  %120 = load i32, ptr %6, align 4, !tbaa !5
  %121 = add nsw i32 %120, -1
  store i32 %121, ptr %6, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %111, %100, %97
  br label %123

123:                                              ; preds = %122, %69
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %9, align 4, !tbaa !5
  br label %42, !llvm.loop !10

126:                                              ; preds = %46
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %7, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %7, align 4, !tbaa !5
  br label %31, !llvm.loop !12

130:                                              ; preds = %35
  %131 = load atomic i8, ptr @_ZGVZ4mainE1e acquire, align 8
  %132 = icmp eq i8 %131, 0
  br i1 %132, label %133, label %143, !prof !13

133:                                              ; preds = %130
  %134 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ4mainE1e) #0
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %143

136:                                              ; preds = %133
  br label %137

137:                                              ; preds = %137, %136
  %138 = phi ptr [ @_ZZ4mainE1e, %136 ], [ %139, %137 ]
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %138) #0
  %139 = getelementptr inbounds %"class.std::vector", ptr %138, i64 1
  %140 = icmp eq ptr %139, getelementptr inbounds (%"class.std::vector", ptr @_ZZ4mainE1e, i64 10001)
  br i1 %140, label %141, label %137

141:                                              ; preds = %137
  %142 = call i32 @__cxa_atexit(ptr @__cxx_global_array_dtor, ptr null, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZ4mainE1e) #0
  br label %143

143:                                              ; preds = %141, %133, %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #0
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %153, %143
  %145 = load i32, ptr %10, align 4, !tbaa !5
  %146 = load i32, ptr %4, align 4, !tbaa !5
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %144
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #0
  br label %156

149:                                              ; preds = %144
  %150 = load i32, ptr %10, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @_ZZ4mainE1e, i64 0, i64 %151
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %152) #0
  br label %153

153:                                              ; preds = %149
  %154 = load i32, ptr %10, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %10, align 4, !tbaa !5
  br label %144, !llvm.loop !14

156:                                              ; preds = %148
  %157 = load i32, ptr %5, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = mul i64 %158, 4
  call void @llvm.memset.p0.i64(ptr align 16 @_ZZ4mainE5match, i8 -1, i64 %159, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #0
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %317, %156
  %161 = load i32, ptr %11, align 4, !tbaa !5
  %162 = load i32, ptr %2, align 4, !tbaa !5
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #0
  br label %320

165:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #0
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %166

166:                                              ; preds = %311, %165
  %167 = load i32, ptr %12, align 4, !tbaa !5
  %168 = load i32, ptr %3, align 4, !tbaa !5
  %169 = icmp slt i32 %167, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %166
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #0
  br label %316

171:                                              ; preds = %166
  %172 = load i32, ptr %11, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [1001 x [11 x i8]], ptr @_ZZ4mainE3buf, i64 0, i64 %173
  %175 = load i32, ptr %12, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [11 x i8], ptr %174, i64 0, i64 %176
  %178 = load i8, ptr %177, align 1, !tbaa !9
  %179 = sext i8 %178 to i32
  %180 = icmp ne i32 %179, 35
  br i1 %180, label %181, label %182

181:                                              ; preds = %171
  br label %311

182:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #0
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #0
  %183 = load i32, ptr %11, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pU, i64 0, i64 %184
  %186 = load i32, ptr %12, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [11 x i32], ptr %185, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = icmp ne i32 %189, -1
  br i1 %190, label %191, label %203

191:                                              ; preds = %182
  %192 = load i32, ptr %11, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pU, i64 0, i64 %193
  %195 = load i32, ptr %12, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [11 x i32], ptr %194, i64 0, i64 %196
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %197)
          to label %198 unwind label %199

198:                                              ; preds = %191
  br label %203

199:                                              ; preds = %218, %191
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %14, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %15, align 4
  br label %315

203:                                              ; preds = %198, %182
  %204 = load i32, ptr %11, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  %206 = load i32, ptr %2, align 4, !tbaa !5
  %207 = icmp slt i32 %205, %206
  br i1 %207, label %208, label %227

208:                                              ; preds = %203
  %209 = load i32, ptr %11, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pU, i64 0, i64 %211
  %213 = load i32, ptr %12, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [11 x i32], ptr %212, i64 0, i64 %214
  %216 = load i32, ptr %215, align 4, !tbaa !5
  %217 = icmp ne i32 %216, -1
  br i1 %217, label %218, label %227

218:                                              ; preds = %208
  %219 = load i32, ptr %11, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pU, i64 0, i64 %221
  %223 = load i32, ptr %12, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [11 x i32], ptr %222, i64 0, i64 %224
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %225)
          to label %226 unwind label %199

226:                                              ; preds = %218
  br label %227

227:                                              ; preds = %226, %208, %203
  %228 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #0
  br i1 %228, label %229, label %230

229:                                              ; preds = %227
  store i32 16, ptr %8, align 4
  br label %308

230:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #0
  %231 = load i32, ptr %11, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pL, i64 0, i64 %232
  %234 = load i32, ptr %12, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [11 x i32], ptr %233, i64 0, i64 %235
  %237 = load i32, ptr %236, align 4, !tbaa !5
  store i32 %237, ptr %16, align 4, !tbaa !5
  %238 = load i32, ptr %16, align 4, !tbaa !5
  %239 = icmp ne i32 %238, -1
  br i1 %239, label %240, label %266

240:                                              ; preds = %230
  %241 = load i32, ptr %16, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @_ZZ4mainE1e, i64 0, i64 %242
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #0
  %244 = load i32, ptr %16, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @_ZZ4mainE1e, i64 0, i64 %245
  %247 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %246) #0
  %248 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %247, ptr %248, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #0
  %249 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #0
  %250 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %249, ptr %250, align 8
  %251 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #0
  %252 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  store ptr %251, ptr %252, align 8
  %253 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %17, i32 0, i32 0
  %254 = load ptr, ptr %253, align 8
  %255 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %256 = load ptr, ptr %255, align 8
  %257 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %20, i32 0, i32 0
  %258 = load ptr, ptr %257, align 8
  %259 = invoke ptr @_ZNSt6vectorIiSaIiEE6insertIN9__gnu_cxx17__normal_iteratorIPiS1_EEvEES6_NS4_IPKiS1_EET_SA_(ptr noundef nonnull align 8 dereferenceable(24) %243, ptr %254, ptr %256, ptr %258)
          to label %260 unwind label %262

260:                                              ; preds = %240
  %261 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %259, ptr %261, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #0
  br label %266

262:                                              ; preds = %240
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %14, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #0
  br label %314

266:                                              ; preds = %260, %230
  %267 = load i32, ptr %12, align 4, !tbaa !5
  %268 = add nsw i32 %267, 1
  %269 = load i32, ptr %3, align 4, !tbaa !5
  %270 = icmp slt i32 %268, %269
  br i1 %270, label %271, label %307

271:                                              ; preds = %266
  %272 = load i32, ptr %11, align 4, !tbaa !5
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pL, i64 0, i64 %273
  %275 = load i32, ptr %12, align 4, !tbaa !5
  %276 = add nsw i32 %275, 1
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [11 x i32], ptr %274, i64 0, i64 %277
  %279 = load i32, ptr %278, align 4, !tbaa !5
  store i32 %279, ptr %16, align 4, !tbaa !5
  %280 = icmp ne i32 %279, -1
  br i1 %280, label %281, label %307

281:                                              ; preds = %271
  %282 = load i32, ptr %16, align 4, !tbaa !5
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @_ZZ4mainE1e, i64 0, i64 %283
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #0
  %285 = load i32, ptr %16, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @_ZZ4mainE1e, i64 0, i64 %286
  %288 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %287) #0
  %289 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %288, ptr %289, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #0
  %290 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #0
  %291 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %290, ptr %291, align 8
  %292 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #0
  %293 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %292, ptr %293, align 8
  %294 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %22, i32 0, i32 0
  %295 = load ptr, ptr %294, align 8
  %296 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  %297 = load ptr, ptr %296, align 8
  %298 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  %299 = load ptr, ptr %298, align 8
  %300 = invoke ptr @_ZNSt6vectorIiSaIiEE6insertIN9__gnu_cxx17__normal_iteratorIPiS1_EEvEES6_NS4_IPKiS1_EET_SA_(ptr noundef nonnull align 8 dereferenceable(24) %284, ptr %295, ptr %297, ptr %299)
          to label %301 unwind label %303

301:                                              ; preds = %281
  %302 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %300, ptr %302, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #0
  br label %307

303:                                              ; preds = %281
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %14, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #0
  br label %314

307:                                              ; preds = %301, %271, %266
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #0
  store i32 0, ptr %8, align 4
  br label %308

308:                                              ; preds = %307, %229
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #0
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #0
  %309 = load i32, ptr %8, align 4
  switch i32 %309, label %361 [
    i32 0, label %310
    i32 16, label %311
  ]

310:                                              ; preds = %308
  br label %311

311:                                              ; preds = %310, %308, %181
  %312 = load i32, ptr %12, align 4, !tbaa !5
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %12, align 4, !tbaa !5
  br label %166, !llvm.loop !15

314:                                              ; preds = %303, %262
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #0
  br label %315

315:                                              ; preds = %314, %199
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #0
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #0
  br label %355

316:                                              ; preds = %170
  br label %317

317:                                              ; preds = %316
  %318 = load i32, ptr %11, align 4, !tbaa !5
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %11, align 4, !tbaa !5
  br label %160, !llvm.loop !16

320:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #0
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #0
  %321 = getelementptr inbounds %class.anon, ptr %28, i32 0, i32 0
  store ptr %27, ptr %321, align 8, !tbaa !17
  call void @"_ZNSt8functionIFbiEEC2IZ4mainE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #0
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #0
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %322

322:                                              ; preds = %342, %320
  %323 = load i32, ptr %29, align 4, !tbaa !5
  %324 = load i32, ptr %4, align 4, !tbaa !5
  %325 = icmp slt i32 %323, %324
  br i1 %325, label %327, label %326

326:                                              ; preds = %322
  store i32 17, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #0
  br label %345

327:                                              ; preds = %322
  %328 = load i32, ptr %5, align 4, !tbaa !5
  %329 = sext i32 %328 to i64
  %330 = mul i64 %329, 1
  call void @llvm.memset.p0.i64(ptr align 16 @_ZZ4mainE3vis, i8 0, i64 %330, i1 false)
  %331 = load i32, ptr %29, align 4, !tbaa !5
  %332 = invoke noundef zeroext i1 @_ZNKSt8functionIFbiEEclEi(ptr noundef nonnull align 8 dereferenceable(32) %27, i32 noundef %331)
          to label %333 unwind label %337

333:                                              ; preds = %327
  br i1 %332, label %334, label %341

334:                                              ; preds = %333
  %335 = load i32, ptr %6, align 4, !tbaa !5
  %336 = add nsw i32 %335, 1
  store i32 %336, ptr %6, align 4, !tbaa !5
  br label %341

337:                                              ; preds = %327
  %338 = landingpad { ptr, i32 }
          cleanup
  %339 = extractvalue { ptr, i32 } %338, 0
  store ptr %339, ptr %14, align 8
  %340 = extractvalue { ptr, i32 } %338, 1
  store i32 %340, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #0
  br label %354

341:                                              ; preds = %334, %333
  br label %342

342:                                              ; preds = %341
  %343 = load i32, ptr %29, align 4, !tbaa !5
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr %29, align 4, !tbaa !5
  br label %322, !llvm.loop !19

345:                                              ; preds = %326
  %346 = load i32, ptr %6, align 4, !tbaa !5
  %347 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %346)
          to label %348 unwind label %350

348:                                              ; preds = %345
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #0
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #0
  %349 = load i32, ptr %1, align 4
  ret i32 %349

350:                                              ; preds = %345
  %351 = landingpad { ptr, i32 }
          cleanup
  %352 = extractvalue { ptr, i32 } %351, 0
  store ptr %352, ptr %14, align 8
  %353 = extractvalue { ptr, i32 } %351, 1
  store i32 %353, ptr %15, align 4
  br label %354

354:                                              ; preds = %350, %337
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #0
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #0
  br label %355

355:                                              ; preds = %354, %315
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #0
  br label %356

356:                                              ; preds = %355
  %357 = load ptr, ptr %14, align 8
  %358 = load i32, ptr %15, align 4
  %359 = insertvalue { ptr, i32 } poison, ptr %357, 0
  %360 = insertvalue { ptr, i32 } %359, i32 %358, 1
  resume { ptr, i32 } %360

361:                                              ; preds = %308
  unreachable
}

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

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

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

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

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

; Function Attrs: uwtable
declare hidden void @__cxx_global_array_dtor(ptr noundef) #5 section ".text.startup"

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

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbiEEC2IZ4mainE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFbiEEclEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #7 align 2

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

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

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

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

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


; 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::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.__gnu_cxx::__normal_iterator.0" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon = type { ptr }

@__dso_handle = external hidden global i8
@_ZZ4mainE3buf = external hidden global [1001 x [11 x i8]], align 16
@_ZZ4mainE2pL = external hidden local_unnamed_addr global [1001 x [11 x i32]], align 16
@_ZZ4mainE2pU = external hidden global [1001 x [11 x i32]], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZ4mainE5match = external hidden local_unnamed_addr global [10001 x i32], align 16
@_ZZ4mainE3vis = external hidden local_unnamed_addr global [10001 x i8], align 16
@_ZZ4mainE1e = external hidden global [10001 x %"class.std::vector"], align 16
@_ZGVZ4mainE1e = external hidden global i64, align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

; 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 %"class.std::vector", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.std::function", align 8
  %9 = alloca %class.anon, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %11 = load i32, ptr %1, align 4, !tbaa !5
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph121, label %._crit_edge122

._crit_edge122.loopexit:                          ; preds = %._crit_edge
  %13 = sext i32 %.172.lcssa to i64
  br label %._crit_edge122

._crit_edge122:                                   ; preds = %._crit_edge122.loopexit, %0
  %.074.lcssa = phi i32 [ 0, %0 ], [ %.175.lcssa, %._crit_edge122.loopexit ]
  %.071.lcssa = phi i64 [ 0, %0 ], [ %13, %._crit_edge122.loopexit ]
  %.070.lcssa = phi i32 [ 0, %0 ], [ %.1.lcssa, %._crit_edge122.loopexit ]
  %14 = load atomic i8, ptr @_ZGVZ4mainE1e acquire, align 8
  %15 = icmp eq i8 %14, 0
  br i1 %15, label %72, label %77, !prof !9

.lr.ph121:                                        ; preds = %0, %._crit_edge
  %indvar = phi i64 [ %indvar.next, %._crit_edge ], [ 0, %0 ]
  %.070119 = phi i32 [ %.1.lcssa, %._crit_edge ], [ 0, %0 ]
  %.071118 = phi i32 [ %.172.lcssa, %._crit_edge ], [ 0, %0 ]
  %.074117 = phi i32 [ %.175.lcssa, %._crit_edge ], [ 0, %0 ]
  %16 = mul nuw nsw i64 %indvar, 44
  %scevgep = getelementptr i8, ptr @_ZZ4mainE2pU, i64 %16
  %17 = getelementptr inbounds [1001 x [11 x i8]], ptr @_ZZ4mainE3buf, i64 0, i64 %indvar
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %17)
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph121
  %.not104 = icmp eq i64 %indvar, 0
  %21 = add nsw i64 %indvar, -1
  %22 = zext nneg i32 %19 to i64
  br i1 %.not104, label %.lr.ph.split.us.preheader, label %.lr.ph.split.preheader

.lr.ph.split.preheader:                           ; preds = %.lr.ph
  %23 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pU, i64 0, i64 %indvar, i64 0
  store i32 -1, ptr %23, align 4, !tbaa !5
  %24 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pL, i64 0, i64 %indvar, i64 0
  store i32 -1, ptr %24, align 4, !tbaa !5
  %25 = load i8, ptr %17, align 1, !tbaa !10
  %.not102.peel = icmp eq i8 %25, 35
  br i1 %.not102.peel, label %26, label %33

26:                                               ; preds = %.lr.ph.split.preheader
  %27 = add nsw i32 %.074117, 1
  %28 = getelementptr inbounds [1001 x [11 x i8]], ptr @_ZZ4mainE3buf, i64 0, i64 %21, i64 0
  %29 = load i8, ptr %28, align 1, !tbaa !10
  %30 = icmp eq i8 %29, 35
  br i1 %30, label %31, label %33

31:                                               ; preds = %26
  %32 = add nsw i32 %.071118, 1
  store i32 %.071118, ptr %23, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %31, %26, %.lr.ph.split.preheader
  %.377.peel = phi i32 [ %.074117, %.lr.ph.split.preheader ], [ %.074117, %31 ], [ %27, %26 ]
  %.273.peel = phi i32 [ %.071118, %.lr.ph.split.preheader ], [ %32, %31 ], [ %.071118, %26 ]
  %exitcond.peel.not = icmp eq i32 %19, 1
  br i1 %exitcond.peel.not, label %._crit_edge, label %.lr.ph.split

.lr.ph.split.us.preheader:                        ; preds = %.lr.ph
  %34 = shl nuw nsw i64 %22, 2
  call void @llvm.memset.p0.i64(ptr align 4 %scevgep, i8 -1, i64 %34, i1 false), !tbaa !5
  store i32 -1, ptr @_ZZ4mainE2pL, align 16, !tbaa !5
  %35 = load i8, ptr @_ZZ4mainE3buf, align 16, !tbaa !10
  %.not102.us.peel = icmp eq i8 %35, 35
  %36 = zext i1 %.not102.us.peel to i32
  %spec.select172 = add nsw i32 %.074117, %36
  %exitcond150.peel.not = icmp eq i32 %19, 1
  br i1 %exitcond150.peel.not, label %._crit_edge, label %.lr.ph.split.us

.lr.ph.split.us:                                  ; preds = %.lr.ph.split.us.preheader, %48
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %48 ], [ 1, %.lr.ph.split.us.preheader ]
  %.1111.us = phi i32 [ %.3.us, %48 ], [ %.070119, %.lr.ph.split.us.preheader ]
  %.175109.us = phi i32 [ %.377.us, %48 ], [ %spec.select172, %.lr.ph.split.us.preheader ]
  %37 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pL, i64 0, i64 0, i64 %indvars.iv146
  store i32 -1, ptr %37, align 4, !tbaa !5
  %38 = getelementptr inbounds [1001 x [11 x i8]], ptr @_ZZ4mainE3buf, i64 0, i64 0, i64 %indvars.iv146
  %39 = load i8, ptr %38, align 1, !tbaa !10
  %.not102.us = icmp eq i8 %39, 35
  br i1 %.not102.us, label %40, label %48

40:                                               ; preds = %.lr.ph.split.us
  %41 = add nsw i32 %.175109.us, 1
  %42 = add nsw i64 %indvars.iv146, -1
  %43 = getelementptr inbounds [1001 x [11 x i8]], ptr @_ZZ4mainE3buf, i64 0, i64 0, i64 %42
  %44 = load i8, ptr %43, align 1, !tbaa !10
  %45 = icmp eq i8 %44, 35
  br i1 %45, label %46, label %48

46:                                               ; preds = %40
  %47 = add nsw i32 %.1111.us, 1
  store i32 %.1111.us, ptr %37, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %40, %46, %.lr.ph.split.us
  %.377.us = phi i32 [ %.175109.us, %.lr.ph.split.us ], [ %.175109.us, %46 ], [ %41, %40 ]
  %.3.us = phi i32 [ %.1111.us, %.lr.ph.split.us ], [ %47, %46 ], [ %.1111.us, %40 ]
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %exitcond150.not = icmp eq i64 %indvars.iv.next147, %22
  br i1 %exitcond150.not, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !11

._crit_edge:                                      ; preds = %71, %48, %33, %.lr.ph.split.us.preheader, %.lr.ph121
  %.175.lcssa = phi i32 [ %.074117, %.lr.ph121 ], [ %spec.select172, %.lr.ph.split.us.preheader ], [ %.377.peel, %33 ], [ %.377.us, %48 ], [ %.377, %71 ]
  %.172.lcssa = phi i32 [ %.071118, %.lr.ph121 ], [ %.071118, %.lr.ph.split.us.preheader ], [ %.273.peel, %33 ], [ %.071118, %48 ], [ %.273, %71 ]
  %.1.lcssa = phi i32 [ %.070119, %.lr.ph121 ], [ %.070119, %.lr.ph.split.us.preheader ], [ %.070119, %33 ], [ %.3.us, %48 ], [ %.3, %71 ]
  %indvar.next = add nuw nsw i64 %indvar, 1
  %49 = load i32, ptr %1, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = icmp slt i64 %indvar.next, %50
  br i1 %51, label %.lr.ph121, label %._crit_edge122.loopexit, !llvm.loop !14

.lr.ph.split:                                     ; preds = %33, %71
  %indvars.iv = phi i64 [ %indvars.iv.next, %71 ], [ 1, %33 ]
  %.1111 = phi i32 [ %.3, %71 ], [ %.070119, %33 ]
  %.172110 = phi i32 [ %.273, %71 ], [ %.273.peel, %33 ]
  %.175109 = phi i32 [ %.377, %71 ], [ %.377.peel, %33 ]
  %52 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pU, i64 0, i64 %indvar, i64 %indvars.iv
  store i32 -1, ptr %52, align 4, !tbaa !5
  %53 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pL, i64 0, i64 %indvar, i64 %indvars.iv
  store i32 -1, ptr %53, align 4, !tbaa !5
  %54 = getelementptr inbounds [1001 x [11 x i8]], ptr @_ZZ4mainE3buf, i64 0, i64 %indvar, i64 %indvars.iv
  %55 = load i8, ptr %54, align 1, !tbaa !10
  %.not102 = icmp eq i8 %55, 35
  br i1 %.not102, label %56, label %71

56:                                               ; preds = %.lr.ph.split
  %57 = add nsw i32 %.175109, 1
  %58 = add nsw i64 %indvars.iv, -1
  %59 = getelementptr inbounds [1001 x [11 x i8]], ptr @_ZZ4mainE3buf, i64 0, i64 %indvar, i64 %58
  %60 = load i8, ptr %59, align 1, !tbaa !10
  %61 = icmp eq i8 %60, 35
  br i1 %61, label %62, label %64

62:                                               ; preds = %56
  %63 = add nsw i32 %.1111, 1
  store i32 %.1111, ptr %53, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %62, %56
  %.276 = phi i32 [ %.175109, %62 ], [ %57, %56 ]
  %.2 = phi i32 [ %63, %62 ], [ %.1111, %56 ]
  %65 = getelementptr inbounds [1001 x [11 x i8]], ptr @_ZZ4mainE3buf, i64 0, i64 %21, i64 %indvars.iv
  %66 = load i8, ptr %65, align 1, !tbaa !10
  %67 = icmp eq i8 %66, 35
  br i1 %67, label %68, label %71

68:                                               ; preds = %64
  %69 = add nsw i32 %.172110, 1
  store i32 %.172110, ptr %52, align 4, !tbaa !5
  %70 = add nsw i32 %.276, -1
  br label %71

71:                                               ; preds = %64, %68, %.lr.ph.split
  %.377 = phi i32 [ %.175109, %.lr.ph.split ], [ %70, %68 ], [ %.276, %64 ]
  %.273 = phi i32 [ %.172110, %.lr.ph.split ], [ %69, %68 ], [ %.172110, %64 ]
  %.3 = phi i32 [ %.1111, %.lr.ph.split ], [ %.2, %68 ], [ %.2, %64 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %22
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.split, !llvm.loop !15

72:                                               ; preds = %._crit_edge122
  %73 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ4mainE1e) #8
  %.not = icmp eq i32 %73, 0
  br i1 %.not, label %77, label %.preheader105

.preheader105:                                    ; preds = %72, %.preheader105
  %.idx = phi i64 [ %.add, %.preheader105 ], [ 0, %72 ]
  %.ptr = getelementptr inbounds i8, ptr @_ZZ4mainE1e, i64 %.idx
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr) #8
  %.add = add nuw nsw i64 %.idx, 24
  %74 = icmp eq i64 %.add, 240024
  br i1 %74, label %75, label %.preheader105

75:                                               ; preds = %.preheader105
  %76 = call i32 @__cxa_atexit(ptr nonnull @__cxx_global_array_dtor, ptr null, ptr nonnull @__dso_handle) #8
  call void @__cxa_guard_release(ptr nonnull @_ZGVZ4mainE1e) #8
  br label %77

77:                                               ; preds = %75, %72, %._crit_edge122
  %78 = icmp sgt i32 %.070.lcssa, 0
  br i1 %78, label %.lr.ph128.preheader, label %._crit_edge129

.lr.ph128.preheader:                              ; preds = %77
  %wide.trip.count156 = zext nneg i32 %.070.lcssa to i64
  br label %.lr.ph128

._crit_edge129:                                   ; preds = %.lr.ph128, %77
  %79 = shl nsw i64 %.071.lcssa, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @_ZZ4mainE5match, i8 -1, i64 %79, i1 false)
  %80 = load i32, ptr %1, align 4, !tbaa !5
  %81 = icmp sgt i32 %80, 0
  %82 = load i32, ptr %2, align 4
  %83 = icmp sgt i32 %82, 0
  %or.cond = select i1 %81, i1 %83, i1 false
  br i1 %or.cond, label %.preheader, label %._crit_edge134

.lr.ph128:                                        ; preds = %.lr.ph128.preheader, %.lr.ph128
  %indvars.iv153 = phi i64 [ 0, %.lr.ph128.preheader ], [ %indvars.iv.next154, %.lr.ph128 ]
  %84 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @_ZZ4mainE1e, i64 0, i64 %indvars.iv153
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #8
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %exitcond157.not = icmp eq i64 %indvars.iv.next154, %wide.trip.count156
  br i1 %exitcond157.not, label %._crit_edge129, label %.lr.ph128, !llvm.loop !16

.preheader:                                       ; preds = %._crit_edge129, %._crit_edge132
  %85 = phi i32 [ %90, %._crit_edge132 ], [ %80, %._crit_edge129 ]
  %86 = phi i32 [ %91, %._crit_edge132 ], [ %82, %._crit_edge129 ]
  %87 = phi i32 [ %92, %._crit_edge132 ], [ %82, %._crit_edge129 ]
  %indvars.iv161 = phi i64 [ %89, %._crit_edge132 ], [ 0, %._crit_edge129 ]
  %88 = icmp sgt i32 %87, 0
  %89 = add nuw nsw i64 %indvars.iv161, 1
  br i1 %88, label %.lr.ph131, label %._crit_edge132

._crit_edge134:                                   ; preds = %._crit_edge132, %._crit_edge129
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  store ptr %8, ptr %9, align 8, !tbaa !17
  call void @"_ZNSt8functionIFbiEEC2IZ4mainE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br i1 %78, label %.lr.ph138, label %._crit_edge139

._crit_edge132.loopexit:                          ; preds = %148
  %.pre169 = load i32, ptr %1, align 4, !tbaa !5
  br label %._crit_edge132

._crit_edge132:                                   ; preds = %.preheader, %._crit_edge132.loopexit
  %90 = phi i32 [ %.pre169, %._crit_edge132.loopexit ], [ %85, %.preheader ]
  %91 = phi i32 [ %149, %._crit_edge132.loopexit ], [ %86, %.preheader ]
  %92 = phi i32 [ %149, %._crit_edge132.loopexit ], [ %87, %.preheader ]
  %93 = sext i32 %90 to i64
  %94 = icmp slt i64 %89, %93
  br i1 %94, label %.preheader, label %._crit_edge134, !llvm.loop !19

.lr.ph131:                                        ; preds = %.preheader, %148
  %95 = phi i32 [ %149, %148 ], [ %86, %.preheader ]
  %indvars.iv158 = phi i64 [ %indvars.iv.next159, %148 ], [ 0, %.preheader ]
  %96 = getelementptr inbounds [1001 x [11 x i8]], ptr @_ZZ4mainE3buf, i64 0, i64 %indvars.iv161, i64 %indvars.iv158
  %97 = load i8, ptr %96, align 1, !tbaa !10
  %.not94 = icmp eq i8 %97, 35
  br i1 %.not94, label %98, label %148

98:                                               ; preds = %.lr.ph131
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %99 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pU, i64 0, i64 %indvars.iv161, i64 %indvars.iv158
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %.not95 = icmp eq i32 %100, -1
  br i1 %.not95, label %104, label %101

101:                                              ; preds = %98
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %99)
          to label %104 unwind label %102

102:                                              ; preds = %111, %101
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %152

104:                                              ; preds = %101, %98
  %105 = load i32, ptr %1, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = icmp slt i64 %89, %106
  br i1 %107, label %108, label %112

108:                                              ; preds = %104
  %109 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pU, i64 0, i64 %89, i64 %indvars.iv158
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %.not96 = icmp eq i32 %110, -1
  br i1 %.not96, label %112, label %111

111:                                              ; preds = %108
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %109)
          to label %112 unwind label %102

112:                                              ; preds = %111, %108, %104
  %113 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  br i1 %113, label %147, label %114

114:                                              ; preds = %112
  %115 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pL, i64 0, i64 %indvars.iv161, i64 %indvars.iv158
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %.not97 = icmp eq i32 %116, -1
  br i1 %.not97, label %128, label %117

117:                                              ; preds = %114
  %118 = sext i32 %116 to i64
  %119 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @_ZZ4mainE1e, i64 0, i64 %118
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %120 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %119) #8
  store ptr %120, ptr %5, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  %121 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %122 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %123 = load ptr, ptr %4, align 8
  %124 = invoke ptr @_ZNSt6vectorIiSaIiEE6insertIN9__gnu_cxx17__normal_iteratorIPiS1_EEvEES6_NS4_IPKiS1_EET_SA_(ptr noundef nonnull align 8 dereferenceable(24) %119, ptr %123, ptr %121, ptr %122)
          to label %125 unwind label %126

125:                                              ; preds = %117
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %128

126:                                              ; preds = %117
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  br label %152

128:                                              ; preds = %125, %114
  %129 = add nuw nsw i64 %indvars.iv158, 1
  %130 = load i32, ptr %2, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = icmp slt i64 %129, %131
  br i1 %132, label %133, label %147

133:                                              ; preds = %128
  %134 = getelementptr inbounds [1001 x [11 x i32]], ptr @_ZZ4mainE2pL, i64 0, i64 %indvars.iv161, i64 %129
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %.not98 = icmp eq i32 %135, -1
  br i1 %.not98, label %147, label %136

136:                                              ; preds = %133
  %137 = sext i32 %135 to i64
  %138 = getelementptr inbounds [10001 x %"class.std::vector"], ptr @_ZZ4mainE1e, i64 0, i64 %137
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %139 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %138) #8
  store ptr %139, ptr %7, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  %140 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %141 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %142 = load ptr, ptr %6, align 8
  %143 = invoke ptr @_ZNSt6vectorIiSaIiEE6insertIN9__gnu_cxx17__normal_iteratorIPiS1_EEvEES6_NS4_IPKiS1_EET_SA_(ptr noundef nonnull align 8 dereferenceable(24) %138, ptr %142, ptr %140, ptr %141)
          to label %144 unwind label %145

144:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %147

145:                                              ; preds = %136
  %146 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %152

147:                                              ; preds = %128, %133, %144, %112
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  %.pre = load i32, ptr %2, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %147, %.lr.ph131
  %149 = phi i32 [ %.pre, %147 ], [ %95, %.lr.ph131 ]
  %indvars.iv.next159 = add nuw nsw i64 %indvars.iv158, 1
  %150 = sext i32 %149 to i64
  %151 = icmp slt i64 %indvars.iv.next159, %150
  br i1 %151, label %.lr.ph131, label %._crit_edge132.loopexit, !llvm.loop !21

152:                                              ; preds = %126, %145, %102
  %.pn.pn = phi { ptr, i32 } [ %103, %102 ], [ %146, %145 ], [ %127, %126 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  br label %160

._crit_edge139:                                   ; preds = %155, %._crit_edge134
  %.4.lcssa = phi i32 [ %.074.lcssa, %._crit_edge134 ], [ %spec.select, %155 ]
  %153 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.4.lcssa)
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

.lr.ph138:                                        ; preds = %._crit_edge134, %155
  %.0136 = phi i32 [ %157, %155 ], [ 0, %._crit_edge134 ]
  %.4135 = phi i32 [ %spec.select, %155 ], [ %.074.lcssa, %._crit_edge134 ]
  call void @llvm.memset.p0.i64(ptr nonnull align 16 @_ZZ4mainE3vis, i8 0, i64 %.071.lcssa, i1 false)
  %154 = invoke noundef zeroext i1 @_ZNKSt8functionIFbiEEclEi(ptr noundef nonnull align 8 dereferenceable(32) %8, i32 noundef %.0136)
          to label %155 unwind label %158

155:                                              ; preds = %.lr.ph138
  %156 = zext i1 %154 to i32
  %spec.select = add nsw i32 %.4135, %156
  %157 = add nuw nsw i32 %.0136, 1
  %exitcond164.not = icmp eq i32 %157, %.070.lcssa
  br i1 %exitcond164.not, label %._crit_edge139, label %.lr.ph138, !llvm.loop !22

158:                                              ; preds = %.lr.ph138
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %160

160:                                              ; preds = %158, %152
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %152 ], [ %159, %158 ]
  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 } %.pn.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: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; 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 i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

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

; Function Attrs: uwtable
declare hidden void @__cxx_global_array_dtor(ptr noundef) #5 section ".text.startup"

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

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFbiEEC2IZ4mainE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFbiEEclEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #7 align 2

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

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

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

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

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


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