; LLVM IR from tangjz/acm-icpc :: lydsy/2899.ll (Z5solvev)

; 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" = type { ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.9" = type { ptr }

@n = external dso_local global i32, align 4
@nxt = external dso_local global [51 x i32], align 16
@ans = external dso_local global i32, align 4
@e = external dso_local global [51 x %"class.std::vector"], align 16

; 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 uwtable
declare dso_local noundef i32 @_Z7getHashRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(24)) #1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3dfsi(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 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 ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

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

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

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

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

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

; 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
define dso_local void @_Z5solvev() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca [51 x i32], align 16
  %3 = alloca [51 x i8], align 16
  %4 = alloca [51 x %"class.std::vector"], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::vector", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::vector", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %38 = alloca i32, align 4
  %39 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 204, ptr %2) #6
  call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 204, i1 false)
  call void @llvm.lifetime.start.p0(i64 51, ptr %3) #6
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 51, i1 false)
  call void @llvm.lifetime.start.p0(i64 1224, ptr %4) #6
  %43 = getelementptr inbounds [51 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %44 = getelementptr inbounds %"class.std::vector", ptr %43, i64 51
  br label %45

45:                                               ; preds = %45, %0
  %46 = phi ptr [ %43, %0 ], [ %47, %45 ]
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  %47 = getelementptr inbounds %"class.std::vector", ptr %46, i64 1
  %48 = icmp eq ptr %47, %44
  br i1 %48, label %49, label %45

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %167, %49
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = load i32, ptr @n, align 4, !tbaa !5
  %53 = icmp sle i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %171

55:                                               ; preds = %50
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [51 x i32], ptr %2, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %55
  br label %167

62:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %63 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %63, ptr %7, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %75, %62
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [51 x i32], ptr %2, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = icmp ne i32 %68, 0
  %70 = xor i1 %69, true
  br i1 %70, label %71, label %80

71:                                               ; preds = %64
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [51 x i32], ptr %2, i64 0, i64 %73
  store i32 -1, ptr %74, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %71
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [51 x i32], ptr @nxt, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  store i32 %79, ptr %7, align 4, !tbaa !5
  br label %64, !llvm.loop !9

80:                                               ; preds = %64
  %81 = load i32, ptr %7, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [51 x i32], ptr %2, i64 0, i64 %82
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = icmp eq i32 %84, -1
  br i1 %85, label %86, label %145

86:                                               ; preds = %80
  %87 = load i32, ptr %1, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %1, align 4, !tbaa !5
  %89 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %89, ptr %7, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %101, %86
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [51 x i32], ptr %2, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = icmp eq i32 %94, -1
  br i1 %95, label %96, label %106

96:                                               ; preds = %90
  %97 = load i32, ptr %1, align 4, !tbaa !5
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [51 x i32], ptr %2, i64 0, i64 %99
  store i32 %97, ptr %100, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %96
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [51 x i32], ptr @nxt, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  store i32 %105, ptr %7, align 4, !tbaa !5
  br label %90, !llvm.loop !11

106:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %107 = load i32, ptr %7, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [51 x i32], ptr @nxt, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !5
  store i32 %110, ptr %8, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %124, %106
  %112 = load i32, ptr %8, align 4, !tbaa !5
  %113 = load i32, ptr %7, align 4, !tbaa !5
  %114 = icmp ne i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %133

116:                                              ; preds = %111
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [51 x i8], ptr %3, i64 0, i64 %118
  store i8 1, ptr %119, align 1, !tbaa !12
  %120 = load i32, ptr %1, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [51 x %"class.std::vector"], ptr %4, i64 0, i64 %121
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %122, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %123 unwind label %129

123:                                              ; preds = %116
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr %8, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [51 x i32], ptr @nxt, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  store i32 %128, ptr %8, align 4, !tbaa !5
  br label %111, !llvm.loop !14

129:                                              ; preds = %116
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %9, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %170

133:                                              ; preds = %115
  %134 = load i32, ptr %7, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [51 x i8], ptr %3, i64 0, i64 %135
  store i8 1, ptr %136, align 1, !tbaa !12
  %137 = load i32, ptr %1, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [51 x %"class.std::vector"], ptr %4, i64 0, i64 %138
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %140 unwind label %141

140:                                              ; preds = %133
  br label %166

141:                                              ; preds = %133
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %9, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %10, align 4
  br label %170

145:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %146 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %146, ptr %11, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %160, %145
  %148 = load i32, ptr %11, align 4, !tbaa !5
  %149 = load i32, ptr %7, align 4, !tbaa !5
  %150 = icmp ne i32 %148, %149
  br i1 %150, label %152, label %151

151:                                              ; preds = %147
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %165

152:                                              ; preds = %147
  %153 = load i32, ptr %7, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [51 x i32], ptr %2, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = load i32, ptr %11, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [51 x i32], ptr %2, i64 0, i64 %158
  store i32 %156, ptr %159, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %152
  %161 = load i32, ptr %11, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [51 x i32], ptr @nxt, i64 0, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !5
  store i32 %164, ptr %11, align 4, !tbaa !5
  br label %147, !llvm.loop !15

165:                                              ; preds = %151
  br label %166

166:                                              ; preds = %165, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %167

167:                                              ; preds = %166, %61
  %168 = load i32, ptr %5, align 4, !tbaa !5
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %5, align 4, !tbaa !5
  br label %50, !llvm.loop !16

170:                                              ; preds = %141, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %410

171:                                              ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %172

172:                                              ; preds = %196, %171
  %173 = load i32, ptr %12, align 4, !tbaa !5
  %174 = load i32, ptr @n, align 4, !tbaa !5
  %175 = icmp sle i32 %173, %174
  br i1 %175, label %177, label %176

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

177:                                              ; preds = %172
  %178 = load i32, ptr %12, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [51 x i8], ptr %3, i64 0, i64 %179
  %181 = load i8, ptr %180, align 1, !tbaa !12, !range !17, !noundef !18
  %182 = trunc i8 %181 to i1
  br i1 %182, label %195, label %183

183:                                              ; preds = %177
  %184 = load i32, ptr %12, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [51 x i32], ptr @nxt, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [51 x %"class.std::vector"], ptr @e, i64 0, i64 %188
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %189, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %190 unwind label %191

190:                                              ; preds = %183
  br label %195

191:                                              ; preds = %183
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %9, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %410

195:                                              ; preds = %190, %177
  br label %196

196:                                              ; preds = %195
  %197 = load i32, ptr %12, align 4, !tbaa !5
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %12, align 4, !tbaa !5
  br label %172, !llvm.loop !19

199:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %200 = load i32, ptr %1, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  invoke void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %201)
          to label %202 unwind label %208

202:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %203

203:                                              ; preds = %347, %202
  %204 = load i32, ptr %14, align 4, !tbaa !5
  %205 = load i32, ptr %1, align 4, !tbaa !5
  %206 = icmp sle i32 %204, %205
  br i1 %206, label %212, label %207

207:                                              ; preds = %203
  store i32 20, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %357

208:                                              ; preds = %357, %199
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %9, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %10, align 4
  br label %409

212:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %213 = load i32, ptr %14, align 4, !tbaa !5
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [51 x %"class.std::vector"], ptr %4, i64 0, i64 %214
  %216 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %215) #6
  invoke void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %216)
          to label %217 unwind label %231

217:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %218 = load i32, ptr %14, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [51 x %"class.std::vector"], ptr %4, i64 0, i64 %219
  %221 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %220) #6
  %222 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %221, ptr %222, align 8
  br label %223

223:                                              ; preds = %241, %217
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %224 = load i32, ptr %14, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [51 x %"class.std::vector"], ptr %4, i64 0, i64 %225
  %227 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %226) #6
  %228 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %227, ptr %228, align 8
  %229 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br i1 %229, label %235, label %230

230:                                              ; preds = %223
  store i32 23, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %247

231:                                              ; preds = %212
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %9, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %10, align 4
  br label %356

235:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %236 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %238 = invoke noundef i32 @_Z3dfsi(i32 noundef %237)
          to label %239 unwind label %243

239:                                              ; preds = %235
  store i32 %238, ptr %18, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %240 unwind label %243

240:                                              ; preds = %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %241

241:                                              ; preds = %240
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br label %223, !llvm.loop !20

243:                                              ; preds = %239, %235
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %9, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %356

247:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 1, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #6
  %248 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %249 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %248, ptr %249, align 8
  %250 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %251 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %250, ptr %251, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  %252 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8
  %254 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  %255 = load ptr, ptr %254, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2IN9__gnu_cxx17__normal_iteratorIPiS1_EEvEET_S7_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr %253, ptr %255, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %256 unwind label %266

256:                                              ; preds = %247
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 1, ptr %24, align 4, !tbaa !5
  br label %257

257:                                              ; preds = %332, %256
  %258 = load i32, ptr %24, align 4, !tbaa !5
  %259 = load i32, ptr %14, align 4, !tbaa !5
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [51 x %"class.std::vector"], ptr %4, i64 0, i64 %260
  %262 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %261) #6
  %263 = trunc i64 %262 to i32
  %264 = icmp slt i32 %258, %263
  br i1 %264, label %270, label %265

265:                                              ; preds = %257
  store i32 26, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %336

266:                                              ; preds = %247
  %267 = landingpad { ptr, i32 }
          cleanup
  %268 = extractvalue { ptr, i32 } %267, 0
  store ptr %268, ptr %9, align 8
  %269 = extractvalue { ptr, i32 } %267, 1
  store i32 %269, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  br label %355

270:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %271 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  %272 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %271, ptr %272, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %273 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %274 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %273, ptr %274, align 8
  %275 = load i32, ptr %24, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %29, i64 noundef %276) #6
  %278 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %277, ptr %278, align 8
  %279 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %280 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %279, ptr %280, align 8
  %281 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %26, i32 0, i32 0
  %282 = load ptr, ptr %281, align 8
  %283 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  %284 = load ptr, ptr %283, align 8
  %285 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  %286 = load ptr, ptr %285, align 8
  %287 = invoke ptr @_ZNSt6vectorIiSaIiEE6insertIN9__gnu_cxx17__normal_iteratorIPiS1_EEvEES6_NS4_IPKiS1_EET_SA_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr %282, ptr %284, ptr %286)
          to label %288 unwind label %319

288:                                              ; preds = %270
  %289 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %287, ptr %289, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %290 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  %291 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  store ptr %290, ptr %291, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #6
  %292 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %293 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  store ptr %292, ptr %293, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %294 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %295 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %36, i32 0, i32 0
  store ptr %294, ptr %295, align 8
  %296 = load i32, ptr %24, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %36, i64 noundef %297) #6
  %299 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  store ptr %298, ptr %299, align 8
  %300 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %32, i32 0, i32 0
  %301 = load ptr, ptr %300, align 8
  %302 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  %303 = load ptr, ptr %302, align 8
  %304 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  %305 = load ptr, ptr %304, align 8
  %306 = invoke ptr @_ZNSt6vectorIiSaIiEE6insertIN9__gnu_cxx17__normal_iteratorIPiS1_EEvEES6_NS4_IPKiS1_EET_SA_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr %301, ptr %303, ptr %305)
          to label %307 unwind label %323

307:                                              ; preds = %288
  %308 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %37, i32 0, i32 0
  store ptr %306, ptr %308, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  %309 = invoke noundef zeroext i1 @_ZSteqIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %310 unwind label %327

310:                                              ; preds = %307
  %311 = zext i1 %309 to i32
  %312 = load i32, ptr %19, align 4, !tbaa !5
  %313 = add nsw i32 %312, %311
  store i32 %313, ptr %19, align 4, !tbaa !5
  %314 = invoke noundef zeroext i1 @_ZStgtIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %315 unwind label %327

315:                                              ; preds = %310
  br i1 %314, label %316, label %331

316:                                              ; preds = %315
  %317 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %318 unwind label %327

318:                                              ; preds = %316
  br label %331

319:                                              ; preds = %270
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %9, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %335

323:                                              ; preds = %288
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %9, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %335

327:                                              ; preds = %316, %310, %307
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %9, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %10, align 4
  br label %335

331:                                              ; preds = %318, %315
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  br label %332

332:                                              ; preds = %331
  %333 = load i32, ptr %24, align 4, !tbaa !5
  %334 = add nsw i32 %333, 1
  store i32 %334, ptr %24, align 4, !tbaa !5
  br label %257, !llvm.loop !21

335:                                              ; preds = %327, %323, %319
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %354

336:                                              ; preds = %265
  %337 = load i32, ptr @ans, align 4, !tbaa !5
  %338 = sext i32 %337 to i64
  %339 = load i32, ptr %19, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = mul nsw i64 %338, %340
  %342 = srem i64 %341, 1000000007
  %343 = trunc i64 %342 to i32
  store i32 %343, ptr @ans, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %344 = invoke noundef i32 @_Z7getHashRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %345 unwind label %350

345:                                              ; preds = %336
  store i32 %344, ptr %38, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %346 unwind label %350

346:                                              ; preds = %345
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  br label %347

347:                                              ; preds = %346
  %348 = load i32, ptr %14, align 4, !tbaa !5
  %349 = add nsw i32 %348, 1
  store i32 %349, ptr %14, align 4, !tbaa !5
  br label %203, !llvm.loop !22

350:                                              ; preds = %345, %336
  %351 = landingpad { ptr, i32 }
          cleanup
  %352 = extractvalue { ptr, i32 } %351, 0
  store ptr %352, ptr %9, align 8
  %353 = extractvalue { ptr, i32 } %351, 1
  store i32 %353, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %354

354:                                              ; preds = %350, %335
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  br label %355

355:                                              ; preds = %354, %266
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %356

356:                                              ; preds = %355, %243, %231
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %409

357:                                              ; preds = %207
  %358 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %359 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  store ptr %358, ptr %359, align 8
  %360 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %361 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  store ptr %360, ptr %361, align 8
  %362 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  %363 = load ptr, ptr %362, align 8
  %364 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  %365 = load ptr, ptr %364, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %363, ptr %365)
          to label %366 unwind label %208

366:                                              ; preds = %357
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  store i32 0, ptr %41, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  br label %367

367:                                              ; preds = %398, %366
  %368 = load i32, ptr %41, align 4, !tbaa !5
  %369 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %370 = trunc i64 %369 to i32
  %371 = icmp slt i32 %368, %370
  br i1 %371, label %373, label %372

372:                                              ; preds = %367
  store i32 29, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %401

373:                                              ; preds = %367
  %374 = load i32, ptr %41, align 4, !tbaa !5
  %375 = icmp ne i32 %374, 0
  br i1 %375, label %376, label %387

376:                                              ; preds = %373
  %377 = load i32, ptr %41, align 4, !tbaa !5
  %378 = sub nsw i32 %377, 1
  %379 = sext i32 %378 to i64
  %380 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %379) #6
  %381 = load i32, ptr %380, align 4, !tbaa !5
  %382 = load i32, ptr %41, align 4, !tbaa !5
  %383 = sext i32 %382 to i64
  %384 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %383) #6
  %385 = load i32, ptr %384, align 4, !tbaa !5
  %386 = icmp ne i32 %381, %385
  br i1 %386, label %387, label %388

387:                                              ; preds = %376, %373
  store i32 1, ptr %42, align 4, !tbaa !5
  br label %397

388:                                              ; preds = %376
  %389 = load i32, ptr @ans, align 4, !tbaa !5
  %390 = sext i32 %389 to i64
  %391 = load i32, ptr %42, align 4, !tbaa !5
  %392 = add nsw i32 %391, 1
  store i32 %392, ptr %42, align 4, !tbaa !5
  %393 = sext i32 %392 to i64
  %394 = mul nsw i64 %390, %393
  %395 = srem i64 %394, 1000000007
  %396 = trunc i64 %395 to i32
  store i32 %396, ptr @ans, align 4, !tbaa !5
  br label %397

397:                                              ; preds = %388, %387
  br label %398

398:                                              ; preds = %397
  %399 = load i32, ptr %41, align 4, !tbaa !5
  %400 = add nsw i32 %399, 1
  store i32 %400, ptr %41, align 4, !tbaa !5
  br label %367, !llvm.loop !23

401:                                              ; preds = %372
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  %402 = getelementptr inbounds [51 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %403 = getelementptr inbounds %"class.std::vector", ptr %402, i64 51
  br label %404

404:                                              ; preds = %404, %401
  %405 = phi ptr [ %403, %401 ], [ %406, %404 ]
  %406 = getelementptr inbounds %"class.std::vector", ptr %405, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %406) #6
  %407 = icmp eq ptr %406, %402
  br i1 %407, label %408, label %404

408:                                              ; preds = %404
  call void @llvm.lifetime.end.p0(i64 1224, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 51, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 204, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void

409:                                              ; preds = %356, %208
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  br label %410

410:                                              ; preds = %409, %191, %170
  %411 = getelementptr inbounds [51 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %412 = getelementptr inbounds %"class.std::vector", ptr %411, i64 51
  br label %413

413:                                              ; preds = %413, %410
  %414 = phi ptr [ %412, %410 ], [ %415, %413 ]
  %415 = getelementptr inbounds %"class.std::vector", ptr %414, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %415) #6
  %416 = icmp eq ptr %415, %411
  br i1 %416, label %417, label %413

417:                                              ; preds = %413
  call void @llvm.lifetime.end.p0(i64 1224, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 51, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 204, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  br label %418

418:                                              ; preds = %417
  %419 = load ptr, ptr %9, align 8
  %420 = load i32, ptr %10, align 4
  %421 = insertvalue { ptr, i32 } poison, ptr %419, 0
  %422 = insertvalue { ptr, i32 } %421, i32 %420, 1
  resume { ptr, i32 } %422
}

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStgtIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

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

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 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !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::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" = type { ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator.9" = type { ptr }

@n = external dso_local local_unnamed_addr global i32, align 4
@nxt = external dso_local local_unnamed_addr global [51 x i32], align 16
@ans = external dso_local local_unnamed_addr global i32, align 4
@e = external dso_local global [51 x %"class.std::vector"], align 16

; 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 uwtable
declare dso_local noundef i32 @_Z7getHashRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3dfsi(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 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 ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; 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 uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

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

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

; 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
define dso_local void @_Z5solvev() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
.preheader91:
  %0 = alloca [51 x i32], align 16
  %1 = alloca [51 x i8], align 16
  %2 = alloca [51 x %"class.std::vector"], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca %"class.std::allocator", align 1
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 204, ptr nonnull %0) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(204) %0, i8 0, i64 204, i1 false)
  call void @llvm.lifetime.start.p0(i64 51, ptr nonnull %1) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(51) %1, i8 0, i64 51, i1 false)
  call void @llvm.lifetime.start.p0(i64 1224, ptr nonnull %2) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %.ptr.1 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #6
  %.ptr.2 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #6
  %.ptr.3 = getelementptr inbounds i8, ptr %2, i64 72
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #6
  %.ptr.4 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #6
  %.ptr.5 = getelementptr inbounds i8, ptr %2, i64 120
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.5) #6
  %.ptr.6 = getelementptr inbounds i8, ptr %2, i64 144
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.6) #6
  %.ptr.7 = getelementptr inbounds i8, ptr %2, i64 168
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.7) #6
  %.ptr.8 = getelementptr inbounds i8, ptr %2, i64 192
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.8) #6
  %.ptr.9 = getelementptr inbounds i8, ptr %2, i64 216
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.9) #6
  %.ptr.10 = getelementptr inbounds i8, ptr %2, i64 240
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.10) #6
  %.ptr.11 = getelementptr inbounds i8, ptr %2, i64 264
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.11) #6
  %.ptr.12 = getelementptr inbounds i8, ptr %2, i64 288
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.12) #6
  %.ptr.13 = getelementptr inbounds i8, ptr %2, i64 312
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.13) #6
  %.ptr.14 = getelementptr inbounds i8, ptr %2, i64 336
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.14) #6
  %.ptr.15 = getelementptr inbounds i8, ptr %2, i64 360
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.15) #6
  %.ptr.16 = getelementptr inbounds i8, ptr %2, i64 384
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.16) #6
  %.ptr.17 = getelementptr inbounds i8, ptr %2, i64 408
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.17) #6
  %.ptr.18 = getelementptr inbounds i8, ptr %2, i64 432
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.18) #6
  %.ptr.19 = getelementptr inbounds i8, ptr %2, i64 456
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.19) #6
  %.ptr.20 = getelementptr inbounds i8, ptr %2, i64 480
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.20) #6
  %.ptr.21 = getelementptr inbounds i8, ptr %2, i64 504
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.21) #6
  %.ptr.22 = getelementptr inbounds i8, ptr %2, i64 528
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.22) #6
  %.ptr.23 = getelementptr inbounds i8, ptr %2, i64 552
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.23) #6
  %.ptr.24 = getelementptr inbounds i8, ptr %2, i64 576
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.24) #6
  %.ptr.25 = getelementptr inbounds i8, ptr %2, i64 600
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.25) #6
  %.ptr.26 = getelementptr inbounds i8, ptr %2, i64 624
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.26) #6
  %.ptr.27 = getelementptr inbounds i8, ptr %2, i64 648
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.27) #6
  %.ptr.28 = getelementptr inbounds i8, ptr %2, i64 672
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.28) #6
  %.ptr.29 = getelementptr inbounds i8, ptr %2, i64 696
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.29) #6
  %.ptr.30 = getelementptr inbounds i8, ptr %2, i64 720
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.30) #6
  %.ptr.31 = getelementptr inbounds i8, ptr %2, i64 744
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.31) #6
  %.ptr.32 = getelementptr inbounds i8, ptr %2, i64 768
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.32) #6
  %.ptr.33 = getelementptr inbounds i8, ptr %2, i64 792
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.33) #6
  %.ptr.34 = getelementptr inbounds i8, ptr %2, i64 816
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.34) #6
  %.ptr.35 = getelementptr inbounds i8, ptr %2, i64 840
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.35) #6
  %.ptr.36 = getelementptr inbounds i8, ptr %2, i64 864
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.36) #6
  %.ptr.37 = getelementptr inbounds i8, ptr %2, i64 888
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.37) #6
  %.ptr.38 = getelementptr inbounds i8, ptr %2, i64 912
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.38) #6
  %.ptr.39 = getelementptr inbounds i8, ptr %2, i64 936
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.39) #6
  %.ptr.40 = getelementptr inbounds i8, ptr %2, i64 960
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.40) #6
  %.ptr.41 = getelementptr inbounds i8, ptr %2, i64 984
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.41) #6
  %.ptr.42 = getelementptr inbounds i8, ptr %2, i64 1008
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.42) #6
  %.ptr.43 = getelementptr inbounds i8, ptr %2, i64 1032
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.43) #6
  %.ptr.44 = getelementptr inbounds i8, ptr %2, i64 1056
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.44) #6
  %.ptr.45 = getelementptr inbounds i8, ptr %2, i64 1080
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.45) #6
  %.ptr.46 = getelementptr inbounds i8, ptr %2, i64 1104
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.46) #6
  %.ptr.47 = getelementptr inbounds i8, ptr %2, i64 1128
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.47) #6
  %.ptr.48 = getelementptr inbounds i8, ptr %2, i64 1152
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.48) #6
  %.ptr.49 = getelementptr inbounds i8, ptr %2, i64 1176
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.49) #6
  %.ptr.50 = getelementptr inbounds i8, ptr %2, i64 1200
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.50) #6
  %21 = load i32, ptr @n, align 4, !tbaa !5
  %.not106 = icmp slt i32 %21, 1
  br i1 %.not106, label %._crit_edge112.thread, label %.lr.ph111

._crit_edge112.thread:                            ; preds = %.preheader91
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  br label %._crit_edge118

._crit_edge112:                                   ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 1, ptr %5, align 4, !tbaa !5
  %.not68114 = icmp slt i32 %64, 1
  br i1 %.not68114, label %._crit_edge118, label %.lr.ph117

.lr.ph111:                                        ; preds = %.preheader91, %63
  %.pre160 = phi i32 [ %.pre161, %63 ], [ %21, %.preheader91 ]
  %22 = phi i32 [ %64, %63 ], [ %21, %.preheader91 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %63 ], [ 1, %.preheader91 ]
  %.044110 = phi i32 [ %.2, %63 ], [ 0, %.preheader91 ]
  %23 = getelementptr inbounds [51 x i32], ptr %0, i64 0, i64 %indvars.iv
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %.not78 = icmp eq i32 %24, 0
  br i1 %.not78, label %25, label %63

25:                                               ; preds = %.lr.ph111
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %26 = trunc nuw nsw i64 %indvars.iv to i32
  br label %27

27:                                               ; preds = %32, %25
  %storemerge79 = phi i32 [ %26, %25 ], [ %34, %32 ]
  %28 = sext i32 %storemerge79 to i64
  %29 = getelementptr inbounds [51 x i32], ptr %0, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  switch i32 %30, label %.preheader90 [
    i32 0, label %32
    i32 -1, label %35
  ]

.preheader90:                                     ; preds = %27
  %31 = zext i32 %storemerge79 to i64
  %.not81103 = icmp eq i64 %indvars.iv, %31
  br i1 %.not81103, label %.loopexit, label %.lr.ph105

32:                                               ; preds = %27
  store i32 -1, ptr %29, align 4, !tbaa !5
  %33 = getelementptr inbounds [51 x i32], ptr @nxt, i64 0, i64 %28
  %34 = load i32, ptr %33, align 4, !tbaa !5
  br label %27, !llvm.loop !9

35:                                               ; preds = %27
  %36 = add nsw i32 %.044110, 1
  %37 = load i32, ptr %23, align 4, !tbaa !5
  %38 = icmp eq i32 %37, -1
  br i1 %38, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %35
  %sext = shl i64 %indvars.iv, 32
  %.pre164 = ashr exact i64 %sext, 32
  br label %._crit_edge

.lr.ph:                                           ; preds = %35, %.lr.ph
  %39 = phi ptr [ %44, %.lr.ph ], [ %23, %35 ]
  %40 = phi i64 [ %43, %.lr.ph ], [ %indvars.iv, %35 ]
  store i32 %36, ptr %39, align 4, !tbaa !5
  %41 = getelementptr inbounds [51 x i32], ptr @nxt, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [51 x i32], ptr %0, i64 0, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = icmp eq i32 %45, -1
  br i1 %46, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph, %.._crit_edge_crit_edge
  %.pn84.peel.pre-phi = phi i64 [ %.pre164, %.._crit_edge_crit_edge ], [ %43, %.lr.ph ]
  %storemerge82.lcssa = phi i32 [ %26, %.._crit_edge_crit_edge ], [ %42, %.lr.ph ]
  store i32 %storemerge82.lcssa, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %47 = sext i32 %36 to i64
  %48 = getelementptr inbounds [51 x %"class.std::vector"], ptr %2, i64 0, i64 %47
  %storemerge83.in.peel = getelementptr inbounds [51 x i32], ptr @nxt, i64 0, i64 %.pn84.peel.pre-phi
  %storemerge83.peel = load i32, ptr %storemerge83.in.peel, align 4, !tbaa !5
  store i32 %storemerge83.peel, ptr %4, align 4, !tbaa !5
  %.not85.peel = icmp eq i32 %storemerge83.peel, %storemerge82.lcssa
  br i1 %.not85.peel, label %.loopexit143, label %49

49:                                               ; preds = %._crit_edge
  %50 = sext i32 %storemerge83.peel to i64
  %51 = getelementptr inbounds [51 x i8], ptr %1, i64 0, i64 %50
  store i8 1, ptr %51, align 1, !tbaa !12
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %48, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %.peel.next unwind label %.loopexit.split-lp

.peel.next:                                       ; preds = %49, %54
  %.pn84.in = load i32, ptr %4, align 4, !tbaa !5
  %.pn84 = sext i32 %.pn84.in to i64
  %storemerge83.in = getelementptr inbounds [51 x i32], ptr @nxt, i64 0, i64 %.pn84
  %storemerge83 = load i32, ptr %storemerge83.in, align 4, !tbaa !5
  store i32 %storemerge83, ptr %4, align 4, !tbaa !5
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %.not85 = icmp eq i32 %storemerge83, %52
  %.pre163 = sext i32 %storemerge83 to i64
  br i1 %.not85, label %.loopexit143, label %54

.loopexit143:                                     ; preds = %.peel.next, %._crit_edge
  %.pre-phi = phi i64 [ %.pn84.peel.pre-phi, %._crit_edge ], [ %.pre163, %.peel.next ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %53 = getelementptr inbounds [51 x i8], ptr %1, i64 0, i64 %.pre-phi
  store i8 1, ptr %53, align 1, !tbaa !12
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %48, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %..loopexit_crit_edge unwind label %57

..loopexit_crit_edge:                             ; preds = %.loopexit143
  %.pre.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %.loopexit

54:                                               ; preds = %.peel.next
  %55 = getelementptr inbounds [51 x i8], ptr %1, i64 0, i64 %.pre163
  store i8 1, ptr %55, align 1, !tbaa !12
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %48, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %.peel.next unwind label %.loopexit144, !llvm.loop !14

.loopexit144:                                     ; preds = %54
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %56

.loopexit.split-lp:                               ; preds = %49
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %56

56:                                               ; preds = %.loopexit.split-lp, %.loopexit144
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit144 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %66

57:                                               ; preds = %.loopexit143
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %66

.lr.ph105:                                        ; preds = %.preheader90, %.lr.ph105
  %.057104 = phi i32 [ %62, %.lr.ph105 ], [ %26, %.preheader90 ]
  %59 = sext i32 %.057104 to i64
  %60 = getelementptr inbounds [51 x i32], ptr %0, i64 0, i64 %59
  store i32 %30, ptr %60, align 4, !tbaa !5
  %61 = getelementptr inbounds [51 x i32], ptr @nxt, i64 0, i64 %59
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %.not81 = icmp eq i32 %62, %storemerge79
  br i1 %.not81, label %.loopexit, label %.lr.ph105, !llvm.loop !16

.loopexit:                                        ; preds = %.lr.ph105, %..loopexit_crit_edge, %.preheader90
  %.pre = phi i32 [ %.pre.pre, %..loopexit_crit_edge ], [ %.pre160, %.preheader90 ], [ %.pre160, %.lr.ph105 ]
  %.145 = phi i32 [ %36, %..loopexit_crit_edge ], [ %.044110, %.preheader90 ], [ %.044110, %.lr.ph105 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  br label %63

63:                                               ; preds = %.lr.ph111, %.loopexit
  %.pre161 = phi i32 [ %.pre160, %.lr.ph111 ], [ %.pre, %.loopexit ]
  %64 = phi i32 [ %22, %.lr.ph111 ], [ %.pre, %.loopexit ]
  %.2 = phi i32 [ %.044110, %.lr.ph111 ], [ %.145, %.loopexit ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %65 = sext i32 %64 to i64
  %.not.not = icmp slt i64 %indvars.iv, %65
  br i1 %.not.not, label %.lr.ph111, label %._crit_edge112, !llvm.loop !17

66:                                               ; preds = %57, %56
  %.pn86 = phi { ptr, i32 } [ %lpad.phi, %56 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  br label %236

._crit_edge118:                                   ; preds = %81, %._crit_edge112.thread, %._crit_edge112
  %.044.lcssa170 = phi i32 [ 0, %._crit_edge112.thread ], [ %.2, %._crit_edge112 ], [ %.2, %81 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %67 = sext i32 %.044.lcssa170 to i64
  invoke void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %67)
          to label %.preheader89 unwind label %93

.preheader89:                                     ; preds = %._crit_edge118
  %.not69128 = icmp slt i32 %.044.lcssa170, 1
  br i1 %.not69128, label %._crit_edge131, label %.lr.ph130.preheader

.lr.ph130.preheader:                              ; preds = %.preheader89
  %68 = add nuw i32 %.044.lcssa170, 1
  %wide.trip.count = zext i32 %68 to i64
  br label %.lr.ph130

.lr.ph117:                                        ; preds = %._crit_edge112, %81
  %69 = phi i32 [ %82, %81 ], [ %64, %._crit_edge112 ]
  %storemerge115 = phi i32 [ %84, %81 ], [ 1, %._crit_edge112 ]
  %70 = sext i32 %storemerge115 to i64
  %71 = getelementptr inbounds [51 x i8], ptr %1, i64 0, i64 %70
  %72 = load i8, ptr %71, align 1, !tbaa !12, !range !18, !noundef !19
  %73 = trunc nuw i8 %72 to i1
  br i1 %73, label %81, label %74

74:                                               ; preds = %.lr.ph117
  %75 = getelementptr inbounds [51 x i32], ptr @nxt, i64 0, i64 %70
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [51 x %"class.std::vector"], ptr @e, i64 0, i64 %77
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %78, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %._crit_edge156 unwind label %79

._crit_edge156:                                   ; preds = %74
  %.pre157 = load i32, ptr %5, align 4, !tbaa !5
  %.pre158 = load i32, ptr @n, align 4, !tbaa !5
  br label %81

79:                                               ; preds = %74
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br label %236

81:                                               ; preds = %._crit_edge156, %.lr.ph117
  %82 = phi i32 [ %.pre158, %._crit_edge156 ], [ %69, %.lr.ph117 ]
  %83 = phi i32 [ %.pre157, %._crit_edge156 ], [ %storemerge115, %.lr.ph117 ]
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %5, align 4, !tbaa !5
  %.not68.not = icmp slt i32 %83, %82
  br i1 %.not68.not, label %.lr.ph117, label %._crit_edge118, !llvm.loop !20

._crit_edge131:                                   ; preds = %162, %.preheader89
  %85 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %86 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %85, ptr %86)
          to label %.preheader unwind label %93

.preheader:                                       ; preds = %._crit_edge131
  %87 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %88 = trunc i64 %87 to i32
  %89 = icmp sgt i32 %88, 0
  br i1 %89, label %.lr.ph134.preheader, label %._crit_edge135

.lr.ph134.preheader:                              ; preds = %.preheader
  %90 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %91 = trunc i64 %90 to i32
  %92 = icmp sgt i32 %91, 1
  br i1 %92, label %.lr.ph134.peel.next, label %._crit_edge135

93:                                               ; preds = %._crit_edge131, %._crit_edge118
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %235

.lr.ph130:                                        ; preds = %.lr.ph130.preheader, %162
  %indvars.iv149 = phi i64 [ 1, %.lr.ph130.preheader ], [ %indvars.iv.next150, %162 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %95 = getelementptr inbounds [51 x %"class.std::vector"], ptr %2, i64 0, i64 %indvars.iv149
  %96 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #6
  invoke void @_ZNSt6vectorIiSaIiEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %96)
          to label %97 unwind label %103

97:                                               ; preds = %.lr.ph130
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %98 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #6
  store ptr %98, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %99 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #6
  store ptr %99, ptr %9, align 8
  %100 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br i1 %100, label %.lr.ph120, label %._crit_edge121

._crit_edge121:                                   ; preds = %109, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  %101 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %102 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2IN9__gnu_cxx17__normal_iteratorIPiS1_EEvEET_S7_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr %101, ptr %102, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %115 unwind label %126

103:                                              ; preds = %.lr.ph130
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %167

.lr.ph120:                                        ; preds = %97, %109
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = invoke noundef i32 @_Z3dfsi(i32 noundef %106)
          to label %108 unwind label %113

108:                                              ; preds = %.lr.ph120
  store i32 %107, ptr %10, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %109 unwind label %113

109:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %111 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #6
  store ptr %111, ptr %9, align 8
  %112 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br i1 %112, label %.lr.ph120, label %._crit_edge121, !llvm.loop !21

113:                                              ; preds = %108, %.lr.ph120
  %114 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %167

115:                                              ; preds = %._crit_edge121
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  %116 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #6
  %117 = trunc i64 %116 to i32
  %118 = icmp sgt i32 %117, 1
  br i1 %118, label %.lr.ph125, label %._crit_edge126

._crit_edge126:                                   ; preds = %156, %115
  %.059.lcssa = phi i32 [ 1, %115 ], [ %145, %156 ]
  %119 = load i32, ptr @ans, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = zext nneg i32 %.059.lcssa to i64
  %122 = mul nsw i64 %120, %121
  %123 = srem i64 %122, 1000000007
  %124 = trunc nsw i64 %123 to i32
  store i32 %124, ptr @ans, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #6
  %125 = invoke noundef i32 @_Z7getHashRSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %161 unwind label %163

126:                                              ; preds = %._crit_edge121
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  br label %166

.lr.ph125:                                        ; preds = %115, %156
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %156 ], [ 1, %115 ]
  %.059123 = phi i32 [ %145, %156 ], [ 1, %115 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %128 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %128, ptr %15, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEC2IPivEERKNS0_IT_S5_EE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %129 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %129, ptr %16, align 8
  %130 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %16, i64 noundef %indvars.iv146) #6
  %131 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %132 = load ptr, ptr %14, align 8
  %133 = invoke ptr @_ZNSt6vectorIiSaIiEE6insertIN9__gnu_cxx17__normal_iteratorIPiS1_EEvEES6_NS4_IPKiS1_EET_SA_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr %132, ptr %130, ptr %131)
          to label %134 unwind label %150

134:                                              ; preds = %.lr.ph125
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %135 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %135, ptr %18, 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) #6
  %136 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  %137 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %137, ptr %19, align 8
  %138 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef %indvars.iv146) #6
  %139 = load ptr, ptr %17, align 8
  %140 = invoke ptr @_ZNSt6vectorIiSaIiEE6insertIN9__gnu_cxx17__normal_iteratorIPiS1_EEvEES6_NS4_IPKiS1_EET_SA_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr %139, ptr %136, ptr %138)
          to label %141 unwind label %152

141:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  %142 = invoke noundef zeroext i1 @_ZSteqIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %143 unwind label %154

143:                                              ; preds = %141
  %144 = zext i1 %142 to i32
  %145 = add nuw nsw i32 %.059123, %144
  %146 = invoke noundef zeroext i1 @_ZStgtIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %147 unwind label %154

147:                                              ; preds = %143
  br i1 %146, label %148, label %156

148:                                              ; preds = %147
  %149 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %156 unwind label %154

150:                                              ; preds = %.lr.ph125
  %151 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %160

152:                                              ; preds = %134
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  br label %160

154:                                              ; preds = %148, %143, %141
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %160

156:                                              ; preds = %148, %147
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %157 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #6
  %sext165 = shl i64 %157, 32
  %158 = ashr exact i64 %sext165, 32
  %159 = icmp slt i64 %indvars.iv.next147, %158
  br i1 %159, label %.lr.ph125, label %._crit_edge126, !llvm.loop !22

160:                                              ; preds = %154, %152, %150
  %.pn = phi { ptr, i32 } [ %155, %154 ], [ %153, %152 ], [ %151, %150 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  br label %165

161:                                              ; preds = %._crit_edge126
  store i32 %125, ptr %20, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %20)
          to label %162 unwind label %163

162:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next150, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge131, label %.lr.ph130, !llvm.loop !23

163:                                              ; preds = %161, %._crit_edge126
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  br label %165

165:                                              ; preds = %163, %160
  %.pn.pn = phi { ptr, i32 } [ %.pn, %160 ], [ %164, %163 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %166

166:                                              ; preds = %165, %126
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %165 ], [ %127, %126 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  br label %167

167:                                              ; preds = %166, %113, %103
  %.pn75 = phi { ptr, i32 } [ %114, %113 ], [ %.pn.pn.pn, %166 ], [ %104, %103 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %235

._crit_edge135:                                   ; preds = %231, %.lr.ph134.preheader, %.preheader
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  %168 = getelementptr inbounds i8, ptr %2, i64 1200
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %168) #6
  %169 = getelementptr inbounds i8, ptr %2, i64 1176
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %169) #6
  %170 = getelementptr inbounds i8, ptr %2, i64 1152
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %170) #6
  %171 = getelementptr inbounds i8, ptr %2, i64 1128
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %171) #6
  %172 = getelementptr inbounds i8, ptr %2, i64 1104
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %172) #6
  %173 = getelementptr inbounds i8, ptr %2, i64 1080
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %173) #6
  %174 = getelementptr inbounds i8, ptr %2, i64 1056
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %174) #6
  %175 = getelementptr inbounds i8, ptr %2, i64 1032
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %175) #6
  %176 = getelementptr inbounds i8, ptr %2, i64 1008
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %176) #6
  %177 = getelementptr inbounds i8, ptr %2, i64 984
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %177) #6
  %178 = getelementptr inbounds i8, ptr %2, i64 960
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %178) #6
  %179 = getelementptr inbounds i8, ptr %2, i64 936
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %179) #6
  %180 = getelementptr inbounds i8, ptr %2, i64 912
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %180) #6
  %181 = getelementptr inbounds i8, ptr %2, i64 888
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %181) #6
  %182 = getelementptr inbounds i8, ptr %2, i64 864
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %182) #6
  %183 = getelementptr inbounds i8, ptr %2, i64 840
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %183) #6
  %184 = getelementptr inbounds i8, ptr %2, i64 816
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %184) #6
  %185 = getelementptr inbounds i8, ptr %2, i64 792
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %185) #6
  %186 = getelementptr inbounds i8, ptr %2, i64 768
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %186) #6
  %187 = getelementptr inbounds i8, ptr %2, i64 744
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %187) #6
  %188 = getelementptr inbounds i8, ptr %2, i64 720
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %188) #6
  %189 = getelementptr inbounds i8, ptr %2, i64 696
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %189) #6
  %190 = getelementptr inbounds i8, ptr %2, i64 672
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %190) #6
  %191 = getelementptr inbounds i8, ptr %2, i64 648
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %191) #6
  %192 = getelementptr inbounds i8, ptr %2, i64 624
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %192) #6
  %193 = getelementptr inbounds i8, ptr %2, i64 600
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %193) #6
  %194 = getelementptr inbounds i8, ptr %2, i64 576
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %194) #6
  %195 = getelementptr inbounds i8, ptr %2, i64 552
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %195) #6
  %196 = getelementptr inbounds i8, ptr %2, i64 528
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %196) #6
  %197 = getelementptr inbounds i8, ptr %2, i64 504
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %197) #6
  %198 = getelementptr inbounds i8, ptr %2, i64 480
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %198) #6
  %199 = getelementptr inbounds i8, ptr %2, i64 456
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %199) #6
  %200 = getelementptr inbounds i8, ptr %2, i64 432
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %200) #6
  %201 = getelementptr inbounds i8, ptr %2, i64 408
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %201) #6
  %202 = getelementptr inbounds i8, ptr %2, i64 384
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %202) #6
  %203 = getelementptr inbounds i8, ptr %2, i64 360
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %203) #6
  %204 = getelementptr inbounds i8, ptr %2, i64 336
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %204) #6
  %205 = getelementptr inbounds i8, ptr %2, i64 312
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %205) #6
  %206 = getelementptr inbounds i8, ptr %2, i64 288
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %206) #6
  %207 = getelementptr inbounds i8, ptr %2, i64 264
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %207) #6
  %208 = getelementptr inbounds i8, ptr %2, i64 240
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %208) #6
  %209 = getelementptr inbounds i8, ptr %2, i64 216
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %209) #6
  %210 = getelementptr inbounds i8, ptr %2, i64 192
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %210) #6
  %211 = getelementptr inbounds i8, ptr %2, i64 168
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %211) #6
  %212 = getelementptr inbounds i8, ptr %2, i64 144
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %212) #6
  %213 = getelementptr inbounds i8, ptr %2, i64 120
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %213) #6
  %214 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %214) #6
  %215 = getelementptr inbounds i8, ptr %2, i64 72
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %215) #6
  %216 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %216) #6
  %217 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %217) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 1224, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 51, ptr nonnull %1) #6
  call void @llvm.lifetime.end.p0(i64 204, ptr nonnull %0) #6
  ret void

.lr.ph134.peel.next:                              ; preds = %.lr.ph134.preheader, %231
  %indvars.iv152 = phi i64 [ %indvars.iv.next153, %231 ], [ 1, %.lr.ph134.preheader ]
  %.0133 = phi i32 [ %.1, %231 ], [ 1, %.lr.ph134.preheader ]
  %218 = add nsw i64 %indvars.iv152, -1
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %218) #6
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv152) #6
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %.not71 = icmp eq i32 %220, %222
  br i1 %.not71, label %223, label %231

223:                                              ; preds = %.lr.ph134.peel.next
  %224 = load i32, ptr @ans, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = add nsw i32 %.0133, 1
  %227 = sext i32 %226 to i64
  %228 = mul nsw i64 %225, %227
  %229 = srem i64 %228, 1000000007
  %230 = trunc nsw i64 %229 to i32
  store i32 %230, ptr @ans, align 4, !tbaa !5
  br label %231

231:                                              ; preds = %.lr.ph134.peel.next, %223
  %.1 = phi i32 [ %226, %223 ], [ 1, %.lr.ph134.peel.next ]
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %232 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %sext167 = shl i64 %232, 32
  %233 = ashr exact i64 %sext167, 32
  %234 = icmp slt i64 %indvars.iv.next153, %233
  br i1 %234, label %.lr.ph134.peel.next, label %._crit_edge135, !llvm.loop !24

235:                                              ; preds = %167, %93
  %.pn75.pn = phi { ptr, i32 } [ %.pn75, %167 ], [ %94, %93 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %236

236:                                              ; preds = %235, %79, %66
  %.pn86.pn = phi { ptr, i32 } [ %.pn86, %66 ], [ %80, %79 ], [ %.pn75.pn, %235 ]
  %237 = getelementptr inbounds i8, ptr %2, i64 1200
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %237) #6
  %238 = getelementptr inbounds i8, ptr %2, i64 1176
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %238) #6
  %239 = getelementptr inbounds i8, ptr %2, i64 1152
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %239) #6
  %240 = getelementptr inbounds i8, ptr %2, i64 1128
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %240) #6
  %241 = getelementptr inbounds i8, ptr %2, i64 1104
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %241) #6
  %242 = getelementptr inbounds i8, ptr %2, i64 1080
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %242) #6
  %243 = getelementptr inbounds i8, ptr %2, i64 1056
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %243) #6
  %244 = getelementptr inbounds i8, ptr %2, i64 1032
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %244) #6
  %245 = getelementptr inbounds i8, ptr %2, i64 1008
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %245) #6
  %246 = getelementptr inbounds i8, ptr %2, i64 984
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %246) #6
  %247 = getelementptr inbounds i8, ptr %2, i64 960
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %247) #6
  %248 = getelementptr inbounds i8, ptr %2, i64 936
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %248) #6
  %249 = getelementptr inbounds i8, ptr %2, i64 912
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %249) #6
  %250 = getelementptr inbounds i8, ptr %2, i64 888
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %250) #6
  %251 = getelementptr inbounds i8, ptr %2, i64 864
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %251) #6
  %252 = getelementptr inbounds i8, ptr %2, i64 840
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %252) #6
  %253 = getelementptr inbounds i8, ptr %2, i64 816
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %253) #6
  %254 = getelementptr inbounds i8, ptr %2, i64 792
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %254) #6
  %255 = getelementptr inbounds i8, ptr %2, i64 768
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %255) #6
  %256 = getelementptr inbounds i8, ptr %2, i64 744
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %256) #6
  %257 = getelementptr inbounds i8, ptr %2, i64 720
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %257) #6
  %258 = getelementptr inbounds i8, ptr %2, i64 696
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %258) #6
  %259 = getelementptr inbounds i8, ptr %2, i64 672
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %259) #6
  %260 = getelementptr inbounds i8, ptr %2, i64 648
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %260) #6
  %261 = getelementptr inbounds i8, ptr %2, i64 624
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %261) #6
  %262 = getelementptr inbounds i8, ptr %2, i64 600
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %262) #6
  %263 = getelementptr inbounds i8, ptr %2, i64 576
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %263) #6
  %264 = getelementptr inbounds i8, ptr %2, i64 552
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %264) #6
  %265 = getelementptr inbounds i8, ptr %2, i64 528
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %265) #6
  %266 = getelementptr inbounds i8, ptr %2, i64 504
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %266) #6
  %267 = getelementptr inbounds i8, ptr %2, i64 480
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %267) #6
  %268 = getelementptr inbounds i8, ptr %2, i64 456
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %268) #6
  %269 = getelementptr inbounds i8, ptr %2, i64 432
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %269) #6
  %270 = getelementptr inbounds i8, ptr %2, i64 408
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %270) #6
  %271 = getelementptr inbounds i8, ptr %2, i64 384
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %271) #6
  %272 = getelementptr inbounds i8, ptr %2, i64 360
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %272) #6
  %273 = getelementptr inbounds i8, ptr %2, i64 336
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %273) #6
  %274 = getelementptr inbounds i8, ptr %2, i64 312
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %274) #6
  %275 = getelementptr inbounds i8, ptr %2, i64 288
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %275) #6
  %276 = getelementptr inbounds i8, ptr %2, i64 264
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %276) #6
  %277 = getelementptr inbounds i8, ptr %2, i64 240
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %277) #6
  %278 = getelementptr inbounds i8, ptr %2, i64 216
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %278) #6
  %279 = getelementptr inbounds i8, ptr %2, i64 192
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %279) #6
  %280 = getelementptr inbounds i8, ptr %2, i64 168
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %280) #6
  %281 = getelementptr inbounds i8, ptr %2, i64 144
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %281) #6
  %282 = getelementptr inbounds i8, ptr %2, i64 120
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %282) #6
  %283 = getelementptr inbounds i8, ptr %2, i64 96
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %283) #6
  %284 = getelementptr inbounds i8, ptr %2, i64 72
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %284) #6
  %285 = getelementptr inbounds i8, ptr %2, i64 48
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %285) #6
  %286 = getelementptr inbounds i8, ptr %2, i64 24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %286) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 1224, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 51, ptr nonnull %1) #6
  call void @llvm.lifetime.end.p0(i64 204, ptr nonnull %0) #6
  resume { ptr, i32 } %.pn86.pn
}

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStgtIiSaIiEEbRKSt6vectorIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

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 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = distinct !{!14, !10, !15}
!15 = !{!"llvm.loop.peeled.count", i32 1}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10, !15}


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