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

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"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 }
%struct.student = type <{ %"class.std::__cxx11::basic_string", i32, i8, [3 x i8] }>

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %struct.student, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %4) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  br label %15

15:                                               ; preds = %185, %0
  %16 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %17 unwind label %46

17:                                               ; preds = %15
  %18 = load ptr, ptr %16, align 8, !tbaa !5
  %19 = getelementptr i8, ptr %18, i64 -24
  %20 = load i64, ptr %19, align 8
  %21 = getelementptr inbounds i8, ptr %16, i64 %20
  %22 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %21)
          to label %23 unwind label %46

23:                                               ; preds = %17
  br i1 %22, label %24, label %27

24:                                               ; preds = %23
  %25 = load i32, ptr %2, align 4, !tbaa !8
  %26 = icmp ne i32 %25, 0
  br label %27

27:                                               ; preds = %24, %23
  %28 = phi i1 [ false, %23 ], [ %26, %24 ]
  br i1 %28, label %29, label %187

29:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @_ZNSt6vectorI7studentSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  br label %30

30:                                               ; preds = %45, %29
  %31 = load i32, ptr %2, align 4, !tbaa !8
  %32 = add nsw i32 %31, -1
  store i32 %32, ptr %2, align 4, !tbaa !8
  %33 = icmp ne i32 %31, 0
  br i1 %33, label %34, label %58

34:                                               ; preds = %30
  %35 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %36 unwind label %50

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %38 unwind label %50

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #7
  call void @_ZN7studentC2Ev(ptr noundef nonnull align 8 dereferenceable(37) %8) #7
  %39 = getelementptr inbounds %struct.student, ptr %8, i32 0, i32 0
  %40 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %41 unwind label %54

41:                                               ; preds = %38
  %42 = load i32, ptr %3, align 4, !tbaa !8
  %43 = getelementptr inbounds %struct.student, ptr %8, i32 0, i32 1
  store i32 %42, ptr %43, align 8, !tbaa !11
  %44 = getelementptr inbounds %struct.student, ptr %8, i32 0, i32 2
  store i8 0, ptr %44, align 4, !tbaa !18
  invoke void @_ZNSt6vectorI7studentSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(37) %8)
          to label %45 unwind label %54

45:                                               ; preds = %41
  call void @_ZN7studentD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #7
  br label %30, !llvm.loop !19

46:                                               ; preds = %17, %15
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %5, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %6, align 4
  br label %189

50:                                               ; preds = %36, %34
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %5, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %6, align 4
  br label %186

54:                                               ; preds = %41, %38
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %5, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %6, align 4
  call void @_ZN7studentD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %8) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #7
  br label %186

58:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %59 = call noundef nonnull align 8 dereferenceable(37) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 0) #7
  %60 = getelementptr inbounds %struct.student, ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 8, !tbaa !11
  store i32 %61, ptr %9, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %62 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %63 = sub i64 %62, 1
  %64 = trunc i64 %63 to i32
  store i32 %64, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #7
  %65 = load i32, ptr %9, align 4, !tbaa !8
  %66 = srem i32 %65, 2
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %58
  store i8 1, ptr %13, align 1, !tbaa !21
  br label %70

69:                                               ; preds = %58
  store i8 0, ptr %13, align 1, !tbaa !21
  br label %70

70:                                               ; preds = %69, %68
  br label %71

71:                                               ; preds = %151, %70
  %72 = load i32, ptr %11, align 4, !tbaa !8
  %73 = load i32, ptr %10, align 4, !tbaa !8
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %75, label %152

75:                                               ; preds = %71
  br label %76

76:                                               ; preds = %133, %75
  %77 = load i32, ptr %9, align 4, !tbaa !8
  %78 = add nsw i32 %77, -1
  store i32 %78, ptr %9, align 4, !tbaa !8
  %79 = icmp ne i32 %77, 0
  br i1 %79, label %80, label %134

80:                                               ; preds = %76
  %81 = load i8, ptr %13, align 1, !tbaa !21, !range !22, !noundef !23
  %82 = trunc i8 %81 to i1
  br i1 %82, label %83, label %86

83:                                               ; preds = %80
  %84 = load i32, ptr %12, align 4, !tbaa !8
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %12, align 4, !tbaa !8
  br label %89

86:                                               ; preds = %80
  %87 = load i32, ptr %12, align 4, !tbaa !8
  %88 = add nsw i32 %87, -1
  store i32 %88, ptr %12, align 4, !tbaa !8
  br label %89

89:                                               ; preds = %86, %83
  %90 = load i32, ptr %12, align 4, !tbaa !8
  %91 = load i32, ptr %10, align 4, !tbaa !8
  %92 = icmp sgt i32 %90, %91
  br i1 %92, label %93, label %94

93:                                               ; preds = %89
  store i32 0, ptr %12, align 4, !tbaa !8
  br label %102

94:                                               ; preds = %89
  %95 = load i32, ptr %12, align 4, !tbaa !8
  %96 = icmp slt i32 %95, 0
  br i1 %96, label %97, label %101

97:                                               ; preds = %94
  %98 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %99 = sub i64 %98, 1
  %100 = trunc i64 %99 to i32
  store i32 %100, ptr %12, align 4, !tbaa !8
  br label %101

101:                                              ; preds = %97, %94
  br label %102

102:                                              ; preds = %101, %93
  br label %103

103:                                              ; preds = %132, %102
  %104 = load i32, ptr %12, align 4, !tbaa !8
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(37) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %105) #7
  %107 = getelementptr inbounds %struct.student, ptr %106, i32 0, i32 2
  %108 = load i8, ptr %107, align 4, !tbaa !18, !range !22, !noundef !23
  %109 = trunc i8 %108 to i1
  br i1 %109, label %110, label %133

110:                                              ; preds = %103
  %111 = load i8, ptr %13, align 1, !tbaa !21, !range !22, !noundef !23
  %112 = trunc i8 %111 to i1
  br i1 %112, label %113, label %116

113:                                              ; preds = %110
  %114 = load i32, ptr %12, align 4, !tbaa !8
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %12, align 4, !tbaa !8
  br label %119

116:                                              ; preds = %110
  %117 = load i32, ptr %12, align 4, !tbaa !8
  %118 = add nsw i32 %117, -1
  store i32 %118, ptr %12, align 4, !tbaa !8
  br label %119

119:                                              ; preds = %116, %113
  %120 = load i32, ptr %12, align 4, !tbaa !8
  %121 = load i32, ptr %10, align 4, !tbaa !8
  %122 = icmp sgt i32 %120, %121
  br i1 %122, label %123, label %124

123:                                              ; preds = %119
  store i32 0, ptr %12, align 4, !tbaa !8
  br label %132

124:                                              ; preds = %119
  %125 = load i32, ptr %12, align 4, !tbaa !8
  %126 = icmp slt i32 %125, 0
  br i1 %126, label %127, label %131

127:                                              ; preds = %124
  %128 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %129 = sub i64 %128, 1
  %130 = trunc i64 %129 to i32
  store i32 %130, ptr %12, align 4, !tbaa !8
  br label %131

131:                                              ; preds = %127, %124
  br label %132

132:                                              ; preds = %131, %123
  br label %103, !llvm.loop !24

133:                                              ; preds = %103
  br label %76, !llvm.loop !25

134:                                              ; preds = %76
  %135 = load i32, ptr %12, align 4, !tbaa !8
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 8 dereferenceable(37) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %136) #7
  %138 = getelementptr inbounds %struct.student, ptr %137, i32 0, i32 2
  store i8 1, ptr %138, align 4, !tbaa !18
  %139 = load i32, ptr %12, align 4, !tbaa !8
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(37) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %140) #7
  %142 = getelementptr inbounds %struct.student, ptr %141, i32 0, i32 1
  %143 = load i32, ptr %142, align 8, !tbaa !11
  store i32 %143, ptr %9, align 4, !tbaa !8
  %144 = load i32, ptr %11, align 4, !tbaa !8
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %11, align 4, !tbaa !8
  %146 = load i32, ptr %9, align 4, !tbaa !8
  %147 = srem i32 %146, 2
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %150

149:                                              ; preds = %134
  store i8 1, ptr %13, align 1, !tbaa !21
  br label %151

150:                                              ; preds = %134
  store i8 0, ptr %13, align 1, !tbaa !21
  br label %151

151:                                              ; preds = %150, %149
  br label %71, !llvm.loop !26

152:                                              ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !8
  br label %153

153:                                              ; preds = %182, %152
  %154 = load i32, ptr %14, align 4, !tbaa !8
  %155 = sext i32 %154 to i64
  %156 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %157 = icmp ult i64 %155, %156
  br i1 %157, label %159, label %158

158:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %185

159:                                              ; preds = %153
  %160 = load i32, ptr %14, align 4, !tbaa !8
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 8 dereferenceable(37) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %161) #7
  %163 = getelementptr inbounds %struct.student, ptr %162, i32 0, i32 2
  %164 = load i8, ptr %163, align 4, !tbaa !18, !range !22, !noundef !23
  %165 = trunc i8 %164 to i1
  br i1 %165, label %181, label %166

166:                                              ; preds = %159
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %168 unwind label %177

168:                                              ; preds = %166
  %169 = load i32, ptr %14, align 4, !tbaa !8
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 8 dereferenceable(37) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %170) #7
  %172 = getelementptr inbounds %struct.student, ptr %171, i32 0, i32 0
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %167, ptr noundef nonnull align 8 dereferenceable(32) %172)
          to label %174 unwind label %177

174:                                              ; preds = %168
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %173, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %176 unwind label %177

176:                                              ; preds = %174
  br label %181

177:                                              ; preds = %174, %168, %166
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %5, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %186

181:                                              ; preds = %176, %159
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %14, align 4, !tbaa !8
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %14, align 4, !tbaa !8
  br label %153, !llvm.loop !27

185:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @_ZNSt6vectorI7studentSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  br label %15, !llvm.loop !28

186:                                              ; preds = %177, %54, %50
  call void @_ZNSt6vectorI7studentSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  br label %189

187:                                              ; preds = %27
  store i32 0, ptr %1, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %188 = load i32, ptr %1, align 4
  ret i32 %188

189:                                              ; preds = %186, %46
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %190

190:                                              ; preds = %189
  %191 = load ptr, ptr %5, align 8
  %192 = load i32, ptr %6, align 4
  %193 = insertvalue { ptr, i32 } poison, ptr %191, 0
  %194 = insertvalue { ptr, i32 } %193, i32 %192, 1
  resume { ptr, i32 } %194
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7studentC2Ev(ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7studentD2Ev(ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !9, i64 32}
!12 = !{!"_ZTS7student", !13, i64 0, !9, i64 32, !17, i64 36}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !16, i64 8, !10, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!"long", !10, i64 0}
!17 = !{!"bool", !10, i64 0}
!18 = !{!12, !17, i64 36}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!17, !17, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}
!28 = distinct !{!28, !20}


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"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 }
%struct.student = type <{ %"class.std::__cxx11::basic_string", i32, i8, [3 x i8] }>

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %struct.student, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %6 = getelementptr inbounds i8, ptr %5, i64 32
  %7 = getelementptr inbounds i8, ptr %5, i64 36
  br label %8

8:                                                ; preds = %._crit_edge62, %0
  %9 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
          to label %10 unwind label %33

10:                                               ; preds = %8
  %11 = load ptr, ptr %9, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr %9, i64 %13
  %15 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %14)
          to label %16 unwind label %33

16:                                               ; preds = %10
  %17 = load i32, ptr %1, align 4
  %18 = icmp ne i32 %17, 0
  %19 = select i1 %15, i1 %18, i1 false
  br i1 %19, label %20, label %99

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZNSt6vectorI7studentSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %21 = load i32, ptr %1, align 4, !tbaa !8
  %22 = add nsw i32 %21, -1
  store i32 %22, ptr %1, align 4, !tbaa !8
  %.not45 = icmp eq i32 %21, 0
  br i1 %.not45, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %20, %30
  %23 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %24 unwind label %35

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

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #7
  call void @_ZN7studentC2Ev(ptr noundef nonnull align 8 dereferenceable(37) %5) #7
  %27 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %28 unwind label %37

28:                                               ; preds = %26
  %29 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %29, ptr %6, align 8, !tbaa !11
  store i8 0, ptr %7, align 4, !tbaa !18
  invoke void @_ZNSt6vectorI7studentSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(37) %5)
          to label %30 unwind label %37

30:                                               ; preds = %28
  call void @_ZN7studentD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  %31 = load i32, ptr %1, align 4, !tbaa !8
  %32 = add nsw i32 %31, -1
  store i32 %32, ptr %1, align 4, !tbaa !8
  %.not = icmp eq i32 %31, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !19

33:                                               ; preds = %10, %8
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %100

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

37:                                               ; preds = %28, %26
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7studentD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  br label %98

._crit_edge:                                      ; preds = %30, %20
  %39 = call noundef nonnull align 8 dereferenceable(37) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #7
  %40 = getelementptr inbounds i8, ptr %39, i64 32
  %41 = load i32, ptr %40, align 8, !tbaa !11
  %42 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %43 = trunc i64 %42 to i32
  %44 = add i32 %43, -1
  %45 = icmp sgt i32 %44, 0
  br i1 %45, label %.preheader, label %.preheader44

.preheader44:                                     ; preds = %._crit_edge52, %._crit_edge
  %46 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %.not63 = icmp eq i64 %46, 0
  br i1 %.not63, label %._crit_edge62, label %.lr.ph61

.preheader:                                       ; preds = %._crit_edge, %._crit_edge52
  %.02858 = phi i32 [ %.129.lcssa, %._crit_edge52 ], [ 0, %._crit_edge ]
  %.03157 = phi i32 [ %81, %._crit_edge52 ], [ 0, %._crit_edge ]
  %.03256 = phi i32 [ %80, %._crit_edge52 ], [ %41, %._crit_edge ]
  %.not4049 = icmp eq i32 %.03256, 0
  br i1 %.not4049, label %._crit_edge52, label %.lr.ph51

.lr.ph51:                                         ; preds = %.preheader
  %.1.not59.in = and i32 %.03256, 1
  %.1.not59 = icmp eq i32 %.1.not59.in, 0
  %.230.v = select i1 %.1.not59, i32 -1, i32 1
  br label %47

.loopexit:                                        ; preds = %69, %56
  %.4.lcssa = phi i32 [ %.3, %56 ], [ %.6, %69 ]
  %.not40 = icmp eq i32 %48, 0
  br i1 %.not40, label %._crit_edge52, label %47, !llvm.loop !21

47:                                               ; preds = %.lr.ph51, %.loopexit
  %.in = phi i32 [ %.03256, %.lr.ph51 ], [ %48, %.loopexit ]
  %.12950 = phi i32 [ %.02858, %.lr.ph51 ], [ %.4.lcssa, %.loopexit ]
  %48 = add nsw i32 %.in, -1
  %.230 = add nsw i32 %.12950, %.230.v
  %49 = icmp sgt i32 %.230, %44
  br i1 %49, label %56, label %50

50:                                               ; preds = %47
  %51 = icmp slt i32 %.230, 0
  br i1 %51, label %52, label %56

52:                                               ; preds = %50
  %53 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %54 = trunc i64 %53 to i32
  %55 = add i32 %54, -1
  br label %56

56:                                               ; preds = %47, %50, %52
  %.3 = phi i32 [ %55, %52 ], [ %.230, %50 ], [ 0, %47 ]
  %57 = sext i32 %.3 to i64
  %58 = call noundef nonnull align 8 dereferenceable(37) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %57) #7
  %59 = getelementptr inbounds i8, ptr %58, i64 36
  %60 = load i8, ptr %59, align 4, !tbaa !18, !range !22, !noundef !23
  %61 = trunc nuw i8 %60 to i1
  br i1 %61, label %.lr.ph48, label %.loopexit

.lr.ph48:                                         ; preds = %56, %69
  %.446 = phi i32 [ %.6, %69 ], [ %.3, %56 ]
  %.5 = add nsw i32 %.446, %.230.v
  %62 = icmp sgt i32 %.5, %44
  br i1 %62, label %69, label %63

63:                                               ; preds = %.lr.ph48
  %64 = icmp slt i32 %.5, 0
  br i1 %64, label %65, label %69

65:                                               ; preds = %63
  %66 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %67 = trunc i64 %66 to i32
  %68 = add i32 %67, -1
  br label %69

69:                                               ; preds = %.lr.ph48, %63, %65
  %.6 = phi i32 [ %68, %65 ], [ %.5, %63 ], [ 0, %.lr.ph48 ]
  %70 = sext i32 %.6 to i64
  %71 = call noundef nonnull align 8 dereferenceable(37) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %70) #7
  %72 = getelementptr inbounds i8, ptr %71, i64 36
  %73 = load i8, ptr %72, align 4, !tbaa !18, !range !22, !noundef !23
  %74 = trunc nuw i8 %73 to i1
  br i1 %74, label %.lr.ph48, label %.loopexit, !llvm.loop !24

._crit_edge52:                                    ; preds = %.loopexit, %.preheader
  %.129.lcssa = phi i32 [ %.02858, %.preheader ], [ %.4.lcssa, %.loopexit ]
  %75 = sext i32 %.129.lcssa to i64
  %76 = call noundef nonnull align 8 dereferenceable(37) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %75) #7
  %77 = getelementptr inbounds i8, ptr %76, i64 36
  store i8 1, ptr %77, align 4, !tbaa !18
  %78 = call noundef nonnull align 8 dereferenceable(37) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %75) #7
  %79 = getelementptr inbounds i8, ptr %78, i64 32
  %80 = load i32, ptr %79, align 8, !tbaa !11
  %81 = add nuw nsw i32 %.03157, 1
  %exitcond.not = icmp eq i32 %81, %44
  br i1 %exitcond.not, label %.preheader44, label %.preheader, !llvm.loop !25

._crit_edge62:                                    ; preds = %95, %.preheader44
  call void @_ZNSt6vectorI7studentSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  br label %8, !llvm.loop !26

.lr.ph61:                                         ; preds = %.preheader44, %95
  %indvars.iv = phi i64 [ %indvars.iv.next, %95 ], [ 0, %.preheader44 ]
  %82 = call noundef nonnull align 8 dereferenceable(37) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #7
  %83 = getelementptr inbounds i8, ptr %82, i64 36
  %84 = load i8, ptr %83, align 4, !tbaa !18, !range !22, !noundef !23
  %85 = trunc nuw i8 %84 to i1
  br i1 %85, label %95, label %86

86:                                               ; preds = %.lr.ph61
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %88 unwind label %93

88:                                               ; preds = %86
  %89 = call noundef nonnull align 8 dereferenceable(37) ptr @_ZNSt6vectorI7studentSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #7
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull align 8 dereferenceable(32) %89)
          to label %91 unwind label %93

91:                                               ; preds = %88
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %90, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %95 unwind label %93

93:                                               ; preds = %91, %88, %86
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %98

95:                                               ; preds = %.lr.ph61, %91
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %96 = call noundef i64 @_ZNKSt6vectorI7studentSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %97 = icmp ugt i64 %96, %indvars.iv.next
  br i1 %97, label %.lr.ph61, label %._crit_edge62, !llvm.loop !27

98:                                               ; preds = %93, %37, %35
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ], [ %94, %93 ]
  call void @_ZNSt6vectorI7studentSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  br label %100

99:                                               ; preds = %16
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

100:                                              ; preds = %98, %33
  %.pn.pn = phi { ptr, i32 } [ %.pn, %98 ], [ %34, %33 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7studentC2Ev(ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4 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(37)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7studentD2Ev(ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !9, i64 32}
!12 = !{!"_ZTS7student", !13, i64 0, !9, i64 32, !17, i64 36}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !16, i64 8, !10, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!"long", !10, i64 0}
!17 = !{!"bool", !10, i64 0}
!18 = !{!12, !17, i64 36}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !20}


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