; LLVM IR from imteekay/algorithms :: competitive-programming/uri (motoboy)

; 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<Obj, std::allocator<Obj>>::_Vector_impl" }
%"struct.std::_Vector_base<Obj, std::allocator<Obj>>::_Vector_impl" = type { %"struct.std::_Vector_base<Obj, std::allocator<Obj>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Obj, std::allocator<Obj>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Obj = type { 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 [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3maxii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z11sortByPizza3ObjS_(i64, i64) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.Obj, align 4
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  br label %20

20:                                               ; preds = %215, %0
  %21 = 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)
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = getelementptr i8, ptr %22, i64 -24
  %24 = load i64, ptr %23, align 8
  %25 = getelementptr inbounds i8, ptr %21, i64 %24
  %26 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %25)
  br i1 %26, label %27, label %30

27:                                               ; preds = %20
  %28 = load i32, ptr %2, align 4, !tbaa !8
  %29 = icmp ne i32 %28, 0
  br label %30

30:                                               ; preds = %27, %20
  %31 = phi i1 [ false, %20 ], [ %29, %27 ]
  br i1 %31, label %32, label %218

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #7
  call void @_ZNSt6vectorI3ObjSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %33 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %34 unwind label %40

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !8
  br label %35

35:                                               ; preds = %54, %34
  %36 = load i32, ptr %9, align 4, !tbaa !8
  %37 = load i32, ptr %2, align 4, !tbaa !8
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %44, label %39

39:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %66

40:                                               ; preds = %213, %211, %199, %66, %32
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %7, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %8, align 4
  br label %217

44:                                               ; preds = %35
  %45 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %46 unwind label %57

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %48 unwind label %57

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %49 = load i32, ptr %4, align 4, !tbaa !8
  %50 = getelementptr inbounds %struct.Obj, ptr %10, i32 0, i32 0
  store i32 %49, ptr %50, align 4, !tbaa !11
  %51 = load i32, ptr %5, align 4, !tbaa !8
  %52 = getelementptr inbounds %struct.Obj, ptr %10, i32 0, i32 1
  store i32 %51, ptr %52, align 4, !tbaa !13
  invoke void @_ZNSt6vectorI3ObjSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(8) %10)
          to label %53 unwind label %61

53:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %9, align 4, !tbaa !8
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %9, align 4, !tbaa !8
  br label %35, !llvm.loop !14

57:                                               ; preds = %46, %44
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %7, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %8, align 4
  br label %65

61:                                               ; preds = %48
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %7, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %65

65:                                               ; preds = %61, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %217

66:                                               ; preds = %39
  %67 = call ptr @_ZNSt6vectorI3ObjSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %68 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %67, ptr %68, align 8
  %69 = call ptr @_ZNSt6vectorI3ObjSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %70 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %69, ptr %70, align 8
  %71 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8
  %73 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3ObjSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %72, ptr %74, ptr noundef @_Z11sortByPizza3ObjS_)
          to label %75 unwind label %40

75:                                               ; preds = %66
  %76 = load i32, ptr %2, align 4, !tbaa !8
  %77 = zext i32 %76 to i64
  %78 = load i32, ptr %3, align 4, !tbaa !8
  %79 = add nsw i32 %78, 1
  %80 = zext i32 %79 to i64
  %81 = call ptr @llvm.stacksave.p0()
  store ptr %81, ptr %13, align 8
  %82 = mul nuw i64 %77, %80
  %83 = alloca i32, i64 %82, align 16
  store i64 %77, ptr %14, align 8
  store i64 %80, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !8
  br label %84

84:                                               ; preds = %111, %75
  %85 = load i32, ptr %16, align 4, !tbaa !8
  %86 = load i32, ptr %3, align 4, !tbaa !8
  %87 = icmp sle i32 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %114

89:                                               ; preds = %84
  %90 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3ObjSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #7
  %91 = getelementptr inbounds %struct.Obj, ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 4, !tbaa !13
  %93 = load i32, ptr %16, align 4, !tbaa !8
  %94 = icmp sle i32 %92, %93
  br i1 %94, label %95, label %104

95:                                               ; preds = %89
  %96 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3ObjSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #7
  %97 = getelementptr inbounds %struct.Obj, ptr %96, i32 0, i32 0
  %98 = load i32, ptr %97, align 4, !tbaa !11
  %99 = mul nsw i64 0, %80
  %100 = getelementptr inbounds i32, ptr %83, i64 %99
  %101 = load i32, ptr %16, align 4, !tbaa !8
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i32, ptr %100, i64 %102
  store i32 %98, ptr %103, align 4, !tbaa !8
  br label %110

104:                                              ; preds = %89
  %105 = mul nsw i64 0, %80
  %106 = getelementptr inbounds i32, ptr %83, i64 %105
  %107 = load i32, ptr %16, align 4, !tbaa !8
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds i32, ptr %106, i64 %108
  store i32 0, ptr %109, align 4, !tbaa !8
  br label %110

110:                                              ; preds = %104, %95
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %16, align 4, !tbaa !8
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %16, align 4, !tbaa !8
  br label %84, !llvm.loop !16

114:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 1, ptr %17, align 4, !tbaa !8
  br label %115

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

119:                                              ; preds = %115
  store i32 10, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %199

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

121:                                              ; preds = %192, %120
  %122 = load i32, ptr %19, align 4, !tbaa !8
  %123 = load i32, ptr %3, align 4, !tbaa !8
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  store i32 13, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %195

126:                                              ; preds = %121
  %127 = load i32, ptr %19, align 4, !tbaa !8
  %128 = load i32, ptr %17, align 4, !tbaa !8
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3ObjSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %129) #7
  %131 = getelementptr inbounds %struct.Obj, ptr %130, i32 0, i32 1
  %132 = load i32, ptr %131, align 4, !tbaa !13
  %133 = sub nsw i32 %127, %132
  %134 = icmp sge i32 %133, 0
  br i1 %134, label %135, label %174

135:                                              ; preds = %126
  %136 = load i32, ptr %17, align 4, !tbaa !8
  %137 = sub nsw i32 %136, 1
  %138 = sext i32 %137 to i64
  %139 = mul nsw i64 %138, %80
  %140 = getelementptr inbounds i32, ptr %83, i64 %139
  %141 = load i32, ptr %19, align 4, !tbaa !8
  %142 = load i32, ptr %17, align 4, !tbaa !8
  %143 = sext i32 %142 to i64
  %144 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3ObjSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %143) #7
  %145 = getelementptr inbounds %struct.Obj, ptr %144, i32 0, i32 1
  %146 = load i32, ptr %145, align 4, !tbaa !13
  %147 = sub nsw i32 %141, %146
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds i32, ptr %140, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !8
  %151 = load i32, ptr %17, align 4, !tbaa !8
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3ObjSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %152) #7
  %154 = getelementptr inbounds %struct.Obj, ptr %153, i32 0, i32 0
  %155 = load i32, ptr %154, align 4, !tbaa !11
  %156 = add nsw i32 %150, %155
  %157 = load i32, ptr %17, align 4, !tbaa !8
  %158 = sub nsw i32 %157, 1
  %159 = sext i32 %158 to i64
  %160 = mul nsw i64 %159, %80
  %161 = getelementptr inbounds i32, ptr %83, i64 %160
  %162 = load i32, ptr %19, align 4, !tbaa !8
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i32, ptr %161, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !8
  %166 = call noundef i32 @_Z3maxii(i32 noundef %156, i32 noundef %165)
  %167 = load i32, ptr %17, align 4, !tbaa !8
  %168 = sext i32 %167 to i64
  %169 = mul nsw i64 %168, %80
  %170 = getelementptr inbounds i32, ptr %83, i64 %169
  %171 = load i32, ptr %19, align 4, !tbaa !8
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds i32, ptr %170, i64 %172
  store i32 %166, ptr %173, align 4, !tbaa !8
  br label %191

174:                                              ; preds = %126
  %175 = load i32, ptr %17, align 4, !tbaa !8
  %176 = sub nsw i32 %175, 1
  %177 = sext i32 %176 to i64
  %178 = mul nsw i64 %177, %80
  %179 = getelementptr inbounds i32, ptr %83, i64 %178
  %180 = load i32, ptr %19, align 4, !tbaa !8
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds i32, ptr %179, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !8
  %184 = load i32, ptr %17, align 4, !tbaa !8
  %185 = sext i32 %184 to i64
  %186 = mul nsw i64 %185, %80
  %187 = getelementptr inbounds i32, ptr %83, i64 %186
  %188 = load i32, ptr %19, align 4, !tbaa !8
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %187, i64 %189
  store i32 %183, ptr %190, align 4, !tbaa !8
  br label %191

191:                                              ; preds = %174, %135
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %19, align 4, !tbaa !8
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %19, align 4, !tbaa !8
  br label %121, !llvm.loop !17

195:                                              ; preds = %125
  br label %196

196:                                              ; preds = %195
  %197 = load i32, ptr %17, align 4, !tbaa !8
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %17, align 4, !tbaa !8
  br label %115, !llvm.loop !18

199:                                              ; preds = %119
  %200 = load i32, ptr %2, align 4, !tbaa !8
  %201 = sub nsw i32 %200, 1
  %202 = sext i32 %201 to i64
  %203 = mul nsw i64 %202, %80
  %204 = getelementptr inbounds i32, ptr %83, i64 %203
  %205 = load i32, ptr %3, align 4, !tbaa !8
  %206 = sub nsw i32 %205, 1
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds i32, ptr %204, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !8
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %209)
          to label %211 unwind label %40

211:                                              ; preds = %199
  %212 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %210, ptr noundef @.str)
          to label %213 unwind label %40

213:                                              ; preds = %211
  %214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %212, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %215 unwind label %40

215:                                              ; preds = %213
  %216 = load ptr, ptr %13, align 8
  call void @llvm.stackrestore.p0(ptr %216)
  call void @_ZNSt6vectorI3ObjSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  br label %20, !llvm.loop !19

217:                                              ; preds = %65, %40
  call void @_ZNSt6vectorI3ObjSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %220

218:                                              ; preds = %30
  store i32 0, ptr %1, align 4
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %219 = load i32, ptr %1, align 4
  ret i32 %219

220:                                              ; preds = %217
  %221 = load ptr, ptr %7, align 8
  %222 = load i32, ptr %8, align 4
  %223 = insertvalue { ptr, i32 } poison, ptr %221, 0
  %224 = insertvalue { ptr, i32 } %223, i32 %222, 1
  resume { ptr, i32 } %224
}

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #4 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3ObjSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 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) #5

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 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: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #6

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

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

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

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


; 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<Obj, std::allocator<Obj>>::_Vector_impl" }
%"struct.std::_Vector_base<Obj, std::allocator<Obj>>::_Vector_impl" = type { %"struct.std::_Vector_base<Obj, std::allocator<Obj>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Obj, std::allocator<Obj>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Obj = type { i32, i32 }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3maxii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z11sortByPizza3ObjS_(i64, i64) #0

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

.lr.ph53:                                         ; preds = %0
  %16 = getelementptr inbounds i8, ptr %6, i64 4
  br label %17

17:                                               ; preds = %.lr.ph53, %118
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZNSt6vectorI3ObjSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %18 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %.preheader41 unwind label %23

.preheader41:                                     ; preds = %17
  %19 = load i32, ptr %1, align 4, !tbaa !8
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %31, %.preheader41
  %21 = call ptr @_ZNSt6vectorI3ObjSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %22 = call ptr @_ZNSt6vectorI3ObjSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3ObjSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %21, ptr %22, ptr noundef nonnull @_Z11sortByPizza3ObjS_)
          to label %39 unwind label %23

23:                                               ; preds = %116, %114, %._crit_edge51, %._crit_edge, %17
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %128

.lr.ph:                                           ; preds = %.preheader41, %31
  %.03442 = phi i32 [ %32, %31 ], [ 0, %.preheader41 ]
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %26 unwind label %35

26:                                               ; preds = %.lr.ph
  %27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %28 unwind label %35

28:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %29 = load i32, ptr %3, align 4, !tbaa !8
  store i32 %29, ptr %6, align 4, !tbaa !11
  %30 = load i32, ptr %4, align 4, !tbaa !8
  store i32 %30, ptr %16, align 4, !tbaa !13
  invoke void @_ZNSt6vectorI3ObjSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %31 unwind label %37

31:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %32 = add nuw nsw i32 %.03442, 1
  %33 = load i32, ptr %1, align 4, !tbaa !8
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %.lr.ph, label %._crit_edge, !llvm.loop !14

35:                                               ; preds = %26, %.lr.ph
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %128

37:                                               ; preds = %28
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %128

39:                                               ; preds = %._crit_edge
  %40 = load i32, ptr %1, align 4, !tbaa !8
  %41 = zext i32 %40 to i64
  %42 = load i32, ptr %2, align 4, !tbaa !8
  %43 = add nsw i32 %42, 1
  %44 = zext i32 %43 to i64
  %45 = call ptr @llvm.stacksave.p0()
  %46 = mul nuw i64 %44, %41
  %47 = alloca i32, i64 %46, align 16
  %48 = load i32, ptr %2, align 4, !tbaa !8
  %.not43 = icmp slt i32 %48, 0
  br i1 %.not43, label %.preheader40, label %.lr.ph46

.preheader40:                                     ; preds = %60, %39
  %49 = phi i32 [ %48, %39 ], [ %62, %60 ]
  %50 = load i32, ptr %1, align 4, !tbaa !8
  %51 = icmp sgt i32 %50, 1
  %52 = icmp sgt i32 %49, 0
  %or.cond = and i1 %51, %52
  br i1 %or.cond, label %.preheader, label %._crit_edge51

.lr.ph46:                                         ; preds = %39, %60
  %indvars.iv = phi i64 [ %indvars.iv.next, %60 ], [ 0, %39 ]
  %53 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3ObjSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #7
  %54 = getelementptr inbounds i8, ptr %53, i64 4
  %55 = load i32, ptr %54, align 4, !tbaa !13
  %56 = sext i32 %55 to i64
  %.not37 = icmp slt i64 %indvars.iv, %56
  br i1 %.not37, label %60, label %57

57:                                               ; preds = %.lr.ph46
  %58 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3ObjSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #7
  %59 = load i32, ptr %58, align 4, !tbaa !11
  br label %60

60:                                               ; preds = %.lr.ph46, %57
  %.sink = phi i32 [ %59, %57 ], [ 0, %.lr.ph46 ]
  %61 = getelementptr inbounds i32, ptr %47, i64 %indvars.iv
  store i32 %.sink, ptr %61, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %62 = load i32, ptr %2, align 4, !tbaa !8
  %63 = sext i32 %62 to i64
  %.not.not = icmp slt i64 %indvars.iv, %63
  br i1 %.not.not, label %.lr.ph46, label %.preheader40, !llvm.loop !16

.preheader:                                       ; preds = %.preheader40, %._crit_edge49
  %64 = phi i32 [ %82, %._crit_edge49 ], [ %50, %.preheader40 ]
  %65 = phi i32 [ %83, %._crit_edge49 ], [ %49, %.preheader40 ]
  %indvars.iv61 = phi i64 [ %indvars.iv.next62, %._crit_edge49 ], [ 1, %.preheader40 ]
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %.lr.ph48, label %._crit_edge49

.lr.ph48:                                         ; preds = %.preheader
  %67 = add nsw i64 %indvars.iv61, -1
  %68 = mul nuw nsw i64 %67, %44
  %69 = getelementptr inbounds i32, ptr %47, i64 %68
  %70 = mul nuw nsw i64 %indvars.iv61, %44
  %71 = getelementptr inbounds i32, ptr %47, i64 %70
  br label %86

._crit_edge51:                                    ; preds = %._crit_edge49, %.preheader40
  %72 = phi i32 [ %49, %.preheader40 ], [ %83, %._crit_edge49 ]
  %.lcssa = phi i32 [ %50, %.preheader40 ], [ %82, %._crit_edge49 ]
  %73 = add nsw i32 %.lcssa, -1
  %74 = sext i32 %73 to i64
  %75 = mul nsw i64 %74, %44
  %76 = getelementptr inbounds i32, ptr %47, i64 %75
  %77 = sext i32 %72 to i64
  %78 = getelementptr i32, ptr %76, i64 %77
  %79 = getelementptr i8, ptr %78, i64 -4
  %80 = load i32, ptr %79, align 4, !tbaa !8
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %80)
          to label %114 unwind label %23

._crit_edge49.loopexit:                           ; preds = %109
  %.pre = load i32, ptr %1, align 4, !tbaa !8
  br label %._crit_edge49

._crit_edge49:                                    ; preds = %._crit_edge49.loopexit, %.preheader
  %82 = phi i32 [ %.pre, %._crit_edge49.loopexit ], [ %64, %.preheader ]
  %83 = phi i32 [ %111, %._crit_edge49.loopexit ], [ %65, %.preheader ]
  %indvars.iv.next62 = add nuw nsw i64 %indvars.iv61, 1
  %84 = sext i32 %82 to i64
  %85 = icmp slt i64 %indvars.iv.next62, %84
  br i1 %85, label %.preheader, label %._crit_edge51, !llvm.loop !17

86:                                               ; preds = %.lr.ph48, %109
  %indvars.iv58 = phi i64 [ 0, %.lr.ph48 ], [ %indvars.iv.next59, %109 ]
  %87 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3ObjSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv61) #7
  %88 = getelementptr inbounds i8, ptr %87, i64 4
  %89 = load i32, ptr %88, align 4, !tbaa !13
  %90 = sext i32 %89 to i64
  %.not36 = icmp slt i64 %indvars.iv58, %90
  br i1 %.not36, label %106, label %91

91:                                               ; preds = %86
  %92 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3ObjSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv61) #7
  %93 = getelementptr inbounds i8, ptr %92, i64 4
  %94 = load i32, ptr %93, align 4, !tbaa !13
  %95 = trunc nuw nsw i64 %indvars.iv58 to i32
  %96 = sub nsw i32 %95, %94
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %69, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !8
  %100 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3ObjSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv61) #7
  %101 = load i32, ptr %100, align 4, !tbaa !11
  %102 = add nsw i32 %101, %99
  %103 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv58
  %104 = load i32, ptr %103, align 4, !tbaa !8
  %105 = call noundef i32 @_Z3maxii(i32 noundef %102, i32 noundef %104)
  br label %109

106:                                              ; preds = %86
  %107 = getelementptr inbounds i32, ptr %69, i64 %indvars.iv58
  %108 = load i32, ptr %107, align 4, !tbaa !8
  br label %109

109:                                              ; preds = %91, %106
  %.sink68 = phi i32 [ %105, %91 ], [ %108, %106 ]
  %110 = getelementptr inbounds i32, ptr %71, i64 %indvars.iv58
  store i32 %.sink68, ptr %110, align 4, !tbaa !8
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %111 = load i32, ptr %2, align 4, !tbaa !8
  %112 = sext i32 %111 to i64
  %113 = icmp slt i64 %indvars.iv.next59, %112
  br i1 %113, label %86, label %._crit_edge49.loopexit, !llvm.loop !19

114:                                              ; preds = %._crit_edge51
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull @.str)
          to label %116 unwind label %23

116:                                              ; preds = %114
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %118 unwind label %23

118:                                              ; preds = %116
  call void @llvm.stackrestore.p0(ptr %45)
  call void @_ZNSt6vectorI3ObjSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  %119 = 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)
  %120 = load ptr, ptr %119, align 8, !tbaa !5
  %121 = getelementptr i8, ptr %120, i64 -24
  %122 = load i64, ptr %121, align 8
  %123 = getelementptr inbounds i8, ptr %119, i64 %122
  %124 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %123)
  %125 = load i32, ptr %1, align 4
  %126 = icmp ne i32 %125, 0
  %127 = select i1 %124, i1 %126, i1 false
  br i1 %127, label %17, label %._crit_edge54, !llvm.loop !20

128:                                              ; preds = %35, %37, %23
  %.pn.pn = phi { ptr, i32 } [ %24, %23 ], [ %38, %37 ], [ %36, %35 ]
  call void @_ZNSt6vectorI3ObjSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #4 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorI3ObjSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 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 #5

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

; 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 #4 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 nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #6

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

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

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

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


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