; LLVM IR from EmuraDaisuke/SortingAlgorithm.HayateShiki :: Main.ll (Z4test4eSrcii)

; 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::random_device" = type { %union.anon }
%union.anon = type { %"class.std::mersenne_twister_engine" }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }
%"class.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<>::param_type" }
%"struct.std::uniform_int_distribution<>::param_type" = type { i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Test, std::allocator<Test>>::_Vector_impl" }
%"struct.std::_Vector_base<Test, std::allocator<Test>>::_Vector_impl" = type { %"struct.std::_Vector_base<Test, std::allocator<Test>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Test, std::allocator<Test>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@_ZL5apSrc = external hidden global [7 x ptr], align 16
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Lapse3OutEd(double noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN5Lapse3NowEv() #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4init4eSrcRSt6vectorI4TestSaIS1_EERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EERSt24uniform_int_distributionIiE(i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(5000), ptr noundef nonnull align 4 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4test4eSrcii(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::random_device", align 8
  %8 = alloca %"class.std::mersenne_twister_engine", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::uniform_int_distribution", align 4
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::vector", align 8
  %21 = alloca double, align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.std::vector", align 8
  %25 = alloca double, align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.std::vector", align 8
  %29 = alloca double, align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 5000, ptr %7) #5
  call void @_ZNSt13random_deviceC2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %7)
  call void @llvm.lifetime.start.p0(i64 5000, ptr %8) #5
  %32 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %7)
          to label %33 unwind label %53

33:                                               ; preds = %3
  %34 = zext i32 %32 to i64
  invoke void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000) %8, i64 noundef %34)
          to label %35 unwind label %53

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %36 = call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #5
  invoke void @_ZNSt24uniform_int_distributionIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %11, i32 noundef 0, i32 noundef %36)
          to label %37 unwind label %57

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %38 = load i32, ptr %5, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  call void @_ZNSaI4TestEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNSt6vectorI4TestSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %39, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %40 unwind label %61

40:                                               ; preds = %37
  call void @_ZNSt15__new_allocatorI4TestED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = zext i32 %41 to i64
  %43 = getelementptr inbounds [7 x ptr], ptr @_ZL5apSrc, i64 0, i64 %42
  %44 = load ptr, ptr %43, align 8, !tbaa !11
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %44, i32 noundef %45)
          to label %47 unwind label %65

47:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store double 0.000000e+00, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store double 0.000000e+00, ptr %15, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store double 0.000000e+00, ptr %16, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store double 0.000000e+00, ptr %17, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store double 0.000000e+00, ptr %18, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %48 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %48, ptr %19, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %126, %47
  %50 = load i32, ptr %19, align 4, !tbaa !9
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %69, label %52

52:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %161

53:                                               ; preds = %33, %3
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %9, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %10, align 4
  br label %191

57:                                               ; preds = %35
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %9, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %10, align 4
  br label %190

61:                                               ; preds = %37
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %9, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %10, align 4
  call void @_ZNSt15__new_allocatorI4TestED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %189

65:                                               ; preds = %40
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  br label %188

69:                                               ; preds = %49
  %70 = load i32, ptr %4, align 4, !tbaa !5
  invoke void @_Z4init4eSrcRSt6vectorI4TestSaIS1_EERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EERSt24uniform_int_distributionIiE(i32 noundef %70, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(5000) %8, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %71 unwind label %129

71:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  invoke void @_ZNSt6vectorI4TestSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %72 unwind label %133

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %73 = invoke noundef double @_ZN5Lapse3NowEv()
          to label %74 unwind label %137

74:                                               ; preds = %72
  store double %73, ptr %21, align 8, !tbaa !13
  %75 = call ptr @_ZNSt6vectorI4TestSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %76 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %75, ptr %76, align 8
  %77 = call ptr @_ZNSt6vectorI4TestSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  %78 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %77, ptr %78, align 8
  %79 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP4TestSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %80, ptr %82)
          to label %83 unwind label %137

83:                                               ; preds = %74
  %84 = invoke noundef double @_ZN5Lapse3NowEv()
          to label %85 unwind label %137

85:                                               ; preds = %83
  %86 = load double, ptr %21, align 8, !tbaa !13
  %87 = fsub double %84, %86
  %88 = load double, ptr %14, align 8, !tbaa !13
  %89 = fadd double %88, %87
  store double %89, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #5
  invoke void @_ZNSt6vectorI4TestSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %90 unwind label %142

90:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %91 = invoke noundef double @_ZN5Lapse3NowEv()
          to label %92 unwind label %146

92:                                               ; preds = %90
  store double %91, ptr %25, align 8, !tbaa !13
  %93 = call ptr @_ZNSt6vectorI4TestSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  %94 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  store ptr %93, ptr %94, align 8
  %95 = call ptr @_ZNSt6vectorI4TestSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  %96 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %95, ptr %96, align 8
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %26, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8
  %99 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8
  invoke void @_ZSt11stable_sortIN9__gnu_cxx17__normal_iteratorIP4TestSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %98, ptr %100)
          to label %101 unwind label %146

101:                                              ; preds = %92
  %102 = invoke noundef double @_ZN5Lapse3NowEv()
          to label %103 unwind label %146

103:                                              ; preds = %101
  %104 = load double, ptr %25, align 8, !tbaa !13
  %105 = fsub double %102, %104
  %106 = load double, ptr %15, align 8, !tbaa !13
  %107 = fadd double %106, %105
  store double %107, ptr %15, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #5
  invoke void @_ZNSt6vectorI4TestSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %108 unwind label %151

108:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %109 = invoke noundef double @_ZN5Lapse3NowEv()
          to label %110 unwind label %155

110:                                              ; preds = %108
  store double %109, ptr %29, align 8, !tbaa !13
  %111 = call ptr @_ZNSt6vectorI4TestSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  %112 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  store ptr %111, ptr %112, align 8
  %113 = call ptr @_ZNSt6vectorI4TestSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  %114 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %113, ptr %114, align 8
  %115 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %30, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8
  %117 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8
  invoke void @_ZN11HayateShiki4sortIN9__gnu_cxx17__normal_iteratorIP4TestSt6vectorIS3_SaIS3_EEEEEEvT_S9_(ptr %116, ptr %118)
          to label %119 unwind label %155

119:                                              ; preds = %110
  %120 = invoke noundef double @_ZN5Lapse3NowEv()
          to label %121 unwind label %155

121:                                              ; preds = %119
  %122 = load double, ptr %29, align 8, !tbaa !13
  %123 = fsub double %120, %122
  %124 = load double, ptr %18, align 8, !tbaa !13
  %125 = fadd double %124, %123
  store double %125, ptr %18, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #5
  br label %126

126:                                              ; preds = %121
  %127 = load i32, ptr %19, align 4, !tbaa !9
  %128 = add nsw i32 %127, -1
  store i32 %128, ptr %19, align 4, !tbaa !9
  br label %49, !llvm.loop !15

129:                                              ; preds = %69
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %9, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %10, align 4
  br label %160

133:                                              ; preds = %71
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %9, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %10, align 4
  br label %141

137:                                              ; preds = %83, %74, %72
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %9, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  br label %141

141:                                              ; preds = %137, %133
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  br label %160

142:                                              ; preds = %85
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %9, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %10, align 4
  br label %150

146:                                              ; preds = %101, %92, %90
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %9, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #5
  br label %150

150:                                              ; preds = %146, %142
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  br label %160

151:                                              ; preds = %103
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %9, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %10, align 4
  br label %159

155:                                              ; preds = %119, %110, %108
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %9, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  br label %159

159:                                              ; preds = %155, %151
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #5
  br label %160

160:                                              ; preds = %159, %150, %141, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %187

161:                                              ; preds = %52
  %162 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %163 unwind label %183

163:                                              ; preds = %161
  %164 = load double, ptr %14, align 8, !tbaa !13
  %165 = load i32, ptr %6, align 4, !tbaa !9
  %166 = sitofp i32 %165 to double
  %167 = fdiv double %164, %166
  invoke void @_ZN5Lapse3OutEd(double noundef %167)
          to label %168 unwind label %183

168:                                              ; preds = %163
  %169 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2)
          to label %170 unwind label %183

170:                                              ; preds = %168
  %171 = load double, ptr %15, align 8, !tbaa !13
  %172 = load i32, ptr %6, align 4, !tbaa !9
  %173 = sitofp i32 %172 to double
  %174 = fdiv double %171, %173
  invoke void @_ZN5Lapse3OutEd(double noundef %174)
          to label %175 unwind label %183

175:                                              ; preds = %170
  %176 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3)
          to label %177 unwind label %183

177:                                              ; preds = %175
  %178 = load double, ptr %18, align 8, !tbaa !13
  %179 = load i32, ptr %6, align 4, !tbaa !9
  %180 = sitofp i32 %179 to double
  %181 = fdiv double %178, %180
  invoke void @_ZN5Lapse3OutEd(double noundef %181)
          to label %182 unwind label %183

182:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 5000, ptr %8) #5
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %7) #5
  call void @llvm.lifetime.end.p0(i64 5000, ptr %7) #5
  ret void

183:                                              ; preds = %177, %175, %170, %168, %163, %161
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %9, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %10, align 4
  br label %187

187:                                              ; preds = %183, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %188

188:                                              ; preds = %187, %65
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %189

189:                                              ; preds = %188, %61
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %190

190:                                              ; preds = %189, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %191

191:                                              ; preds = %190, %53
  call void @llvm.lifetime.end.p0(i64 5000, ptr %8) #5
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %7) #5
  call void @llvm.lifetime.end.p0(i64 5000, ptr %7) #5
  br label %192

192:                                              ; preds = %191
  %193 = load ptr, ptr %9, align 8
  %194 = load i32, ptr %10, align 4
  %195 = insertvalue { ptr, i32 } poison, ptr %193, 0
  %196 = insertvalue { ptr, i32 } %195, i32 %194, 1
  resume { ptr, i32 } %196
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #2 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP4TestSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11stable_sortIN9__gnu_cxx17__normal_iteratorIP4TestSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11HayateShiki4sortIN9__gnu_cxx17__normal_iteratorIP4TestSt6vectorIS3_SaIS3_EEEEEEvT_S9_(ptr, ptr) #4

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 #5 = { 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 = !{!"_ZTS4eSrc", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; 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::random_device" = type { %union.anon }
%union.anon = type { %"class.std::mersenne_twister_engine" }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }
%"class.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<>::param_type" }
%"struct.std::uniform_int_distribution<>::param_type" = type { i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Test, std::allocator<Test>>::_Vector_impl" }
%"struct.std::_Vector_base<Test, std::allocator<Test>>::_Vector_impl" = type { %"struct.std::_Vector_base<Test, std::allocator<Test>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Test, std::allocator<Test>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@_ZL5apSrc = external hidden local_unnamed_addr global [7 x ptr], align 16
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Lapse3OutEd(double noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN5Lapse3NowEv() local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4init4eSrcRSt6vectorI4TestSaIS1_EERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EERSt24uniform_int_distributionIiE(i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(5000), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4test4eSrcii(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::random_device", align 8
  %5 = alloca %"class.std::mersenne_twister_engine", align 8
  %6 = alloca %"class.std::uniform_int_distribution", align 4
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::vector", align 8
  call void @llvm.lifetime.start.p0(i64 5000, ptr nonnull %4) #5
  call void @_ZNSt13random_deviceC2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %4)
  call void @llvm.lifetime.start.p0(i64 5000, ptr nonnull %5) #5
  %12 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %4)
          to label %13 unwind label %27

13:                                               ; preds = %3
  %14 = zext i32 %12 to i64
  invoke void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000) %5, i64 noundef %14)
          to label %15 unwind label %27

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %16 = call noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() #5
  invoke void @_ZNSt24uniform_int_distributionIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %6, i32 noundef 0, i32 noundef %16)
          to label %17 unwind label %29

17:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  %18 = sext i32 %1 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  call void @_ZNSaI4TestEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  invoke void @_ZNSt6vectorI4TestSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %18, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %19 unwind label %31

19:                                               ; preds = %17
  call void @_ZNSt15__new_allocatorI4TestED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  %20 = zext i32 %0 to i64
  %21 = getelementptr inbounds [7 x ptr], ptr @_ZL5apSrc, i64 0, i64 %20
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %22, i32 noundef %1)
  %.not68 = icmp eq i32 %2, 0
  br i1 %.not68, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %61, %19
  %.035.lcssa = phi double [ 0.000000e+00, %19 ], [ %63, %61 ]
  %.034.lcssa = phi double [ 0.000000e+00, %19 ], [ %53, %61 ]
  %.033.lcssa = phi double [ 0.000000e+00, %19 ], [ %43, %61 ]
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %25 = sitofp i32 %2 to double
  %26 = fdiv double %.033.lcssa, %25
  invoke void @_ZN5Lapse3OutEd(double noundef %26)
          to label %82 unwind label %89

27:                                               ; preds = %13, %3
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %94

29:                                               ; preds = %15
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %93

31:                                               ; preds = %17
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI4TestED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  br label %92

.lr.ph:                                           ; preds = %19, %61
  %.03372 = phi double [ %43, %61 ], [ 0.000000e+00, %19 ]
  %.03471 = phi double [ %53, %61 ], [ 0.000000e+00, %19 ]
  %.03570 = phi double [ %63, %61 ], [ 0.000000e+00, %19 ]
  %.03669 = phi i32 [ %64, %61 ], [ %2, %19 ]
  invoke void @_Z4init4eSrcRSt6vectorI4TestSaIS1_EERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EERSt24uniform_int_distributionIiE(i32 noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(5000) %5, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %33 unwind label %65

33:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  invoke void @_ZNSt6vectorI4TestSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %34 unwind label %67

34:                                               ; preds = %33
  %35 = invoke noundef double @_ZN5Lapse3NowEv()
          to label %36 unwind label %69

36:                                               ; preds = %34
  %37 = call ptr @_ZNSt6vectorI4TestSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  %38 = call ptr @_ZNSt6vectorI4TestSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP4TestSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %37, ptr %38)
          to label %39 unwind label %69

39:                                               ; preds = %36
  %40 = invoke noundef double @_ZN5Lapse3NowEv()
          to label %41 unwind label %69

41:                                               ; preds = %39
  %42 = fsub double %40, %35
  %43 = fadd double %.03372, %42
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  invoke void @_ZNSt6vectorI4TestSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %44 unwind label %72

44:                                               ; preds = %41
  %45 = invoke noundef double @_ZN5Lapse3NowEv()
          to label %46 unwind label %74

46:                                               ; preds = %44
  %47 = call ptr @_ZNSt6vectorI4TestSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  %48 = call ptr @_ZNSt6vectorI4TestSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  invoke void @_ZSt11stable_sortIN9__gnu_cxx17__normal_iteratorIP4TestSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr %47, ptr %48)
          to label %49 unwind label %74

49:                                               ; preds = %46
  %50 = invoke noundef double @_ZN5Lapse3NowEv()
          to label %51 unwind label %74

51:                                               ; preds = %49
  %52 = fsub double %50, %45
  %53 = fadd double %.03471, %52
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #5
  invoke void @_ZNSt6vectorI4TestSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %54 unwind label %77

54:                                               ; preds = %51
  %55 = invoke noundef double @_ZN5Lapse3NowEv()
          to label %56 unwind label %79

56:                                               ; preds = %54
  %57 = call ptr @_ZNSt6vectorI4TestSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %58 = call ptr @_ZNSt6vectorI4TestSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  invoke void @_ZN11HayateShiki4sortIN9__gnu_cxx17__normal_iteratorIP4TestSt6vectorIS3_SaIS3_EEEEEEvT_S9_(ptr %57, ptr %58)
          to label %59 unwind label %79

59:                                               ; preds = %56
  %60 = invoke noundef double @_ZN5Lapse3NowEv()
          to label %61 unwind label %79

61:                                               ; preds = %59
  %62 = fsub double %60, %55
  %63 = fadd double %.03570, %62
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  %64 = add nsw i32 %.03669, -1
  %.not = icmp eq i32 %64, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

65:                                               ; preds = %.lr.ph
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %91

67:                                               ; preds = %33
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %71

69:                                               ; preds = %39, %36, %34
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  br label %71

71:                                               ; preds = %69, %67
  %.pn = phi { ptr, i32 } [ %70, %69 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  br label %91

72:                                               ; preds = %41
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %76

74:                                               ; preds = %49, %46, %44
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #5
  br label %76

76:                                               ; preds = %74, %72
  %.pn38 = phi { ptr, i32 } [ %75, %74 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  br label %91

77:                                               ; preds = %51
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %81

79:                                               ; preds = %59, %56, %54
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br label %81

81:                                               ; preds = %79, %77
  %.pn40 = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #5
  br label %91

82:                                               ; preds = %._crit_edge
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %84 = fdiv double %.034.lcssa, %25
  invoke void @_ZN5Lapse3OutEd(double noundef %84)
          to label %85 unwind label %89

85:                                               ; preds = %82
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %87 = fdiv double %.035.lcssa, %25
  invoke void @_ZN5Lapse3OutEd(double noundef %87)
          to label %88 unwind label %89

88:                                               ; preds = %85
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %5) #5
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %4) #5
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %4) #5
  ret void

89:                                               ; preds = %85, %82, %._crit_edge
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %91

91:                                               ; preds = %65, %71, %76, %81, %89
  %.pn40.pn.pn = phi { ptr, i32 } [ %90, %89 ], [ %.pn40, %81 ], [ %.pn38, %76 ], [ %.pn, %71 ], [ %66, %65 ]
  call void @_ZNSt6vectorI4TestSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %92

92:                                               ; preds = %91, %31
  %.pn40.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn, %91 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %93

93:                                               ; preds = %92, %29
  %.pn40.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn, %92 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %94

94:                                               ; preds = %93, %27
  %.pn40.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn40.pn.pn.pn.pn, %93 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %5) #5
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %4) #5
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn40.pn.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE3maxEv() local_unnamed_addr #2 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP4TestSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11stable_sortIN9__gnu_cxx17__normal_iteratorIP4TestSt6vectorIS2_SaIS2_EEEEEvT_S8_(ptr, ptr) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN11HayateShiki4sortIN9__gnu_cxx17__normal_iteratorIP4TestSt6vectorIS3_SaIS3_EEEEEEvT_S9_(ptr, ptr) local_unnamed_addr #4

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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