; LLVM IR from abeaumont/competitive-programming :: kattis (toll)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::allocator" = type { i8 }

@st = external dso_local global [131072 x [25 x i32]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"class.std::vector", align 8
  %25 = alloca %"class.std::vector", align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"class.std::reverse_iterator", align 8
  %31 = alloca %"class.std::reverse_iterator", align 8
  %32 = alloca %"class.std::reverse_iterator", align 8
  %33 = alloca i32, align 4
  %34 = alloca %"class.std::vector", align 8
  %35 = alloca %"class.std::allocator", align 1
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca %"class.std::vector", align 8
  %40 = alloca i32, align 4
  %41 = alloca %"class.std::allocator", align 1
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %46 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %47 = getelementptr i8, ptr %46, i64 -24
  %48 = load i64, ptr %47, align 8
  %49 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %48
  %50 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %49, ptr noundef null)
  %51 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 1, ptr %9, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %52, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %56 = load i32, ptr %3, align 4, !tbaa !8
  %57 = sub nsw i32 %56, 1
  %58 = load i32, ptr %2, align 4, !tbaa !8
  %59 = sdiv i32 %57, %58
  store i32 %59, ptr %10, align 4, !tbaa !8
  br label %60

60:                                               ; preds = %64, %0
  %61 = load i32, ptr %9, align 4, !tbaa !8
  %62 = load i32, ptr %10, align 4, !tbaa !8
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %64, label %67

64:                                               ; preds = %60
  %65 = load i32, ptr %9, align 4, !tbaa !8
  %66 = mul nsw i32 %65, 2
  store i32 %66, ptr %9, align 4, !tbaa !8
  br label %60, !llvm.loop !11

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

68:                                               ; preds = %99, %67
  %69 = load i32, ptr %11, align 4, !tbaa !8
  %70 = load i32, ptr %4, align 4, !tbaa !8
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %102

73:                                               ; preds = %68
  %74 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %74, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %77 = load i32, ptr %6, align 4, !tbaa !8
  %78 = load i32, ptr %2, align 4, !tbaa !8
  %79 = sdiv i32 %77, %78
  store i32 %79, ptr %12, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %80 = load i32, ptr %6, align 4, !tbaa !8
  %81 = load i32, ptr %2, align 4, !tbaa !8
  %82 = srem i32 %80, %81
  store i32 %82, ptr %13, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %83 = load i32, ptr %7, align 4, !tbaa !8
  %84 = load i32, ptr %2, align 4, !tbaa !8
  %85 = srem i32 %83, %84
  store i32 %85, ptr %14, align 4, !tbaa !8
  %86 = load i32, ptr %8, align 4, !tbaa !8
  %87 = load i32, ptr %9, align 4, !tbaa !8
  %88 = load i32, ptr %12, align 4, !tbaa !8
  %89 = add nsw i32 %87, %88
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %90
  %92 = load i32, ptr %13, align 4, !tbaa !8
  %93 = load i32, ptr %2, align 4, !tbaa !8
  %94 = mul nsw i32 %92, %93
  %95 = load i32, ptr %14, align 4, !tbaa !8
  %96 = add nsw i32 %94, %95
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [25 x i32], ptr %91, i64 0, i64 %97
  store i32 %86, ptr %98, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %99

99:                                               ; preds = %73
  %100 = load i32, ptr %11, align 4, !tbaa !8
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %11, align 4, !tbaa !8
  br label %68, !llvm.loop !13

102:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %103 = load i32, ptr %9, align 4, !tbaa !8
  %104 = sub nsw i32 %103, 1
  store i32 %104, ptr %15, align 4, !tbaa !8
  br label %105

105:                                              ; preds = %214, %102
  %106 = load i32, ptr %15, align 4, !tbaa !8
  %107 = icmp sgt i32 %106, 0
  br i1 %107, label %109, label %108

108:                                              ; preds = %105
  store i32 7, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %217

109:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !8
  br label %110

110:                                              ; preds = %210, %109
  %111 = load i32, ptr %17, align 4, !tbaa !8
  %112 = load i32, ptr %2, align 4, !tbaa !8
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  store i32 10, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %213

115:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !8
  br label %116

116:                                              ; preds = %206, %115
  %117 = load i32, ptr %18, align 4, !tbaa !8
  %118 = load i32, ptr %2, align 4, !tbaa !8
  %119 = icmp slt i32 %117, %118
  br i1 %119, label %121, label %120

120:                                              ; preds = %116
  store i32 13, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %209

121:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 2000000000, ptr %19, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !8
  br label %122

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

126:                                              ; preds = %122
  store i32 16, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %189

127:                                              ; preds = %122
  %128 = load i32, ptr %15, align 4, !tbaa !8
  %129 = mul nsw i32 %128, 2
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %130
  %132 = load i32, ptr %17, align 4, !tbaa !8
  %133 = load i32, ptr %2, align 4, !tbaa !8
  %134 = mul nsw i32 %132, %133
  %135 = load i32, ptr %20, align 4, !tbaa !8
  %136 = add nsw i32 %134, %135
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [25 x i32], ptr %131, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !8
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %185

141:                                              ; preds = %127
  %142 = load i32, ptr %15, align 4, !tbaa !8
  %143 = mul nsw i32 %142, 2
  %144 = add nsw i32 %143, 1
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %145
  %147 = load i32, ptr %20, align 4, !tbaa !8
  %148 = load i32, ptr %2, align 4, !tbaa !8
  %149 = mul nsw i32 %147, %148
  %150 = load i32, ptr %18, align 4, !tbaa !8
  %151 = add nsw i32 %149, %150
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [25 x i32], ptr %146, i64 0, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !8
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %185

156:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %157 = load i32, ptr %15, align 4, !tbaa !8
  %158 = mul nsw i32 %157, 2
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %159
  %161 = load i32, ptr %17, align 4, !tbaa !8
  %162 = load i32, ptr %2, align 4, !tbaa !8
  %163 = mul nsw i32 %161, %162
  %164 = load i32, ptr %20, align 4, !tbaa !8
  %165 = add nsw i32 %163, %164
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [25 x i32], ptr %160, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !8
  %169 = load i32, ptr %15, align 4, !tbaa !8
  %170 = mul nsw i32 %169, 2
  %171 = add nsw i32 %170, 1
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %172
  %174 = load i32, ptr %20, align 4, !tbaa !8
  %175 = load i32, ptr %2, align 4, !tbaa !8
  %176 = mul nsw i32 %174, %175
  %177 = load i32, ptr %18, align 4, !tbaa !8
  %178 = add nsw i32 %176, %177
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [25 x i32], ptr %173, i64 0, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !8
  %182 = add nsw i32 %168, %181
  store i32 %182, ptr %21, align 4, !tbaa !8
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %184 = load i32, ptr %183, align 4, !tbaa !8
  store i32 %184, ptr %19, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %185

185:                                              ; preds = %156, %141, %127
  br label %186

186:                                              ; preds = %185
  %187 = load i32, ptr %20, align 4, !tbaa !8
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %20, align 4, !tbaa !8
  br label %122, !llvm.loop !14

189:                                              ; preds = %126
  %190 = load i32, ptr %19, align 4, !tbaa !8
  %191 = sitofp i32 %190 to double
  %192 = fcmp olt double %191, 2.000000e+09
  br i1 %192, label %193, label %205

193:                                              ; preds = %189
  %194 = load i32, ptr %19, align 4, !tbaa !8
  %195 = load i32, ptr %15, align 4, !tbaa !8
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %196
  %198 = load i32, ptr %17, align 4, !tbaa !8
  %199 = load i32, ptr %2, align 4, !tbaa !8
  %200 = mul nsw i32 %198, %199
  %201 = load i32, ptr %18, align 4, !tbaa !8
  %202 = add nsw i32 %200, %201
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [25 x i32], ptr %197, i64 0, i64 %203
  store i32 %194, ptr %204, align 4, !tbaa !8
  br label %205

205:                                              ; preds = %193, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %18, align 4, !tbaa !8
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %18, align 4, !tbaa !8
  br label %116, !llvm.loop !15

209:                                              ; preds = %120
  br label %210

210:                                              ; preds = %209
  %211 = load i32, ptr %17, align 4, !tbaa !8
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %17, align 4, !tbaa !8
  br label %110, !llvm.loop !16

213:                                              ; preds = %114
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr %15, align 4, !tbaa !8
  %216 = add nsw i32 %215, -1
  store i32 %216, ptr %15, align 4, !tbaa !8
  br label %105, !llvm.loop !17

217:                                              ; preds = %108
  br label %218

218:                                              ; preds = %496, %494, %217
  %219 = load i32, ptr %5, align 4, !tbaa !8
  %220 = add nsw i32 %219, -1
  store i32 %220, ptr %5, align 4, !tbaa !8
  %221 = icmp ne i32 %219, 0
  br i1 %221, label %222, label %504

222:                                              ; preds = %218
  %223 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %224 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %223, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %225 = load i32, ptr %6, align 4, !tbaa !8
  %226 = load i32, ptr %2, align 4, !tbaa !8
  %227 = srem i32 %225, %226
  store i32 %227, ptr %22, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %228 = load i32, ptr %7, align 4, !tbaa !8
  %229 = load i32, ptr %2, align 4, !tbaa !8
  %230 = srem i32 %228, %229
  store i32 %230, ptr %23, align 4, !tbaa !8
  %231 = load i32, ptr %2, align 4, !tbaa !8
  %232 = load i32, ptr %6, align 4, !tbaa !8
  %233 = sdiv i32 %232, %231
  store i32 %233, ptr %6, align 4, !tbaa !8
  %234 = load i32, ptr %2, align 4, !tbaa !8
  %235 = load i32, ptr %7, align 4, !tbaa !8
  %236 = sdiv i32 %235, %234
  store i32 %236, ptr %7, align 4, !tbaa !8
  %237 = load i32, ptr %9, align 4, !tbaa !8
  %238 = load i32, ptr %6, align 4, !tbaa !8
  %239 = add nsw i32 %238, %237
  store i32 %239, ptr %6, align 4, !tbaa !8
  %240 = load i32, ptr %9, align 4, !tbaa !8
  %241 = sub nsw i32 %240, 1
  %242 = load i32, ptr %7, align 4, !tbaa !8
  %243 = add nsw i32 %242, %241
  store i32 %243, ptr %7, align 4, !tbaa !8
  %244 = load i32, ptr %7, align 4, !tbaa !8
  %245 = load i32, ptr %6, align 4, !tbaa !8
  %246 = icmp slt i32 %244, %245
  br i1 %246, label %247, label %249

247:                                              ; preds = %222
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  store i32 19, ptr %16, align 4
  br label %494, !llvm.loop !18

249:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  br label %250

250:                                              ; preds = %278, %249
  %251 = load i32, ptr %6, align 4, !tbaa !8
  %252 = load i32, ptr %7, align 4, !tbaa !8
  %253 = icmp slt i32 %251, %252
  br i1 %253, label %254, label %283

254:                                              ; preds = %250
  %255 = load i32, ptr %6, align 4, !tbaa !8
  %256 = and i32 %255, 1
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %258, label %266

258:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %259 = load i32, ptr %6, align 4, !tbaa !8
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %6, align 4, !tbaa !8
  store i32 %259, ptr %26, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %261 unwind label %262

261:                                              ; preds = %258
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %266

262:                                              ; preds = %258
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %27, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %503

266:                                              ; preds = %261, %254
  %267 = load i32, ptr %7, align 4, !tbaa !8
  %268 = and i32 %267, 1
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %278, label %270

270:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %271 = load i32, ptr %7, align 4, !tbaa !8
  %272 = add nsw i32 %271, -1
  store i32 %272, ptr %7, align 4, !tbaa !8
  store i32 %271, ptr %29, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %273 unwind label %274

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

274:                                              ; preds = %270
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %27, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %503

278:                                              ; preds = %273, %266
  %279 = load i32, ptr %6, align 4, !tbaa !8
  %280 = sdiv i32 %279, 2
  store i32 %280, ptr %6, align 4, !tbaa !8
  %281 = load i32, ptr %7, align 4, !tbaa !8
  %282 = sdiv i32 %281, 2
  store i32 %282, ptr %7, align 4, !tbaa !8
  br label %250, !llvm.loop !19

283:                                              ; preds = %250
  %284 = load i32, ptr %6, align 4, !tbaa !8
  %285 = load i32, ptr %7, align 4, !tbaa !8
  %286 = icmp eq i32 %284, %285
  br i1 %286, label %287, label %293

287:                                              ; preds = %283
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %288 unwind label %289

288:                                              ; preds = %287
  br label %293

289:                                              ; preds = %287
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %27, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %28, align 4
  br label %503

293:                                              ; preds = %288, %283
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  call void @_ZNSt6vectorIiSaIiEE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %30, ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  br label %294

294:                                              ; preds = %307, %293
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  call void @_ZNSt6vectorIiSaIiEE4rendEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %31, ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  %295 = invoke noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEbRKSt16reverse_iteratorIT_ESB_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %296 unwind label %298

296:                                              ; preds = %294
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br i1 %295, label %302, label %297

297:                                              ; preds = %296
  store i32 23, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %317

298:                                              ; preds = %294
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %27, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %316

302:                                              ; preds = %296
  %303 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %304 unwind label %308

304:                                              ; preds = %302
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 4 dereferenceable(4) %303)
          to label %305 unwind label %308

305:                                              ; preds = %304
  br label %306

306:                                              ; preds = %305
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  invoke void @_ZNSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEppEi(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %32, ptr noundef nonnull align 8 dereferenceable(8) %30, i32 noundef 0)
          to label %307 unwind label %312

307:                                              ; preds = %306
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %294, !llvm.loop !20

308:                                              ; preds = %304, %302
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %27, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %28, align 4
  br label %316

312:                                              ; preds = %306
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %27, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %316

316:                                              ; preds = %312, %308, %298
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %503

317:                                              ; preds = %297
  %318 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  %319 = icmp eq i64 %318, 1
  br i1 %319, label %320, label %346

320:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %321 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef 0) #7
  %322 = load i32, ptr %321, align 4, !tbaa !8
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %323
  %325 = load i32, ptr %22, align 4, !tbaa !8
  %326 = load i32, ptr %2, align 4, !tbaa !8
  %327 = mul nsw i32 %325, %326
  %328 = load i32, ptr %23, align 4, !tbaa !8
  %329 = add nsw i32 %327, %328
  %330 = sext i32 %329 to i64
  %331 = getelementptr inbounds [25 x i32], ptr %324, i64 0, i64 %330
  %332 = load i32, ptr %331, align 4, !tbaa !8
  store i32 %332, ptr %33, align 4, !tbaa !8
  %333 = load i32, ptr %33, align 4, !tbaa !8
  %334 = icmp ne i32 %333, 0
  br i1 %334, label %336, label %335

335:                                              ; preds = %320
  store i32 -1, ptr %33, align 4, !tbaa !8
  br label %336

336:                                              ; preds = %335, %320
  %337 = load i32, ptr %33, align 4, !tbaa !8
  %338 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %337)
          to label %339 unwind label %342

339:                                              ; preds = %336
  %340 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %338, i8 noundef signext 10)
          to label %341 unwind label %342

341:                                              ; preds = %339
  store i32 19, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %493

342:                                              ; preds = %339, %336
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %27, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %503

346:                                              ; preds = %317
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #7
  %347 = load i32, ptr %2, align 4, !tbaa !8
  %348 = sext i32 %347 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %348, ptr noundef nonnull align 1 dereferenceable(1) %35)
          to label %349 unwind label %355

349:                                              ; preds = %346
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 0, ptr %36, align 4, !tbaa !8
  br label %350

350:                                              ; preds = %384, %349
  %351 = load i32, ptr %36, align 4, !tbaa !8
  %352 = load i32, ptr %2, align 4, !tbaa !8
  %353 = icmp slt i32 %351, %352
  br i1 %353, label %359, label %354

354:                                              ; preds = %350
  store i32 26, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %387

355:                                              ; preds = %346
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %27, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %28, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %35) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #7
  br label %502

359:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  %360 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef 0) #7
  %361 = load i32, ptr %360, align 4, !tbaa !8
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %362
  %364 = load i32, ptr %22, align 4, !tbaa !8
  %365 = load i32, ptr %2, align 4, !tbaa !8
  %366 = mul nsw i32 %364, %365
  %367 = load i32, ptr %36, align 4, !tbaa !8
  %368 = add nsw i32 %366, %367
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [25 x i32], ptr %363, i64 0, i64 %369
  %371 = load i32, ptr %370, align 4, !tbaa !8
  store i32 %371, ptr %37, align 4, !tbaa !8
  %372 = load i32, ptr %37, align 4, !tbaa !8
  %373 = icmp ne i32 %372, 0
  br i1 %373, label %374, label %379

374:                                              ; preds = %359
  %375 = load i32, ptr %37, align 4, !tbaa !8
  %376 = load i32, ptr %36, align 4, !tbaa !8
  %377 = sext i32 %376 to i64
  %378 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %377) #7
  store i32 %375, ptr %378, align 4, !tbaa !8
  br label %383

379:                                              ; preds = %359
  %380 = load i32, ptr %36, align 4, !tbaa !8
  %381 = sext i32 %380 to i64
  %382 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %381) #7
  store i32 -1, ptr %382, align 4, !tbaa !8
  br label %383

383:                                              ; preds = %379, %374
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  br label %384

384:                                              ; preds = %383
  %385 = load i32, ptr %36, align 4, !tbaa !8
  %386 = add nsw i32 %385, 1
  store i32 %386, ptr %36, align 4, !tbaa !8
  br label %350, !llvm.loop !21

387:                                              ; preds = %354
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  store i32 1, ptr %38, align 4, !tbaa !8
  br label %388

388:                                              ; preds = %480, %387
  %389 = load i32, ptr %38, align 4, !tbaa !8
  %390 = sext i32 %389 to i64
  %391 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  %392 = icmp ult i64 %390, %391
  br i1 %392, label %394, label %393

393:                                              ; preds = %388
  store i32 29, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br label %484

394:                                              ; preds = %388
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #7
  %395 = load i32, ptr %2, align 4, !tbaa !8
  %396 = sext i32 %395 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  store i32 -1, ptr %40, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %396, ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 1 dereferenceable(1) %41)
          to label %397 unwind label %403

397:                                              ; preds = %394
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  store i32 0, ptr %42, align 4, !tbaa !8
  br label %398

398:                                              ; preds = %476, %397
  %399 = load i32, ptr %42, align 4, !tbaa !8
  %400 = load i32, ptr %2, align 4, !tbaa !8
  %401 = icmp slt i32 %399, %400
  br i1 %401, label %407, label %402

402:                                              ; preds = %398
  store i32 32, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  br label %479

403:                                              ; preds = %394
  %404 = landingpad { ptr, i32 }
          cleanup
  %405 = extractvalue { ptr, i32 } %404, 0
  store ptr %405, ptr %27, align 8
  %406 = extractvalue { ptr, i32 } %404, 1
  store i32 %406, ptr %28, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %41) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %483

407:                                              ; preds = %398
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  store i32 2000000000, ptr %43, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  store i32 0, ptr %44, align 4, !tbaa !8
  br label %408

408:                                              ; preds = %463, %407
  %409 = load i32, ptr %44, align 4, !tbaa !8
  %410 = load i32, ptr %2, align 4, !tbaa !8
  %411 = icmp slt i32 %409, %410
  br i1 %411, label %413, label %412

412:                                              ; preds = %408
  store i32 35, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %466

413:                                              ; preds = %408
  %414 = load i32, ptr %44, align 4, !tbaa !8
  %415 = sext i32 %414 to i64
  %416 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %415) #7
  %417 = load i32, ptr %416, align 4, !tbaa !8
  %418 = icmp sge i32 %417, 0
  br i1 %418, label %419, label %462

419:                                              ; preds = %413
  %420 = load i32, ptr %38, align 4, !tbaa !8
  %421 = sext i32 %420 to i64
  %422 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %421) #7
  %423 = load i32, ptr %422, align 4, !tbaa !8
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %424
  %426 = load i32, ptr %44, align 4, !tbaa !8
  %427 = load i32, ptr %2, align 4, !tbaa !8
  %428 = mul nsw i32 %426, %427
  %429 = load i32, ptr %42, align 4, !tbaa !8
  %430 = add nsw i32 %428, %429
  %431 = sext i32 %430 to i64
  %432 = getelementptr inbounds [25 x i32], ptr %425, i64 0, i64 %431
  %433 = load i32, ptr %432, align 4, !tbaa !8
  %434 = icmp ne i32 %433, 0
  br i1 %434, label %435, label %462

435:                                              ; preds = %419
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #7
  %436 = load i32, ptr %44, align 4, !tbaa !8
  %437 = sext i32 %436 to i64
  %438 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %437) #7
  %439 = load i32, ptr %438, align 4, !tbaa !8
  %440 = load i32, ptr %38, align 4, !tbaa !8
  %441 = sext i32 %440 to i64
  %442 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %441) #7
  %443 = load i32, ptr %442, align 4, !tbaa !8
  %444 = sext i32 %443 to i64
  %445 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %444
  %446 = load i32, ptr %44, align 4, !tbaa !8
  %447 = load i32, ptr %2, align 4, !tbaa !8
  %448 = mul nsw i32 %446, %447
  %449 = load i32, ptr %42, align 4, !tbaa !8
  %450 = add nsw i32 %448, %449
  %451 = sext i32 %450 to i64
  %452 = getelementptr inbounds [25 x i32], ptr %445, i64 0, i64 %451
  %453 = load i32, ptr %452, align 4, !tbaa !8
  %454 = add nsw i32 %439, %453
  store i32 %454, ptr %45, align 4, !tbaa !8
  %455 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %45)
          to label %456 unwind label %458

456:                                              ; preds = %435
  %457 = load i32, ptr %455, align 4, !tbaa !8
  store i32 %457, ptr %43, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  br label %462

458:                                              ; preds = %435
  %459 = landingpad { ptr, i32 }
          cleanup
  %460 = extractvalue { ptr, i32 } %459, 0
  store ptr %460, ptr %27, align 8
  %461 = extractvalue { ptr, i32 } %459, 1
  store i32 %461, ptr %28, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  br label %483

462:                                              ; preds = %456, %419, %413
  br label %463

463:                                              ; preds = %462
  %464 = load i32, ptr %44, align 4, !tbaa !8
  %465 = add nsw i32 %464, 1
  store i32 %465, ptr %44, align 4, !tbaa !8
  br label %408, !llvm.loop !22

466:                                              ; preds = %412
  %467 = load i32, ptr %43, align 4, !tbaa !8
  %468 = sitofp i32 %467 to double
  %469 = fcmp olt double %468, 2.000000e+09
  br i1 %469, label %470, label %475

470:                                              ; preds = %466
  %471 = load i32, ptr %43, align 4, !tbaa !8
  %472 = load i32, ptr %42, align 4, !tbaa !8
  %473 = sext i32 %472 to i64
  %474 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %473) #7
  store i32 %471, ptr %474, align 4, !tbaa !8
  br label %475

475:                                              ; preds = %470, %466
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  br label %476

476:                                              ; preds = %475
  %477 = load i32, ptr %42, align 4, !tbaa !8
  %478 = add nsw i32 %477, 1
  store i32 %478, ptr %42, align 4, !tbaa !8
  br label %398, !llvm.loop !23

479:                                              ; preds = %402
  call void @_ZSt4swapIiSaIiEEvRSt6vectorIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #7
  br label %480

480:                                              ; preds = %479
  %481 = load i32, ptr %38, align 4, !tbaa !8
  %482 = add nsw i32 %481, 1
  store i32 %482, ptr %38, align 4, !tbaa !8
  br label %388, !llvm.loop !24

483:                                              ; preds = %458, %403
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br label %501

484:                                              ; preds = %393
  %485 = load i32, ptr %23, align 4, !tbaa !8
  %486 = sext i32 %485 to i64
  %487 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %34, i64 noundef %486) #7
  %488 = load i32, ptr %487, align 4, !tbaa !8
  %489 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %488)
          to label %490 unwind label %497

490:                                              ; preds = %484
  %491 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %489, i8 noundef signext 10)
          to label %492 unwind label %497

492:                                              ; preds = %490
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #7
  store i32 0, ptr %16, align 4
  br label %493

493:                                              ; preds = %492, %341
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  br label %494

494:                                              ; preds = %493, %247
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  %495 = load i32, ptr %16, align 4
  switch i32 %495, label %511 [
    i32 0, label %496
    i32 19, label %218
  ]

496:                                              ; preds = %494
  br label %218, !llvm.loop !18

497:                                              ; preds = %490, %484
  %498 = landingpad { ptr, i32 }
          cleanup
  %499 = extractvalue { ptr, i32 } %498, 0
  store ptr %499, ptr %27, align 8
  %500 = extractvalue { ptr, i32 } %498, 1
  store i32 %500, ptr %28, align 4
  br label %501

501:                                              ; preds = %497, %483
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  br label %502

502:                                              ; preds = %501, %355
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #7
  br label %503

503:                                              ; preds = %502, %342, %316, %289, %274, %262
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %506

504:                                              ; preds = %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %505 = load i32, ptr %1, align 4
  ret i32 %505

506:                                              ; preds = %503
  %507 = load ptr, ptr %27, align 8
  %508 = load i32, ptr %28, align 4
  %509 = insertvalue { ptr, i32 } poison, ptr %507, 0
  %510 = insertvalue { ptr, i32 } %509, i32 %508, 1
  resume { ptr, i32 } %510

511:                                              ; preds = %494
  unreachable
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE4rendEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEppEi(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #5

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

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

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

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

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

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

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

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

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::allocator" = type { i8 }

@st = external dso_local local_unnamed_addr global [131072 x [25 x i32]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::reverse_iterator", align 8
  %15 = alloca %"class.std::reverse_iterator", align 8
  %16 = alloca %"class.std::reverse_iterator", align 8
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca %"class.std::allocator", align 1
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::allocator", align 1
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %25 = getelementptr i8, ptr %24, i64 -24
  %26 = load i64, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %26
  %28 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %27, ptr noundef null)
  %29 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %34 = load i32, ptr %2, align 4, !tbaa !8
  %35 = add nsw i32 %34, -1
  %36 = load i32, ptr %1, align 4, !tbaa !8
  %37 = sdiv i32 %35, %36
  br label %38

38:                                               ; preds = %38, %0
  %.067 = phi i32 [ 1, %0 ], [ %40, %38 ]
  %39 = icmp slt i32 %.067, %37
  %40 = shl nsw i32 %.067, 1
  br i1 %39, label %38, label %.preheader102, !llvm.loop !11

.preheader102:                                    ; preds = %38
  %41 = load i32, ptr %3, align 4, !tbaa !8
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.preheader102
  %43 = phi i32 [ %36, %.preheader102 ], [ %52, %.lr.ph ]
  %44 = add i32 %.067, -1
  %45 = icmp sgt i32 %.067, 1
  %46 = icmp sgt i32 %43, 0
  %or.cond = and i1 %45, %46
  br i1 %or.cond, label %.preheader101.preheader, label %.preheader99

.preheader101.preheader:                          ; preds = %._crit_edge
  %47 = zext nneg i32 %44 to i64
  br label %.preheader101

.lr.ph:                                           ; preds = %.preheader102, %.lr.ph
  %.069109 = phi i32 [ %64, %.lr.ph ], [ 0, %.preheader102 ]
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %51 = load i32, ptr %5, align 4, !tbaa !8
  %52 = load i32, ptr %1, align 4, !tbaa !8
  %53 = sdiv i32 %51, %52
  %54 = srem i32 %51, %52
  %55 = load i32, ptr %6, align 4, !tbaa !8
  %56 = srem i32 %55, %52
  %57 = load i32, ptr %7, align 4, !tbaa !8
  %58 = add nsw i32 %53, %.067
  %59 = sext i32 %58 to i64
  %60 = mul nsw i32 %54, %52
  %61 = add nsw i32 %56, %60
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %59, i64 %62
  store i32 %57, ptr %63, align 4, !tbaa !8
  %64 = add nuw nsw i32 %.069109, 1
  %65 = load i32, ptr %3, align 4, !tbaa !8
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %.lr.ph, label %._crit_edge, !llvm.loop !13

.preheader101:                                    ; preds = %.preheader101.preheader, %._crit_edge119
  %67 = phi i32 [ %43, %.preheader101.preheader ], [ %79, %._crit_edge119 ]
  %68 = phi i32 [ %43, %.preheader101.preheader ], [ %80, %._crit_edge119 ]
  %69 = phi i32 [ %43, %.preheader101.preheader ], [ %81, %._crit_edge119 ]
  %indvars.iv = phi i64 [ %47, %.preheader101.preheader ], [ %indvars.iv.next, %._crit_edge119 ]
  %70 = icmp sgt i32 %69, 0
  br i1 %70, label %.preheader100.lr.ph, label %._crit_edge119

.preheader100.lr.ph:                              ; preds = %.preheader101
  %71 = shl nuw nsw i64 %indvars.iv, 1
  %72 = or disjoint i64 %71, 1
  %73 = icmp sgt i32 %68, 0
  br i1 %73, label %.preheader100, label %._crit_edge119

.preheader99:                                     ; preds = %._crit_edge119, %._crit_edge
  %74 = load i32, ptr %4, align 4, !tbaa !8
  %75 = add nsw i32 %74, -1
  store i32 %75, ptr %4, align 4, !tbaa !8
  %.not140 = icmp eq i32 %74, 0
  br i1 %.not140, label %._crit_edge142, label %.lr.ph141

.preheader100:                                    ; preds = %.preheader100.lr.ph, %._crit_edge116
  %76 = phi i32 [ %83, %._crit_edge116 ], [ %67, %.preheader100.lr.ph ]
  %77 = phi i32 [ %83, %._crit_edge116 ], [ %68, %.preheader100.lr.ph ]
  %.078117 = phi i32 [ %84, %._crit_edge116 ], [ 0, %.preheader100.lr.ph ]
  %78 = icmp sgt i32 %77, 0
  br i1 %78, label %.lr.ph115.split, label %._crit_edge116

._crit_edge119:                                   ; preds = %._crit_edge116, %.preheader100.lr.ph, %.preheader101
  %79 = phi i32 [ %67, %.preheader101 ], [ %67, %.preheader100.lr.ph ], [ %83, %._crit_edge116 ]
  %80 = phi i32 [ %68, %.preheader101 ], [ %68, %.preheader100.lr.ph ], [ %83, %._crit_edge116 ]
  %81 = phi i32 [ %69, %.preheader101 ], [ %68, %.preheader100.lr.ph ], [ %83, %._crit_edge116 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %82 = icmp sgt i64 %indvars.iv, 1
  br i1 %82, label %.preheader101, label %.preheader99, !llvm.loop !14

._crit_edge116:                                   ; preds = %._crit_edge113.thread, %.preheader100
  %83 = phi i32 [ %76, %.preheader100 ], [ %122, %._crit_edge113.thread ]
  %84 = add nuw nsw i32 %.078117, 1
  %85 = icmp slt i32 %84, %83
  br i1 %85, label %.preheader100, label %._crit_edge119, !llvm.loop !16

.lr.ph115.split:                                  ; preds = %.preheader100, %._crit_edge113.thread
  %86 = phi i32 [ %122, %._crit_edge113.thread ], [ %76, %.preheader100 ]
  %87 = phi i32 [ %121, %._crit_edge113.thread ], [ %77, %.preheader100 ]
  %.077114 = phi i32 [ %123, %._crit_edge113.thread ], [ 0, %.preheader100 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 2000000000, ptr %8, align 4, !tbaa !8
  %88 = icmp sgt i32 %87, 0
  br i1 %88, label %.lr.ph112, label %._crit_edge113.thread

._crit_edge113:                                   ; preds = %109
  %89 = icmp slt i32 %112, 2000000000
  br i1 %89, label %116, label %._crit_edge113.thread

.lr.ph112:                                        ; preds = %.lr.ph115.split, %109
  %90 = phi i32 [ %110, %109 ], [ %86, %.lr.ph115.split ]
  %91 = phi i32 [ %111, %109 ], [ %87, %.lr.ph115.split ]
  %92 = phi i32 [ %112, %109 ], [ 2000000000, %.lr.ph115.split ]
  %93 = phi i32 [ %113, %109 ], [ %87, %.lr.ph115.split ]
  %.076110 = phi i32 [ %114, %109 ], [ 0, %.lr.ph115.split ]
  %94 = mul nsw i32 %93, %.078117
  %95 = add nsw i32 %94, %.076110
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %71, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !8
  %.not97 = icmp eq i32 %98, 0
  br i1 %.not97, label %109, label %99

99:                                               ; preds = %.lr.ph112
  %100 = mul nsw i32 %93, %.076110
  %101 = add nsw i32 %100, %.077114
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %72, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !8
  %.not98 = icmp eq i32 %104, 0
  br i1 %.not98, label %109, label %105

105:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %106 = add nsw i32 %104, %98
  store i32 %106, ptr %9, align 4, !tbaa !8
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %108 = load i32, ptr %107, align 4, !tbaa !8
  store i32 %108, ptr %8, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  %.pre = load i32, ptr %1, align 4, !tbaa !8
  br label %109

109:                                              ; preds = %.lr.ph112, %99, %105
  %110 = phi i32 [ %90, %.lr.ph112 ], [ %90, %99 ], [ %.pre, %105 ]
  %111 = phi i32 [ %91, %.lr.ph112 ], [ %91, %99 ], [ %.pre, %105 ]
  %112 = phi i32 [ %92, %.lr.ph112 ], [ %92, %99 ], [ %108, %105 ]
  %113 = phi i32 [ %93, %.lr.ph112 ], [ %93, %99 ], [ %.pre, %105 ]
  %114 = add nuw nsw i32 %.076110, 1
  %115 = icmp slt i32 %114, %113
  br i1 %115, label %.lr.ph112, label %._crit_edge113, !llvm.loop !17

116:                                              ; preds = %._crit_edge113
  %117 = mul nsw i32 %113, %.078117
  %118 = add nsw i32 %117, %.077114
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %indvars.iv, i64 %119
  store i32 %112, ptr %120, align 4, !tbaa !8
  br label %._crit_edge113.thread

._crit_edge113.thread:                            ; preds = %.lr.ph115.split, %116, %._crit_edge113
  %121 = phi i32 [ %111, %116 ], [ %111, %._crit_edge113 ], [ %87, %.lr.ph115.split ]
  %122 = phi i32 [ %110, %116 ], [ %110, %._crit_edge113 ], [ %86, %.lr.ph115.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  %123 = add nuw nsw i32 %.077114, 1
  %124 = icmp slt i32 %123, %121
  br i1 %124, label %.lr.ph115.split, label %._crit_edge116, !llvm.loop !18

.lr.ph141:                                        ; preds = %.preheader99, %282
  %125 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %125, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %127 = load i32, ptr %5, align 4, !tbaa !8
  %128 = load i32, ptr %1, align 4, !tbaa !8
  %129 = srem i32 %127, %128
  %130 = load i32, ptr %6, align 4, !tbaa !8
  %131 = srem i32 %130, %128
  %132 = sdiv i32 %127, %128
  %133 = sdiv i32 %130, %128
  %134 = add nsw i32 %132, %.067
  store i32 %134, ptr %5, align 4, !tbaa !8
  %135 = add nsw i32 %133, %44
  store i32 %135, ptr %6, align 4, !tbaa !8
  %136 = icmp slt i32 %135, %134
  br i1 %136, label %137, label %139

137:                                              ; preds = %.lr.ph141
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  br label %282, !llvm.loop !19

139:                                              ; preds = %.lr.ph141
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %140 = load i32, ptr %5, align 4, !tbaa !8
  %141 = load i32, ptr %6, align 4, !tbaa !8
  %142 = icmp slt i32 %140, %141
  br i1 %142, label %.lr.ph122, label %._crit_edge123

.lr.ph122:                                        ; preds = %139, %159
  %143 = phi i32 [ %163, %159 ], [ %141, %139 ]
  %144 = phi i32 [ %162, %159 ], [ %140, %139 ]
  %145 = and i32 %144, 1
  %.not93 = icmp eq i32 %145, 0
  br i1 %.not93, label %151, label %146

146:                                              ; preds = %.lr.ph122
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %147 = add nsw i32 %144, 1
  store i32 %147, ptr %5, align 4, !tbaa !8
  store i32 %144, ptr %12, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %148 unwind label %149

148:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  %.pre162 = load i32, ptr %6, align 4, !tbaa !8
  br label %151

149:                                              ; preds = %146
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %289

151:                                              ; preds = %148, %.lr.ph122
  %152 = phi i32 [ %.pre162, %148 ], [ %143, %.lr.ph122 ]
  %153 = and i32 %152, 1
  %.not94 = icmp eq i32 %153, 0
  br i1 %.not94, label %154, label %159

154:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %155 = add nsw i32 %152, -1
  store i32 %155, ptr %6, align 4, !tbaa !8
  store i32 %152, ptr %13, align 4, !tbaa !8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %156 unwind label %157

156:                                              ; preds = %154
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  %.pre163 = load i32, ptr %6, align 4, !tbaa !8
  br label %159

157:                                              ; preds = %154
  %158 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  br label %289

159:                                              ; preds = %156, %151
  %160 = phi i32 [ %.pre163, %156 ], [ %152, %151 ]
  %161 = load i32, ptr %5, align 4, !tbaa !8
  %162 = sdiv i32 %161, 2
  store i32 %162, ptr %5, align 4, !tbaa !8
  %163 = sdiv i32 %160, 2
  store i32 %163, ptr %6, align 4, !tbaa !8
  %164 = icmp slt i32 %162, %163
  br i1 %164, label %.lr.ph122, label %._crit_edge123, !llvm.loop !20

._crit_edge123:                                   ; preds = %159, %139
  %.lcssa105 = phi i32 [ %140, %139 ], [ %162, %159 ]
  %.lcssa = phi i32 [ %141, %139 ], [ %163, %159 ]
  %165 = icmp eq i32 %.lcssa105, %.lcssa
  br i1 %165, label %166, label %169

166:                                              ; preds = %._crit_edge123
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %169 unwind label %167

167:                                              ; preds = %166
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %289

169:                                              ; preds = %166, %._crit_edge123
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @_ZNSt6vectorIiSaIiEE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %170

170:                                              ; preds = %180, %169
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  call void @_ZNSt6vectorIiSaIiEE4rendEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %171 = invoke noundef zeroext i1 @_ZStneIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEbRKSt16reverse_iteratorIT_ESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %172 unwind label %176

172:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br i1 %171, label %178, label %173

173:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  %174 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %175 = icmp eq i64 %174, 1
  br i1 %175, label %184, label %199

176:                                              ; preds = %170
  %177 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br label %183

178:                                              ; preds = %172
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(4) %179)
          to label %180 unwind label %181

180:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  call void @_ZNSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEppEi(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %16, ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  br label %170, !llvm.loop !21

181:                                              ; preds = %178
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %183

183:                                              ; preds = %181, %176
  %.pn91 = phi { ptr, i32 } [ %182, %181 ], [ %177, %176 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %289

184:                                              ; preds = %173
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #7
  %186 = load i32, ptr %185, align 4, !tbaa !8
  %187 = sext i32 %186 to i64
  %188 = load i32, ptr %1, align 4, !tbaa !8
  %189 = mul nsw i32 %188, %129
  %190 = add nsw i32 %189, %131
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %187, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !8
  %.not90 = icmp eq i32 %193, 0
  %spec.store.select = select i1 %.not90, i32 -1, i32 %193
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %spec.store.select)
          to label %195 unwind label %197

195:                                              ; preds = %184
  %196 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %194, i8 noundef signext 10)
          to label %281 unwind label %197

197:                                              ; preds = %195, %184
  %198 = landingpad { ptr, i32 }
          cleanup
  br label %289

199:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #7
  %200 = load i32, ptr %1, align 4, !tbaa !8
  %201 = sext i32 %200 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %201, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %202 unwind label %207

202:                                              ; preds = %199
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #7
  %203 = load i32, ptr %1, align 4, !tbaa !8
  %204 = icmp sgt i32 %203, 0
  br i1 %204, label %.lr.ph128, label %.preheader

.preheader:                                       ; preds = %.lr.ph128, %202
  %205 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %206 = icmp ugt i64 %205, 1
  br i1 %206, label %.lr.ph138, label %._crit_edge139

207:                                              ; preds = %199
  %208 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #7
  br label %288

.lr.ph128:                                        ; preds = %202, %.lr.ph128
  %indvars.iv150 = phi i64 [ %indvars.iv.next151, %.lr.ph128 ], [ 0, %202 ]
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef 0) #7
  %210 = load i32, ptr %209, align 4, !tbaa !8
  %211 = sext i32 %210 to i64
  %212 = load i32, ptr %1, align 4, !tbaa !8
  %213 = mul nsw i32 %212, %129
  %214 = trunc nuw nsw i64 %indvars.iv150 to i32
  %215 = add nsw i32 %213, %214
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %211, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !8
  %.not89 = icmp eq i32 %218, 0
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv150) #7
  %. = select i1 %.not89, i32 -1, i32 %218
  store i32 %., ptr %219, align 4, !tbaa !8
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %220 = load i32, ptr %1, align 4, !tbaa !8
  %221 = sext i32 %220 to i64
  %222 = icmp slt i64 %indvars.iv.next151, %221
  br i1 %222, label %.lr.ph128, label %.preheader, !llvm.loop !22

._crit_edge139:                                   ; preds = %._crit_edge136, %.preheader
  %223 = sext i32 %131 to i64
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %223) #7
  %225 = load i32, ptr %224, align 4, !tbaa !8
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %225)
          to label %278 unwind label %285

.lr.ph138:                                        ; preds = %.preheader, %._crit_edge136
  %indvars.iv159 = phi i64 [ %indvars.iv.next160, %._crit_edge136 ], [ 1, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #7
  %227 = load i32, ptr %1, align 4, !tbaa !8
  %228 = sext i32 %227 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #7
  store i32 -1, ptr %20, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %21) #7
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKiRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %228, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %229 unwind label %234

229:                                              ; preds = %.lr.ph138
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  %230 = load i32, ptr %1, align 4, !tbaa !8
  %231 = icmp sgt i32 %230, 0
  br i1 %231, label %.lr.ph135, label %._crit_edge136

._crit_edge136:                                   ; preds = %._crit_edge132.thread, %229
  call void @_ZSt4swapIiSaIiEEvRSt6vectorIT_T0_ES5_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %232 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  %233 = icmp ugt i64 %232, %indvars.iv.next160
  br i1 %233, label %.lr.ph138, label %._crit_edge139, !llvm.loop !23

234:                                              ; preds = %.lr.ph138
  %235 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  br label %287

.lr.ph135:                                        ; preds = %229, %._crit_edge132.thread
  %236 = phi i32 [ %275, %._crit_edge132.thread ], [ %230, %229 ]
  %indvars.iv156 = phi i64 [ %indvars.iv.next157, %._crit_edge132.thread ], [ 0, %229 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #7
  store i32 2000000000, ptr %22, align 4, !tbaa !8
  %237 = icmp sgt i32 %236, 0
  br i1 %237, label %.lr.ph131.preheader, label %._crit_edge132.thread

.lr.ph131.preheader:                              ; preds = %.lr.ph135
  %238 = trunc nuw nsw i64 %indvars.iv156 to i32
  br label %.lr.ph131

._crit_edge132:                                   ; preds = %269
  %.pre164 = load i32, ptr %22, align 4, !tbaa !8
  %239 = icmp slt i32 %.pre164, 2000000000
  br i1 %239, label %273, label %._crit_edge132.thread

.lr.ph131:                                        ; preds = %.lr.ph131.preheader, %269
  %indvars.iv153 = phi i64 [ 0, %.lr.ph131.preheader ], [ %indvars.iv.next154, %269 ]
  %240 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv153) #7
  %241 = load i32, ptr %240, align 4, !tbaa !8
  %242 = icmp sgt i32 %241, -1
  br i1 %242, label %243, label %269

243:                                              ; preds = %.lr.ph131
  %244 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv159) #7
  %245 = load i32, ptr %244, align 4, !tbaa !8
  %246 = sext i32 %245 to i64
  %247 = load i32, ptr %1, align 4, !tbaa !8
  %248 = trunc nuw nsw i64 %indvars.iv153 to i32
  %249 = mul nsw i32 %247, %248
  %250 = add nsw i32 %249, %238
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %246, i64 %251
  %253 = load i32, ptr %252, align 4, !tbaa !8
  %.not88 = icmp eq i32 %253, 0
  br i1 %.not88, label %269, label %254

254:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #7
  %255 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv153) #7
  %256 = load i32, ptr %255, align 4, !tbaa !8
  %257 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv159) #7
  %258 = load i32, ptr %257, align 4, !tbaa !8
  %259 = sext i32 %258 to i64
  %260 = load i32, ptr %1, align 4, !tbaa !8
  %261 = mul nsw i32 %260, %248
  %262 = add nsw i32 %261, %238
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [131072 x [25 x i32]], ptr @st, i64 0, i64 %259, i64 %263
  %265 = load i32, ptr %264, align 4, !tbaa !8
  %266 = add nsw i32 %265, %256
  store i32 %266, ptr %23, align 4, !tbaa !8
  %267 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %268 = load i32, ptr %267, align 4, !tbaa !8
  store i32 %268, ptr %22, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  br label %269

269:                                              ; preds = %.lr.ph131, %243, %254
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %270 = load i32, ptr %1, align 4, !tbaa !8
  %271 = sext i32 %270 to i64
  %272 = icmp slt i64 %indvars.iv.next154, %271
  br i1 %272, label %.lr.ph131, label %._crit_edge132, !llvm.loop !24

273:                                              ; preds = %._crit_edge132
  %274 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv156) #7
  store i32 %.pre164, ptr %274, align 4, !tbaa !8
  %.pre165 = load i32, ptr %1, align 4, !tbaa !8
  br label %._crit_edge132.thread

._crit_edge132.thread:                            ; preds = %.lr.ph135, %273, %._crit_edge132
  %275 = phi i32 [ %.pre165, %273 ], [ %270, %._crit_edge132 ], [ %236, %.lr.ph135 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %276 = sext i32 %275 to i64
  %277 = icmp slt i64 %indvars.iv.next157, %276
  br i1 %277, label %.lr.ph135, label %._crit_edge136, !llvm.loop !25

278:                                              ; preds = %._crit_edge139
  %279 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %226, i8 noundef signext 10)
          to label %280 unwind label %285

280:                                              ; preds = %278
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #7
  br label %281

281:                                              ; preds = %195, %280
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  br label %282

282:                                              ; preds = %281, %137
  %283 = load i32, ptr %4, align 4, !tbaa !8
  %284 = add nsw i32 %283, -1
  store i32 %284, ptr %4, align 4, !tbaa !8
  %.not = icmp eq i32 %283, 0
  br i1 %.not, label %._crit_edge142, label %.lr.ph141

285:                                              ; preds = %278, %._crit_edge139
  %286 = landingpad { ptr, i32 }
          cleanup
  br label %287

287:                                              ; preds = %285, %234
  %.pn = phi { ptr, i32 } [ %235, %234 ], [ %286, %285 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  br label %288

288:                                              ; preds = %287, %207
  %.pn.pn = phi { ptr, i32 } [ %.pn, %287 ], [ %208, %207 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #7
  br label %289

289:                                              ; preds = %288, %197, %183, %167, %157, %149
  %.pn95 = phi { ptr, i32 } [ %158, %157 ], [ %150, %149 ], [ %.pn91, %183 ], [ %198, %197 ], [ %.pn.pn, %288 ], [ %168, %167 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn95

._crit_edge142:                                   ; preds = %282, %.preheader99
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE4rendEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEppEi(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(8), i32 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 #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #5

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

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

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

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

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

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

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

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

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


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