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

; 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 [18 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 i64, align 8
  %8 = alloca %"class.std::mersenne_twister_engine", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::chrono::time_point", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.std::chrono::time_point", align 8
  %17 = alloca %"class.std::chrono::duration.0", align 8
  %18 = alloca %"class.std::chrono::duration", align 8
  %19 = alloca double, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = 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
  %24 = 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 %25 unwind label %46

25:                                               ; preds = %0
  %26 = 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 %27 unwind label %46

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

29:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %30 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %2)
          to label %31 unwind label %50

31:                                               ; preds = %29
  %32 = zext i32 %30 to i64
  store i64 %32, ptr %7, align 8, !tbaa !9
  %33 = load i64, ptr %7, align 8, !tbaa !9
  %34 = shl i64 %33, 32
  store i64 %34, ptr %7, align 8, !tbaa !9
  %35 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %2)
          to label %36 unwind label %50

36:                                               ; preds = %31
  %37 = zext i32 %35 to i64
  %38 = load i64, ptr %7, align 8, !tbaa !9
  %39 = or i64 %38, %37
  store i64 %39, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 5000, ptr %8) #8
  %40 = load i64, ptr %7, align 8, !tbaa !9
  invoke void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000) %8, i64 noundef %40)
          to label %41 unwind label %54

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %62, %41
  %43 = load i32, ptr %10, align 4, !tbaa !5
  %44 = icmp slt i32 %43, 10000000
  br i1 %44, label %58, label %45

45:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %69

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

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

54:                                               ; preds = %36
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %5, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %6, align 4
  br label %178

58:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %59 = load i32, ptr %10, align 4, !tbaa !5
  %60 = sub nsw i32 0, %59
  store i32 %60, ptr %11, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %61 unwind label %65

61:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %10, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %10, align 4, !tbaa !5
  br label %42, !llvm.loop !11

65:                                               ; preds = %58
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %5, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %177

69:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %109, %69
  %71 = load i32, ptr %12, align 4, !tbaa !5
  %72 = icmp ult i32 %71, 51
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %126

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

79:                                               ; preds = %74
  %80 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %78, ptr %80, align 8
  %81 = invoke ptr @_ZSt3endISt6vectorIiSaIiEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %82 unwind label %112

82:                                               ; preds = %79
  %83 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %81, ptr %83, align 8
  %84 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8
  %86 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8
  invoke void @_Z9enshuffleIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_SA_OT0_(ptr %85, ptr %87, ptr noundef nonnull align 8 dereferenceable(5000) %8)
          to label %88 unwind label %112

88:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %89 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  %90 = getelementptr inbounds %"class.std::chrono::time_point", ptr %16, i32 0, i32 0
  %91 = getelementptr inbounds %"class.std::chrono::duration", ptr %90, i32 0, i32 0
  store i64 %89, ptr %91, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %92 = 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) %16, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %93 unwind label %116

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

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

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

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

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

103:                                              ; preds = %101
  %104 = invoke noundef double @_ZNKSt6chrono8durationIdSt5ratioILl1ELl1EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %17)
          to label %105 unwind label %120

105:                                              ; preds = %103
  %106 = load i32, ptr %12, align 4, !tbaa !5
  %107 = zext i32 %106 to i64
  %108 = getelementptr inbounds [51 x double], ptr %4, i64 0, i64 %107
  store double %104, ptr %108, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %109

109:                                              ; preds = %105
  %110 = load i32, ptr %12, align 4, !tbaa !5
  %111 = add i32 %110, 1
  store i32 %111, ptr %12, align 4, !tbaa !5
  br label %70, !llvm.loop !15

112:                                              ; preds = %82, %79, %74
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %5, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %6, align 4
  br label %125

116:                                              ; preds = %93, %88
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %5, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %124

120:                                              ; preds = %103, %101, %99, %97, %95
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %5, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %6, align 4
  br label %124

124:                                              ; preds = %120, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %125

125:                                              ; preds = %124, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %177

126:                                              ; preds = %73
  %127 = 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 %128 unwind label %150

128:                                              ; preds = %126
  %129 = call noundef ptr @_ZSt5beginIdLm51EEPT_RAT0__S0_(ptr noundef nonnull align 8 dereferenceable(408) %4) #8
  %130 = call noundef ptr @_ZSt3endIdLm51EEPT_RAT0__S0_(ptr noundef nonnull align 8 dereferenceable(408) %4) #8
  invoke void @_ZSt4sortIPdEvT_S1_(ptr noundef %129, ptr noundef %130)
          to label %131 unwind label %150

131:                                              ; preds = %128
  %132 = 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 %133 unwind label %150

133:                                              ; preds = %131
  %134 = getelementptr inbounds [51 x double], ptr %4, i64 0, i64 25
  %135 = load double, ptr %134, align 8, !tbaa !13
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %132, double noundef %135)
          to label %137 unwind label %150

137:                                              ; preds = %133
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef @.str.5)
          to label %139 unwind label %150

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

145:                                              ; preds = %160, %139
  %146 = load ptr, ptr %21, align 8, !tbaa !16
  %147 = load ptr, ptr %22, align 8, !tbaa !16
  %148 = icmp ne ptr %146, %147
  br i1 %148, label %154, label %149

149:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %163

150:                                              ; preds = %137, %133, %131, %128, %126
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %5, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %6, align 4
  br label %177

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

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

163:                                              ; preds = %149
  %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 %19, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 5000, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #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 %19) #8
  br label %177

177:                                              ; preds = %173, %150, %125, %65
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #8
  br label %178

178:                                              ; preds = %177, %54
  call void @llvm.lifetime.end.p0(i64 5000, ptr %8) #8
  br label %179

179:                                              ; preds = %178, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %180

180:                                              ; preds = %179, %46
  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 %181

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

; 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 @_Z9enshuffleIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_SA_OT0_(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: 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 @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; 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 [18 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 %25

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 %25

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 %15 unwind label %25

15:                                               ; preds = %13
  %16 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %17 unwind label %27

17:                                               ; preds = %15
  %18 = invoke noundef i32 @_ZNSt13random_deviceclEv(ptr noundef nonnull align 8 dereferenceable(5000) %1)
          to label %19 unwind label %27

19:                                               ; preds = %17
  %20 = zext i32 %16 to i64
  %21 = shl nuw i64 %20, 32
  %22 = zext i32 %18 to i64
  %23 = or disjoint i64 %21, %22
  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 %23)
          to label %24 unwind label %29

24:                                               ; preds = %19
  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 %31

25:                                               ; preds = %13, %11, %0
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %190

27:                                               ; preds = %17, %15
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %190

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

31:                                               ; preds = %24, %33
  %.02939 = phi i32 [ 0, %24 ], [ %34, %33 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %32 = sub nsw i32 0, %.02939
  store i32 %32, 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 %33 unwind label %35

33:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  %34 = add nuw nsw i32 %.02939, 1
  %exitcond.not = icmp eq i32 %34, 10000000
  br i1 %exitcond.not, label %.preheader38, label %31, !llvm.loop !9

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

37:                                               ; preds = %53
  %38 = 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 %64 unwind label %127

.preheader38:                                     ; preds = %33, %53
  %indvars.iv = phi i64 [ %indvars.iv.next, %53 ], [ 0, %33 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %39 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  store i64 %39, ptr %6, align 8
  %40 = call ptr @_ZSt5beginISt6vectorIiSaIiEEEDTcldtfp_5beginEERT_(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %41 = call ptr @_ZSt3endISt6vectorIiSaIiEEEDTcldtfp_3endEERT_(ptr noundef nonnull align 8 dereferenceable(24) %4)
  invoke void @_Z9enshuffleIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_SA_OT0_(ptr %40, ptr %41, ptr noundef nonnull align 8 dereferenceable(5000) %3)
          to label %42 unwind label %56

42:                                               ; preds = %.preheader38
  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
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond44.not = icmp eq i64 %indvars.iv.next, 51
  br i1 %exitcond44.not, label %37, label %.preheader38, !llvm.loop !13

56:                                               ; preds = %.preheader38
  %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 %188

64:                                               ; preds = %37
  %65 = call noundef ptr @_ZSt5beginIdLm51EEPT_RAT0__S0_(ptr noundef nonnull align 8 dereferenceable(408) %2) #8
  %66 = call noundef ptr @_ZSt3endIdLm51EEPT_RAT0__S0_(ptr noundef nonnull align 8 dereferenceable(408) %2) #8
  invoke void @_ZSt4sortIPdEvT_S1_(ptr noundef %65, ptr noundef %66)
          to label %67 unwind label %127

67:                                               ; preds = %64
  %68 = 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 %69 unwind label %127

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

73:                                               ; preds = %69
  %74 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef nonnull @.str.5)
          to label %.preheader.preheader unwind label %127

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

127:                                              ; preds = %73, %69, %67, %64, %37
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %188

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

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

190:                                              ; preds = %27, %189, %25
  %.pn33.pn.pn.pn = phi { ptr, i32 } [ %26, %25 ], [ %.pn33.pn, %189 ], [ %28, %27 ]
  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 @_Z9enshuffleIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_SA_OT0_(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: 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 @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; 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