; LLVM IR from upupming/algorithm :: upupming (1025)

; 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.Stu = type { %"class.std::__cxx11::basic_string", i32, i32, i32, i32 }
%"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<Stu, std::allocator<Stu>>::_Vector_impl" }
%"struct.std::_Vector_base<Stu, std::allocator<Stu>>::_Vector_impl" = type { %"struct.std::_Vector_base<Stu, std::allocator<Stu>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Stu, std::allocator<Stu>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.__gnu_cxx::__normal_iterator" = type { ptr }

@stu = external dso_local global %struct.Stu, align 8
@students = external dso_local global %"class.std::vector", align 8
@n = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3cmpRK3StuS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4cmp1RK3StuS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %101, %0
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %20 = icmp sle i32 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %104

22:                                               ; preds = %17
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @k)
  %24 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %24, ptr getelementptr inbounds (%struct.Stu, ptr @stu, i32 0, i32 2), align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %33, %22
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = load i32, ptr @k, align 4, !tbaa !5
  %28 = icmp slt i32 %26, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %36

30:                                               ; preds = %25
  %31 = call 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) @stu)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (%struct.Stu, ptr @stu, i32 0, i32 4))
  call void @_ZNSt6vectorI3StuSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @students, ptr noundef nonnull align 8 dereferenceable(48) @stu)
  br label %33

33:                                               ; preds = %30
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %5, align 4, !tbaa !5
  br label %25, !llvm.loop !15

36:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %37 = call ptr @_ZNSt6vectorI3StuSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %38 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %37, ptr %38, align 8
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3StuSt6vectorIS1_SaIS1_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %40) #6
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  %43 = call ptr @_ZNSt6vectorI3StuSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %44 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %43, ptr %44, align 8
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8
  %47 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3StuSt6vectorIS2_SaIS2_EEEEPFiRKS2_S9_EEvT_SC_T0_(ptr %46, ptr %48, ptr noundef @_Z3cmpRK3StuS1_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %49 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %49, ptr %9, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %94, %36
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = call noundef i64 @_ZNKSt6vectorI3StuSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %54 = icmp ult i64 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %97

56:                                               ; preds = %50
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = sub nsw i32 %57, 1
  %59 = icmp sge i32 %58, 0
  br i1 %59, label %60, label %84

60:                                               ; preds = %56
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = sub nsw i32 %61, 1
  %63 = sext i32 %62 to i64
  %64 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %63) #6
  %65 = getelementptr inbounds %struct.Stu, ptr %64, i32 0, i32 4
  %66 = load i32, ptr %65, align 4, !tbaa !17
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %68) #6
  %70 = getelementptr inbounds %struct.Stu, ptr %69, i32 0, i32 4
  %71 = load i32, ptr %70, align 4, !tbaa !17
  %72 = icmp eq i32 %66, %71
  br i1 %72, label %73, label %84

73:                                               ; preds = %60
  %74 = load i32, ptr %9, align 4, !tbaa !5
  %75 = sub nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %76) #6
  %78 = getelementptr inbounds %struct.Stu, ptr %77, i32 0, i32 3
  %79 = load i32, ptr %78, align 8, !tbaa !18
  %80 = load i32, ptr %9, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %81) #6
  %83 = getelementptr inbounds %struct.Stu, ptr %82, i32 0, i32 3
  store i32 %79, ptr %83, align 8, !tbaa !18
  br label %93

84:                                               ; preds = %60, %56
  %85 = load i32, ptr %9, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  %87 = load i32, ptr %2, align 4, !tbaa !5
  %88 = sub nsw i32 %86, %87
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %90) #6
  %92 = getelementptr inbounds %struct.Stu, ptr %91, i32 0, i32 3
  store i32 %88, ptr %92, align 8, !tbaa !18
  br label %93

93:                                               ; preds = %84, %73
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %9, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %9, align 4, !tbaa !5
  br label %50, !llvm.loop !19

97:                                               ; preds = %55
  %98 = load i32, ptr @k, align 4, !tbaa !5
  %99 = load i32, ptr %2, align 4, !tbaa !5
  %100 = add nsw i32 %99, %98
  store i32 %100, ptr %2, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %97
  %102 = load i32, ptr %3, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %3, align 4, !tbaa !5
  br label %17, !llvm.loop !20

104:                                              ; preds = %21
  %105 = call ptr @_ZNSt6vectorI3StuSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %106 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  store ptr %105, ptr %106, align 8
  %107 = call ptr @_ZNSt6vectorI3StuSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %108 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  store ptr %107, ptr %108, align 8
  %109 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %10, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8
  %111 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %11, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3StuSt6vectorIS2_SaIS2_EEEEPFiRKS2_S9_EEvT_SC_T0_(ptr %110, ptr %112, ptr noundef @_Z3cmpRK3StuS1_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %155, %104
  %114 = load i32, ptr %12, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = call noundef i64 @_ZNKSt6vectorI3StuSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %117 = icmp ult i64 %115, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %113
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %158

119:                                              ; preds = %113
  %120 = load i32, ptr %12, align 4, !tbaa !5
  %121 = sub nsw i32 %120, 1
  %122 = icmp sge i32 %121, 0
  br i1 %122, label %123, label %147

123:                                              ; preds = %119
  %124 = load i32, ptr %12, align 4, !tbaa !5
  %125 = sub nsw i32 %124, 1
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %126) #6
  %128 = getelementptr inbounds %struct.Stu, ptr %127, i32 0, i32 4
  %129 = load i32, ptr %128, align 4, !tbaa !17
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %131) #6
  %133 = getelementptr inbounds %struct.Stu, ptr %132, i32 0, i32 4
  %134 = load i32, ptr %133, align 4, !tbaa !17
  %135 = icmp eq i32 %129, %134
  br i1 %135, label %136, label %147

136:                                              ; preds = %123
  %137 = load i32, ptr %12, align 4, !tbaa !5
  %138 = sub nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  %140 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %139) #6
  %141 = getelementptr inbounds %struct.Stu, ptr %140, i32 0, i32 1
  %142 = load i32, ptr %141, align 8, !tbaa !21
  %143 = load i32, ptr %12, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %144) #6
  %146 = getelementptr inbounds %struct.Stu, ptr %145, i32 0, i32 1
  store i32 %142, ptr %146, align 8, !tbaa !21
  br label %154

147:                                              ; preds = %123, %119
  %148 = load i32, ptr %12, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  %150 = load i32, ptr %12, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %151) #6
  %153 = getelementptr inbounds %struct.Stu, ptr %152, i32 0, i32 1
  store i32 %149, ptr %153, align 8, !tbaa !21
  br label %154

154:                                              ; preds = %147, %136
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %12, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %12, align 4, !tbaa !5
  br label %113, !llvm.loop !22

158:                                              ; preds = %118
  %159 = call ptr @_ZNSt6vectorI3StuSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %160 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %159, ptr %160, align 8
  %161 = call ptr @_ZNSt6vectorI3StuSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %162 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %161, ptr %162, align 8
  %163 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8
  %165 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3StuSt6vectorIS2_SaIS2_EEEEPFiRKS2_S9_EEvT_SC_T0_(ptr %164, ptr %166, ptr noundef @_Z4cmp1RK3StuS1_)
  %167 = call noundef i64 @_ZNKSt6vectorI3StuSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %167)
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %170

170:                                              ; preds = %204, %158
  %171 = load i32, ptr %15, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = call noundef i64 @_ZNKSt6vectorI3StuSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %174 = icmp ult i64 %172, %173
  br i1 %174, label %176, label %175

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

176:                                              ; preds = %170
  %177 = load i32, ptr %15, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %178) #6
  %180 = getelementptr inbounds %struct.Stu, ptr %179, i32 0, i32 0
  %181 = call 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) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %180)
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %181, ptr noundef @.str)
  %183 = load i32, ptr %15, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %184) #6
  %186 = getelementptr inbounds %struct.Stu, ptr %185, i32 0, i32 1
  %187 = load i32, ptr %186, align 8, !tbaa !21
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %182, i32 noundef %187)
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef @.str)
  %190 = load i32, ptr %15, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %191) #6
  %193 = getelementptr inbounds %struct.Stu, ptr %192, i32 0, i32 2
  %194 = load i32, ptr %193, align 4, !tbaa !9
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %189, i32 noundef %194)
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %195, ptr noundef @.str)
  %197 = load i32, ptr %15, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %198) #6
  %200 = getelementptr inbounds %struct.Stu, ptr %199, i32 0, i32 3
  %201 = load i32, ptr %200, align 8, !tbaa !18
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %196, i32 noundef %201)
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %204

204:                                              ; preds = %176
  %205 = load i32, ptr %15, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %15, align 4, !tbaa !5
  br label %170, !llvm.loop !23

207:                                              ; preds = %175
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %208 = load i32, ptr %1, align 4
  ret i32 %208
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 36}
!10 = !{!"_ZTS3Stu", !11, i64 0, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !14, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!10, !6, i64 44}
!18 = !{!10, !6, i64 40}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = !{!10, !6, i64 32}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}


; 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.Stu = type { %"class.std::__cxx11::basic_string", i32, i32, i32, i32 }
%"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<Stu, std::allocator<Stu>>::_Vector_impl" }
%"struct.std::_Vector_base<Stu, std::allocator<Stu>>::_Vector_impl" = type { %"struct.std::_Vector_base<Stu, std::allocator<Stu>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Stu, std::allocator<Stu>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.__gnu_cxx::__normal_iterator" = type { ptr }

@stu = external dso_local global %struct.Stu, align 8
@students = external dso_local global %"class.std::vector", align 8
@n = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3cmpRK3StuS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4cmp1RK3StuS1_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %2 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %3 = load i32, ptr @n, align 4, !tbaa !5
  %.not55 = icmp slt i32 %3, 1
  br i1 %.not55, label %._crit_edge60, label %.lr.ph59

._crit_edge60:                                    ; preds = %._crit_edge54, %0
  %4 = call ptr @_ZNSt6vectorI3StuSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %5 = call ptr @_ZNSt6vectorI3StuSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3StuSt6vectorIS2_SaIS2_EEEEPFiRKS2_S9_EEvT_SC_T0_(ptr %4, ptr %5, ptr noundef nonnull @_Z3cmpRK3StuS1_)
  %6 = call noundef i64 @_ZNKSt6vectorI3StuSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %.not = icmp eq i64 %6, 0
  br i1 %.not, label %._crit_edge64, label %7

7:                                                ; preds = %._crit_edge60
  %8 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef 0) #6
  %9 = getelementptr inbounds i8, ptr %8, i64 32
  store i32 1, ptr %9, align 8, !tbaa !9
  %10 = call noundef i64 @_ZNKSt6vectorI3StuSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %11 = icmp ugt i64 %10, 1
  br i1 %11, label %.lr.ph63.peel.next, label %._crit_edge64

.lr.ph59:                                         ; preds = %0, %._crit_edge54
  %.03957 = phi i32 [ %27, %._crit_edge54 ], [ 0, %0 ]
  %.04156 = phi i32 [ %28, %._crit_edge54 ], [ 1, %0 ]
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @k)
  store i32 %.04156, ptr getelementptr inbounds (i8, ptr @stu, i64 36), align 4, !tbaa !15
  %13 = load i32, ptr @k, align 4, !tbaa !5
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph59
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %15 = call ptr @_ZNSt6vectorI3StuSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  store ptr %15, ptr %1, align 8
  %16 = sext i32 %.03957 to i64
  %17 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIP3StuSt6vectorIS1_SaIS1_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %1, i64 noundef %16) #6
  %18 = call ptr @_ZNSt6vectorI3StuSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3StuSt6vectorIS2_SaIS2_EEEEPFiRKS2_S9_EEvT_SC_T0_(ptr %17, ptr %18, ptr noundef nonnull @_Z3cmpRK3StuS1_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  %19 = call noundef i64 @_ZNKSt6vectorI3StuSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %20 = icmp ugt i64 %19, %16
  br i1 %20, label %.lr.ph53, label %._crit_edge54

.lr.ph:                                           ; preds = %.lr.ph59, %.lr.ph
  %.04350 = phi i32 [ %23, %.lr.ph ], [ 0, %.lr.ph59 ]
  %21 = call 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) @stu)
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @stu, i64 44))
  call void @_ZNSt6vectorI3StuSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) @students, ptr noundef nonnull align 8 dereferenceable(48) @stu)
  %23 = add nuw nsw i32 %.04350, 1
  %24 = load i32, ptr @k, align 4, !tbaa !5
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !16

._crit_edge54:                                    ; preds = %47, %._crit_edge
  %26 = load i32, ptr @k, align 4, !tbaa !5
  %27 = add nsw i32 %26, %.03957
  %28 = add nuw nsw i32 %.04156, 1
  %29 = load i32, ptr @n, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.04156, %29
  br i1 %.not.not, label %.lr.ph59, label %._crit_edge60, !llvm.loop !18

.lr.ph53:                                         ; preds = %._crit_edge, %47
  %indvars.iv = phi i64 [ %indvars.iv.next, %47 ], [ %16, %._crit_edge ]
  %30 = icmp sgt i64 %indvars.iv, 0
  br i1 %30, label %31, label %44

31:                                               ; preds = %.lr.ph53
  %32 = add nsw i64 %indvars.iv, -1
  %33 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %32) #6
  %34 = getelementptr inbounds i8, ptr %33, i64 44
  %35 = load i32, ptr %34, align 4, !tbaa !19
  %36 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %indvars.iv) #6
  %37 = getelementptr inbounds i8, ptr %36, i64 44
  %38 = load i32, ptr %37, align 4, !tbaa !19
  %39 = icmp eq i32 %35, %38
  br i1 %39, label %40, label %44

40:                                               ; preds = %31
  %41 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %32) #6
  %42 = getelementptr inbounds i8, ptr %41, i64 40
  %43 = load i32, ptr %42, align 8, !tbaa !20
  br label %47

44:                                               ; preds = %31, %.lr.ph53
  %45 = trunc nsw i64 %indvars.iv to i32
  %reass.sub = sub i32 %45, %.03957
  %46 = add i32 %reass.sub, 1
  br label %47

47:                                               ; preds = %40, %44
  %.sink = phi i32 [ %43, %40 ], [ %46, %44 ]
  %48 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %indvars.iv) #6
  %49 = getelementptr inbounds i8, ptr %48, i64 40
  store i32 %.sink, ptr %49, align 8, !tbaa !20
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %50 = call noundef i64 @_ZNKSt6vectorI3StuSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %51 = icmp ugt i64 %50, %indvars.iv.next
  br i1 %51, label %.lr.ph53, label %._crit_edge54, !llvm.loop !21

._crit_edge64:                                    ; preds = %77, %7, %._crit_edge60
  %52 = call ptr @_ZNSt6vectorI3StuSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %53 = call ptr @_ZNSt6vectorI3StuSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP3StuSt6vectorIS2_SaIS2_EEEEPFiRKS2_S9_EEvT_SC_T0_(ptr %52, ptr %53, ptr noundef nonnull @_Z4cmp1RK3StuS1_)
  %54 = call noundef i64 @_ZNKSt6vectorI3StuSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %54)
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %57 = call noundef i64 @_ZNKSt6vectorI3StuSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %.not69 = icmp eq i64 %57, 0
  br i1 %.not69, label %._crit_edge68, label %.lr.ph67

.lr.ph63.peel.next:                               ; preds = %7, %77
  %indvars.iv71 = phi i64 [ %indvars.iv.next72.pre-phi, %77 ], [ 1, %7 ]
  %58 = add nsw i64 %indvars.iv71, -1
  %59 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %58) #6
  %60 = getelementptr inbounds i8, ptr %59, i64 44
  %61 = load i32, ptr %60, align 4, !tbaa !19
  %62 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %indvars.iv71) #6
  %63 = getelementptr inbounds i8, ptr %62, i64 44
  %64 = load i32, ptr %63, align 4, !tbaa !19
  %65 = icmp eq i32 %61, %64
  br i1 %65, label %66, label %72

66:                                               ; preds = %.lr.ph63.peel.next
  %67 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %58) #6
  %68 = getelementptr inbounds i8, ptr %67, i64 32
  %69 = load i32, ptr %68, align 8, !tbaa !9
  %70 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %indvars.iv71) #6
  %71 = getelementptr inbounds i8, ptr %70, i64 32
  store i32 %69, ptr %71, align 8, !tbaa !9
  %.pre = add nuw nsw i64 %indvars.iv71, 1
  br label %77

72:                                               ; preds = %.lr.ph63.peel.next
  %73 = add nuw nsw i64 %indvars.iv71, 1
  %74 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %indvars.iv71) #6
  %75 = getelementptr inbounds i8, ptr %74, i64 32
  %76 = trunc nuw i64 %73 to i32
  store i32 %76, ptr %75, align 8, !tbaa !9
  br label %77

77:                                               ; preds = %66, %72
  %indvars.iv.next72.pre-phi = phi i64 [ %.pre, %66 ], [ %73, %72 ]
  %78 = call noundef i64 @_ZNKSt6vectorI3StuSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %79 = icmp ugt i64 %78, %indvars.iv.next72.pre-phi
  br i1 %79, label %.lr.ph63.peel.next, label %._crit_edge64, !llvm.loop !22

._crit_edge68:                                    ; preds = %.lr.ph67, %._crit_edge64
  ret i32 0

.lr.ph67:                                         ; preds = %._crit_edge64, %.lr.ph67
  %indvars.iv75 = phi i64 [ %indvars.iv.next76, %.lr.ph67 ], [ 0, %._crit_edge64 ]
  %80 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %indvars.iv75) #6
  %81 = call 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) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %80)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull @.str)
  %83 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %indvars.iv75) #6
  %84 = getelementptr inbounds i8, ptr %83, i64 32
  %85 = load i32, ptr %84, align 8, !tbaa !9
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %82, i32 noundef %85)
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull @.str)
  %88 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %indvars.iv75) #6
  %89 = getelementptr inbounds i8, ptr %88, i64 36
  %90 = load i32, ptr %89, align 4, !tbaa !15
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %87, i32 noundef %90)
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull @.str)
  %93 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI3StuSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @students, i64 noundef %indvars.iv75) #6
  %94 = getelementptr inbounds i8, ptr %93, i64 40
  %95 = load i32, ptr %94, align 8, !tbaa !20
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %92, i32 noundef %95)
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %98 = call noundef i64 @_ZNKSt6vectorI3StuSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @students) #6
  %99 = icmp ugt i64 %98, %indvars.iv.next76
  br i1 %99, label %.lr.ph67, label %._crit_edge68, !llvm.loop !24
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 32}
!10 = !{!"_ZTS3Stu", !11, i64 0, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !14, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!10, !6, i64 36}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!10, !6, i64 44}
!20 = !{!10, !6, i64 40}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17, !23}
!23 = !{!"llvm.loop.peeled.count", i32 1}
!24 = distinct !{!24, !17}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass