; LLVM IR from DionysiosB/CodeForces :: 0700-0799 (749D-LeavingAuction-B)

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

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<person, std::allocator<person>>::_Vector_impl" }
%"struct.std::_Vector_base<person, std::allocator<person>>::_Vector_impl" = type { %"struct.std::_Vector_base<person, std::allocator<person>>::_Vector_impl_data" }
%"struct.std::_Vector_base<person, std::allocator<person>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.9" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%struct.person = type { i64, %"class.std::vector", i64 }

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z13personCompare6personS_(ptr noundef, ptr noundef) #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 i64, align 8
  %3 = alloca %"class.std::vector.0", align 8
  %4 = alloca %"class.std::allocator.2", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"class.std::vector.5", align 8
  %19 = alloca i8, align 1
  %20 = alloca %"class.std::allocator.9", align 1
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca %"struct.std::_Bit_reference", align 8
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca %"struct.std::_Bit_reference", align 8
  %29 = alloca i64, align 8
  %30 = alloca %"class.std::vector", align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %35 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #6
  %36 = load i64, ptr %2, align 8, !tbaa !5
  %37 = add nsw i64 %36, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
  call void @_ZNSaI6personEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorI6personSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %37, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %38 unwind label %44

38:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorI6personED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !5
  br label %39

39:                                               ; preds = %53, %38
  %40 = load i64, ptr %7, align 8, !tbaa !5
  %41 = call noundef i64 @_ZNKSt6vectorI6personSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %42 = icmp ult i64 %40, %41
  br i1 %42, label %48, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %56

44:                                               ; preds = %0
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %5, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %6, align 4
  call void @_ZNSt15__new_allocatorI6personED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  br label %321

48:                                               ; preds = %39
  %49 = load i64, ptr %7, align 8, !tbaa !5
  %50 = load i64, ptr %7, align 8, !tbaa !5
  %51 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %50) #6
  %52 = getelementptr inbounds %struct.person, ptr %51, i32 0, i32 0
  store i64 %49, ptr %52, align 8, !tbaa !9
  br label %53

53:                                               ; preds = %48
  %54 = load i64, ptr %7, align 8, !tbaa !5
  %55 = add nsw i64 %54, 1
  store i64 %55, ptr %7, align 8, !tbaa !5
  br label %39, !llvm.loop !16

56:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 0, ptr %8, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %73, %56
  %58 = load i64, ptr %8, align 8, !tbaa !5
  %59 = load i64, ptr %2, align 8, !tbaa !5
  %60 = icmp slt i64 %58, %59
  br i1 %60, label %62, label %61

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

62:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %63 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %9, ptr noundef %10)
          to label %64 unwind label %76

64:                                               ; preds = %62
  %65 = load i64, ptr %9, align 8, !tbaa !5
  %66 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %65) #6
  %67 = getelementptr inbounds %struct.person, ptr %66, i32 0, i32 1
  invoke void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %68 unwind label %76

68:                                               ; preds = %64
  %69 = load i64, ptr %10, align 8, !tbaa !5
  %70 = load i64, ptr %9, align 8, !tbaa !5
  %71 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %70) #6
  %72 = getelementptr inbounds %struct.person, ptr %71, i32 0, i32 2
  store i64 %69, ptr %72, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %73

73:                                               ; preds = %68
  %74 = load i64, ptr %8, align 8, !tbaa !5
  %75 = add nsw i64 %74, 1
  store i64 %75, ptr %8, align 8, !tbaa !5
  br label %57, !llvm.loop !19

76:                                               ; preds = %64, %62
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %5, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %320

80:                                               ; preds = %61
  %81 = call ptr @_ZNSt6vectorI6personSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %82 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %81, ptr %82, align 8
  %83 = call ptr @_ZNSt6vectorI6personSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %83, ptr %84, align 8
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP6personSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %86, ptr %88, ptr noundef @_Z13personCompare6personS_)
          to label %89 unwind label %98

89:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  %90 = load i64, ptr %2, align 8, !tbaa !5
  %91 = add nsw i64 %90, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %91, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %92 unwind label %102

92:                                               ; preds = %89
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %113, %92
  %94 = load i64, ptr %15, align 8, !tbaa !5
  %95 = load i64, ptr %2, align 8, !tbaa !5
  %96 = icmp sle i64 %94, %95
  br i1 %96, label %106, label %97

97:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %116

98:                                               ; preds = %80
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %5, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %6, align 4
  br label %320

102:                                              ; preds = %89
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %5, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  br label %319

106:                                              ; preds = %93
  %107 = load i64, ptr %15, align 8, !tbaa !5
  %108 = load i64, ptr %15, align 8, !tbaa !5
  %109 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %108) #6
  %110 = getelementptr inbounds %struct.person, ptr %109, i32 0, i32 0
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %111) #6
  store i64 %107, ptr %112, align 8, !tbaa !5
  br label %113

113:                                              ; preds = %106
  %114 = load i64, ptr %15, align 8, !tbaa !5
  %115 = add nsw i64 %114, 1
  store i64 %115, ptr %15, align 8, !tbaa !5
  br label %93, !llvm.loop !20

116:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %117 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %16)
          to label %118 unwind label %134

118:                                              ; preds = %116
  br label %119

119:                                              ; preds = %311, %309, %118
  %120 = load i64, ptr %16, align 8, !tbaa !5
  %121 = add nsw i64 %120, -1
  store i64 %121, ptr %16, align 8, !tbaa !5
  %122 = icmp ne i64 %120, 0
  br i1 %122, label %123, label %316

123:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %124 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %17)
          to label %125 unwind label %138

125:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #6
  %126 = load i64, ptr %2, align 8, !tbaa !5
  %127 = add nsw i64 %126, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  store i8 1, ptr %19, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #6
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %18, i64 noundef %127, ptr noundef nonnull align 1 dereferenceable(1) %19, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %128 unwind label %142

128:                                              ; preds = %125
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store i64 0, ptr %21, align 8, !tbaa !5
  br label %129

129:                                              ; preds = %157, %128
  %130 = load i64, ptr %21, align 8, !tbaa !5
  %131 = load i64, ptr %17, align 8, !tbaa !5
  %132 = icmp slt i64 %130, %131
  br i1 %132, label %146, label %133

133:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %169

134:                                              ; preds = %116
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %5, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %6, align 4
  br label %318

138:                                              ; preds = %123
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %5, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %6, align 4
  br label %315

142:                                              ; preds = %125
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %5, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  br label %314

146:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %147 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %22)
          to label %148 unwind label %160

148:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  %149 = load i64, ptr %22, align 8, !tbaa !5
  %150 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %18, i64 noundef %149)
          to label %151 unwind label %164

151:                                              ; preds = %148
  %152 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %153 = extractvalue { ptr, i64 } %150, 0
  store ptr %153, ptr %152, align 8
  %154 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %155 = extractvalue { ptr, i64 } %150, 1
  store i64 %155, ptr %154, align 8
  %156 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %23, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %157

157:                                              ; preds = %151
  %158 = load i64, ptr %21, align 8, !tbaa !5
  %159 = add nsw i64 %158, 1
  store i64 %159, ptr %21, align 8, !tbaa !5
  br label %129, !llvm.loop !23

160:                                              ; preds = %146
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %5, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %6, align 4
  br label %168

164:                                              ; preds = %148
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %5, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %168

168:                                              ; preds = %164, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %313

169:                                              ; preds = %133
  %170 = load i64, ptr %17, align 8, !tbaa !5
  %171 = load i64, ptr %2, align 8, !tbaa !5
  %172 = icmp eq i64 %170, %171
  br i1 %172, label %173, label %180

173:                                              ; preds = %169
  %174 = invoke i32 @puts(ptr noundef @.str.2)
          to label %175 unwind label %176

175:                                              ; preds = %173
  store i32 11, ptr %24, align 4
  br label %309, !llvm.loop !24

176:                                              ; preds = %173
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %5, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %6, align 4
  br label %313

180:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  store i64 0, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  store i64 0, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %181 = load i64, ptr %2, align 8, !tbaa !5
  store i64 %181, ptr %27, align 8, !tbaa !5
  br label %182

182:                                              ; preds = %226, %180
  %183 = load i64, ptr %27, align 8, !tbaa !5
  %184 = icmp sgt i64 %183, 0
  br i1 %184, label %186, label %185

185:                                              ; preds = %182
  store i32 16, ptr %24, align 4
  br label %229

186:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %187 = load i64, ptr %27, align 8, !tbaa !5
  %188 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %187) #6
  %189 = getelementptr inbounds %struct.person, ptr %188, i32 0, i32 0
  %190 = load i64, ptr %189, align 8, !tbaa !9
  %191 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %18, i64 noundef %190)
          to label %192 unwind label %200

192:                                              ; preds = %186
  %193 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 0
  %194 = extractvalue { ptr, i64 } %191, 0
  store ptr %194, ptr %193, align 8
  %195 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 1
  %196 = extractvalue { ptr, i64 } %191, 1
  store i64 %196, ptr %195, align 8
  %197 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  %198 = xor i1 %197, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  br i1 %198, label %199, label %204

199:                                              ; preds = %192
  br label %226

200:                                              ; preds = %186
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %5, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %312

204:                                              ; preds = %192
  %205 = load i64, ptr %27, align 8, !tbaa !5
  %206 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %205) #6
  %207 = getelementptr inbounds %struct.person, ptr %206, i32 0, i32 1
  %208 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %207) #6
  %209 = icmp ule i64 %208, 0
  br i1 %209, label %210, label %211

210:                                              ; preds = %204
  store i32 16, ptr %24, align 4
  br label %229

211:                                              ; preds = %204
  %212 = load i64, ptr %25, align 8, !tbaa !5
  %213 = icmp sle i64 %212, 0
  br i1 %213, label %214, label %216

214:                                              ; preds = %211
  %215 = load i64, ptr %27, align 8, !tbaa !5
  store i64 %215, ptr %25, align 8, !tbaa !5
  br label %223

216:                                              ; preds = %211
  %217 = load i64, ptr %26, align 8, !tbaa !5
  %218 = icmp sle i64 %217, 0
  br i1 %218, label %219, label %221

219:                                              ; preds = %216
  %220 = load i64, ptr %27, align 8, !tbaa !5
  store i64 %220, ptr %26, align 8, !tbaa !5
  br label %222

221:                                              ; preds = %216
  store i32 16, ptr %24, align 4
  br label %229

222:                                              ; preds = %219
  br label %223

223:                                              ; preds = %222, %214
  br label %224

224:                                              ; preds = %223
  br label %225

225:                                              ; preds = %224
  br label %226

226:                                              ; preds = %225, %199
  %227 = load i64, ptr %27, align 8, !tbaa !5
  %228 = add nsw i64 %227, -1
  store i64 %228, ptr %27, align 8, !tbaa !5
  br label %182, !llvm.loop !25

229:                                              ; preds = %221, %210, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %230

230:                                              ; preds = %229
  %231 = load i64, ptr %25, align 8, !tbaa !5
  %232 = icmp sle i64 %231, 0
  br i1 %232, label %233, label %240

233:                                              ; preds = %230
  %234 = invoke i32 @puts(ptr noundef @.str.2)
          to label %235 unwind label %236

235:                                              ; preds = %233
  br label %308

236:                                              ; preds = %243, %233
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %5, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %6, align 4
  br label %312

240:                                              ; preds = %230
  %241 = load i64, ptr %26, align 8, !tbaa !5
  %242 = icmp sle i64 %241, 0
  br i1 %242, label %243, label %255

243:                                              ; preds = %240
  %244 = load i64, ptr %25, align 8, !tbaa !5
  %245 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %244) #6
  %246 = getelementptr inbounds %struct.person, ptr %245, i32 0, i32 0
  %247 = load i64, ptr %246, align 8, !tbaa !9
  %248 = load i64, ptr %25, align 8, !tbaa !5
  %249 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %248) #6
  %250 = getelementptr inbounds %struct.person, ptr %249, i32 0, i32 1
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %250, i64 noundef 0) #6
  %252 = load i64, ptr %251, align 8, !tbaa !5
  %253 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %247, i64 noundef %252)
          to label %254 unwind label %236

254:                                              ; preds = %243
  br label %307

255:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %256 = load i64, ptr %26, align 8, !tbaa !5
  %257 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %256) #6
  %258 = getelementptr inbounds %struct.person, ptr %257, i32 0, i32 2
  %259 = load i64, ptr %258, align 8, !tbaa !18
  store i64 %259, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #6
  %260 = load i64, ptr %25, align 8, !tbaa !5
  %261 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %260) #6
  %262 = getelementptr inbounds %struct.person, ptr %261, i32 0, i32 1
  invoke void @_ZNSt6vectorIlSaIlEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %262)
          to label %263 unwind label %286

263:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  store i64 0, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %264 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %265 = sub i64 %264, 1
  store i64 %265, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  store i64 0, ptr %33, align 8, !tbaa !5
  br label %266

266:                                              ; preds = %293, %263
  %267 = load i64, ptr %31, align 8, !tbaa !5
  %268 = load i64, ptr %32, align 8, !tbaa !5
  %269 = icmp sle i64 %267, %268
  br i1 %269, label %270, label %294

270:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %271 = load i64, ptr %31, align 8, !tbaa !5
  %272 = load i64, ptr %32, align 8, !tbaa !5
  %273 = add nsw i64 %271, %272
  %274 = sdiv i64 %273, 2
  store i64 %274, ptr %34, align 8, !tbaa !5
  %275 = load i64, ptr %34, align 8, !tbaa !5
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %275) #6
  %277 = load i64, ptr %276, align 8, !tbaa !5
  %278 = load i64, ptr %29, align 8, !tbaa !5
  %279 = icmp sgt i64 %277, %278
  br i1 %279, label %280, label %290

280:                                              ; preds = %270
  %281 = load i64, ptr %34, align 8, !tbaa !5
  %282 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %281) #6
  %283 = load i64, ptr %282, align 8, !tbaa !5
  store i64 %283, ptr %33, align 8, !tbaa !5
  %284 = load i64, ptr %34, align 8, !tbaa !5
  %285 = sub nsw i64 %284, 1
  store i64 %285, ptr %32, align 8, !tbaa !5
  br label %293

286:                                              ; preds = %255
  %287 = landingpad { ptr, i32 }
          cleanup
  %288 = extractvalue { ptr, i32 } %287, 0
  store ptr %288, ptr %5, align 8
  %289 = extractvalue { ptr, i32 } %287, 1
  store i32 %289, ptr %6, align 4
  br label %306

290:                                              ; preds = %270
  %291 = load i64, ptr %34, align 8, !tbaa !5
  %292 = add nsw i64 %291, 1
  store i64 %292, ptr %31, align 8, !tbaa !5
  br label %293

293:                                              ; preds = %290, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %266, !llvm.loop !26

294:                                              ; preds = %266
  %295 = load i64, ptr %25, align 8, !tbaa !5
  %296 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %295) #6
  %297 = getelementptr inbounds %struct.person, ptr %296, i32 0, i32 0
  %298 = load i64, ptr %297, align 8, !tbaa !9
  %299 = load i64, ptr %33, align 8, !tbaa !5
  %300 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %298, i64 noundef %299)
          to label %301 unwind label %302

301:                                              ; preds = %294
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %307

302:                                              ; preds = %294
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %5, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  br label %306

306:                                              ; preds = %302, %286
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %312

307:                                              ; preds = %301, %254
  br label %308

308:                                              ; preds = %307, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  store i32 0, ptr %24, align 4
  br label %309

309:                                              ; preds = %308, %175
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  %310 = load i32, ptr %24, align 4
  switch i32 %310, label %327 [
    i32 0, label %311
    i32 11, label %119
  ]

311:                                              ; preds = %309
  br label %119, !llvm.loop !24

312:                                              ; preds = %306, %236, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %313

313:                                              ; preds = %312, %176, %168
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #6
  br label %314

314:                                              ; preds = %313, %142
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #6
  br label %315

315:                                              ; preds = %314, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %318

316:                                              ; preds = %119
  store i32 0, ptr %1, align 4
  store i32 1, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @_ZNSt6vectorI6personSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %317 = load i32, ptr %1, align 4
  ret i32 %317

318:                                              ; preds = %315, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  br label %319

319:                                              ; preds = %318, %102
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  br label %320

320:                                              ; preds = %319, %98, %76
  call void @_ZNSt6vectorI6personSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %321

321:                                              ; preds = %320, %44
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %322

322:                                              ; preds = %321
  %323 = load ptr, ptr %5, align 8
  %324 = load i32, ptr %6, align 4
  %325 = insertvalue { ptr, i32 } poison, ptr %323, 0
  %326 = insertvalue { ptr, i32 } %325, i32 %324, 1
  resume { ptr, i32 } %326

327:                                              ; preds = %309
  unreachable
}

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #0 align 2

declare i32 @puts(ptr noundef) #3

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

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

declare i32 @printf(ptr noundef, ...) #3

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { 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", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS6person", !6, i64 0, !11, i64 8, !6, i64 32}
!11 = !{!"_ZTSSt6vectorIlSaIlEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!10, !6, i64 32}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}


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

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<person, std::allocator<person>>::_Vector_impl" }
%"struct.std::_Vector_base<person, std::allocator<person>>::_Vector_impl" = type { %"struct.std::_Vector_base<person, std::allocator<person>>::_Vector_impl_data" }
%"struct.std::_Vector_base<person, std::allocator<person>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.5" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.9" = type { i8 }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca %"class.std::vector.0", align 8
  %3 = alloca %"class.std::allocator.2", align 1
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::vector.5", align 8
  %11 = alloca i8, align 1
  %12 = alloca %"class.std::allocator.9", align 1
  %13 = alloca i64, align 8
  %14 = alloca %"struct.std::_Bit_reference", align 8
  %15 = alloca %"struct.std::_Bit_reference", align 8
  %16 = alloca %"class.std::vector", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  %18 = load i64, ptr %1, align 8, !tbaa !5
  %19 = add nsw i64 %18, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  call void @_ZNSaI6personEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  invoke void @_ZNSt6vectorI6personSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %19, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %20 unwind label %24

20:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorI6personED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  %21 = call noundef i64 @_ZNKSt6vectorI6personSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %.not116 = icmp eq i64 %21, 0
  br i1 %.not116, label %.preheader74, label %.lr.ph

.preheader74:                                     ; preds = %.lr.ph, %20
  %22 = load i64, ptr %1, align 8, !tbaa !5
  %23 = icmp sgt i64 %22, 0
  br i1 %23, label %.lr.ph84, label %._crit_edge

24:                                               ; preds = %0
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI6personED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  br label %156

.lr.ph:                                           ; preds = %20, %.lr.ph
  %.05982 = phi i64 [ %27, %.lr.ph ], [ 0, %20 ]
  %26 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.05982) #6
  store i64 %.05982, ptr %26, align 8, !tbaa !9
  %27 = add nuw nsw i64 %.05982, 1
  %28 = call noundef i64 @_ZNKSt6vectorI6personSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %29 = icmp ult i64 %27, %28
  br i1 %29, label %.lr.ph, label %.preheader74, !llvm.loop !16

._crit_edge:                                      ; preds = %36, %.preheader74
  %30 = call ptr @_ZNSt6vectorI6personSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %31 = call ptr @_ZNSt6vectorI6personSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP6personSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %30, ptr %31, ptr noundef nonnull @_Z13personCompare6personS_)
          to label %46 unwind label %56

.lr.ph84:                                         ; preds = %.preheader74, %36
  %.06083 = phi i64 [ %41, %36 ], [ 0, %.preheader74 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %32 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %33 = load i64, ptr %4, align 8, !tbaa !5
  %34 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %33) #6
  %35 = getelementptr inbounds i8, ptr %34, i64 8
  invoke void @_ZNSt6vectorIlSaIlEE9push_backERKl(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %36 unwind label %44

36:                                               ; preds = %.lr.ph84
  %37 = load i64, ptr %5, align 8, !tbaa !5
  %38 = load i64, ptr %4, align 8, !tbaa !5
  %39 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %38) #6
  %40 = getelementptr inbounds i8, ptr %39, i64 32
  store i64 %37, ptr %40, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %41 = add nuw nsw i64 %.06083, 1
  %42 = load i64, ptr %1, align 8, !tbaa !5
  %43 = icmp slt i64 %41, %42
  br i1 %43, label %.lr.ph84, label %._crit_edge, !llvm.loop !19

44:                                               ; preds = %.lr.ph84
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %155

46:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  %47 = load i64, ptr %1, align 8, !tbaa !5
  %48 = add nsw i64 %47, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #6
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %48, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %49 unwind label %58

49:                                               ; preds = %46
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  %50 = load i64, ptr %1, align 8, !tbaa !5
  %.not85 = icmp slt i64 %50, 0
  br i1 %.not85, label %._crit_edge89, label %.lr.ph88

._crit_edge89:                                    ; preds = %.lr.ph88, %49
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %51 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %8)
  %52 = load i64, ptr %8, align 8, !tbaa !5
  %53 = add nsw i64 %52, -1
  store i64 %53, ptr %8, align 8, !tbaa !5
  %.not63112 = icmp eq i64 %52, 0
  br i1 %.not63112, label %._crit_edge115, label %.lr.ph114

.lr.ph114:                                        ; preds = %._crit_edge89
  %54 = getelementptr inbounds i8, ptr %14, i64 8
  %55 = getelementptr inbounds i8, ptr %15, i64 8
  br label %65

56:                                               ; preds = %._crit_edge
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %155

58:                                               ; preds = %46
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #6
  br label %154

.lr.ph88:                                         ; preds = %49, %.lr.ph88
  %.05286 = phi i64 [ %63, %.lr.ph88 ], [ 0, %49 ]
  %60 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.05286) #6
  %61 = load i64, ptr %60, align 8, !tbaa !9
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %61) #6
  store i64 %.05286, ptr %62, align 8, !tbaa !5
  %63 = add nuw nsw i64 %.05286, 1
  %64 = load i64, ptr %1, align 8, !tbaa !5
  %.not.not = icmp slt i64 %.05286, %64
  br i1 %.not.not, label %.lr.ph88, label %._crit_edge89, !llvm.loop !20

65:                                               ; preds = %.lr.ph114, %149
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %66 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %9)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #6
  %67 = load i64, ptr %1, align 8, !tbaa !5
  %68 = add nsw i64 %67, 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #6
  store i8 1, ptr %11, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %10, i64 noundef %68, ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %69 unwind label %75

69:                                               ; preds = %65
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  %70 = load i64, ptr %9, align 8, !tbaa !5
  %71 = icmp sgt i64 %70, 0
  br i1 %71, label %.lr.ph92, label %._crit_edge93

._crit_edge93:                                    ; preds = %80, %69
  %.lcssa = phi i64 [ %70, %69 ], [ %85, %80 ]
  %72 = load i64, ptr %1, align 8, !tbaa !5
  %73 = icmp eq i64 %.lcssa, %72
  br i1 %73, label %89, label %.preheader

.preheader:                                       ; preds = %._crit_edge93
  %74 = icmp sgt i64 %72, 0
  br i1 %74, label %.lr.ph97, label %._crit_edge98.thread

75:                                               ; preds = %65
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #6
  br label %153

.lr.ph92:                                         ; preds = %69, %80
  %.05190 = phi i64 [ %84, %80 ], [ 0, %69 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %77 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %13)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %78 = load i64, ptr %13, align 8, !tbaa !5
  %79 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %10, i64 noundef %78)
          to label %80 unwind label %87

80:                                               ; preds = %.lr.ph92
  %81 = extractvalue { ptr, i64 } %79, 0
  store ptr %81, ptr %14, align 8
  %82 = extractvalue { ptr, i64 } %79, 1
  store i64 %82, ptr %54, align 8
  %83 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %14, i1 noundef zeroext false) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  %84 = add nuw nsw i64 %.05190, 1
  %85 = load i64, ptr %9, align 8, !tbaa !5
  %86 = icmp slt i64 %84, %85
  br i1 %86, label %.lr.ph92, label %._crit_edge93, !llvm.loop !23

87:                                               ; preds = %.lr.ph92
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br label %152

89:                                               ; preds = %._crit_edge93
  %90 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %149, !llvm.loop !24

.lr.ph97:                                         ; preds = %.preheader, %109
  %.04696 = phi i64 [ %110, %109 ], [ %72, %.preheader ]
  %.04795 = phi i64 [ %.148, %109 ], [ 0, %.preheader ]
  %.04994 = phi i64 [ %.150, %109 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  %91 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.04696) #6
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %10, i64 noundef %92)
          to label %94 unwind label %98

94:                                               ; preds = %.lr.ph97
  %95 = extractvalue { ptr, i64 } %93, 0
  store ptr %95, ptr %15, align 8
  %96 = extractvalue { ptr, i64 } %93, 1
  store i64 %96, ptr %55, align 8
  %97 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br i1 %97, label %100, label %109

98:                                               ; preds = %.lr.ph97
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %152

100:                                              ; preds = %94
  %101 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.04696) #6
  %102 = getelementptr inbounds i8, ptr %101, i64 8
  %103 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #6
  %104 = icmp eq i64 %103, 0
  br i1 %104, label %._crit_edge98, label %105

105:                                              ; preds = %100
  %106 = icmp slt i64 %.04994, 1
  br i1 %106, label %109, label %107

107:                                              ; preds = %105
  %108 = icmp slt i64 %.04795, 1
  br i1 %108, label %109, label %.thread73

109:                                              ; preds = %107, %105, %94
  %.150 = phi i64 [ %.04994, %94 ], [ %.04696, %105 ], [ %.04994, %107 ]
  %.148 = phi i64 [ %.04795, %94 ], [ %.04795, %105 ], [ %.04696, %107 ]
  %110 = add nsw i64 %.04696, -1
  %111 = icmp sgt i64 %.04696, 1
  br i1 %111, label %.lr.ph97, label %._crit_edge98, !llvm.loop !25

._crit_edge98:                                    ; preds = %109, %100
  %.049.lcssa = phi i64 [ %.150, %109 ], [ %.04994, %100 ]
  %.047.lcssa = phi i64 [ %.148, %109 ], [ %.04795, %100 ]
  %112 = icmp slt i64 %.049.lcssa, 1
  br i1 %112, label %._crit_edge98.thread, label %114

._crit_edge98.thread:                             ; preds = %.preheader, %._crit_edge98
  %113 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %149

114:                                              ; preds = %._crit_edge98
  %115 = icmp slt i64 %.047.lcssa, 1
  br i1 %115, label %116, label %.thread73

116:                                              ; preds = %114
  %117 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.049.lcssa) #6
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.049.lcssa) #6
  %120 = getelementptr inbounds i8, ptr %119, i64 8
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef 0) #6
  %122 = load i64, ptr %121, align 8, !tbaa !5
  %123 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %118, i64 noundef %122)
  br label %149

.thread73:                                        ; preds = %107, %114
  %.04981 = phi i64 [ %.049.lcssa, %114 ], [ %.04994, %107 ]
  %.04778 = phi i64 [ %.047.lcssa, %114 ], [ %.04795, %107 ]
  %124 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.04778) #6
  %125 = getelementptr inbounds i8, ptr %124, i64 32
  %126 = load i64, ptr %125, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #6
  %127 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.04981) #6
  %128 = getelementptr inbounds i8, ptr %127, i64 8
  invoke void @_ZNSt6vectorIlSaIlEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %128)
          to label %129 unwind label %141

129:                                              ; preds = %.thread73
  %130 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %131 = add i64 %130, -1
  %.not65104 = icmp slt i64 %131, 0
  br i1 %.not65104, label %._crit_edge110, label %.lr.ph109

.lr.ph109:                                        ; preds = %129, %145
  %.0107 = phi i64 [ %.1, %145 ], [ 0, %129 ]
  %.040106 = phi i64 [ %.141, %145 ], [ %131, %129 ]
  %.042105 = phi i64 [ %.143, %145 ], [ 0, %129 ]
  %132 = add nuw nsw i64 %.040106, %.042105
  %133 = lshr i64 %132, 1
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %133) #6
  %135 = load i64, ptr %134, align 8, !tbaa !5
  %136 = icmp sgt i64 %135, %126
  br i1 %136, label %137, label %143

137:                                              ; preds = %.lr.ph109
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %133) #6
  %139 = load i64, ptr %138, align 8, !tbaa !5
  %140 = add nsw i64 %133, -1
  br label %145

141:                                              ; preds = %.thread73
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #6
  br label %152

143:                                              ; preds = %.lr.ph109
  %144 = add nuw nsw i64 %133, 1
  br label %145

145:                                              ; preds = %143, %137
  %.143 = phi i64 [ %.042105, %137 ], [ %144, %143 ]
  %.141 = phi i64 [ %140, %137 ], [ %.040106, %143 ]
  %.1 = phi i64 [ %139, %137 ], [ %.0107, %143 ]
  %.not65 = icmp sgt i64 %.143, %.141
  br i1 %.not65, label %._crit_edge110, label %.lr.ph109, !llvm.loop !26

._crit_edge110:                                   ; preds = %145, %129
  %.0.lcssa = phi i64 [ 0, %129 ], [ %.1, %145 ]
  %146 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI6personSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.04981) #6
  %147 = load i64, ptr %146, align 8, !tbaa !9
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %147, i64 noundef %.0.lcssa)
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #6
  br label %149

149:                                              ; preds = %._crit_edge98.thread, %._crit_edge110, %116, %89
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %150 = load i64, ptr %8, align 8, !tbaa !5
  %151 = add nsw i64 %150, -1
  store i64 %151, ptr %8, align 8, !tbaa !5
  %.not63 = icmp eq i64 %150, 0
  br i1 %.not63, label %._crit_edge115, label %65

152:                                              ; preds = %98, %141, %87
  %.pn66 = phi { ptr, i32 } [ %88, %87 ], [ %142, %141 ], [ %99, %98 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  br label %153

153:                                              ; preds = %152, %75
  %.pn66.pn = phi { ptr, i32 } [ %.pn66, %152 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %154

._crit_edge115:                                   ; preds = %149, %._crit_edge89
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorI6personSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0

154:                                              ; preds = %153, %58
  %.pn66.pn.pn = phi { ptr, i32 } [ %.pn66.pn, %153 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %155

155:                                              ; preds = %154, %56, %44
  %.pn70 = phi { ptr, i32 } [ %45, %44 ], [ %.pn66.pn.pn, %154 ], [ %57, %56 ]
  call void @_ZNSt6vectorI6personSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  br label %156

156:                                              ; preds = %155, %24
  %.pn70.pn = phi { ptr, i32 } [ %.pn70, %155 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn70.pn
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #0 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { nofree nounwind "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 = { 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", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS6person", !6, i64 0, !11, i64 8, !6, i64 32}
!11 = !{!"_ZTSSt6vectorIlSaIlEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIlSaIlEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIlSaIlEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!10, !6, i64 32}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = !{!22, !22, i64 0}
!22 = !{!"bool", !7, i64 0}
!23 = distinct !{!23, !17}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17}


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