; LLVM IR from upupming/algorithm :: AdvancedLevel_C++/1025. PAT Ranking (25) (main)

; 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"

%struct.student = type { i64, i32, i32, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<student, std::allocator<student>>::_Vector_impl" }
%"struct.std::_Vector_base<student, std::allocator<student>>::_Vector_impl" = type { %"struct.std::_Vector_base<student, std::allocator<student>>::_Vector_impl_data" }
%"struct.std::_Vector_base<student, std::allocator<student>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [3 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 [18 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4cmp17studentS_(ptr noundef byval(%struct.student) align 8, ptr noundef byval(%struct.student) align 8) #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 %"class.std::vector", align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca i32, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
  call void @_ZNSt6vectorI7studentSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %131, %0
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = icmp sle i32 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %137

25:                                               ; preds = %20
  %26 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
          to label %27 unwind label %36

27:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  call void @_ZNSaI7studentEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  invoke void @_ZNSt6vectorI7studentSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %29, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %30 unwind label %40

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

31:                                               ; preds = %60, %30
  %32 = load i32, ptr %11, align 4, !tbaa !5
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %44, label %35

35:                                               ; preds = %31
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %67

36:                                               ; preds = %25
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %7, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %8, align 4
  br label %136

40:                                               ; preds = %27
  %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
  call void @_ZNSt15__new_allocatorI7studentED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %135

44:                                               ; preds = %31
  %45 = load i32, ptr %11, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %46) #6
  %48 = getelementptr inbounds %struct.student, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %11, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %50) #6
  %52 = getelementptr inbounds %struct.student, ptr %51, i32 0, i32 1
  %53 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %48, ptr noundef %52)
          to label %54 unwind label %63

54:                                               ; preds = %44
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = load i32, ptr %11, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %57) #6
  %59 = getelementptr inbounds %struct.student, ptr %58, i32 0, i32 3
  store i32 %55, ptr %59, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %54
  %61 = load i32, ptr %11, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %11, align 4, !tbaa !5
  br label %31, !llvm.loop !12

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

67:                                               ; preds = %35
  %68 = call ptr @_ZNSt6vectorI7studentSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %69 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %68, ptr %69, align 8
  %70 = call ptr @_ZNSt6vectorI7studentSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %71 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %70, ptr %71, align 8
  %72 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8
  %74 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP7studentSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %73, ptr %75, ptr noundef @_Z4cmp17studentS_)
          to label %76 unwind label %86

76:                                               ; preds = %67
  %77 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #6
  %78 = getelementptr inbounds %struct.student, ptr %77, i32 0, i32 4
  store i32 1, ptr %78, align 4, !tbaa !14
  %79 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #6
  invoke void @_ZNSt6vectorI7studentSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %79)
          to label %80 unwind label %86

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %123, %80
  %82 = load i32, ptr %14, align 4, !tbaa !5
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %90, label %85

85:                                               ; preds = %81
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %130

86:                                               ; preds = %76, %67
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %7, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %8, align 4
  br label %134

90:                                               ; preds = %81
  %91 = load i32, ptr %14, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %92) #6
  %94 = getelementptr inbounds %struct.student, ptr %93, i32 0, i32 1
  %95 = load i32, ptr %94, align 8, !tbaa !15
  %96 = load i32, ptr %14, align 4, !tbaa !5
  %97 = sub nsw i32 %96, 1
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %98) #6
  %100 = getelementptr inbounds %struct.student, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %100, align 8, !tbaa !15
  %102 = icmp eq i32 %95, %101
  br i1 %102, label %103, label %110

103:                                              ; preds = %90
  %104 = load i32, ptr %14, align 4, !tbaa !5
  %105 = sub nsw i32 %104, 1
  %106 = sext i32 %105 to i64
  %107 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %106) #6
  %108 = getelementptr inbounds %struct.student, ptr %107, i32 0, i32 4
  %109 = load i32, ptr %108, align 4, !tbaa !14
  br label %113

110:                                              ; preds = %90
  %111 = load i32, ptr %14, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  br label %113

113:                                              ; preds = %110, %103
  %114 = phi i32 [ %109, %103 ], [ %112, %110 ]
  %115 = load i32, ptr %14, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %116) #6
  %118 = getelementptr inbounds %struct.student, ptr %117, i32 0, i32 4
  store i32 %114, ptr %118, align 4, !tbaa !14
  %119 = load i32, ptr %14, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %120) #6
  invoke void @_ZNSt6vectorI7studentSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %121)
          to label %122 unwind label %126

122:                                              ; preds = %113
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %14, align 4, !tbaa !5
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %14, align 4, !tbaa !5
  br label %81, !llvm.loop !16

126:                                              ; preds = %113
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %7, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %134

130:                                              ; preds = %85
  call void @_ZNSt6vectorI7studentSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %5, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %5, align 4, !tbaa !5
  br label %20, !llvm.loop !17

134:                                              ; preds = %126, %86, %63
  call void @_ZNSt6vectorI7studentSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br label %135

135:                                              ; preds = %134, %40
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  br label %136

136:                                              ; preds = %135, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %233

137:                                              ; preds = %24
  %138 = call ptr @_ZNSt6vectorI7studentSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %139 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  %140 = call ptr @_ZNSt6vectorI7studentSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %141 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %140, ptr %141, align 8
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8
  %144 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP7studentSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %143, ptr %145, ptr noundef @_Z4cmp17studentS_)
          to label %146 unwind label %155

146:                                              ; preds = %137
  %147 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #6
  %148 = getelementptr inbounds %struct.student, ptr %147, i32 0, i32 2
  store i32 1, ptr %148, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %188, %146
  %150 = load i32, ptr %17, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %153 = icmp ult i64 %151, %152
  br i1 %153, label %159, label %154

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

155:                                              ; preds = %191, %137
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %7, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %8, align 4
  br label %233

159:                                              ; preds = %149
  %160 = load i32, ptr %17, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %161) #6
  %163 = getelementptr inbounds %struct.student, ptr %162, i32 0, i32 1
  %164 = load i32, ptr %163, align 8, !tbaa !15
  %165 = load i32, ptr %17, align 4, !tbaa !5
  %166 = sub nsw i32 %165, 1
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %167) #6
  %169 = getelementptr inbounds %struct.student, ptr %168, i32 0, i32 1
  %170 = load i32, ptr %169, align 8, !tbaa !15
  %171 = icmp eq i32 %164, %170
  br i1 %171, label %172, label %179

172:                                              ; preds = %159
  %173 = load i32, ptr %17, align 4, !tbaa !5
  %174 = sub nsw i32 %173, 1
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %175) #6
  %177 = getelementptr inbounds %struct.student, ptr %176, i32 0, i32 2
  %178 = load i32, ptr %177, align 4, !tbaa !18
  br label %182

179:                                              ; preds = %159
  %180 = load i32, ptr %17, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  br label %182

182:                                              ; preds = %179, %172
  %183 = phi i32 [ %178, %172 ], [ %181, %179 ]
  %184 = load i32, ptr %17, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %185) #6
  %187 = getelementptr inbounds %struct.student, ptr %186, i32 0, i32 2
  store i32 %183, ptr %187, align 4, !tbaa !18
  br label %188

188:                                              ; preds = %182
  %189 = load i32, ptr %17, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %17, align 4, !tbaa !5
  br label %149, !llvm.loop !19

191:                                              ; preds = %154
  %192 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %193 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %192)
          to label %194 unwind label %155

194:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %224, %194
  %196 = load i32, ptr %18, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %199 = icmp ult i64 %197, %198
  br i1 %199, label %201, label %200

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

201:                                              ; preds = %195
  %202 = load i32, ptr %18, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %203) #6
  %205 = getelementptr inbounds %struct.student, ptr %204, i32 0, i32 0
  %206 = load i64, ptr %205, align 8, !tbaa !20
  %207 = load i32, ptr %18, align 4, !tbaa !5
  %208 = sext i32 %207 to i64
  %209 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %208) #6
  %210 = getelementptr inbounds %struct.student, ptr %209, i32 0, i32 2
  %211 = load i32, ptr %210, align 4, !tbaa !18
  %212 = load i32, ptr %18, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %213) #6
  %215 = getelementptr inbounds %struct.student, ptr %214, i32 0, i32 3
  %216 = load i32, ptr %215, align 8, !tbaa !9
  %217 = load i32, ptr %18, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %218) #6
  %220 = getelementptr inbounds %struct.student, ptr %219, i32 0, i32 4
  %221 = load i32, ptr %220, align 4, !tbaa !14
  %222 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %206, i32 noundef %211, i32 noundef %216, i32 noundef %221)
          to label %223 unwind label %227

223:                                              ; preds = %201
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %18, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %18, align 4, !tbaa !5
  br label %195, !llvm.loop !21

227:                                              ; preds = %201
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %7, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %233

231:                                              ; preds = %200
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  call void @_ZNSt6vectorI7studentSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %232 = load i32, ptr %1, align 4
  ret i32 %232

233:                                              ; preds = %227, %155, %136
  call void @_ZNSt6vectorI7studentSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %234

234:                                              ; preds = %233
  %235 = load ptr, ptr %7, align 8
  %236 = load i32, ptr %8, align 4
  %237 = insertvalue { ptr, i32 } poison, ptr %235, 0
  %238 = insertvalue { ptr, i32 } %237, i32 %236, 1
  resume { ptr, i32 } %238
}

; 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 @_ZNSt6vectorI7studentSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI7studentED2Ev(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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTS7student", !11, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!11 = !{!"long long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!10, !6, i64 20}
!15 = !{!10, !6, i64 8}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = !{!10, !6, i64 12}
!19 = distinct !{!19, !13}
!20 = !{!10, !11, i64 0}
!21 = distinct !{!21, !13}


; 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"

%struct.student = type { i64, i32, i32, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<student, std::allocator<student>>::_Vector_impl" }
%"struct.std::_Vector_base<student, std::allocator<student>>::_Vector_impl" = type { %"struct.std::_Vector_base<student, std::allocator<student>>::_Vector_impl_data" }
%"struct.std::_Vector_base<student, std::allocator<student>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [3 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 [18 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4cmp17studentS_(ptr noundef byval(%struct.student) align 8, ptr noundef byval(%struct.student) align 8) #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 %"class.std::vector", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorI7studentSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %.not51 = icmp slt i32 %7, 1
  br i1 %.not51, label %._crit_edge55, label %.lr.ph54

._crit_edge55:                                    ; preds = %._crit_edge50, %0
  %8 = call ptr @_ZNSt6vectorI7studentSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %9 = call ptr @_ZNSt6vectorI7studentSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP7studentSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %8, ptr %9, ptr noundef nonnull @_Z4cmp17studentS_)
          to label %67 unwind label %75

.lr.ph54:                                         ; preds = %0, %._crit_edge50
  %.03552 = phi i32 [ %35, %._crit_edge50 ], [ 1, %0 ]
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #6
  call void @_ZNSaI7studentEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  invoke void @_ZNSt6vectorI7studentSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %12, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %13 unwind label %18

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

._crit_edge:                                      ; preds = %.lr.ph, %13
  %16 = call ptr @_ZNSt6vectorI7studentSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %17 = call ptr @_ZNSt6vectorI7studentSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP7studentSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %16, ptr %17, ptr noundef nonnull @_Z4cmp17studentS_)
          to label %29 unwind label %37

18:                                               ; preds = %.lr.ph54
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI7studentED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #6
  br label %66

.lr.ph:                                           ; preds = %13, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %13 ]
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #6
  %21 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #6
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %20, ptr noundef nonnull %22)
  %24 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #6
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  store i32 %.03552, ptr %25, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = icmp slt i64 %indvars.iv.next, %27
  br i1 %28, label %.lr.ph, label %._crit_edge, !llvm.loop !12

29:                                               ; preds = %._crit_edge
  %30 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #6
  %31 = getelementptr inbounds i8, ptr %30, i64 20
  store i32 1, ptr %31, align 4, !tbaa !14
  %32 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #6
  invoke void @_ZNSt6vectorI7studentSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %.preheader unwind label %37

.preheader:                                       ; preds = %29
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 1
  br i1 %34, label %.lr.ph49, label %._crit_edge50

._crit_edge50:                                    ; preds = %59, %.preheader
  call void @_ZNSt6vectorI7studentSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  %35 = add nuw nsw i32 %.03552, 1
  %36 = load i32, ptr %1, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.03552, %36
  br i1 %.not.not, label %.lr.ph54, label %._crit_edge55, !llvm.loop !15

37:                                               ; preds = %29, %._crit_edge
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %65

.lr.ph49:                                         ; preds = %.preheader, %59
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %59 ], [ 1, %.preheader ]
  %39 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv65) #6
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = load i32, ptr %40, align 8, !tbaa !16
  %42 = add nsw i64 %indvars.iv65, -1
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %42) #6
  %44 = getelementptr inbounds i8, ptr %43, i64 8
  %45 = load i32, ptr %44, align 8, !tbaa !16
  %46 = icmp eq i32 %41, %45
  br i1 %46, label %47, label %51

47:                                               ; preds = %.lr.ph49
  %48 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %42) #6
  %49 = getelementptr inbounds i8, ptr %48, i64 20
  %50 = load i32, ptr %49, align 4, !tbaa !14
  br label %54

51:                                               ; preds = %.lr.ph49
  %52 = trunc i64 %indvars.iv65 to i32
  %53 = add i32 %52, 1
  br label %54

54:                                               ; preds = %51, %47
  %55 = phi i32 [ %50, %47 ], [ %53, %51 ]
  %56 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv65) #6
  %57 = getelementptr inbounds i8, ptr %56, i64 20
  store i32 %55, ptr %57, align 4, !tbaa !14
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv65) #6
  invoke void @_ZNSt6vectorI7studentSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %58)
          to label %59 unwind label %63

59:                                               ; preds = %54
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = icmp slt i64 %indvars.iv.next66, %61
  br i1 %62, label %.lr.ph49, label %._crit_edge50, !llvm.loop !17

63:                                               ; preds = %54
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %65

65:                                               ; preds = %63, %37
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %38, %37 ]
  call void @_ZNSt6vectorI7studentSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  br label %66

66:                                               ; preds = %65, %18
  %.pn.pn = phi { ptr, i32 } [ %.pn, %65 ], [ %19, %18 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %112

67:                                               ; preds = %._crit_edge55
  %68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %69 = getelementptr inbounds i8, ptr %68, i64 12
  store i32 1, ptr %69, align 4, !tbaa !18
  %70 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %71 = icmp ugt i64 %70, 1
  br i1 %71, label %.lr.ph58, label %._crit_edge59

._crit_edge59:                                    ; preds = %92, %67
  %72 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %72)
  %74 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %.not = icmp eq i64 %74, 0
  br i1 %.not, label %._crit_edge63, label %.lr.ph62

75:                                               ; preds = %._crit_edge55
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %112

.lr.ph58:                                         ; preds = %67, %92
  %indvars.iv68 = phi i64 [ %indvars.iv.next69.pre-phi, %92 ], [ 1, %67 ]
  %77 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv68) #6
  %78 = getelementptr inbounds i8, ptr %77, i64 8
  %79 = load i32, ptr %78, align 8, !tbaa !16
  %80 = add nsw i64 %indvars.iv68, -1
  %81 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %80) #6
  %82 = getelementptr inbounds i8, ptr %81, i64 8
  %83 = load i32, ptr %82, align 8, !tbaa !16
  %84 = icmp eq i32 %79, %83
  br i1 %84, label %85, label %89

85:                                               ; preds = %.lr.ph58
  %86 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %80) #6
  %87 = getelementptr inbounds i8, ptr %86, i64 12
  %88 = load i32, ptr %87, align 4, !tbaa !18
  %.pre = add nuw nsw i64 %indvars.iv68, 1
  br label %92

89:                                               ; preds = %.lr.ph58
  %90 = add nuw nsw i64 %indvars.iv68, 1
  %91 = trunc nsw i64 %90 to i32
  br label %92

92:                                               ; preds = %89, %85
  %indvars.iv.next69.pre-phi = phi i64 [ %90, %89 ], [ %.pre, %85 ]
  %93 = phi i32 [ %91, %89 ], [ %88, %85 ]
  %94 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv68) #6
  %95 = getelementptr inbounds i8, ptr %94, i64 12
  store i32 %93, ptr %95, align 4, !tbaa !18
  %96 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %97 = icmp ugt i64 %96, %indvars.iv.next69.pre-phi
  br i1 %97, label %.lr.ph58, label %._crit_edge59, !llvm.loop !19

._crit_edge63:                                    ; preds = %.lr.ph62, %._crit_edge59
  call void @_ZNSt6vectorI7studentSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

.lr.ph62:                                         ; preds = %._crit_edge59, %.lr.ph62
  %indvars.iv71 = phi i64 [ %indvars.iv.next72, %.lr.ph62 ], [ 0, %._crit_edge59 ]
  %98 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv71) #6
  %99 = load i64, ptr %98, align 8, !tbaa !20
  %100 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv71) #6
  %101 = getelementptr inbounds i8, ptr %100, i64 12
  %102 = load i32, ptr %101, align 4, !tbaa !18
  %103 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv71) #6
  %104 = getelementptr inbounds i8, ptr %103, i64 16
  %105 = load i32, ptr %104, align 8, !tbaa !9
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv71) #6
  %107 = getelementptr inbounds i8, ptr %106, i64 20
  %108 = load i32, ptr %107, align 4, !tbaa !14
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %99, i32 noundef %102, i32 noundef %105, i32 noundef %108)
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %110 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %111 = icmp ugt i64 %110, %indvars.iv.next72
  br i1 %111, label %.lr.ph62, label %._crit_edge63, !llvm.loop !21

112:                                              ; preds = %75, %66
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %66 ], [ %76, %75 ]
  call void @_ZNSt6vectorI7studentSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn.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 @_ZNSt6vectorI7studentSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(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 nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI7studentED2Ev(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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTS7student", !11, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!11 = !{!"long long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!10, !6, i64 20}
!15 = distinct !{!15, !13}
!16 = !{!10, !6, i64 8}
!17 = distinct !{!17, !13}
!18 = !{!10, !6, i64 12}
!19 = distinct !{!19, !13}
!20 = !{!10, !11, i64 0}
!21 = distinct !{!21, !13}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass