; LLVM IR from ravireddy07/cpp-book :: src/Code-Forces (make-it-increasing)

; 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::allocator" = type { i8 }
%"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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
  %26 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %26, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %27 unwind label %36

27:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  %28 = load i64, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %28, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %29 unwind label %40

29:                                               ; preds = %27
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %50, %29
  %31 = load i32, ptr %10, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = load i64, ptr %2, align 8, !tbaa !5
  %34 = icmp slt i64 %32, %33
  br i1 %34, label %44, label %35

35:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %57

36:                                               ; preds = %0
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %6, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  br label %315

40:                                               ; preds = %27
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %6, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %7, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  br label %314

44:                                               ; preds = %30
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %46) #6
  %48 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %47)
          to label %49 unwind label %53

49:                                               ; preds = %44
  br label %50

50:                                               ; preds = %49
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %10, align 4, !tbaa !9
  br label %30, !llvm.loop !11

53:                                               ; preds = %44
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %6, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %313

57:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  %58 = load i64, ptr %3, align 8, !tbaa !5
  %59 = icmp sgt i64 %58, 0
  br i1 %59, label %60, label %204

60:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %73, %60
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = load i64, ptr %3, align 8, !tbaa !5
  %65 = icmp slt i64 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %80

67:                                               ; preds = %61
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %69) #6
  %71 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %70)
          to label %72 unwind label %76

72:                                               ; preds = %67
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %12, align 4, !tbaa !9
  br label %61, !llvm.loop !13

76:                                               ; preds = %67
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %6, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %312

80:                                               ; preds = %66
  %81 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  %83 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %83, ptr %84, align 8
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %86, ptr %88)
          to label %89 unwind label %98

89:                                               ; preds = %80
  %90 = load i64, ptr %3, align 8, !tbaa !5
  %91 = load i64, ptr %2, align 8, !tbaa !5
  %92 = icmp eq i64 %90, %91
  br i1 %92, label %93, label %102

93:                                               ; preds = %89
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %95 unwind label %98

95:                                               ; preds = %93
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %97 unwind label %98

97:                                               ; preds = %95
  store i32 0, ptr %1, align 4
  store i32 1, ptr %15, align 4
  br label %310

98:                                               ; preds = %306, %304, %301, %298, %95, %93, %80
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %6, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %7, align 4
  br label %312

102:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %165, %102
  %104 = load i32, ptr %16, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = load i64, ptr %3, align 8, !tbaa !5
  %107 = icmp slt i64 %105, %106
  br i1 %107, label %109, label %108

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

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

110:                                              ; preds = %161, %109
  %111 = load i32, ptr %17, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = load i64, ptr %2, align 8, !tbaa !5
  %114 = icmp slt i64 %112, %113
  br i1 %114, label %116, label %115

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

116:                                              ; preds = %110
  %117 = load i32, ptr %17, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %118) #6
  %120 = load i32, ptr %119, align 4, !tbaa !9
  %121 = load i32, ptr %16, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %122) #6
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = icmp eq i32 %120, %124
  br i1 %125, label %126, label %160

126:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %127 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %127, ptr %18, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %156, %126
  %129 = load i32, ptr %18, align 4, !tbaa !9
  %130 = icmp sgt i32 %129, 0
  br i1 %130, label %132, label %131

131:                                              ; preds = %128
  store i32 14, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %159

132:                                              ; preds = %128
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %134) #6
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %137 = load i32, ptr %18, align 4, !tbaa !9
  %138 = sub nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %139) #6
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = icmp sle i32 %136, %141
  br i1 %142, label %143, label %155

143:                                              ; preds = %132
  %144 = load i32, ptr %18, align 4, !tbaa !9
  %145 = sext i32 %144 to i64
  %146 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %145) #6
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = sub nsw i32 %147, 1
  %149 = load i32, ptr %18, align 4, !tbaa !9
  %150 = sub nsw i32 %149, 1
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %151) #6
  store i32 %148, ptr %152, align 4, !tbaa !9
  %153 = load i32, ptr %11, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %11, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %143, %132
  br label %156

156:                                              ; preds = %155
  %157 = load i32, ptr %18, align 4, !tbaa !9
  %158 = add nsw i32 %157, -1
  store i32 %158, ptr %18, align 4, !tbaa !9
  br label %128, !llvm.loop !14

159:                                              ; preds = %131
  br label %160

160:                                              ; preds = %159, %116
  br label %161

161:                                              ; preds = %160
  %162 = load i32, ptr %17, align 4, !tbaa !9
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %17, align 4, !tbaa !9
  br label %110, !llvm.loop !15

164:                                              ; preds = %115
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %16, align 4, !tbaa !9
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %16, align 4, !tbaa !9
  br label %103, !llvm.loop !16

168:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %200, %168
  %170 = load i32, ptr %19, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = load i64, ptr %2, align 8, !tbaa !5
  %173 = sub nsw i64 %172, 1
  %174 = icmp slt i64 %171, %173
  br i1 %174, label %176, label %175

175:                                              ; preds = %169
  store i32 17, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %203

176:                                              ; preds = %169
  %177 = load i32, ptr %19, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %178) #6
  %180 = load i32, ptr %179, align 4, !tbaa !9
  %181 = load i32, ptr %19, align 4, !tbaa !9
  %182 = add nsw i32 %181, 1
  %183 = sext i32 %182 to i64
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %183) #6
  %185 = load i32, ptr %184, align 4, !tbaa !9
  %186 = icmp sge i32 %180, %185
  br i1 %186, label %187, label %199

187:                                              ; preds = %176
  %188 = load i32, ptr %19, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %189) #6
  %191 = load i32, ptr %190, align 4, !tbaa !9
  %192 = add nsw i32 %191, 1
  %193 = load i32, ptr %19, align 4, !tbaa !9
  %194 = add nsw i32 %193, 1
  %195 = sext i32 %194 to i64
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %195) #6
  store i32 %192, ptr %196, align 4, !tbaa !9
  %197 = load i32, ptr %11, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %11, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %187, %176
  br label %200

200:                                              ; preds = %199
  %201 = load i32, ptr %19, align 4, !tbaa !9
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %19, align 4, !tbaa !9
  br label %169, !llvm.loop !17

203:                                              ; preds = %175
  br label %295

204:                                              ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %205 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #6
  %206 = load i32, ptr %205, align 4, !tbaa !9
  store i32 %206, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 1, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %207

207:                                              ; preds = %222, %204
  %208 = load i32, ptr %21, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = load i64, ptr %2, align 8, !tbaa !5
  %211 = icmp slt i64 %209, %210
  br i1 %211, label %212, label %225

212:                                              ; preds = %207
  %213 = load i32, ptr %20, align 4, !tbaa !9
  %214 = load i32, ptr %21, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %215) #6
  %217 = load i32, ptr %216, align 4, !tbaa !9
  %218 = icmp sgt i32 %213, %217
  br i1 %218, label %219, label %221

219:                                              ; preds = %212
  %220 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %220, ptr %20, align 4, !tbaa !9
  br label %221

221:                                              ; preds = %219, %212
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %21, align 4, !tbaa !9
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %21, align 4, !tbaa !9
  br label %207, !llvm.loop !18

225:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %226 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %226, ptr %22, align 4, !tbaa !9
  br label %227

227:                                              ; preds = %258, %225
  %228 = load i32, ptr %22, align 4, !tbaa !9
  %229 = sext i32 %228 to i64
  %230 = load i64, ptr %2, align 8, !tbaa !5
  %231 = sub nsw i64 %230, 1
  %232 = icmp slt i64 %229, %231
  br i1 %232, label %234, label %233

233:                                              ; preds = %227
  store i32 23, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %261

234:                                              ; preds = %227
  %235 = load i32, ptr %22, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %236) #6
  %238 = load i32, ptr %237, align 4, !tbaa !9
  %239 = load i32, ptr %22, align 4, !tbaa !9
  %240 = add nsw i32 %239, 1
  %241 = sext i32 %240 to i64
  %242 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %241) #6
  %243 = load i32, ptr %242, align 4, !tbaa !9
  %244 = icmp sge i32 %238, %243
  br i1 %244, label %245, label %257

245:                                              ; preds = %234
  %246 = load i32, ptr %22, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %247) #6
  %249 = load i32, ptr %248, align 4, !tbaa !9
  %250 = add nsw i32 %249, 1
  %251 = load i32, ptr %22, align 4, !tbaa !9
  %252 = add nsw i32 %251, 1
  %253 = sext i32 %252 to i64
  %254 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %253) #6
  store i32 %250, ptr %254, align 4, !tbaa !9
  %255 = load i32, ptr %11, align 4, !tbaa !9
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %11, align 4, !tbaa !9
  br label %257

257:                                              ; preds = %245, %234
  br label %258

258:                                              ; preds = %257
  %259 = load i32, ptr %22, align 4, !tbaa !9
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %22, align 4, !tbaa !9
  br label %227, !llvm.loop !19

261:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %262 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %262, ptr %23, align 4, !tbaa !9
  br label %263

263:                                              ; preds = %291, %261
  %264 = load i32, ptr %23, align 4, !tbaa !9
  %265 = icmp sgt i32 %264, 0
  br i1 %265, label %267, label %266

266:                                              ; preds = %263
  store i32 26, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %294

267:                                              ; preds = %263
  %268 = load i32, ptr %23, align 4, !tbaa !9
  %269 = sext i32 %268 to i64
  %270 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %269) #6
  %271 = load i32, ptr %270, align 4, !tbaa !9
  %272 = load i32, ptr %23, align 4, !tbaa !9
  %273 = sub nsw i32 %272, 1
  %274 = sext i32 %273 to i64
  %275 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %274) #6
  %276 = load i32, ptr %275, align 4, !tbaa !9
  %277 = icmp sle i32 %271, %276
  br i1 %277, label %278, label %290

278:                                              ; preds = %267
  %279 = load i32, ptr %23, align 4, !tbaa !9
  %280 = sext i32 %279 to i64
  %281 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %280) #6
  %282 = load i32, ptr %281, align 4, !tbaa !9
  %283 = sub nsw i32 %282, 1
  %284 = load i32, ptr %23, align 4, !tbaa !9
  %285 = sub nsw i32 %284, 1
  %286 = sext i32 %285 to i64
  %287 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %286) #6
  store i32 %283, ptr %287, align 4, !tbaa !9
  %288 = load i32, ptr %11, align 4, !tbaa !9
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %11, align 4, !tbaa !9
  br label %290

290:                                              ; preds = %278, %267
  br label %291

291:                                              ; preds = %290
  %292 = load i32, ptr %23, align 4, !tbaa !9
  %293 = add nsw i32 %292, -1
  store i32 %293, ptr %23, align 4, !tbaa !9
  br label %263, !llvm.loop !20

294:                                              ; preds = %266
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %295

295:                                              ; preds = %294, %203
  %296 = load i32, ptr %11, align 4, !tbaa !9
  %297 = icmp ne i32 %296, 0
  br i1 %297, label %298, label %304

298:                                              ; preds = %295
  %299 = load i32, ptr %11, align 4, !tbaa !9
  %300 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %299)
          to label %301 unwind label %98

301:                                              ; preds = %298
  %302 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %300, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %303 unwind label %98

303:                                              ; preds = %301
  br label %309

304:                                              ; preds = %295
  %305 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
          to label %306 unwind label %98

306:                                              ; preds = %304
  %307 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %305, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %308 unwind label %98

308:                                              ; preds = %306
  br label %309

309:                                              ; preds = %308, %303
  store i32 0, ptr %1, align 4
  store i32 1, ptr %15, align 4
  br label %310

310:                                              ; preds = %309, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %311 = load i32, ptr %1, align 4
  ret i32 %311

312:                                              ; preds = %98, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %313

313:                                              ; preds = %312, %53
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  br label %314

314:                                              ; preds = %313, %40
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %315

315:                                              ; preds = %314, %36
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %316

316:                                              ; preds = %315
  %317 = load ptr, ptr %6, align 8
  %318 = load i32, ptr %7, align 4
  %319 = insertvalue { ptr, i32 } poison, ptr %317, 0
  %320 = insertvalue { ptr, i32 } %319, i32 %318, 1
  resume { ptr, i32 } %320
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !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}


; 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::allocator" = type { i8 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  %9 = load i64, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %9, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %10 unwind label %17

10:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %11 = load i64, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %11, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %12 unwind label %19

12:                                               ; preds = %10
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  %13 = load i64, ptr %1, align 8, !tbaa !5
  %14 = icmp sgt i64 %13, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %23, %12
  %15 = load i64, ptr %2, align 8, !tbaa !5
  %16 = icmp sgt i64 %15, 0
  br i1 %16, label %.lr.ph109, label %88

17:                                               ; preds = %0
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %133

19:                                               ; preds = %10
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %132

.lr.ph:                                           ; preds = %12, %23
  %indvars.iv = phi i64 [ %indvars.iv.next, %23 ], [ 0, %12 ]
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  %22 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %21)
          to label %23 unwind label %26

23:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %24 = load i64, ptr %1, align 8, !tbaa !5
  %25 = icmp sgt i64 %24, %indvars.iv.next
  br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !9

26:                                               ; preds = %.lr.ph
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %131

._crit_edge110:                                   ; preds = %32
  %28 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %29 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %28, ptr %29)
          to label %37 unwind label %43

.lr.ph109:                                        ; preds = %._crit_edge, %32
  %indvars.iv140 = phi i64 [ %indvars.iv.next141, %32 ], [ 0, %._crit_edge ]
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv140) #6
  %31 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %32 unwind label %35

32:                                               ; preds = %.lr.ph109
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %33 = load i64, ptr %2, align 8, !tbaa !5
  %34 = icmp sgt i64 %33, %indvars.iv.next141
  br i1 %34, label %.lr.ph109, label %._crit_edge110, !llvm.loop !11

35:                                               ; preds = %.lr.ph109
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %131

37:                                               ; preds = %._crit_edge110
  %38 = load i64, ptr %2, align 8, !tbaa !5
  %39 = load i64, ptr %1, align 8, !tbaa !5
  %40 = icmp eq i64 %38, %39
  br i1 %40, label %.loopexit.thread.invoke, label %.preheader92

.preheader92:                                     ; preds = %37
  %41 = icmp sgt i64 %38, 0
  br i1 %41, label %.preheader91.lr.ph, label %.preheader

.preheader91.lr.ph:                               ; preds = %.preheader92
  %42 = icmp sgt i64 %39, 0
  br i1 %42, label %.preheader91, label %.loopexit.thread

43:                                               ; preds = %.loopexit.thread.invoke, %.invoke, %._crit_edge110
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %131

.preheader91:                                     ; preds = %.preheader91.lr.ph, %._crit_edge119
  %45 = phi i64 [ %50, %._crit_edge119 ], [ %38, %.preheader91.lr.ph ]
  %46 = phi i64 [ %51, %._crit_edge119 ], [ %39, %.preheader91.lr.ph ]
  %indvars.iv153 = phi i64 [ %indvars.iv.next154, %._crit_edge119 ], [ 0, %.preheader91.lr.ph ]
  %.064121 = phi i32 [ %.165.lcssa, %._crit_edge119 ], [ 0, %.preheader91.lr.ph ]
  %47 = icmp sgt i64 %46, 0
  br i1 %47, label %.lr.ph118, label %._crit_edge119

.preheader:                                       ; preds = %._crit_edge119, %.preheader92
  %48 = phi i64 [ %39, %.preheader92 ], [ %51, %._crit_edge119 ]
  %.064.lcssa = phi i32 [ 0, %.preheader92 ], [ %.165.lcssa, %._crit_edge119 ]
  %49 = icmp sgt i64 %48, 1
  br i1 %49, label %.lr.ph126, label %.loopexit

._crit_edge119.loopexit:                          ; preds = %.loopexit90
  %.pre = load i64, ptr %2, align 8, !tbaa !5
  br label %._crit_edge119

._crit_edge119:                                   ; preds = %._crit_edge119.loopexit, %.preheader91
  %50 = phi i64 [ %45, %.preheader91 ], [ %.pre, %._crit_edge119.loopexit ]
  %51 = phi i64 [ %46, %.preheader91 ], [ %72, %._crit_edge119.loopexit ]
  %.165.lcssa = phi i32 [ %.064121, %.preheader91 ], [ %.4, %._crit_edge119.loopexit ]
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %52 = icmp sgt i64 %50, %indvars.iv.next154
  br i1 %52, label %.preheader91, label %.preheader, !llvm.loop !12

.lr.ph118:                                        ; preds = %.preheader91, %.loopexit90
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %.loopexit90 ], [ 0, %.preheader91 ]
  %.165115 = phi i32 [ %.4, %.loopexit90 ], [ %.064121, %.preheader91 ]
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv146) #6
  %54 = load i32, ptr %53, align 4, !tbaa !14
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv153) #6
  %56 = load i32, ptr %55, align 4, !tbaa !14
  %57 = icmp eq i32 %54, %56
  %58 = icmp ne i64 %indvars.iv146, 0
  %or.cond = and i1 %57, %58
  br i1 %or.cond, label %.lr.ph113, label %.loopexit90

.lr.ph113:                                        ; preds = %.lr.ph118, %70
  %indvars.iv148 = phi i64 [ %indvars.iv.next149, %70 ], [ %indvars.iv146, %.lr.ph118 ]
  %.266111 = phi i32 [ %.367, %70 ], [ %.165115, %.lr.ph118 ]
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv148) #6
  %60 = load i32, ptr %59, align 4, !tbaa !14
  %indvars.iv.next149 = add nsw i64 %indvars.iv148, -1
  %61 = and i64 %indvars.iv.next149, 4294967295
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %61) #6
  %63 = load i32, ptr %62, align 4, !tbaa !14
  %.not83 = icmp sgt i32 %60, %63
  br i1 %.not83, label %70, label %64

64:                                               ; preds = %.lr.ph113
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv148) #6
  %66 = load i32, ptr %65, align 4, !tbaa !14
  %67 = add nsw i32 %66, -1
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %61) #6
  store i32 %67, ptr %68, align 4, !tbaa !14
  %69 = add nsw i32 %.266111, 1
  br label %70

70:                                               ; preds = %.lr.ph113, %64
  %.367 = phi i32 [ %69, %64 ], [ %.266111, %.lr.ph113 ]
  %71 = icmp sgt i64 %indvars.iv148, 1
  br i1 %71, label %.lr.ph113, label %.loopexit90, !llvm.loop !16

.loopexit90:                                      ; preds = %70, %.lr.ph118
  %.4 = phi i32 [ %.165115, %.lr.ph118 ], [ %.367, %70 ]
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %72 = load i64, ptr %1, align 8, !tbaa !5
  %73 = icmp sgt i64 %72, %indvars.iv.next147
  br i1 %73, label %.lr.ph118, label %._crit_edge119.loopexit, !llvm.loop !17

.lr.ph126:                                        ; preds = %.preheader, %84
  %indvars.iv157 = phi i64 [ %indvars.iv.next158, %84 ], [ 0, %.preheader ]
  %.5124 = phi i32 [ %.6, %84 ], [ %.064.lcssa, %.preheader ]
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv157) #6
  %75 = load i32, ptr %74, align 4, !tbaa !14
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv.next158) #6
  %77 = load i32, ptr %76, align 4, !tbaa !14
  %.not82 = icmp slt i32 %75, %77
  br i1 %.not82, label %84, label %78

78:                                               ; preds = %.lr.ph126
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv157) #6
  %80 = load i32, ptr %79, align 4, !tbaa !14
  %81 = add nsw i32 %80, 1
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv.next158) #6
  store i32 %81, ptr %82, align 4, !tbaa !14
  %83 = add nsw i32 %.5124, 1
  br label %84

84:                                               ; preds = %.lr.ph126, %78
  %.6 = phi i32 [ %83, %78 ], [ %.5124, %.lr.ph126 ]
  %85 = load i64, ptr %1, align 8, !tbaa !5
  %86 = add nsw i64 %85, -1
  %87 = icmp sgt i64 %86, %indvars.iv.next158
  br i1 %87, label %.lr.ph126, label %.loopexit, !llvm.loop !18

88:                                               ; preds = %._crit_edge
  %89 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %90 = load i64, ptr %1, align 8, !tbaa !5
  %91 = icmp sgt i64 %90, 1
  br i1 %91, label %.lr.ph101, label %.preheader96

.preheader96.loopexit:                            ; preds = %.lr.ph101
  %92 = and i64 %indvars.iv.next132, 4294967295
  br label %.preheader96

.preheader96:                                     ; preds = %.preheader96.loopexit, %88
  %93 = phi i64 [ %90, %88 ], [ %97, %.preheader96.loopexit ]
  %.054.lcssa = phi i64 [ 1, %88 ], [ %92, %.preheader96.loopexit ]
  %94 = add nsw i64 %93, -1
  %95 = icmp sgt i64 %94, %.054.lcssa
  br i1 %95, label %.lr.ph104, label %.preheader94.preheader

.lr.ph101:                                        ; preds = %88, %.lr.ph101
  %indvars.iv131 = phi i64 [ %indvars.iv.next132, %.lr.ph101 ], [ 1, %88 ]
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv131) #6
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %97 = load i64, ptr %1, align 8, !tbaa !5
  %98 = icmp sgt i64 %97, %indvars.iv.next132
  br i1 %98, label %.lr.ph101, label %.preheader96.loopexit, !llvm.loop !19

.lr.ph104:                                        ; preds = %.preheader96, %109
  %indvars.iv134 = phi i64 [ %indvars.iv.next135, %109 ], [ %.054.lcssa, %.preheader96 ]
  %.7102 = phi i32 [ %.8, %109 ], [ 0, %.preheader96 ]
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv134) #6
  %100 = load i32, ptr %99, align 4, !tbaa !14
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv.next135) #6
  %102 = load i32, ptr %101, align 4, !tbaa !14
  %.not80 = icmp slt i32 %100, %102
  br i1 %.not80, label %109, label %103

103:                                              ; preds = %.lr.ph104
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv134) #6
  %105 = load i32, ptr %104, align 4, !tbaa !14
  %106 = add nsw i32 %105, 1
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv.next135) #6
  store i32 %106, ptr %107, align 4, !tbaa !14
  %108 = add nsw i32 %.7102, 1
  br label %109

109:                                              ; preds = %.lr.ph104, %103
  %.8 = phi i32 [ %108, %103 ], [ %.7102, %.lr.ph104 ]
  %110 = load i64, ptr %1, align 8, !tbaa !5
  %111 = add nsw i64 %110, -1
  %112 = icmp sgt i64 %111, %indvars.iv.next135
  br i1 %112, label %.lr.ph104, label %.preheader94.preheader, !llvm.loop !20

.preheader94.preheader:                           ; preds = %109, %.preheader96
  %.9106.ph = phi i32 [ 0, %.preheader96 ], [ %.8, %109 ]
  br label %.preheader94

.preheader94:                                     ; preds = %.preheader94.preheader, %124
  %indvars.iv137 = phi i64 [ %115, %124 ], [ %.054.lcssa, %.preheader94.preheader ]
  %.9106 = phi i32 [ %.10, %124 ], [ %.9106.ph, %.preheader94.preheader ]
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv137) #6
  %114 = load i32, ptr %113, align 4, !tbaa !14
  %115 = add nsw i64 %indvars.iv137, -1
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %115) #6
  %117 = load i32, ptr %116, align 4, !tbaa !14
  %.not = icmp sgt i32 %114, %117
  br i1 %.not, label %124, label %118

118:                                              ; preds = %.preheader94
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv137) #6
  %120 = load i32, ptr %119, align 4, !tbaa !14
  %121 = add nsw i32 %120, -1
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %115) #6
  store i32 %121, ptr %122, align 4, !tbaa !14
  %123 = add nsw i32 %.9106, 1
  br label %124

124:                                              ; preds = %.preheader94, %118
  %.10 = phi i32 [ %123, %118 ], [ %.9106, %.preheader94 ]
  %125 = trunc nuw i64 %indvars.iv137 to i32
  %126 = icmp sgt i32 %125, 1
  br i1 %126, label %.preheader94, label %.loopexit, !llvm.loop !21

.loopexit:                                        ; preds = %124, %84, %.preheader
  %.11 = phi i32 [ %.064.lcssa, %.preheader ], [ %.6, %84 ], [ %.10, %124 ]
  %.not81 = icmp eq i32 %.11, 0
  br i1 %.not81, label %.loopexit.thread, label %.loopexit.thread.invoke

.loopexit.thread:                                 ; preds = %.preheader91.lr.ph, %.loopexit
  br label %.loopexit.thread.invoke

.loopexit.thread.invoke:                          ; preds = %37, %.loopexit, %.loopexit.thread
  %127 = phi i32 [ -1, %.loopexit.thread ], [ %.11, %.loopexit ], [ -1, %37 ]
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %127)
          to label %.invoke unwind label %43

.invoke:                                          ; preds = %.loopexit.thread.invoke
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %130 unwind label %43

130:                                              ; preds = %.invoke
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0

131:                                              ; preds = %35, %43, %26
  %.pn85 = phi { ptr, i32 } [ %27, %26 ], [ %36, %35 ], [ %44, %43 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %132

132:                                              ; preds = %131, %19
  %.pn85.pn = phi { ptr, i32 } [ %.pn85, %131 ], [ %20, %19 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %133

133:                                              ; preds = %132, %17
  %.pn85.pn.pn = phi { ptr, i32 } [ %.pn85.pn, %132 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn85.pn.pn
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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 #4

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10, !13}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


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