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

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

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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

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

40:                                               ; preds = %333, %0
  %41 = load i32, ptr %3, align 4, !tbaa !8
  %42 = load i32, ptr %2, align 4, !tbaa !8
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  br label %337

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  %46 = 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)
  %47 = load i32, ptr %5, align 4, !tbaa !8
  %48 = zext i32 %47 to i64
  %49 = call ptr @llvm.stacksave.p0()
  store ptr %49, ptr %6, align 8
  %50 = alloca i32, i64 %48, align 16
  store i64 %48, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 0, ptr %8, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 0, ptr %9, align 4, !tbaa !8
  br label %51

51:                                               ; preds = %67, %45
  %52 = load i32, ptr %9, align 4, !tbaa !8
  %53 = load i32, ptr %5, align 4, !tbaa !8
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %70

56:                                               ; preds = %51
  %57 = load i32, ptr %9, align 4, !tbaa !8
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i32, ptr %50, i64 %58
  %60 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %59)
  %61 = load i32, ptr %9, align 4, !tbaa !8
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i32, ptr %50, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !8
  %65 = load i32, ptr %8, align 4, !tbaa !8
  %66 = add nsw i32 %65, %64
  store i32 %66, ptr %8, align 4, !tbaa !8
  br label %67

67:                                               ; preds = %56
  %68 = load i32, ptr %9, align 4, !tbaa !8
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %9, align 4, !tbaa !8
  br label %51, !llvm.loop !11

70:                                               ; preds = %55
  %71 = load i32, ptr %8, align 4, !tbaa !8
  %72 = load i32, ptr %5, align 4, !tbaa !8
  %73 = srem i32 %71, %72
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %78

75:                                               ; preds = %70
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %76, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 4, ptr %4, align 4
  br label %329

78:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %79 = load i32, ptr %8, align 4, !tbaa !8
  %80 = load i32, ptr %5, align 4, !tbaa !8
  %81 = sdiv i32 %79, %80
  store i32 %81, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #9
  call void @_ZNSt6vectorI2opSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store i32 1, ptr %13, align 4, !tbaa !8
  br label %82

82:                                               ; preds = %162, %78
  %83 = load i32, ptr %13, align 4, !tbaa !8
  %84 = load i32, ptr %5, align 4, !tbaa !8
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %165

87:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  %88 = load i32, ptr %13, align 4, !tbaa !8
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i32, ptr %50, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !8
  %92 = load i32, ptr %13, align 4, !tbaa !8
  %93 = add nsw i32 %92, 1
  %94 = srem i32 %91, %93
  store i32 %94, ptr %14, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %95 = load i32, ptr %13, align 4, !tbaa !8
  %96 = add nsw i32 %95, 1
  %97 = load i32, ptr %14, align 4, !tbaa !8
  %98 = sub nsw i32 %96, %97
  store i32 %98, ptr %15, align 4, !tbaa !8
  %99 = getelementptr inbounds i32, ptr %50, i64 0
  %100 = load i32, ptr %99, align 16, !tbaa !8
  %101 = load i32, ptr %15, align 4, !tbaa !8
  %102 = icmp sge i32 %100, %101
  br i1 %102, label %103, label %125

103:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #9
  %104 = getelementptr inbounds %struct.op, ptr %16, i32 0, i32 0
  store i32 1, ptr %104, align 4, !tbaa !13
  %105 = getelementptr inbounds %struct.op, ptr %16, i32 0, i32 1
  %106 = load i32, ptr %13, align 4, !tbaa !8
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %105, align 4, !tbaa !15
  %108 = getelementptr inbounds %struct.op, ptr %16, i32 0, i32 2
  %109 = load i32, ptr %15, align 4, !tbaa !8
  store i32 %109, ptr %108, align 4, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %16, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #9
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %110 unwind label %121

110:                                              ; preds = %103
  %111 = load i32, ptr %15, align 4, !tbaa !8
  %112 = getelementptr inbounds i32, ptr %50, i64 0
  %113 = load i32, ptr %112, align 16, !tbaa !8
  %114 = sub nsw i32 %113, %111
  store i32 %114, ptr %112, align 16, !tbaa !8
  %115 = load i32, ptr %15, align 4, !tbaa !8
  %116 = load i32, ptr %13, align 4, !tbaa !8
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds i32, ptr %50, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !8
  %120 = add nsw i32 %119, %115
  store i32 %120, ptr %118, align 4, !tbaa !8
  br label %125

121:                                              ; preds = %125, %103
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %17, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %336

125:                                              ; preds = %110, %87
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #9
  %126 = getelementptr inbounds %struct.op, ptr %19, i32 0, i32 0
  %127 = load i32, ptr %13, align 4, !tbaa !8
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %126, align 4, !tbaa !13
  %129 = getelementptr inbounds %struct.op, ptr %19, i32 0, i32 1
  store i32 1, ptr %129, align 4, !tbaa !15
  %130 = getelementptr inbounds %struct.op, ptr %19, i32 0, i32 2
  %131 = load i32, ptr %13, align 4, !tbaa !8
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds i32, ptr %50, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !8
  %135 = load i32, ptr %13, align 4, !tbaa !8
  %136 = add nsw i32 %135, 1
  %137 = sdiv i32 %134, %136
  store i32 %137, ptr %130, align 4, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %19, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #9
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %138 unwind label %121

138:                                              ; preds = %125
  %139 = load i32, ptr %13, align 4, !tbaa !8
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds i32, ptr %50, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !8
  %143 = load i32, ptr %13, align 4, !tbaa !8
  %144 = add nsw i32 %143, 1
  %145 = sdiv i32 %142, %144
  %146 = load i32, ptr %13, align 4, !tbaa !8
  %147 = add nsw i32 %146, 1
  %148 = mul nsw i32 %145, %147
  %149 = getelementptr inbounds i32, ptr %50, i64 0
  %150 = load i32, ptr %149, align 16, !tbaa !8
  %151 = add nsw i32 %150, %148
  store i32 %151, ptr %149, align 16, !tbaa !8
  %152 = load i32, ptr %13, align 4, !tbaa !8
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds i32, ptr %50, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !8
  %156 = load i32, ptr %13, align 4, !tbaa !8
  %157 = add nsw i32 %156, 1
  %158 = srem i32 %155, %157
  %159 = load i32, ptr %13, align 4, !tbaa !8
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds i32, ptr %50, i64 %160
  store i32 %158, ptr %161, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %162

162:                                              ; preds = %138
  %163 = load i32, ptr %13, align 4, !tbaa !8
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %13, align 4, !tbaa !8
  br label %82, !llvm.loop !18

165:                                              ; preds = %86
  %166 = load i32, ptr %5, align 4, !tbaa !8
  %167 = zext i32 %166 to i64
  %168 = alloca i8, i64 %167, align 16
  store i64 %167, ptr %20, align 8
  %169 = load i32, ptr %5, align 4, !tbaa !8
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds i8, ptr %168, i64 %170
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #9
  store i8 0, ptr %21, align 1, !tbaa !19
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %168, ptr noundef %171, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %172 unwind label %178

172:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  store i32 1, ptr %22, align 4, !tbaa !8
  br label %173

173:                                              ; preds = %246, %172
  %174 = load i32, ptr %22, align 4, !tbaa !8
  %175 = load i32, ptr %5, align 4, !tbaa !8
  %176 = icmp slt i32 %174, %175
  br i1 %176, label %182, label %177

177:                                              ; preds = %173
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %249

178:                                              ; preds = %165
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %17, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #9
  br label %336

182:                                              ; preds = %173
  %183 = load i32, ptr %22, align 4, !tbaa !8
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds i32, ptr %50, i64 %184
  %186 = load i32, ptr %185, align 4, !tbaa !8
  %187 = load i32, ptr %10, align 4, !tbaa !8
  %188 = icmp sgt i32 %186, %187
  br i1 %188, label %189, label %245

189:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  %190 = load i32, ptr %22, align 4, !tbaa !8
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds i32, ptr %50, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !8
  %194 = load i32, ptr %22, align 4, !tbaa !8
  %195 = add nsw i32 %194, 1
  %196 = srem i32 %193, %195
  store i32 %196, ptr %23, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  %197 = load i32, ptr %22, align 4, !tbaa !8
  %198 = add nsw i32 %197, 1
  %199 = load i32, ptr %23, align 4, !tbaa !8
  %200 = sub nsw i32 %198, %199
  store i32 %200, ptr %24, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #9
  %201 = getelementptr inbounds %struct.op, ptr %25, i32 0, i32 0
  store i32 1, ptr %201, align 4, !tbaa !13
  %202 = getelementptr inbounds %struct.op, ptr %25, i32 0, i32 1
  %203 = load i32, ptr %22, align 4, !tbaa !8
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %202, align 4, !tbaa !15
  %205 = getelementptr inbounds %struct.op, ptr %25, i32 0, i32 2
  %206 = load i32, ptr %24, align 4, !tbaa !8
  store i32 %206, ptr %205, align 4, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %25, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #9
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %207 unwind label %241

207:                                              ; preds = %189
  %208 = load i32, ptr %24, align 4, !tbaa !8
  %209 = load i32, ptr %22, align 4, !tbaa !8
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds i32, ptr %50, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !8
  %213 = add nsw i32 %212, %208
  store i32 %213, ptr %211, align 4, !tbaa !8
  %214 = load i32, ptr %24, align 4, !tbaa !8
  %215 = getelementptr inbounds i32, ptr %50, i64 0
  %216 = load i32, ptr %215, align 16, !tbaa !8
  %217 = sub nsw i32 %216, %214
  store i32 %217, ptr %215, align 16, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #9
  %218 = getelementptr inbounds %struct.op, ptr %26, i32 0, i32 0
  %219 = load i32, ptr %22, align 4, !tbaa !8
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %218, align 4, !tbaa !13
  %221 = getelementptr inbounds %struct.op, ptr %26, i32 0, i32 1
  store i32 1, ptr %221, align 4, !tbaa !15
  %222 = getelementptr inbounds %struct.op, ptr %26, i32 0, i32 2
  %223 = load i32, ptr %22, align 4, !tbaa !8
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds i32, ptr %50, i64 %224
  %226 = load i32, ptr %225, align 4, !tbaa !8
  %227 = load i32, ptr %22, align 4, !tbaa !8
  %228 = add nsw i32 %227, 1
  %229 = sdiv i32 %226, %228
  store i32 %229, ptr %222, align 4, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %26, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #9
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %230 unwind label %241

230:                                              ; preds = %207
  %231 = load i32, ptr %22, align 4, !tbaa !8
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds i32, ptr %50, i64 %232
  %234 = load i32, ptr %233, align 4, !tbaa !8
  %235 = getelementptr inbounds i32, ptr %50, i64 0
  %236 = load i32, ptr %235, align 16, !tbaa !8
  %237 = add nsw i32 %236, %234
  store i32 %237, ptr %235, align 16, !tbaa !8
  %238 = load i32, ptr %22, align 4, !tbaa !8
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds i32, ptr %50, i64 %239
  store i32 0, ptr %240, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  br label %245

241:                                              ; preds = %207, %189
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %17, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %336

245:                                              ; preds = %230, %182
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %22, align 4, !tbaa !8
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %22, align 4, !tbaa !8
  br label %173, !llvm.loop !21

249:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 1, ptr %27, align 4, !tbaa !8
  br label %250

250:                                              ; preds = %280, %249
  %251 = load i32, ptr %27, align 4, !tbaa !8
  %252 = load i32, ptr %5, align 4, !tbaa !8
  %253 = icmp slt i32 %251, %252
  br i1 %253, label %255, label %254

254:                                              ; preds = %250
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %283

255:                                              ; preds = %250
  %256 = load i32, ptr %27, align 4, !tbaa !8
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds i32, ptr %50, i64 %257
  %259 = load i32, ptr %258, align 4, !tbaa !8
  %260 = load i32, ptr %10, align 4, !tbaa !8
  %261 = icmp slt i32 %259, %260
  br i1 %261, label %262, label %279

262:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #9
  %263 = getelementptr inbounds %struct.op, ptr %28, i32 0, i32 0
  store i32 1, ptr %263, align 4, !tbaa !13
  %264 = getelementptr inbounds %struct.op, ptr %28, i32 0, i32 1
  %265 = load i32, ptr %27, align 4, !tbaa !8
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %264, align 4, !tbaa !15
  %267 = getelementptr inbounds %struct.op, ptr %28, i32 0, i32 2
  %268 = load i32, ptr %10, align 4, !tbaa !8
  %269 = load i32, ptr %27, align 4, !tbaa !8
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds i32, ptr %50, i64 %270
  %272 = load i32, ptr %271, align 4, !tbaa !8
  %273 = sub nsw i32 %268, %272
  store i32 %273, ptr %267, align 4, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %28, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #9
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %274 unwind label %275

274:                                              ; preds = %262
  br label %279

275:                                              ; preds = %262
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %17, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  br label %336

279:                                              ; preds = %274, %255
  br label %280

280:                                              ; preds = %279
  %281 = load i32, ptr %27, align 4, !tbaa !8
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %27, align 4, !tbaa !8
  br label %250, !llvm.loop !22

283:                                              ; preds = %254
  %284 = call noundef i64 @_ZNKSt6vectorI2opSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %284)
          to label %286 unwind label %298

286:                                              ; preds = %283
  %287 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %285, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %288 unwind label %298

288:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  store ptr %11, ptr %29, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %289 = load ptr, ptr %29, align 8, !tbaa !23
  %290 = call ptr @_ZNSt6vectorI2opSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %289) #9
  %291 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %290, ptr %291, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #9
  %292 = load ptr, ptr %29, align 8, !tbaa !23
  %293 = call ptr @_ZNSt6vectorI2opSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %292) #9
  %294 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %293, ptr %294, align 8
  br label %295

295:                                              ; preds = %322, %288
  %296 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2opSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #9
  br i1 %296, label %302, label %297

297:                                              ; preds = %295
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %328

298:                                              ; preds = %286, %283
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %17, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %18, align 4
  br label %336

302:                                              ; preds = %295
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #9
  %303 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2opSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %303, i64 12, i1 false), !tbaa.struct !17
  %304 = getelementptr inbounds %struct.op, ptr %32, i32 0, i32 0
  %305 = load i32, ptr %304, align 4, !tbaa !13
  %306 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %305)
          to label %307 unwind label %324

307:                                              ; preds = %302
  %308 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %306, ptr noundef @.str)
          to label %309 unwind label %324

309:                                              ; preds = %307
  %310 = getelementptr inbounds %struct.op, ptr %32, i32 0, i32 1
  %311 = load i32, ptr %310, align 4, !tbaa !15
  %312 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %308, i32 noundef %311)
          to label %313 unwind label %324

313:                                              ; preds = %309
  %314 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %312, ptr noundef @.str)
          to label %315 unwind label %324

315:                                              ; preds = %313
  %316 = getelementptr inbounds %struct.op, ptr %32, i32 0, i32 2
  %317 = load i32, ptr %316, align 4, !tbaa !16
  %318 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %314, i32 noundef %317)
          to label %319 unwind label %324

319:                                              ; preds = %315
  %320 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %318, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %321 unwind label %324

321:                                              ; preds = %319
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #9
  br label %322

322:                                              ; preds = %321
  %323 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2opSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #9
  br label %295

324:                                              ; preds = %319, %315, %313, %309, %307, %302
  %325 = landingpad { ptr, i32 }
          cleanup
  %326 = extractvalue { ptr, i32 } %325, 0
  store ptr %326, ptr %17, align 8
  %327 = extractvalue { ptr, i32 } %325, 1
  store i32 %327, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %336

328:                                              ; preds = %297
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #9
  call void @_ZNSt6vectorI2opSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  store i32 0, ptr %4, align 4
  br label %329

329:                                              ; preds = %328, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  %330 = load ptr, ptr %6, align 8
  call void @llvm.stackrestore.p0(ptr %330)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  %331 = load i32, ptr %4, align 4
  switch i32 %331, label %344 [
    i32 0, label %332
    i32 4, label %333
  ]

332:                                              ; preds = %329
  br label %333

333:                                              ; preds = %332, %329
  %334 = load i32, ptr %3, align 4, !tbaa !8
  %335 = add nsw i32 %334, 1
  store i32 %335, ptr %3, align 4, !tbaa !8
  br label %40, !llvm.loop !25

336:                                              ; preds = %324, %298, %275, %241, %178, %121
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #9
  call void @_ZNSt6vectorI2opSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %339

337:                                              ; preds = %44
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  %338 = load i32, ptr %1, align 4
  ret i32 %338

339:                                              ; preds = %336
  %340 = load ptr, ptr %17, align 8
  %341 = load i32, ptr %18, align 4
  %342 = insertvalue { ptr, i32 } poison, ptr %340, 0
  %343 = insertvalue { ptr, i32 } %342, i32 %341, 1
  resume { ptr, i32 } %343

344:                                              ; preds = %329
  unreachable
}

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 align 2

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %struct.op, align 4
  %5 = alloca i8, align 1
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %9 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %14 = 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)
  %15 = load i32, ptr %1, align 4, !tbaa !8
  %.not109 = icmp slt i32 %15, 1
  br i1 %.not109, label %._crit_edge113, label %.lr.ph112

.lr.ph112:                                        ; preds = %0
  %.sroa.437.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 4
  %.sroa.538.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  br label %16

._crit_edge113:                                   ; preds = %138, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

16:                                               ; preds = %.lr.ph112, %138
  %.0110 = phi i32 [ 1, %.lr.ph112 ], [ %139, %138 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %17 = 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)
  %18 = load i32, ptr %2, align 4, !tbaa !8
  %19 = zext i32 %18 to i64
  %20 = call ptr @llvm.stacksave.p0()
  %21 = alloca i32, i64 %19, align 16
  %22 = load i32, ptr %2, align 4, !tbaa !8
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %16
  %.074.lcssa = phi i32 [ 0, %16 ], [ %29, %.lr.ph ]
  %.lcssa = phi i32 [ %22, %16 ], [ %30, %.lr.ph ]
  %24 = srem i32 %.074.lcssa, %.lcssa
  %25 = sdiv i32 %.074.lcssa, %.lcssa
  %.not87 = icmp eq i32 %24, 0
  br i1 %.not87, label %36, label %33

.lr.ph:                                           ; preds = %16, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %16 ]
  %.07493 = phi i32 [ %29, %.lr.ph ], [ 0, %16 ]
  %26 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %28 = load i32, ptr %26, align 4, !tbaa !8
  %29 = add nsw i32 %28, %.07493
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %30 = load i32, ptr %2, align 4, !tbaa !8
  %31 = sext i32 %30 to i64
  %32 = icmp slt i64 %indvars.iv.next, %31
  br i1 %32, label %.lr.ph, label %._crit_edge, !llvm.loop !11

33:                                               ; preds = %._crit_edge
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %138

36:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZNSt6vectorI2opSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #8
  %37 = load i32, ptr %2, align 4, !tbaa !8
  %38 = icmp sgt i32 %37, 1
  br i1 %38, label %.lr.ph97.preheader, label %.._crit_edge98_crit_edge

.._crit_edge98_crit_edge:                         ; preds = %36
  %.pre130 = sext i32 %37 to i64
  br label %._crit_edge98

.lr.ph97.preheader:                               ; preds = %36
  %.pre = load i32, ptr %21, align 16, !tbaa !8
  br label %.lr.ph97

._crit_edge98:                                    ; preds = %59, %.._crit_edge98_crit_edge
  %.pre-phi = phi i64 [ %.pre130, %.._crit_edge98_crit_edge ], [ %66, %59 ]
  %.lcssa90 = phi i32 [ %37, %.._crit_edge98_crit_edge ], [ %65, %59 ]
  %39 = zext i32 %.lcssa90 to i64
  %40 = alloca i8, i64 %39, align 16
  %41 = getelementptr inbounds i8, ptr %40, i64 %.pre-phi
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  store i8 0, ptr %5, align 1, !tbaa !13
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %40, ptr noundef nonnull %41, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %68 unwind label %72

.lr.ph97:                                         ; preds = %.lr.ph97.preheader, %59
  %42 = phi i32 [ %.pre, %.lr.ph97.preheader ], [ %64, %59 ]
  %indvars.iv118 = phi i64 [ 1, %.lr.ph97.preheader ], [ %indvars.iv.next119, %59 ]
  %43 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv118
  %44 = load i32, ptr %43, align 4, !tbaa !8
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %45 = trunc nuw nsw i64 %indvars.iv.next119 to i32
  %46 = srem i32 %44, %45
  %47 = sub nsw i32 %45, %46
  %.not88 = icmp slt i32 %42, %47
  br i1 %.not88, label %56, label %48

48:                                               ; preds = %.lr.ph97
  store i32 1, ptr %4, align 4, !tbaa !8
  store i32 %45, ptr %.sroa.437.0..sroa_idx, align 4, !tbaa !8
  store i32 %47, ptr %.sroa.538.0..sroa_idx, align 4, !tbaa !8
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %49 unwind label %54

49:                                               ; preds = %48
  %50 = load i32, ptr %21, align 16, !tbaa !8
  %51 = sub nsw i32 %50, %47
  store i32 %51, ptr %21, align 16, !tbaa !8
  %52 = load i32, ptr %43, align 4, !tbaa !8
  %53 = add nsw i32 %52, %47
  store i32 %53, ptr %43, align 4, !tbaa !8
  br label %56

54:                                               ; preds = %56, %48
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %141

56:                                               ; preds = %49, %.lr.ph97
  %57 = phi i32 [ %53, %49 ], [ %44, %.lr.ph97 ]
  %58 = sdiv i32 %57, %45
  store i32 %45, ptr %4, align 4, !tbaa !8
  store i32 1, ptr %.sroa.437.0..sroa_idx, align 4, !tbaa !8
  store i32 %58, ptr %.sroa.538.0..sroa_idx, align 4, !tbaa !8
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %59 unwind label %54

59:                                               ; preds = %56
  %60 = load i32, ptr %43, align 4, !tbaa !8
  %.fr = freeze i32 %60
  %61 = srem i32 %.fr, %45
  %62 = sub nsw i32 %.fr, %61
  %63 = load i32, ptr %21, align 16, !tbaa !8
  %64 = add nsw i32 %62, %63
  store i32 %64, ptr %21, align 16, !tbaa !8
  store i32 %61, ptr %43, align 4, !tbaa !8
  %65 = load i32, ptr %2, align 4, !tbaa !8
  %66 = sext i32 %65 to i64
  %67 = icmp slt i64 %indvars.iv.next119, %66
  br i1 %67, label %.lr.ph97, label %._crit_edge98, !llvm.loop !15

68:                                               ; preds = %._crit_edge98
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  %69 = load i32, ptr %2, align 4, !tbaa !8
  %70 = icmp sgt i32 %69, 1
  br i1 %70, label %.lr.ph102, label %._crit_edge105

.preheader:                                       ; preds = %.lr.ph102._crit_edge
  %71 = icmp sgt i32 %95, 1
  br i1 %71, label %.lr.ph104, label %._crit_edge105

72:                                               ; preds = %._crit_edge98
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  br label %141

.lr.ph102:                                        ; preds = %68, %.lr.ph102._crit_edge
  %74 = phi i32 [ %95, %.lr.ph102._crit_edge ], [ %69, %68 ]
  %indvars.iv121 = phi i64 [ %78, %.lr.ph102._crit_edge ], [ 1, %68 ]
  %75 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv121
  %76 = load i32, ptr %75, align 4, !tbaa !8
  %77 = icmp sgt i32 %76, %25
  %78 = add nuw nsw i64 %indvars.iv121, 1
  br i1 %77, label %79, label %.lr.ph102._crit_edge

79:                                               ; preds = %.lr.ph102
  %80 = trunc nuw nsw i64 %78 to i32
  %81 = srem i32 %76, %80
  %82 = sub nsw i32 %80, %81
  store i32 1, ptr %4, align 4, !tbaa !8
  store i32 %80, ptr %.sroa.437.0..sroa_idx, align 4, !tbaa !8
  store i32 %82, ptr %.sroa.538.0..sroa_idx, align 4, !tbaa !8
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %83 unwind label %93

83:                                               ; preds = %79
  %84 = load i32, ptr %75, align 4, !tbaa !8
  %85 = add nsw i32 %84, %82
  store i32 %85, ptr %75, align 4, !tbaa !8
  %86 = load i32, ptr %21, align 16, !tbaa !8
  %87 = sub nsw i32 %86, %82
  store i32 %87, ptr %21, align 16, !tbaa !8
  %88 = sdiv i32 %85, %80
  store i32 %80, ptr %4, align 4, !tbaa !8
  store i32 1, ptr %.sroa.437.0..sroa_idx, align 4, !tbaa !8
  store i32 %88, ptr %.sroa.538.0..sroa_idx, align 4, !tbaa !8
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %89 unwind label %93

89:                                               ; preds = %83
  %90 = load i32, ptr %75, align 4, !tbaa !8
  %91 = load i32, ptr %21, align 16, !tbaa !8
  %92 = add nsw i32 %91, %90
  store i32 %92, ptr %21, align 16, !tbaa !8
  store i32 0, ptr %75, align 4, !tbaa !8
  %.pre127 = load i32, ptr %2, align 4, !tbaa !8
  br label %.lr.ph102._crit_edge

93:                                               ; preds = %83, %79
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %141

.lr.ph102._crit_edge:                             ; preds = %.lr.ph102, %89
  %95 = phi i32 [ %.pre127, %89 ], [ %74, %.lr.ph102 ]
  %96 = sext i32 %95 to i64
  %97 = icmp slt i64 %78, %96
  br i1 %97, label %.lr.ph102, label %.preheader, !llvm.loop !16

._crit_edge105:                                   ; preds = %.lr.ph104._crit_edge, %68, %.preheader
  %98 = call noundef i64 @_ZNKSt6vectorI2opSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %98)
          to label %113 unwind label %119

.lr.ph104:                                        ; preds = %.preheader, %.lr.ph104._crit_edge
  %100 = phi i32 [ %110, %.lr.ph104._crit_edge ], [ %95, %.preheader ]
  %indvars.iv124 = phi i64 [ %104, %.lr.ph104._crit_edge ], [ 1, %.preheader ]
  %101 = getelementptr inbounds i32, ptr %21, i64 %indvars.iv124
  %102 = load i32, ptr %101, align 4, !tbaa !8
  %103 = icmp slt i32 %102, %25
  %104 = add nuw nsw i64 %indvars.iv124, 1
  br i1 %103, label %105, label %.lr.ph104._crit_edge

105:                                              ; preds = %.lr.ph104
  %106 = sub nsw i32 %25, %102
  store i32 1, ptr %4, align 4, !tbaa !8
  %107 = trunc nuw nsw i64 %104 to i32
  store i32 %107, ptr %.sroa.437.0..sroa_idx, align 4, !tbaa !8
  store i32 %106, ptr %.sroa.538.0..sroa_idx, align 4, !tbaa !8
  invoke void @_ZNSt6vectorI2opSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %._crit_edge128 unwind label %108

._crit_edge128:                                   ; preds = %105
  %.pre129 = load i32, ptr %2, align 4, !tbaa !8
  br label %.lr.ph104._crit_edge

108:                                              ; preds = %105
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %141

.lr.ph104._crit_edge:                             ; preds = %.lr.ph104, %._crit_edge128
  %110 = phi i32 [ %.pre129, %._crit_edge128 ], [ %100, %.lr.ph104 ]
  %111 = sext i32 %110 to i64
  %112 = icmp slt i64 %104, %111
  br i1 %112, label %.lr.ph104, label %._crit_edge105, !llvm.loop !17

113:                                              ; preds = %._crit_edge105
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %115 unwind label %119

115:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %116 = call ptr @_ZNSt6vectorI2opSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  store ptr %116, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %117 = call ptr @_ZNSt6vectorI2opSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  store ptr %117, ptr %7, align 8
  %118 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2opSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br i1 %118, label %.lr.ph107, label %._crit_edge108

._crit_edge108:                                   ; preds = %133, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #8
  call void @_ZNSt6vectorI2opSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  br label %138

119:                                              ; preds = %113, %._crit_edge105
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %141

.lr.ph107:                                        ; preds = %115, %133
  %121 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP2opSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %.sroa.0.0.copyload = load i32, ptr %121, align 4, !tbaa !8
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %121, i64 4
  %.sroa.5.0.copyload = load i32, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !8
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %121, i64 8
  %.sroa.6.0.copyload = load i32, ptr %.sroa.6.0..sroa_idx, align 4, !tbaa !8
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.sroa.0.0.copyload)
          to label %123 unwind label %136

123:                                              ; preds = %.lr.ph107
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef nonnull @.str)
          to label %125 unwind label %136

125:                                              ; preds = %123
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %124, i32 noundef %.sroa.5.0.copyload)
          to label %127 unwind label %136

127:                                              ; preds = %125
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef nonnull @.str)
          to label %129 unwind label %136

129:                                              ; preds = %127
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %128, i32 noundef %.sroa.6.0.copyload)
          to label %131 unwind label %136

131:                                              ; preds = %129
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %133 unwind label %136

133:                                              ; preds = %131
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP2opSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  %135 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP2opSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br i1 %135, label %.lr.ph107, label %._crit_edge108

136:                                              ; preds = %131, %129, %127, %125, %123, %.lr.ph107
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %141

138:                                              ; preds = %._crit_edge108, %33
  call void @llvm.stackrestore.p0(ptr %20)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  %139 = add nuw nsw i32 %.0110, 1
  %140 = load i32, ptr %1, align 4, !tbaa !8
  %.not.not = icmp slt i32 %.0110, %140
  br i1 %.not.not, label %16, label %._crit_edge113, !llvm.loop !18

141:                                              ; preds = %136, %119, %108, %93, %72, %54
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %94, %93 ], [ %109, %108 ], [ %137, %136 ], [ %120, %119 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #8
  call void @_ZNSt6vectorI2opSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn
}

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #4

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #6

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #4

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

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

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


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