; LLVM IR from ggml-org/ggml :: examples (common)

; 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::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = 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::allocator.22" = type { i8 }
%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.36" = type { ptr }
%"struct.std::pair.44" = type <{ double, i32, [4 x i8] }>
%"struct.std::pair.54" = type { float, i32 }
%"class.__gnu_cxx::__normal_iterator.47" = type { ptr }
%class.anon.56 = type { i8 }
%"class.std::vector.48" = type { %"struct.std::_Vector_base.49" }
%"struct.std::_Vector_base.49" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.53" = type { ptr }
%"class.std::discrete_distribution" = type { %"struct.std::discrete_distribution<>::param_type" }
%"struct.std::discrete_distribution<>::param_type" = type { %"class.std::vector.48", %"class.std::vector.48" }
%struct.gpt_vocab = type { %"class.std::map", %"class.std::map.8", %"class.std::vector" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::map.8" = type { %"class.std::_Rb_tree.9" }
%"class.std::_Rb_tree.9" = type { %"struct.std::_Rb_tree<int, std::pair<const int, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const int, std::__cxx11::basic_string<char>>>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, std::pair<const int, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const int, std::__cxx11::basic_string<char>>>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

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

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

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

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

; Function Attrs: nounwind
declare double @exp(double noundef) #4

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPdSt6vectorIdSaIdEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z29gpt_sample_top_k_top_p_repeatRK9gpt_vocabPKfPKimiddifRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i32 noundef %4, double noundef %5, double noundef %6, i32 noundef %7, float noundef %8, ptr noundef nonnull align 8 dereferenceable(5000) %9) #3 personality ptr @__gxx_personality_v0 {
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca float, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %"class.std::vector.20", align 8
  %25 = alloca %"class.std::allocator.22", align 1
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca float, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %"class.std::vector.39", align 8
  %33 = alloca float, align 4
  %34 = alloca i32, align 4
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.36", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.36", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator.36", align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator.36", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator.36", align 8
  %40 = alloca %"struct.std::pair.44", align 8
  %41 = alloca %"struct.std::pair.54", align 4
  %42 = alloca float, align 4
  %43 = alloca %"struct.std::pair.44", align 8
  %44 = alloca %"struct.std::pair.54", align 4
  %45 = alloca float, align 4
  %46 = alloca %"struct.std::pair.44", align 8
  %47 = alloca %"struct.std::pair.54", align 4
  %48 = alloca float, align 4
  %49 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %50 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %51 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %52 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %53 = alloca %class.anon.56, align 1
  %54 = alloca double, align 8
  %55 = alloca ptr, align 8
  %56 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %57 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %58 = alloca ptr, align 8
  %59 = alloca %"class.std::vector.48", align 8
  %60 = alloca double, align 8
  %61 = alloca ptr, align 8
  %62 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %63 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %64 = alloca ptr, align 8
  %65 = alloca double, align 8
  %66 = alloca ptr, align 8
  %67 = alloca %"class.__gnu_cxx::__normal_iterator.53", align 8
  %68 = alloca %"class.__gnu_cxx::__normal_iterator.53", align 8
  %69 = alloca ptr, align 8
  %70 = alloca double, align 8
  %71 = alloca i32, align 4
  %72 = alloca i32, align 4
  %73 = alloca %"class.std::discrete_distribution", align 8
  %74 = alloca %"class.__gnu_cxx::__normal_iterator.53", align 8
  %75 = alloca %"class.__gnu_cxx::__normal_iterator.53", align 8
  %76 = alloca i32, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store i64 %3, ptr %15, align 8, !tbaa !9
  store i32 %4, ptr %16, align 4, !tbaa !11
  store double %5, ptr %17, align 8, !tbaa !13
  store double %6, ptr %18, align 8, !tbaa !13
  store i32 %7, ptr %19, align 4, !tbaa !11
  store float %8, ptr %20, align 4, !tbaa !15
  store ptr %9, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.gpt_vocab, ptr %77, i32 0, i32 1
  %79 = call noundef i64 @_ZNKSt3mapIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIiESaISt4pairIKiS5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %78) #6
  %80 = trunc i64 %79 to i32
  store i32 %80, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %81, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #6
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = load i64, ptr %15, align 8, !tbaa !9
  %85 = getelementptr inbounds i32, ptr %83, i64 %84
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2IPKivEET_S5_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef %82, ptr noundef %85, ptr noundef nonnull align 1 dereferenceable(1) %25)
          to label %86 unwind label %98

86:                                               ; preds = %10
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  %87 = load double, ptr %18, align 8, !tbaa !13
  %88 = fcmp ole double %87, 0.000000e+00
  br i1 %88, label %89, label %123

89:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %90 = load ptr, ptr %23, align 8, !tbaa !5
  %91 = getelementptr inbounds float, ptr %90, i64 0
  %92 = load float, ptr %91, align 4, !tbaa !15
  store float %92, ptr %28, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 1, ptr %30, align 4, !tbaa !11
  br label %93

93:                                               ; preds = %118, %89
  %94 = load i32, ptr %30, align 4, !tbaa !11
  %95 = load i32, ptr %22, align 4, !tbaa !11
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %102, label %97

97:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %121

98:                                               ; preds = %10
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %26, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %27, align 4
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  br label %421

102:                                              ; preds = %93
  %103 = load ptr, ptr %23, align 8, !tbaa !5
  %104 = load i32, ptr %30, align 4, !tbaa !11
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds float, ptr %103, i64 %105
  %107 = load float, ptr %106, align 4, !tbaa !15
  %108 = load float, ptr %28, align 4, !tbaa !15
  %109 = fcmp ogt float %107, %108
  br i1 %109, label %110, label %117

110:                                              ; preds = %102
  %111 = load ptr, ptr %23, align 8, !tbaa !5
  %112 = load i32, ptr %30, align 4, !tbaa !11
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds float, ptr %111, i64 %113
  %115 = load float, ptr %114, align 4, !tbaa !15
  store float %115, ptr %28, align 4, !tbaa !15
  %116 = load i32, ptr %30, align 4, !tbaa !11
  store i32 %116, ptr %29, align 4, !tbaa !11
  br label %117

117:                                              ; preds = %110, %102
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %30, align 4, !tbaa !11
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %30, align 4, !tbaa !11
  br label %93, !llvm.loop !17

121:                                              ; preds = %97
  %122 = load i32, ptr %29, align 4, !tbaa !11
  store i32 %122, ptr %11, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %419

123:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #6
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %124 = load i32, ptr %22, align 4, !tbaa !11
  %125 = sext i32 %124 to i64
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %125)
          to label %126 unwind label %135

126:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %127 = load double, ptr %18, align 8, !tbaa !13
  %128 = fdiv double 1.000000e+00, %127
  %129 = fptrunc double %128 to float
  store float %129, ptr %33, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !11
  br label %130

130:                                              ; preds = %228, %126
  %131 = load i32, ptr %34, align 4, !tbaa !11
  %132 = load i32, ptr %22, align 4, !tbaa !11
  %133 = icmp slt i32 %131, %132
  br i1 %133, label %139, label %134

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

135:                                              ; preds = %249, %123
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %26, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %27, align 4
  br label %418

139:                                              ; preds = %130
  %140 = load i32, ptr %19, align 4, !tbaa !11
  %141 = icmp sgt i32 %140, 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  br i1 %141, label %142, label %161

142:                                              ; preds = %139
  %143 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %144 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.36", ptr %37, i32 0, i32 0
  store ptr %143, ptr %144, align 8
  %145 = load i32, ptr %19, align 4, !tbaa !11
  %146 = sext i32 %145 to i64
  %147 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %37, i64 noundef %146) #6
  %148 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.36", ptr %36, i32 0, i32 0
  store ptr %147, ptr %148, align 8
  %149 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %150 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.36", ptr %38, i32 0, i32 0
  store ptr %149, ptr %150, align 8
  %151 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.36", ptr %36, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8
  %153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.36", ptr %38, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8
  %155 = invoke ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEEiET_S8_S8_RKT0_(ptr %152, ptr %154, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %156 unwind label %184

156:                                              ; preds = %142
  %157 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.36", ptr %35, i32 0, i32 0
  store ptr %155, ptr %157, align 8
  %158 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %159 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.36", ptr %39, i32 0, i32 0
  store ptr %158, ptr %159, align 8
  %160 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %39) #6
  br label %161

161:                                              ; preds = %156, %139
  %162 = phi i1 [ false, %139 ], [ %160, %156 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  br i1 %162, label %163, label %211

163:                                              ; preds = %161
  %164 = load ptr, ptr %23, align 8, !tbaa !5
  %165 = load i32, ptr %34, align 4, !tbaa !11
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds float, ptr %164, i64 %166
  %168 = load float, ptr %167, align 4, !tbaa !15
  %169 = fcmp olt float %168, 0.000000e+00
  br i1 %169, label %170, label %192

170:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  %171 = load ptr, ptr %23, align 8, !tbaa !5
  %172 = load i32, ptr %34, align 4, !tbaa !11
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds float, ptr %171, i64 %173
  %175 = load float, ptr %174, align 4, !tbaa !15
  %176 = load float, ptr %33, align 4, !tbaa !15
  %177 = fmul float %175, %176
  %178 = load float, ptr %20, align 4, !tbaa !15
  %179 = fmul float %177, %178
  store float %179, ptr %42, align 4, !tbaa !15
  %180 = invoke i64 @_ZSt9make_pairIfRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %181 unwind label %188

181:                                              ; preds = %170
  store i64 %180, ptr %41, align 4
  invoke void @_ZNSt4pairIdiEC2IfiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(8) %41)
          to label %182 unwind label %188

182:                                              ; preds = %181
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(12) %40)
          to label %183 unwind label %188

183:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  br label %210

184:                                              ; preds = %142
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %26, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  br label %231

188:                                              ; preds = %182, %181, %170
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %26, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #6
  br label %231

192:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %193 = load ptr, ptr %23, align 8, !tbaa !5
  %194 = load i32, ptr %34, align 4, !tbaa !11
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds float, ptr %193, i64 %195
  %197 = load float, ptr %196, align 4, !tbaa !15
  %198 = load float, ptr %33, align 4, !tbaa !15
  %199 = fmul float %197, %198
  %200 = load float, ptr %20, align 4, !tbaa !15
  %201 = fdiv float %199, %200
  store float %201, ptr %45, align 4, !tbaa !15
  %202 = invoke i64 @_ZSt9make_pairIfRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %45, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %203 unwind label %206

203:                                              ; preds = %192
  store i64 %202, ptr %44, align 4
  invoke void @_ZNSt4pairIdiEC2IfiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(8) %44)
          to label %204 unwind label %206

204:                                              ; preds = %203
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(12) %43)
          to label %205 unwind label %206

205:                                              ; preds = %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #6
  br label %210

206:                                              ; preds = %204, %203, %192
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %26, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #6
  br label %231

210:                                              ; preds = %205, %183
  br label %227

211:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 16, ptr %46) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #6
  %212 = load ptr, ptr %23, align 8, !tbaa !5
  %213 = load i32, ptr %34, align 4, !tbaa !11
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds float, ptr %212, i64 %214
  %216 = load float, ptr %215, align 4, !tbaa !15
  %217 = load float, ptr %33, align 4, !tbaa !15
  %218 = fmul float %216, %217
  store float %218, ptr %48, align 4, !tbaa !15
  %219 = invoke i64 @_ZSt9make_pairIfRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef nonnull align 4 dereferenceable(4) %34)
          to label %220 unwind label %223

220:                                              ; preds = %211
  store i64 %219, ptr %47, align 4
  invoke void @_ZNSt4pairIdiEC2IfiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12) %46, ptr noundef nonnull align 4 dereferenceable(8) %47)
          to label %221 unwind label %223

221:                                              ; preds = %220
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(12) %46)
          to label %222 unwind label %223

222:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #6
  br label %227

223:                                              ; preds = %221, %220, %211
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %26, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %46) #6
  br label %231

227:                                              ; preds = %222, %210
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %34, align 4, !tbaa !11
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %34, align 4, !tbaa !11
  br label %130, !llvm.loop !19

231:                                              ; preds = %223, %206, %188, %184
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %418

232:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  %233 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %234 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %49, i32 0, i32 0
  store ptr %233, ptr %234, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #6
  %235 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %236 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %51, i32 0, i32 0
  store ptr %235, ptr %236, align 8
  %237 = load i32, ptr %16, align 4, !tbaa !11
  %238 = sext i32 %237 to i64
  %239 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %51, i64 noundef %238) #6
  %240 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %50, i32 0, i32 0
  store ptr %239, ptr %240, align 8
  %241 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %242 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %52, i32 0, i32 0
  store ptr %241, ptr %242, align 8
  %243 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %49, i32 0, i32 0
  %244 = load ptr, ptr %243, align 8
  %245 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %50, i32 0, i32 0
  %246 = load ptr, ptr %245, align 8
  %247 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %52, i32 0, i32 0
  %248 = load ptr, ptr %247, align 8
  invoke void @"_ZSt12partial_sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS3_SaIS3_EEEEZ29gpt_sample_top_k_top_p_repeatRK9gpt_vocabPKfPKimiddifRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEE3$_0EvT_SK_SK_T0_"(ptr %244, ptr %246, ptr %248)
          to label %249 unwind label %262

249:                                              ; preds = %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  %250 = load i32, ptr %16, align 4, !tbaa !11
  %251 = sext i32 %250 to i64
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %251)
          to label %252 unwind label %135

252:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #6
  store double 0xFFF0000000000000, ptr %54, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #6
  store ptr %32, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #6
  %253 = load ptr, ptr %55, align 8, !tbaa !5
  %254 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %253) #6
  %255 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %56, i32 0, i32 0
  store ptr %254, ptr %255, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #6
  %256 = load ptr, ptr %55, align 8, !tbaa !5
  %257 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %256) #6
  %258 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %57, i32 0, i32 0
  store ptr %257, ptr %258, align 8
  br label %259

259:                                              ; preds = %273, %252
  %260 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull align 8 dereferenceable(8) %57) #6
  br i1 %260, label %266, label %261

261:                                              ; preds = %259
  store i32 8, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  br label %279

262:                                              ; preds = %232
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %26, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  br label %418

266:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #6
  %267 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %56) #6
  store ptr %267, ptr %58, align 8, !tbaa !5
  %268 = load ptr, ptr %58, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.std::pair.44", ptr %268, i32 0, i32 0
  %270 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 8 dereferenceable(8) %269)
          to label %271 unwind label %275

271:                                              ; preds = %266
  %272 = load double, ptr %270, align 8, !tbaa !13
  store double %272, ptr %54, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #6
  br label %273

273:                                              ; preds = %271
  %274 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %56) #6
  br label %259

275:                                              ; preds = %266
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %26, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  br label %417

279:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 24, ptr %59) #6
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %59) #6
  %280 = call noundef i64 @_ZNKSt6vectorISt4pairIdiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  invoke void @_ZNSt6vectorIdSaIdEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %280)
          to label %281 unwind label %291

281:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #6
  store double 0.000000e+00, ptr %60, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #6
  store ptr %32, ptr %61, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #6
  %282 = load ptr, ptr %61, align 8, !tbaa !5
  %283 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %282) #6
  %284 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %62, i32 0, i32 0
  store ptr %283, ptr %284, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #6
  %285 = load ptr, ptr %61, align 8, !tbaa !5
  %286 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %285) #6
  %287 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.47", ptr %63, i32 0, i32 0
  store ptr %286, ptr %287, align 8
  br label %288

288:                                              ; preds = %307, %281
  %289 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef nonnull align 8 dereferenceable(8) %63) #6
  br i1 %289, label %295, label %290

290:                                              ; preds = %288
  store i32 10, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #6
  br label %313

291:                                              ; preds = %279
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %26, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %27, align 4
  br label %416

295:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #6
  %296 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %62) #6
  store ptr %296, ptr %64, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #6
  %297 = load ptr, ptr %64, align 8, !tbaa !5
  %298 = getelementptr inbounds %"struct.std::pair.44", ptr %297, i32 0, i32 0
  %299 = load double, ptr %298, align 8, !tbaa !20
  %300 = load double, ptr %54, align 8, !tbaa !13
  %301 = fsub double %299, %300
  %302 = call double @exp(double noundef %301) #6
  store double %302, ptr %65, align 8, !tbaa !13
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 8 dereferenceable(8) %65)
          to label %303 unwind label %309

303:                                              ; preds = %295
  %304 = load double, ptr %65, align 8, !tbaa !13
  %305 = load double, ptr %60, align 8, !tbaa !13
  %306 = fadd double %305, %304
  store double %306, ptr %60, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #6
  br label %307

307:                                              ; preds = %303
  %308 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %62) #6
  br label %288

309:                                              ; preds = %295
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %26, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #6
  br label %415

313:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #6
  store ptr %59, ptr %66, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #6
  %314 = load ptr, ptr %66, align 8, !tbaa !5
  %315 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %314) #6
  %316 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.53", ptr %67, i32 0, i32 0
  store ptr %315, ptr %316, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #6
  %317 = load ptr, ptr %66, align 8, !tbaa !5
  %318 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %317) #6
  %319 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.53", ptr %68, i32 0, i32 0
  store ptr %318, ptr %319, align 8
  br label %320

320:                                              ; preds = %329, %313
  %321 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPdSt6vectorIdSaIdEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull align 8 dereferenceable(8) %68) #6
  br i1 %321, label %323, label %322

322:                                              ; preds = %320
  store i32 12, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #6
  br label %331

323:                                              ; preds = %320
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #6
  %324 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %67) #6
  store ptr %324, ptr %69, align 8, !tbaa !5
  %325 = load double, ptr %60, align 8, !tbaa !13
  %326 = load ptr, ptr %69, align 8, !tbaa !5
  %327 = load double, ptr %326, align 8, !tbaa !13
  %328 = fdiv double %327, %325
  store double %328, ptr %326, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #6
  br label %329

329:                                              ; preds = %323
  %330 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %67) #6
  br label %320

331:                                              ; preds = %322
  %332 = load double, ptr %17, align 8, !tbaa !13
  %333 = fcmp olt double %332, 1.000000e+00
  br i1 %333, label %334, label %388

334:                                              ; preds = %331
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #6
  store double 0.000000e+00, ptr %70, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %71) #6
  store i32 0, ptr %71, align 4, !tbaa !11
  br label %335

335:                                              ; preds = %364, %334
  %336 = load i32, ptr %71, align 4, !tbaa !11
  %337 = load i32, ptr %16, align 4, !tbaa !11
  %338 = icmp slt i32 %336, %337
  br i1 %338, label %340, label %339

339:                                              ; preds = %335
  store i32 14, ptr %31, align 4
  br label %367

340:                                              ; preds = %335
  %341 = load i32, ptr %71, align 4, !tbaa !11
  %342 = sext i32 %341 to i64
  %343 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %342) #6
  %344 = load double, ptr %343, align 8, !tbaa !13
  %345 = load double, ptr %70, align 8, !tbaa !13
  %346 = fadd double %345, %344
  store double %346, ptr %70, align 8, !tbaa !13
  %347 = load double, ptr %70, align 8, !tbaa !13
  %348 = load double, ptr %17, align 8, !tbaa !13
  %349 = fcmp oge double %347, %348
  br i1 %349, label %350, label %363

350:                                              ; preds = %340
  %351 = load i32, ptr %71, align 4, !tbaa !11
  %352 = add nsw i32 %351, 1
  store i32 %352, ptr %16, align 4, !tbaa !11
  %353 = load i32, ptr %16, align 4, !tbaa !11
  %354 = sext i32 %353 to i64
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %354)
          to label %355 unwind label %359

355:                                              ; preds = %350
  %356 = load i32, ptr %16, align 4, !tbaa !11
  %357 = sext i32 %356 to i64
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %357)
          to label %358 unwind label %359

358:                                              ; preds = %355
  store i32 14, ptr %31, align 4
  br label %367

359:                                              ; preds = %355, %350
  %360 = landingpad { ptr, i32 }
          cleanup
  %361 = extractvalue { ptr, i32 } %360, 0
  store ptr %361, ptr %26, align 8
  %362 = extractvalue { ptr, i32 } %360, 1
  store i32 %362, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #6
  br label %415

363:                                              ; preds = %340
  br label %364

364:                                              ; preds = %363
  %365 = load i32, ptr %71, align 4, !tbaa !11
  %366 = add nsw i32 %365, 1
  store i32 %366, ptr %71, align 4, !tbaa !11
  br label %335, !llvm.loop !22

367:                                              ; preds = %358, %339
  call void @llvm.lifetime.end.p0(i64 4, ptr %71) #6
  br label %368

368:                                              ; preds = %367
  %369 = load double, ptr %70, align 8, !tbaa !13
  %370 = fdiv double 1.000000e+00, %369
  store double %370, ptr %70, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #6
  store i32 0, ptr %72, align 4, !tbaa !11
  br label %371

371:                                              ; preds = %384, %368
  %372 = load i32, ptr %72, align 4, !tbaa !11
  %373 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #6
  %374 = trunc i64 %373 to i32
  %375 = icmp slt i32 %372, %374
  br i1 %375, label %377, label %376

376:                                              ; preds = %371
  store i32 17, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #6
  br label %387

377:                                              ; preds = %371
  %378 = load double, ptr %70, align 8, !tbaa !13
  %379 = load i32, ptr %72, align 4, !tbaa !11
  %380 = sext i32 %379 to i64
  %381 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %380) #6
  %382 = load double, ptr %381, align 8, !tbaa !13
  %383 = fmul double %382, %378
  store double %383, ptr %381, align 8, !tbaa !13
  br label %384

384:                                              ; preds = %377
  %385 = load i32, ptr %72, align 4, !tbaa !11
  %386 = add nsw i32 %385, 1
  store i32 %386, ptr %72, align 4, !tbaa !11
  br label %371, !llvm.loop !23

387:                                              ; preds = %376
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #6
  br label %388

388:                                              ; preds = %387, %331
  call void @llvm.lifetime.start.p0(i64 48, ptr %73) #6
  %389 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #6
  %390 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.53", ptr %74, i32 0, i32 0
  store ptr %389, ptr %390, align 8
  %391 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #6
  %392 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.53", ptr %75, i32 0, i32 0
  store ptr %391, ptr %392, align 8
  %393 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.53", ptr %74, i32 0, i32 0
  %394 = load ptr, ptr %393, align 8
  %395 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.53", ptr %75, i32 0, i32 0
  %396 = load ptr, ptr %395, align 8
  invoke void @_ZNSt21discrete_distributionIiEC2IN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEET_S9_(ptr noundef nonnull align 8 dereferenceable(48) %73, ptr %394, ptr %396)
          to label %397 unwind label %406

397:                                              ; preds = %388
  call void @llvm.lifetime.start.p0(i64 4, ptr %76) #6
  %398 = load ptr, ptr %21, align 8, !tbaa !5
  %399 = invoke noundef i32 @_ZNSt21discrete_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 8 dereferenceable(48) %73, ptr noundef nonnull align 8 dereferenceable(5000) %398)
          to label %400 unwind label %410

400:                                              ; preds = %397
  store i32 %399, ptr %76, align 4, !tbaa !11
  %401 = load i32, ptr %76, align 4, !tbaa !11
  %402 = sext i32 %401 to i64
  %403 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIdiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %402) #6
  %404 = getelementptr inbounds %"struct.std::pair.44", ptr %403, i32 0, i32 1
  %405 = load i32, ptr %404, align 8, !tbaa !24
  store i32 %405, ptr %11, align 4
  store i32 1, ptr %31, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #6
  call void @_ZNSt21discrete_distributionIiED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %73) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %73) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %59) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %59) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #6
  br label %419

406:                                              ; preds = %388
  %407 = landingpad { ptr, i32 }
          cleanup
  %408 = extractvalue { ptr, i32 } %407, 0
  store ptr %408, ptr %26, align 8
  %409 = extractvalue { ptr, i32 } %407, 1
  store i32 %409, ptr %27, align 4
  br label %414

410:                                              ; preds = %397
  %411 = landingpad { ptr, i32 }
          cleanup
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %26, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %76) #6
  call void @_ZNSt21discrete_distributionIiED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %73) #6
  br label %414

414:                                              ; preds = %410, %406
  call void @llvm.lifetime.end.p0(i64 48, ptr %73) #6
  br label %415

415:                                              ; preds = %414, %359, %309
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #6
  br label %416

416:                                              ; preds = %415, %291
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %59) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %59) #6
  br label %417

417:                                              ; preds = %416, %275
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  br label %418

418:                                              ; preds = %417, %262, %231, %135
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  br label %421

419:                                              ; preds = %400, %121
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  %420 = load i32, ptr %11, align 4
  ret i32 %420

421:                                              ; preds = %418, %98
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %422

422:                                              ; preds = %421
  %423 = load ptr, ptr %26, align 8
  %424 = load i32, ptr %27, align 4
  %425 = insertvalue { ptr, i32 } poison, ptr %423, 0
  %426 = insertvalue { ptr, i32 } %425, i32 %424, 1
  resume { ptr, i32 } %426
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEEiET_S8_S8_RKT0_(ptr, ptr, ptr noundef nonnull align 4 dereferenceable(4)) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIfRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IfiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt12partial_sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS3_SaIS3_EEEEZ29gpt_sample_top_k_top_p_repeatRK9gpt_vocabPKfPKimiddifRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEE3$_0EvT_SK_SK_T0_"(ptr, ptr, ptr) #5

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

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

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

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


; 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::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = 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::allocator.22" = type { i8 }
%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.36" = type { ptr }
%"struct.std::pair.44" = type <{ double, i32, [4 x i8] }>
%"struct.std::pair.54" = type { float, i32 }
%"class.__gnu_cxx::__normal_iterator.47" = type { ptr }
%"class.std::vector.48" = type { %"struct.std::_Vector_base.49" }
%"struct.std::_Vector_base.49" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.53" = type { ptr }
%"class.std::discrete_distribution" = type { %"struct.std::discrete_distribution<>::param_type" }
%"struct.std::discrete_distribution<>::param_type" = type { %"class.std::vector.48", %"class.std::vector.48" }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPdSt6vectorIdSaIdEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z29gpt_sample_top_k_top_p_repeatRK9gpt_vocabPKfPKimiddifRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr noundef nonnull align 8 dereferenceable(120) %0, ptr nocapture noundef readonly %1, ptr noundef %2, i64 noundef %3, i32 noundef %4, double noundef %5, double noundef %6, i32 noundef %7, float noundef %8, ptr noundef nonnull align 8 dereferenceable(5000) %9) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %11 = alloca %"class.std::vector.20", align 8
  %12 = alloca %"class.std::allocator.22", align 1
  %13 = alloca %"class.std::vector.39", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.36", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.36", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.36", align 8
  %18 = alloca %"struct.std::pair.44", align 8
  %19 = alloca %"struct.std::pair.54", align 8
  %20 = alloca float, align 4
  %21 = alloca %"struct.std::pair.44", align 8
  %22 = alloca %"struct.std::pair.54", align 8
  %23 = alloca float, align 4
  %24 = alloca %"struct.std::pair.44", align 8
  %25 = alloca %"struct.std::pair.54", align 8
  %26 = alloca float, align 4
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %28 = alloca double, align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %31 = alloca %"class.std::vector.48", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.47", align 8
  %34 = alloca double, align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.53", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.53", align 8
  %37 = alloca %"class.std::discrete_distribution", align 8
  %38 = getelementptr inbounds i8, ptr %0, i64 48
  %39 = tail call noundef i64 @_ZNKSt3mapIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIiESaISt4pairIKiS5_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %38) #6
  %40 = trunc i64 %39 to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  %41 = getelementptr inbounds i32, ptr %2, i64 %3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt6vectorIiSaIiEEC2IPKivEET_S5_RKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef %2, ptr noundef %41, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %42 unwind label %49

42:                                               ; preds = %10
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  %43 = fcmp ugt double %6, 0.000000e+00
  br i1 %43, label %59, label %44

44:                                               ; preds = %42
  %45 = icmp sgt i32 %40, 1
  br i1 %45, label %.lr.ph.preheader, label %.loopexit102

.lr.ph.preheader:                                 ; preds = %44
  %46 = load float, ptr %1, align 4, !tbaa !5
  %wide.trip.count = and i64 %39, 2147483647
  %47 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %47, 1
  %48 = icmp eq i64 %wide.trip.count, 2
  br i1 %48, label %.loopexit102.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %47, -2
  br label %.lr.ph

49:                                               ; preds = %10
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  br label %203

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %.081108 = phi float [ %46, %.lr.ph.preheader.new ], [ %.182.1, %.lr.ph ]
  %.083107 = phi i32 [ 0, %.lr.ph.preheader.new ], [ %.184.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %51 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  %52 = load float, ptr %51, align 4, !tbaa !5
  %53 = fcmp ogt float %52, %.081108
  %54 = trunc nuw nsw i64 %indvars.iv to i32
  %.184 = select i1 %53, i32 %54, i32 %.083107
  %.182 = select i1 %53, float %52, float %.081108
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %55 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next
  %56 = load float, ptr %55, align 4, !tbaa !5
  %57 = fcmp ogt float %56, %.182
  %58 = trunc nuw nsw i64 %indvars.iv.next to i32
  %.184.1 = select i1 %57, i32 %58, i32 %.184
  %.182.1 = select i1 %57, float %56, float %.182
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit102.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !9

59:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #6
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %sext = shl i64 %39, 32
  %60 = ashr exact i64 %sext, 32
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %60)
          to label %61 unwind label %72

61:                                               ; preds = %59
  %62 = fdiv double 1.000000e+00, %6
  %63 = fptrunc double %62 to float
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  store i32 0, ptr %14, align 4, !tbaa !11
  %64 = icmp sgt i32 %40, 0
  br i1 %64, label %.lr.ph109, label %._crit_edge

.lr.ph109:                                        ; preds = %61
  %65 = icmp sgt i32 %7, 0
  %66 = zext nneg i32 %7 to i64
  br label %74

._crit_edge:                                      ; preds = %117, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  %67 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #6
  %68 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %68, ptr %27, align 8
  %69 = sext i32 %4 to i64
  %70 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %27, i64 noundef %69) #6
  %71 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  invoke void @"_ZSt12partial_sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS3_SaIS3_EEEEZ29gpt_sample_top_k_top_p_repeatRK9gpt_vocabPKfPKimiddifRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEE3$_0EvT_SK_SK_T0_"(ptr %67, ptr %70, ptr %71)
          to label %122 unwind label %128

72:                                               ; preds = %122, %59
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %198

74:                                               ; preds = %.lr.ph109, %117
  %75 = phi i32 [ 0, %.lr.ph109 ], [ %119, %117 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  br i1 %65, label %76, label %.critedge

76:                                               ; preds = %74
  %77 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  store ptr %77, ptr %16, align 8
  %78 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEmiEl(ptr noundef nonnull align 8 dereferenceable(8) %16, i64 noundef %66) #6
  %79 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %80 = invoke ptr @_ZSt4findIN9__gnu_cxx17__normal_iteratorIPKiSt6vectorIiSaIiEEEEiET_S8_S8_RKT0_(ptr %78, ptr %79, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %81 unwind label %95

81:                                               ; preds = %76
  store ptr %80, ptr %15, align 8
  %82 = call ptr @_ZNKSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  store ptr %82, ptr %17, align 8
  %83 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  %.pre = load i32, ptr %14, align 4, !tbaa !11
  br i1 %83, label %84, label %106

84:                                               ; preds = %81
  %85 = sext i32 %.pre to i64
  %86 = getelementptr inbounds float, ptr %1, i64 %85
  %87 = load float, ptr %86, align 4, !tbaa !5
  %88 = fcmp olt float %87, 0.000000e+00
  %89 = fmul float %87, %63
  br i1 %88, label %90, label %99

90:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #6
  %91 = fmul float %89, %8
  store float %91, ptr %20, align 4, !tbaa !5
  %92 = invoke i64 @_ZSt9make_pairIfRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %93 unwind label %97

93:                                               ; preds = %90
  store i64 %92, ptr %19, align 8
  call void @_ZNSt4pairIdiEC2IfiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(8) %19)
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(12) %18)
          to label %94 unwind label %97

94:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  br label %117

95:                                               ; preds = %76
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %121

97:                                               ; preds = %93, %90
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #6
  br label %121

99:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #6
  %100 = fdiv float %89, %8
  store float %100, ptr %23, align 4, !tbaa !5
  %101 = invoke i64 @_ZSt9make_pairIfRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %102 unwind label %104

102:                                              ; preds = %99
  store i64 %101, ptr %22, align 8
  call void @_ZNSt4pairIdiEC2IfiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(8) %22)
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(12) %21)
          to label %103 unwind label %104

103:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  br label %117

104:                                              ; preds = %102, %99
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  br label %121

.critedge:                                        ; preds = %74
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %106

106:                                              ; preds = %.critedge, %81
  %107 = phi i32 [ %75, %.critedge ], [ %.pre, %81 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #6
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds float, ptr %1, i64 %108
  %110 = load float, ptr %109, align 4, !tbaa !5
  %111 = fmul float %110, %63
  store float %111, ptr %26, align 4, !tbaa !5
  %112 = invoke i64 @_ZSt9make_pairIfRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %113 unwind label %115

113:                                              ; preds = %106
  store i64 %112, ptr %25, align 8
  call void @_ZNSt4pairIdiEC2IfiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(8) %25)
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(12) %24)
          to label %114 unwind label %115

114:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  br label %117

115:                                              ; preds = %113, %106
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #6
  br label %121

117:                                              ; preds = %114, %103, %94
  %118 = load i32, ptr %14, align 4, !tbaa !11
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %14, align 4, !tbaa !11
  %120 = icmp slt i32 %119, %40
  br i1 %120, label %74, label %._crit_edge, !llvm.loop !13

121:                                              ; preds = %115, %104, %97, %95
  %.pn97 = phi { ptr, i32 } [ %98, %97 ], [ %105, %104 ], [ %116, %115 ], [ %96, %95 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br label %198

122:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #6
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %69)
          to label %123 unwind label %72

123:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #6
  store double 0xFFF0000000000000, ptr %28, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #6
  %124 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %124, ptr %29, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #6
  %125 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %125, ptr %30, align 8
  %126 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  br i1 %126, label %.lr.ph111, label %._crit_edge112

._crit_edge112:                                   ; preds = %.lr.ph111, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #6
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %127 = call noundef i64 @_ZNKSt6vectorISt4pairIdiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  invoke void @_ZNSt6vectorIdSaIdEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %127)
          to label %135 unwind label %142

128:                                              ; preds = %._crit_edge
  %129 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #6
  br label %198

.lr.ph111:                                        ; preds = %123, %.lr.ph111
  %130 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %130)
  %132 = load double, ptr %131, align 8, !tbaa !14
  store double %132, ptr %28, align 8, !tbaa !14
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  %134 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  br i1 %134, label %.lr.ph111, label %._crit_edge112

135:                                              ; preds = %._crit_edge112
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %32) #6
  %136 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %136, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #6
  %137 = call ptr @_ZNSt6vectorISt4pairIdiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %137, ptr %33, align 8
  %138 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #6
  br i1 %138, label %.lr.ph115, label %._crit_edge116

._crit_edge116:                                   ; preds = %149, %135
  %.086.lcssa = phi double [ 0.000000e+00, %135 ], [ %151, %149 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #6
  %139 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  store ptr %139, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %36) #6
  %140 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  store ptr %140, ptr %36, align 8
  %141 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPdSt6vectorIdSaIdEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  br i1 %141, label %.lr.ph119, label %._crit_edge120

142:                                              ; preds = %._crit_edge112
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %197

.lr.ph115:                                        ; preds = %135, %149
  %.086113 = phi double [ %151, %149 ], [ 0.000000e+00, %135 ]
  %144 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #6
  %145 = load double, ptr %144, align 8, !tbaa !16
  %146 = load double, ptr %28, align 8, !tbaa !14
  %147 = fsub double %145, %146
  %148 = call double @exp(double noundef %147) #6
  store double %148, ptr %34, align 8, !tbaa !14
  invoke void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(8) %34)
          to label %149 unwind label %154

149:                                              ; preds = %.lr.ph115
  %150 = load double, ptr %34, align 8, !tbaa !14
  %151 = fadd double %.086113, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #6
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  %153 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIdiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #6
  br i1 %153, label %.lr.ph115, label %._crit_edge116

154:                                              ; preds = %.lr.ph115
  %155 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %32) #6
  br label %197

._crit_edge120:                                   ; preds = %.lr.ph119, %._crit_edge116
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #6
  %156 = fcmp olt double %5, 1.000000e+00
  br i1 %156, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %._crit_edge120
  %157 = icmp sgt i32 %4, 0
  br i1 %157, label %.lr.ph123.preheader, label %.loopexit101

.lr.ph123.preheader:                              ; preds = %.preheader
  %wide.trip.count135 = zext nneg i32 %4 to i64
  br label %.lr.ph123

.lr.ph119:                                        ; preds = %._crit_edge116, %.lr.ph119
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  %159 = load double, ptr %158, align 8, !tbaa !14
  %160 = fdiv double %159, %.086.lcssa
  store double %160, ptr %158, align 8, !tbaa !14
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  %162 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPdSt6vectorIdSaIdEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  br i1 %162, label %.lr.ph119, label %._crit_edge120

.lr.ph123:                                        ; preds = %.lr.ph123.preheader, %172
  %indvars.iv132 = phi i64 [ 0, %.lr.ph123.preheader ], [ %indvars.iv.next133, %172 ]
  %.073121 = phi double [ 0.000000e+00, %.lr.ph123.preheader ], [ %165, %172 ]
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %indvars.iv132) #6
  %164 = load double, ptr %163, align 8, !tbaa !14
  %165 = fadd double %.073121, %164
  %166 = fcmp ult double %165, %5
  %indvars.iv.next133 = add nuw i64 %indvars.iv132, 1
  br i1 %166, label %172, label %167

167:                                              ; preds = %.lr.ph123
  %168 = and i64 %indvars.iv.next133, 4294967295
  invoke void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %168)
          to label %169 unwind label %170

169:                                              ; preds = %167
  invoke void @_ZNSt6vectorISt4pairIdiESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %168)
          to label %.loopexit101 unwind label %170

170:                                              ; preds = %169, %167
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %197

172:                                              ; preds = %.lr.ph123
  %exitcond136.not = icmp eq i64 %indvars.iv.next133, %wide.trip.count135
  br i1 %exitcond136.not, label %.loopexit101, label %.lr.ph123, !llvm.loop !18

.loopexit101:                                     ; preds = %172, %.preheader, %169
  %.174 = phi double [ %165, %169 ], [ 0.000000e+00, %.preheader ], [ %165, %172 ]
  %173 = fdiv double 1.000000e+00, %.174
  %174 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %175 = trunc i64 %174 to i32
  %176 = icmp sgt i32 %175, 0
  br i1 %176, label %.lr.ph127, label %.loopexit

.lr.ph127:                                        ; preds = %.loopexit101, %.lr.ph127
  %indvars.iv137 = phi i64 [ %indvars.iv.next138, %.lr.ph127 ], [ 0, %.loopexit101 ]
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %indvars.iv137) #6
  %178 = load double, ptr %177, align 8, !tbaa !14
  %179 = fmul double %173, %178
  store double %179, ptr %177, align 8, !tbaa !14
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %180 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %sext140 = shl i64 %180, 32
  %181 = ashr exact i64 %sext140, 32
  %182 = icmp slt i64 %indvars.iv.next138, %181
  br i1 %182, label %.lr.ph127, label %.loopexit, !llvm.loop !19

.loopexit:                                        ; preds = %.lr.ph127, %.loopexit101, %._crit_edge120
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %37) #6
  %183 = call ptr @_ZNSt6vectorIdSaIdEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  %184 = call ptr @_ZNSt6vectorIdSaIdEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  invoke void @_ZNSt21discrete_distributionIiEC2IN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEEEET_S9_(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr %183, ptr %184)
          to label %185 unwind label %192

185:                                              ; preds = %.loopexit
  %186 = invoke noundef i32 @_ZNSt21discrete_distributionIiEclISt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEEiRT_(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef nonnull align 8 dereferenceable(5000) %9)
          to label %187 unwind label %194

187:                                              ; preds = %185
  %188 = sext i32 %186 to i64
  %189 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorISt4pairIdiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %188) #6
  %190 = getelementptr inbounds i8, ptr %189, i64 8
  %191 = load i32, ptr %190, align 8, !tbaa !20
  call void @_ZNSt21discrete_distributionIiED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %37) #6
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #6
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  br label %.loopexit102

192:                                              ; preds = %.loopexit
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %196

194:                                              ; preds = %185
  %195 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt21discrete_distributionIiED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #6
  br label %196

196:                                              ; preds = %194, %192
  %.pn = phi { ptr, i32 } [ %195, %194 ], [ %193, %192 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %37) #6
  br label %197

197:                                              ; preds = %154, %170, %196, %142
  %.pn94.pn = phi { ptr, i32 } [ %143, %142 ], [ %155, %154 ], [ %.pn, %196 ], [ %171, %170 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #6
  br label %198

198:                                              ; preds = %197, %128, %121, %72
  %.pn97.pn = phi { ptr, i32 } [ %.pn97, %121 ], [ %.pn94.pn, %197 ], [ %73, %72 ], [ %129, %128 ]
  call void @_ZNSt6vectorISt4pairIdiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %203

.loopexit102.loopexit.unr-lcssa:                  ; preds = %.lr.ph, %.lr.ph.preheader
  %.184.lcssa.ph = phi i32 [ poison, %.lr.ph.preheader ], [ %.184.1, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %.081108.unr = phi float [ %46, %.lr.ph.preheader ], [ %.182.1, %.lr.ph ]
  %.083107.unr = phi i32 [ 0, %.lr.ph.preheader ], [ %.184.1, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit102, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.loopexit102.loopexit.unr-lcssa
  %199 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.unr
  %200 = load float, ptr %199, align 4, !tbaa !5
  %201 = fcmp ogt float %200, %.081108.unr
  %202 = trunc nuw nsw i64 %indvars.iv.unr to i32
  %.184.epil = select i1 %201, i32 %202, i32 %.083107.unr
  br label %.loopexit102

.loopexit102:                                     ; preds = %.lr.ph.epil, %.loopexit102.loopexit.unr-lcssa, %44, %187
  %.0 = phi i32 [ %191, %187 ], [ 0, %44 ], [ %.184.lcssa.ph, %.loopexit102.loopexit.unr-lcssa ], [ %.184.epil, %.lr.ph.epil ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  ret i32 %.0

203:                                              ; preds = %198, %49
  %.pn97.pn.pn = phi { ptr, i32 } [ %.pn97.pn, %198 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  resume { ptr, i32 } %.pn97.pn.pn
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIfRiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIdiEC2IfiTnNSt9enable_ifIXaaclsr6_PCCFPIT_T0_EE22_MoveConstructiblePairIS3_S4_EEclsr6_PCCFPIS3_S4_EE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS_IS3_S4_E(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt12partial_sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIdiESt6vectorIS3_SaIS3_EEEEZ29gpt_sample_top_k_top_p_repeatRK9gpt_vocabPKfPKimiddifRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEE3$_0EvT_SK_SK_T0_"(ptr, ptr, ptr) local_unnamed_addr #5

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !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 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"_ZTSSt4pairIdiE", !15, i64 0, !12, i64 8}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = !{!17, !12, i64 8}


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