; LLVM IR from lemire/testingRNG :: cpp-prng-bench (icksort)

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

%"class.std::basic_ostream" = type { ptr, %"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::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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::chrono::duration.0" = type { double }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::random_device", align 8
  %3 = alloca i32, align 4
  %4 = alloca [51 x double], align 16
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::mersenne_twister_engine", align 8
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::chrono::time_point", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.std::chrono::time_point", align 8
  %18 = alloca %"class.std::chrono::duration.0", align 8
  %19 = alloca %"class.std::chrono::duration", align 8
  %20 = alloca double, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca double, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 5000, ptr %2) #8
  call void @_ZNSt13random_deviceC2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 51, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 408, ptr %4) #8
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %26 unwind label %35

26:                                               ; preds = %0
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %28 unwind label %35

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef @_ZSt5flushIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %30 unwind label %35

30:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %110, %30
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = icmp ult i32 %32, 51
  br i1 %33, label %39, label %34

34:                                               ; preds = %31
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %130

35:                                               ; preds = %141, %137, %135, %132, %130, %28, %26, %0
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %5, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %6, align 4
  br label %177

39:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %40 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %2)
          to label %41 unwind label %56

41:                                               ; preds = %39
  %42 = zext i32 %40 to i64
  store i64 %42, ptr %9, align 8, !tbaa !9
  %43 = load i64, ptr %9, align 8, !tbaa !9
  %44 = shl i64 %43, 32
  store i64 %44, ptr %9, align 8, !tbaa !9
  %45 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %2)
          to label %46 unwind label %56

46:                                               ; preds = %41
  %47 = zext i32 %45 to i64
  %48 = load i64, ptr %9, align 8, !tbaa !9
  %49 = or i64 %48, %47
  store i64 %49, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 5000, ptr %10) #8
  %50 = load i64, ptr %9, align 8, !tbaa !9
  invoke void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000) %10, i64 noundef %50)
          to label %51 unwind label %60

51:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %68, %51
  %53 = load i32, ptr %12, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 10000000
  br i1 %54, label %64, label %55

55:                                               ; preds = %52
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %75

56:                                               ; preds = %41, %39
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %5, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %6, align 4
  br label %129

60:                                               ; preds = %46
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %5, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %6, align 4
  br label %128

64:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %65 = load i32, ptr %12, align 4, !tbaa !5
  %66 = sub nsw i32 0, %65
  store i32 %66, ptr %13, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(4) %13)
          to label %67 unwind label %71

67:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %12, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %12, align 4, !tbaa !5
  br label %52, !llvm.loop !11

71:                                               ; preds = %64
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %5, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %127

75:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %76 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  %77 = getelementptr inbounds %"class.std::chrono::time_point", ptr %14, i32 0, i32 0
  %78 = getelementptr inbounds %"class.std::chrono::duration", ptr %77, i32 0, i32 0
  store i64 %76, ptr %78, align 8
  %79 = invoke ptr @_ZSt5beginISt6vectorIiSaIiEEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %80 unwind label %113

80:                                               ; preds = %75
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %79, ptr %81, align 8
  %82 = invoke ptr @_ZSt3endISt6vectorIiSaIiEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %83 unwind label %113

83:                                               ; preds = %80
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %82, ptr %84, align 8
  %85 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8
  invoke void @_Z9quicksortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEESt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_S9_RT0_(ptr %86, ptr %88, ptr noundef nonnull align 8 dereferenceable(5000) %10)
          to label %89 unwind label %113

89:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %90 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  %91 = getelementptr inbounds %"class.std::chrono::time_point", ptr %17, i32 0, i32 0
  %92 = getelementptr inbounds %"class.std::chrono::duration", ptr %91, i32 0, i32 0
  store i64 %90, ptr %92, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %93 = invoke i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %94 unwind label %117

94:                                               ; preds = %89
  %95 = getelementptr inbounds %"class.std::chrono::duration", ptr %19, i32 0, i32 0
  store i64 %93, ptr %95, align 8
  invoke void @_ZNSt6chrono8durationIdSt5ratioILl1ELl1EEEC2IlS1_ILl1ELl1000000000EEvEERKNS0_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %96 unwind label %117

96:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  %97 = invoke noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %98 unwind label %121

98:                                               ; preds = %96
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %97)
          to label %100 unwind label %121

100:                                              ; preds = %98
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef @.str.2)
          to label %102 unwind label %121

102:                                              ; preds = %100
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef @_ZSt5flushIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %104 unwind label %121

104:                                              ; preds = %102
  %105 = invoke noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %106 unwind label %121

106:                                              ; preds = %104
  %107 = load i32, ptr %7, align 4, !tbaa !5
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds [51 x double], ptr %4, i64 0, i64 %108
  store double %105, ptr %109, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 5000, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %110

110:                                              ; preds = %106
  %111 = load i32, ptr %7, align 4, !tbaa !5
  %112 = add i32 %111, 1
  store i32 %112, ptr %7, align 4, !tbaa !5
  br label %31, !llvm.loop !15

113:                                              ; preds = %83, %80, %75
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %5, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %6, align 4
  br label %126

117:                                              ; preds = %94, %89
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %5, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %125

121:                                              ; preds = %104, %102, %100, %98, %96
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %5, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %6, align 4
  br label %125

125:                                              ; preds = %121, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %126

126:                                              ; preds = %125, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %127

127:                                              ; preds = %126, %71
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  br label %128

128:                                              ; preds = %127, %60
  call void @llvm.lifetime.end.p0(i64 5000, ptr %10) #8
  br label %129

129:                                              ; preds = %128, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %177

130:                                              ; preds = %34
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %132 unwind label %35

132:                                              ; preds = %130
  %133 = call noundef ptr @_ZSt5beginIdLm51EEPT_RAT0__S0_(ptr noundef nonnull align 8 dereferenceable(408) %4) #8
  %134 = call noundef ptr @_ZSt3endIdLm51EEPT_RAT0__S0_(ptr noundef nonnull align 8 dereferenceable(408) %4) #8
  invoke void @_ZSt4sortIPdEvT_S1_(ptr noundef %133, ptr noundef %134)
          to label %135 unwind label %35

135:                                              ; preds = %132
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %137 unwind label %35

137:                                              ; preds = %135
  %138 = getelementptr inbounds [51 x double], ptr %4, i64 0, i64 25
  %139 = load double, ptr %138, align 8, !tbaa !13
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %136, double noundef %139)
          to label %141 unwind label %35

141:                                              ; preds = %137
  %142 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef @.str.5)
          to label %143 unwind label %35

143:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  store double 0.000000e+00, ptr %20, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  store ptr %4, ptr %21, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %144 = load ptr, ptr %21, align 8, !tbaa !16
  %145 = getelementptr inbounds [51 x double], ptr %144, i64 0, i64 0
  store ptr %145, ptr %22, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %146 = load ptr, ptr %21, align 8, !tbaa !16
  %147 = getelementptr inbounds [51 x double], ptr %146, i64 0, i64 0
  %148 = getelementptr inbounds double, ptr %147, i64 51
  store ptr %148, ptr %23, align 8, !tbaa !16
  br label %149

149:                                              ; preds = %160, %143
  %150 = load ptr, ptr %22, align 8, !tbaa !16
  %151 = load ptr, ptr %23, align 8, !tbaa !16
  %152 = icmp ne ptr %150, %151
  br i1 %152, label %154, label %153

153:                                              ; preds = %149
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %163

154:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %155 = load ptr, ptr %22, align 8, !tbaa !16
  %156 = load double, ptr %155, align 8, !tbaa !13
  store double %156, ptr %24, align 8, !tbaa !13
  %157 = load double, ptr %24, align 8, !tbaa !13
  %158 = load double, ptr %20, align 8, !tbaa !13
  %159 = fadd double %158, %157
  store double %159, ptr %20, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %160

160:                                              ; preds = %154
  %161 = load ptr, ptr %22, align 8, !tbaa !16
  %162 = getelementptr inbounds double, ptr %161, i32 1
  store ptr %162, ptr %22, align 8, !tbaa !16
  br label %149

163:                                              ; preds = %153
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
          to label %165 unwind label %173

165:                                              ; preds = %163
  %166 = load double, ptr %20, align 8, !tbaa !13
  %167 = fdiv double %166, 5.100000e+01
  %168 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %164, double noundef %167)
          to label %169 unwind label %173

169:                                              ; preds = %165
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef @.str.5)
          to label %171 unwind label %173

171:                                              ; preds = %169
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %2) #8
  call void @llvm.lifetime.end.p0(i64 5000, ptr %2) #8
  %172 = load i32, ptr %1, align 4
  ret i32 %172

173:                                              ; preds = %169, %165, %163
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %5, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %177

177:                                              ; preds = %173, %129, %35
  call void @llvm.lifetime.end.p0(i64 408, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %2) #8
  call void @llvm.lifetime.end.p0(i64 5000, ptr %2) #8
  br label %178

178:                                              ; preds = %177
  %179 = load ptr, ptr %5, align 8
  %180 = load i32, ptr %6, align 4
  %181 = insertvalue { ptr, i32 } poison, ptr %179, 0
  %182 = insertvalue { ptr, i32 } %181, i32 %180, 1
  resume { ptr, i32 } %182
}

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() #5

; Function Attrs: mustprogress noinline uwtable
declare dso_local void @_Z9quicksortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEESt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_S9_RT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(5000)) #6

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt5beginIdLm51EEPT_RAT0__S0_(ptr noundef nonnull align 8 dereferenceable(408)) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt3endIdLm51EEPT_RAT0__S0_(ptr noundef nonnull align 8 dereferenceable(408)) #7

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 #6 = { mustprogress noinline uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}


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

%"class.std::basic_ostream" = type { ptr, %"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::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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::chrono::duration.0" = type { double }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::random_device", align 8
  %2 = alloca [51 x double], align 16
  %3 = alloca %"class.std::mersenne_twister_engine", align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::chrono::time_point", align 8
  %7 = alloca %"class.std::chrono::time_point", align 8
  %8 = alloca %"class.std::chrono::duration.0", align 8
  %9 = alloca %"class.std::chrono::duration", align 8
  call void @llvm.lifetime.start.p0(i64 5000, ptr nonnull %1) #8
  call void @_ZNSt13random_deviceC2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %1)
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %2) #8
  %10 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %11 unwind label %17

11:                                               ; preds = %0
  %12 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
          to label %13 unwind label %17

13:                                               ; preds = %11
  %14 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull @_ZSt5flushIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader38 unwind label %17

15:                                               ; preds = %53
  %16 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %66 unwind label %17

17:                                               ; preds = %75, %71, %69, %66, %15, %13, %11, %0
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %188

.preheader38:                                     ; preds = %13, %53
  %indvars.iv = phi i64 [ %indvars.iv.next, %53 ], [ 0, %13 ]
  %19 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %20 unwind label %32

20:                                               ; preds = %.preheader38
  %21 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %22 unwind label %32

22:                                               ; preds = %20
  %23 = zext i32 %19 to i64
  %24 = shl nuw i64 %23, 32
  %25 = zext i32 %21 to i64
  %26 = or disjoint i64 %24, %25
  call void @llvm.lifetime.start.p0(i64 5000, ptr nonnull %3) #8
  invoke void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000) %3, i64 noundef %26)
          to label %27 unwind label %34

27:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  br label %36

28:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %29 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  store i64 %29, ptr %6, align 8
  %30 = call ptr @_ZSt5beginISt6vectorIiSaIiEEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %31 = call ptr @_ZSt3endISt6vectorIiSaIiEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(24) %4)
  invoke void @_Z9quicksortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEESt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_S9_RT0_(ptr %30, ptr %31, ptr noundef nonnull align 8 dereferenceable(5000) %3)
          to label %42 unwind label %56

32:                                               ; preds = %20, %.preheader38
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %188

34:                                               ; preds = %22
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %65

36:                                               ; preds = %27, %38
  %.03039 = phi i32 [ 0, %27 ], [ %39, %38 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %37 = sub nsw i32 0, %.03039
  store i32 %37, ptr %5, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %38 unwind label %40

38:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %39 = add nuw nsw i32 %.03039, 1
  %exitcond.not = icmp eq i32 %39, 10000000
  br i1 %exitcond.not, label %28, label %36, !llvm.loop !9

40:                                               ; preds = %36
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  br label %64

42:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %43 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  store i64 %43, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %44 = invoke i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %45 unwind label %58

45:                                               ; preds = %42
  store i64 %44, ptr %9, align 8
  invoke void @_ZNSt6chrono8durationIdSt5ratioILl1ELl1EEEC2IlS1_ILl1ELl1000000000EEvEERKNS0_IT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %46 unwind label %58

46:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  %47 = call noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, double noundef %47)
          to label %49 unwind label %60

49:                                               ; preds = %46
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull @.str.2)
          to label %51 unwind label %60

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @_ZSt5flushIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %53 unwind label %60

53:                                               ; preds = %51
  %54 = call noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %55 = getelementptr inbounds [51 x double], ptr %2, i64 0, i64 %indvars.iv
  store double %54, ptr %55, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %3) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond44.not = icmp eq i64 %indvars.iv.next, 51
  br i1 %exitcond44.not, label %15, label %.preheader38, !llvm.loop !13

56:                                               ; preds = %28
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %63

58:                                               ; preds = %45, %42
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %62

60:                                               ; preds = %51, %49, %46
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %62

62:                                               ; preds = %60, %58
  %.pn = phi { ptr, i32 } [ %61, %60 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %63

63:                                               ; preds = %62, %56
  %.pn.pn = phi { ptr, i32 } [ %.pn, %62 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %64

64:                                               ; preds = %63, %40
  %.pn33 = phi { ptr, i32 } [ %41, %40 ], [ %.pn.pn, %63 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  br label %65

65:                                               ; preds = %64, %34
  %.pn33.pn = phi { ptr, i32 } [ %.pn33, %64 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %3) #8
  br label %188

66:                                               ; preds = %15
  %67 = call noundef ptr @_ZSt5beginIdLm51EEPT_RAT0__S0_(ptr noundef nonnull align 8 dereferenceable(408) %2) #8
  %68 = call noundef ptr @_ZSt3endIdLm51EEPT_RAT0__S0_(ptr noundef nonnull align 8 dereferenceable(408) %2) #8
  invoke void @_ZSt4sortIPdEvT_S1_(ptr noundef %67, ptr noundef %68)
          to label %69 unwind label %17

69:                                               ; preds = %66
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %71 unwind label %17

71:                                               ; preds = %69
  %72 = getelementptr inbounds i8, ptr %2, i64 200
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %70, double noundef %73)
          to label %75 unwind label %17

75:                                               ; preds = %71
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %74, ptr noundef nonnull @.str.5)
          to label %.preheader.preheader unwind label %17

.preheader.preheader:                             ; preds = %75
  %77 = load double, ptr %2, align 16, !tbaa !11
  %.021.ptr.1 = getelementptr inbounds i8, ptr %2, i64 8
  %78 = load double, ptr %.021.ptr.1, align 8, !tbaa !11
  %.021.ptr.2 = getelementptr inbounds i8, ptr %2, i64 16
  %79 = load double, ptr %.021.ptr.2, align 16, !tbaa !11
  %.021.ptr.3 = getelementptr inbounds i8, ptr %2, i64 24
  %80 = load double, ptr %.021.ptr.3, align 8, !tbaa !11
  %.021.ptr.4 = getelementptr inbounds i8, ptr %2, i64 32
  %81 = load double, ptr %.021.ptr.4, align 16, !tbaa !11
  %.021.ptr.5 = getelementptr inbounds i8, ptr %2, i64 40
  %82 = load double, ptr %.021.ptr.5, align 8, !tbaa !11
  %.021.ptr.6 = getelementptr inbounds i8, ptr %2, i64 48
  %83 = load double, ptr %.021.ptr.6, align 16, !tbaa !11
  %.021.ptr.7 = getelementptr inbounds i8, ptr %2, i64 56
  %84 = load double, ptr %.021.ptr.7, align 8, !tbaa !11
  %.021.ptr.8 = getelementptr inbounds i8, ptr %2, i64 64
  %85 = load double, ptr %.021.ptr.8, align 16, !tbaa !11
  %.021.ptr.9 = getelementptr inbounds i8, ptr %2, i64 72
  %86 = load double, ptr %.021.ptr.9, align 8, !tbaa !11
  %.021.ptr.10 = getelementptr inbounds i8, ptr %2, i64 80
  %87 = load double, ptr %.021.ptr.10, align 16, !tbaa !11
  %.021.ptr.11 = getelementptr inbounds i8, ptr %2, i64 88
  %88 = load double, ptr %.021.ptr.11, align 8, !tbaa !11
  %.021.ptr.12 = getelementptr inbounds i8, ptr %2, i64 96
  %89 = load double, ptr %.021.ptr.12, align 16, !tbaa !11
  %.021.ptr.13 = getelementptr inbounds i8, ptr %2, i64 104
  %90 = load double, ptr %.021.ptr.13, align 8, !tbaa !11
  %.021.ptr.14 = getelementptr inbounds i8, ptr %2, i64 112
  %91 = load double, ptr %.021.ptr.14, align 16, !tbaa !11
  %.021.ptr.15 = getelementptr inbounds i8, ptr %2, i64 120
  %92 = load double, ptr %.021.ptr.15, align 8, !tbaa !11
  %.021.ptr.16 = getelementptr inbounds i8, ptr %2, i64 128
  %93 = load double, ptr %.021.ptr.16, align 16, !tbaa !11
  %.021.ptr.17 = getelementptr inbounds i8, ptr %2, i64 136
  %94 = load double, ptr %.021.ptr.17, align 8, !tbaa !11
  %.021.ptr.18 = getelementptr inbounds i8, ptr %2, i64 144
  %95 = load double, ptr %.021.ptr.18, align 16, !tbaa !11
  %.021.ptr.19 = getelementptr inbounds i8, ptr %2, i64 152
  %96 = load double, ptr %.021.ptr.19, align 8, !tbaa !11
  %.021.ptr.20 = getelementptr inbounds i8, ptr %2, i64 160
  %97 = load double, ptr %.021.ptr.20, align 16, !tbaa !11
  %.021.ptr.21 = getelementptr inbounds i8, ptr %2, i64 168
  %98 = load double, ptr %.021.ptr.21, align 8, !tbaa !11
  %.021.ptr.22 = getelementptr inbounds i8, ptr %2, i64 176
  %99 = load double, ptr %.021.ptr.22, align 16, !tbaa !11
  %.021.ptr.23 = getelementptr inbounds i8, ptr %2, i64 184
  %100 = load double, ptr %.021.ptr.23, align 8, !tbaa !11
  %.021.ptr.24 = getelementptr inbounds i8, ptr %2, i64 192
  %101 = load double, ptr %.021.ptr.24, align 16, !tbaa !11
  %102 = load double, ptr %72, align 8, !tbaa !11
  %.021.ptr.26 = getelementptr inbounds i8, ptr %2, i64 208
  %103 = load double, ptr %.021.ptr.26, align 16, !tbaa !11
  %.021.ptr.27 = getelementptr inbounds i8, ptr %2, i64 216
  %104 = load double, ptr %.021.ptr.27, align 8, !tbaa !11
  %.021.ptr.28 = getelementptr inbounds i8, ptr %2, i64 224
  %105 = load double, ptr %.021.ptr.28, align 16, !tbaa !11
  %.021.ptr.29 = getelementptr inbounds i8, ptr %2, i64 232
  %106 = load double, ptr %.021.ptr.29, align 8, !tbaa !11
  %.021.ptr.30 = getelementptr inbounds i8, ptr %2, i64 240
  %107 = load double, ptr %.021.ptr.30, align 16, !tbaa !11
  %.021.ptr.31 = getelementptr inbounds i8, ptr %2, i64 248
  %108 = load double, ptr %.021.ptr.31, align 8, !tbaa !11
  %.021.ptr.32 = getelementptr inbounds i8, ptr %2, i64 256
  %109 = load double, ptr %.021.ptr.32, align 16, !tbaa !11
  %.021.ptr.33 = getelementptr inbounds i8, ptr %2, i64 264
  %110 = load double, ptr %.021.ptr.33, align 8, !tbaa !11
  %.021.ptr.34 = getelementptr inbounds i8, ptr %2, i64 272
  %111 = load double, ptr %.021.ptr.34, align 16, !tbaa !11
  %.021.ptr.35 = getelementptr inbounds i8, ptr %2, i64 280
  %112 = load double, ptr %.021.ptr.35, align 8, !tbaa !11
  %.021.ptr.36 = getelementptr inbounds i8, ptr %2, i64 288
  %113 = load double, ptr %.021.ptr.36, align 16, !tbaa !11
  %.021.ptr.37 = getelementptr inbounds i8, ptr %2, i64 296
  %114 = load double, ptr %.021.ptr.37, align 8, !tbaa !11
  %.021.ptr.38 = getelementptr inbounds i8, ptr %2, i64 304
  %115 = load double, ptr %.021.ptr.38, align 16, !tbaa !11
  %.021.ptr.39 = getelementptr inbounds i8, ptr %2, i64 312
  %116 = load double, ptr %.021.ptr.39, align 8, !tbaa !11
  %.021.ptr.40 = getelementptr inbounds i8, ptr %2, i64 320
  %117 = load double, ptr %.021.ptr.40, align 16, !tbaa !11
  %.021.ptr.41 = getelementptr inbounds i8, ptr %2, i64 328
  %118 = load double, ptr %.021.ptr.41, align 8, !tbaa !11
  %.021.ptr.42 = getelementptr inbounds i8, ptr %2, i64 336
  %119 = load double, ptr %.021.ptr.42, align 16, !tbaa !11
  %.021.ptr.43 = getelementptr inbounds i8, ptr %2, i64 344
  %120 = load double, ptr %.021.ptr.43, align 8, !tbaa !11
  %.021.ptr.44 = getelementptr inbounds i8, ptr %2, i64 352
  %121 = load double, ptr %.021.ptr.44, align 16, !tbaa !11
  %.021.ptr.45 = getelementptr inbounds i8, ptr %2, i64 360
  %122 = load double, ptr %.021.ptr.45, align 8, !tbaa !11
  %.021.ptr.46 = getelementptr inbounds i8, ptr %2, i64 368
  %123 = load double, ptr %.021.ptr.46, align 16, !tbaa !11
  %.021.ptr.47 = getelementptr inbounds i8, ptr %2, i64 376
  %124 = load double, ptr %.021.ptr.47, align 8, !tbaa !11
  %.021.ptr.48 = getelementptr inbounds i8, ptr %2, i64 384
  %125 = load double, ptr %.021.ptr.48, align 16, !tbaa !11
  %.021.ptr.49 = getelementptr inbounds i8, ptr %2, i64 392
  %126 = load double, ptr %.021.ptr.49, align 8, !tbaa !11
  %.021.ptr.50 = getelementptr inbounds i8, ptr %2, i64 400
  %127 = load double, ptr %.021.ptr.50, align 16, !tbaa !11
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
          to label %129 unwind label %186

129:                                              ; preds = %.preheader.preheader
  %130 = fadd double %77, 0.000000e+00
  %131 = fadd double %130, %78
  %132 = fadd double %131, %79
  %133 = fadd double %132, %80
  %134 = fadd double %133, %81
  %135 = fadd double %134, %82
  %136 = fadd double %135, %83
  %137 = fadd double %136, %84
  %138 = fadd double %137, %85
  %139 = fadd double %138, %86
  %140 = fadd double %139, %87
  %141 = fadd double %140, %88
  %142 = fadd double %141, %89
  %143 = fadd double %142, %90
  %144 = fadd double %143, %91
  %145 = fadd double %144, %92
  %146 = fadd double %145, %93
  %147 = fadd double %146, %94
  %148 = fadd double %147, %95
  %149 = fadd double %148, %96
  %150 = fadd double %149, %97
  %151 = fadd double %150, %98
  %152 = fadd double %151, %99
  %153 = fadd double %152, %100
  %154 = fadd double %153, %101
  %155 = fadd double %154, %102
  %156 = fadd double %155, %103
  %157 = fadd double %156, %104
  %158 = fadd double %157, %105
  %159 = fadd double %158, %106
  %160 = fadd double %159, %107
  %161 = fadd double %160, %108
  %162 = fadd double %161, %109
  %163 = fadd double %162, %110
  %164 = fadd double %163, %111
  %165 = fadd double %164, %112
  %166 = fadd double %165, %113
  %167 = fadd double %166, %114
  %168 = fadd double %167, %115
  %169 = fadd double %168, %116
  %170 = fadd double %169, %117
  %171 = fadd double %170, %118
  %172 = fadd double %171, %119
  %173 = fadd double %172, %120
  %174 = fadd double %173, %121
  %175 = fadd double %174, %122
  %176 = fadd double %175, %123
  %177 = fadd double %176, %124
  %178 = fadd double %177, %125
  %179 = fadd double %178, %126
  %180 = fadd double %179, %127
  %181 = fdiv double %180, 5.100000e+01
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %128, double noundef %181)
          to label %183 unwind label %186

183:                                              ; preds = %129
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef nonnull @.str.5)
          to label %185 unwind label %186

185:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %2) #8
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %1) #8
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %1) #8
  ret i32 0

186:                                              ; preds = %183, %129, %.preheader.preheader
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %188

188:                                              ; preds = %32, %65, %186, %17
  %.pn33.pn.pn.pn = phi { ptr, i32 } [ %187, %186 ], [ %18, %17 ], [ %.pn33.pn, %65 ], [ %33, %32 ]
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %2) #8
  call void @_ZNSt13random_deviceD2Ev(ptr noundef nonnull align 8 dereferenceable(5000) %1) #8
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn33.pn.pn.pn
}

; 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 uwtable
declare dso_local void @_ZNSt13random_deviceC2Ev(ptr noundef nonnull align 8 dereferenceable(5000)) unnamed_addr #2 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() local_unnamed_addr #5

; Function Attrs: mustprogress noinline uwtable
declare dso_local void @_Z9quicksortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEESt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_S9_RT0_(ptr, ptr, ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #6

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt5beginIdLm51EEPT_RAT0__S0_(ptr noundef nonnull align 8 dereferenceable(408)) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZSt3endIdLm51EEPT_RAT0__S0_(ptr noundef nonnull align 8 dereferenceable(408)) local_unnamed_addr #7

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 #6 = { mustprogress noinline uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass