; LLVM IR from ggml-org/ggml :: examples/gpt-2 (main-backend)

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

%struct.gpt_params = type { i32, i32, i32, i32, i32, i32, i32, i8, i32, float, float, i32, float, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }
%struct.gpt_vocab = type { %"class.std::map.14", %"class.std::map.19", %"class.std::vector" }
%"class.std::map.14" = type { %"class.std::_Rb_tree.15" }
%"class.std::_Rb_tree.15" = 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.19" = type { %"class.std::_Rb_tree.20" }
%"class.std::_Rb_tree.20" = 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 }
%struct.gpt2_model = type { %struct.gpt2_hparams, ptr, ptr, ptr, ptr, ptr, %"class.std::vector.4", ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::map" }
%struct.gpt2_hparams = type { i32, i32, i32, i32, i32, i32, float }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<gpt2_layer, std::allocator<gpt2_layer>>::_Vector_impl" }
%"struct.std::_Vector_base<gpt2_layer, std::allocator<gpt2_layer>>::_Vector_impl" = type { %"struct.std::_Vector_base<gpt2_layer, std::allocator<gpt2_layer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<gpt2_layer, std::allocator<gpt2_layer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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>, ggml_tensor *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, ggml_tensor *>>, 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>, ggml_tensor *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, ggml_tensor *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = 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.__gnu_cxx::__normal_iterator" = type { ptr }

@stderr = external global ptr, align 8
@.str.44 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [3 x i8], align 1
@stdout = external global ptr, align 8
@.str.54 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [30 x i8], align 1

; 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: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z15gpt2_model_loadRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER10gpt2_modelR9gpt_vocabii(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(120), i32 noundef, i32 noundef) #2

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

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

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

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

declare void @ggml_free(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z9gpt2_evalRK10gpt2_modelP12ggml_gallocriiRKSt6vectorIiSaIiEERS4_IfSaIfEE(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #5 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca %struct.gpt_params, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::mersenne_twister_engine", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca i64, align 8
  %14 = alloca %struct.gpt_vocab, align 8
  %15 = alloca %struct.gpt2_model, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca %"class.std::vector.35", align 8
  %26 = alloca %"class.std::vector.30", align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %"class.std::vector.30", align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i32, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  %41 = alloca ptr, align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %43 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %44 = alloca i32, align 4
  %45 = alloca i64, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @ggml_time_init()
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %46 = call i64 @ggml_time_us()
  store i64 %46, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 160, ptr %7) #8
  call void @_ZN10gpt_paramsC2Ev(ptr noundef nonnull align 8 dereferenceable(160) %7)
  %47 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 13
  %48 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %47, ptr noundef @.str.44)
          to label %49 unwind label %57

49:                                               ; preds = %2
  %50 = load i32, ptr %4, align 4, !tbaa !5
  %51 = load ptr, ptr %5, align 8, !tbaa !9
  %52 = invoke noundef zeroext i1 @_Z16gpt_params_parseiPPcR10gpt_params(i32 noundef %50, ptr noundef %51, ptr noundef nonnull align 8 dereferenceable(160) %7)
          to label %53 unwind label %57

53:                                               ; preds = %49
  %54 = zext i1 %52 to i32
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %61

56:                                               ; preds = %53
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %472

57:                                               ; preds = %69, %49, %2
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %8, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %9, align 4
  br label %474

61:                                               ; preds = %53
  %62 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 0
  %63 = load i32, ptr %62, align 8, !tbaa !13
  %64 = icmp slt i32 %63, 0
  br i1 %64, label %65, label %69

65:                                               ; preds = %61
  %66 = call i64 @time(ptr noundef null) #8
  %67 = trunc i64 %66 to i32
  %68 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 0
  store i32 %67, ptr %68, align 8, !tbaa !13
  br label %69

69:                                               ; preds = %65, %61
  %70 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 0
  %71 = load i32, ptr %70, align 8, !tbaa !13
  %72 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.45, ptr noundef @__func__.main, i32 noundef %71)
          to label %73 unwind label %57

73:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 5000, ptr %11) #8
  %74 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !13
  %76 = sext i32 %75 to i64
  invoke void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000) %11, i64 noundef %76)
          to label %77 unwind label %84

77:                                               ; preds = %73
  %78 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 14
  %79 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %78) #8
  br i1 %79, label %80, label %92

80:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #8
  invoke void @_Z17gpt_random_promptB5cxx11RSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(5000) %11)
          to label %81 unwind label %88

81:                                               ; preds = %80
  %82 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 14
  %83 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %82, ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  br label %92

84:                                               ; preds = %73
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %8, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %9, align 4
  br label %471

88:                                               ; preds = %80
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %8, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #8
  br label %471

92:                                               ; preds = %81, %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  store i64 0, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 120, ptr %14) #8
  call void @_ZN9gpt_vocabC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %14) #8
  call void @llvm.lifetime.start.p0(i64 200, ptr %15) #8
  call void @_ZN10gpt2_modelC2Ev(ptr noundef nonnull align 8 dereferenceable(200) %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %93 = invoke i64 @ggml_time_us()
          to label %94 unwind label %107

94:                                               ; preds = %92
  store i64 %93, ptr %16, align 8, !tbaa !11
  %95 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 13
  %96 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 5
  %97 = load i32, ptr %96, align 4, !tbaa !19
  %98 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 6
  %99 = load i32, ptr %98, align 8, !tbaa !20
  %100 = invoke noundef zeroext i1 @_Z15gpt2_model_loadRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER10gpt2_modelR9gpt_vocabii(ptr noundef nonnull align 8 dereferenceable(32) %95, ptr noundef nonnull align 8 dereferenceable(200) %15, ptr noundef nonnull align 8 dereferenceable(120) %14, i32 noundef %97, i32 noundef %99)
          to label %101 unwind label %107

101:                                              ; preds = %94
  br i1 %100, label %111, label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr @stderr, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 13
  %105 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %104) #8
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str.46, ptr noundef @__func__.main, ptr noundef %105) #8
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %118

107:                                              ; preds = %113, %111, %94, %92
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %8, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %470

111:                                              ; preds = %101
  %112 = invoke i64 @ggml_time_us()
          to label %113 unwind label %107

113:                                              ; preds = %111
  %114 = load i64, ptr %16, align 8, !tbaa !11
  %115 = sub nsw i64 %112, %114
  store i64 %115, ptr %13, align 8, !tbaa !11
  %116 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 15
  invoke void @_Z18test_gpt_tokenizerR9gpt_vocabRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(120) %14, ptr noundef nonnull align 8 dereferenceable(32) %116)
          to label %117 unwind label %107

117:                                              ; preds = %113
  store i32 0, ptr %10, align 4
  br label %118

118:                                              ; preds = %117, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  %119 = load i32, ptr %10, align 4
  switch i32 %119, label %469 [
    i32 0, label %120
  ]

120:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store ptr null, ptr %17, align 8, !tbaa !9
  %121 = getelementptr inbounds %struct.gpt2_model, ptr %15, i32 0, i32 11
  %122 = load ptr, ptr %121, align 8, !tbaa !21
  %123 = invoke ptr @ggml_backend_get_default_buffer_type(ptr noundef %122)
          to label %124 unwind label %184

124:                                              ; preds = %120
  %125 = invoke ptr @ggml_gallocr_new(ptr noundef %123)
          to label %126 unwind label %184

126:                                              ; preds = %124
  store ptr %125, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %127 = getelementptr inbounds %struct.gpt2_model, ptr %15, i32 0, i32 0
  %128 = getelementptr inbounds %struct.gpt2_hparams, ptr %127, i32 0, i32 1
  %129 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 4
  %130 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %128, ptr noundef nonnull align 4 dereferenceable(4) %129)
          to label %131 unwind label %188

131:                                              ; preds = %126
  %132 = load i32, ptr %130, align 4, !tbaa !5
  store i32 %132, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %133 = getelementptr inbounds %struct.gpt2_model, ptr %15, i32 0, i32 0
  %134 = getelementptr inbounds %struct.gpt2_hparams, ptr %133, i32 0, i32 1
  %135 = load i32, ptr %134, align 4, !tbaa !36
  %136 = load i32, ptr %18, align 4, !tbaa !5
  %137 = sub nsw i32 %135, %136
  store i32 %137, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %138 = load i32, ptr %19, align 4, !tbaa !5
  %139 = load i32, ptr %18, align 4, !tbaa !5
  %140 = invoke noundef ptr @_Z10gpt2_graphRK10gpt2_modelii(ptr noundef nonnull align 8 dereferenceable(200) %15, i32 noundef %138, i32 noundef %139)
          to label %141 unwind label %192

141:                                              ; preds = %131
  store ptr %140, ptr %20, align 8, !tbaa !9
  %142 = load ptr, ptr %17, align 8, !tbaa !9
  %143 = load ptr, ptr %20, align 8, !tbaa !9
  %144 = invoke zeroext i1 @ggml_gallocr_reserve(ptr noundef %142, ptr noundef %143)
          to label %145 unwind label %192

145:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %146 = load ptr, ptr %17, align 8, !tbaa !9
  %147 = invoke i64 @ggml_gallocr_get_buffer_size(ptr noundef %146, i32 noundef 0)
          to label %148 unwind label %196

148:                                              ; preds = %145
  store i64 %147, ptr %21, align 8, !tbaa !11
  %149 = load ptr, ptr @stderr, align 8, !tbaa !9
  %150 = load i64, ptr %21, align 8, !tbaa !11
  %151 = uitofp i64 %150 to double
  %152 = fdiv double %151, 1.024000e+03
  %153 = fdiv double %152, 1.024000e+03
  %154 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str.47, ptr noundef @__func__.main, double noundef %153) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  store i64 0, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store i64 0, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #8
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #8
  %155 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 14
  invoke void @_Z12gpt_tokenizeRK9gpt_vocabRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::vector.30") align 8 %26, ptr noundef nonnull align 8 dereferenceable(120) %14, ptr noundef nonnull align 8 dereferenceable(32) %155)
          to label %156 unwind label %202

156:                                              ; preds = %148
  %157 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %158 = getelementptr inbounds %struct.gpt2_model, ptr %15, i32 0, i32 0
  %159 = getelementptr inbounds %struct.gpt2_hparams, ptr %158, i32 0, i32 1
  %160 = load i32, ptr %159, align 4, !tbaa !36
  %161 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  %162 = trunc i64 %161 to i32
  %163 = sub nsw i32 %160, %162
  store i32 %163, ptr %27, align 4, !tbaa !5
  %164 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %157, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %165 unwind label %206

165:                                              ; preds = %156
  %166 = load i32, ptr %164, align 4, !tbaa !5
  %167 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 2
  store i32 %166, ptr %167, align 8, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  %168 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 14
  %169 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %168) #8
  %170 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.48, ptr noundef @__func__.main, ptr noundef %169)
          to label %171 unwind label %210

171:                                              ; preds = %165
  %172 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  %173 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.49, ptr noundef @__func__.main, i64 noundef %172)
          to label %174 unwind label %210

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

175:                                              ; preds = %225, %174
  %176 = load i32, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 8, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %177 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  %178 = trunc i64 %177 to i32
  store i32 %178, ptr %30, align 4, !tbaa !5
  %179 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30)
          to label %180 unwind label %214

180:                                              ; preds = %175
  %181 = load i32, ptr %179, align 4, !tbaa !5
  %182 = icmp slt i32 %176, %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br i1 %182, label %218, label %183

183:                                              ; preds = %180
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %233

184:                                              ; preds = %124, %120
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %8, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %9, align 4
  br label %468

188:                                              ; preds = %126
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %8, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %9, align 4
  br label %201

192:                                              ; preds = %141, %131
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %8, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %9, align 4
  br label %200

196:                                              ; preds = %145
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %8, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %200

200:                                              ; preds = %196, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %201

201:                                              ; preds = %200, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %468

202:                                              ; preds = %148
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %8, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %9, align 4
  br label %467

206:                                              ; preds = %156
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %8, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %466

210:                                              ; preds = %233, %171, %165
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %8, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %9, align 4
  br label %466

214:                                              ; preds = %175
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %8, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %232

218:                                              ; preds = %180
  %219 = load i32, ptr %28, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %220) #8
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %223 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.50, i32 noundef %222)
          to label %224 unwind label %228

224:                                              ; preds = %218
  br label %225

225:                                              ; preds = %224
  %226 = load i32, ptr %28, align 4, !tbaa !5
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %28, align 4, !tbaa !5
  br label %175, !llvm.loop !38

228:                                              ; preds = %218
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %8, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %9, align 4
  br label %232

232:                                              ; preds = %228, %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %466

233:                                              ; preds = %183
  %234 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.51)
          to label %235 unwind label %210

235:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #8
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %236 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  store i64 %236, ptr %32, align 8, !tbaa !11
  br label %237

237:                                              ; preds = %398, %235
  %238 = load i64, ptr %32, align 8, !tbaa !11
  %239 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  %240 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 2
  %241 = load i32, ptr %240, align 8, !tbaa !37
  %242 = sext i32 %241 to i64
  %243 = add i64 %239, %242
  %244 = icmp ult i64 %238, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %237
  store i32 5, ptr %10, align 4
  br label %401

246:                                              ; preds = %237
  %247 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %248 = icmp ugt i64 %247, 0
  br i1 %248, label %249, label %275

249:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %250 = invoke i64 @ggml_time_us()
          to label %251 unwind label %261

251:                                              ; preds = %249
  store i64 %250, ptr %33, align 8, !tbaa !11
  %252 = load ptr, ptr %17, align 8, !tbaa !9
  %253 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 1
  %254 = load i32, ptr %253, align 4, !tbaa !40
  %255 = load i32, ptr %22, align 4, !tbaa !5
  %256 = invoke noundef zeroext i1 @_Z9gpt2_evalRK10gpt2_modelP12ggml_gallocriiRKSt6vectorIiSaIiEERS4_IfSaIfEE(ptr noundef nonnull align 8 dereferenceable(200) %15, ptr noundef %252, i32 noundef %254, i32 noundef %255, ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %257 unwind label %261

257:                                              ; preds = %251
  br i1 %256, label %265, label %258

258:                                              ; preds = %257
  %259 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.52)
          to label %260 unwind label %261

260:                                              ; preds = %258
  store i32 1, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %272

261:                                              ; preds = %265, %258, %251, %249
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %8, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %403

265:                                              ; preds = %257
  %266 = invoke i64 @ggml_time_us()
          to label %267 unwind label %261

267:                                              ; preds = %265
  %268 = load i64, ptr %33, align 8, !tbaa !11
  %269 = sub nsw i64 %266, %268
  %270 = load i64, ptr %24, align 8, !tbaa !11
  %271 = add nsw i64 %270, %269
  store i64 %271, ptr %24, align 8, !tbaa !11
  store i32 0, ptr %10, align 4
  br label %272

272:                                              ; preds = %267, %260
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  %273 = load i32, ptr %10, align 4
  switch i32 %273, label %401 [
    i32 0, label %274
  ]

274:                                              ; preds = %272
  br label %275

275:                                              ; preds = %274, %246
  %276 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %277 = load i32, ptr %22, align 4, !tbaa !5
  %278 = sext i32 %277 to i64
  %279 = add i64 %278, %276
  %280 = trunc i64 %279 to i32
  store i32 %280, ptr %22, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %281 = load i64, ptr %32, align 8, !tbaa !11
  %282 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  %283 = icmp uge i64 %281, %282
  br i1 %283, label %284, label %325

284:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %285 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 8
  %286 = load i32, ptr %285, align 8, !tbaa !41
  store i32 %286, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %287 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 9
  %288 = load float, ptr %287, align 4, !tbaa !42
  store float %288, ptr %35, align 4, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %289 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 10
  %290 = load float, ptr %289, align 8, !tbaa !44
  store float %290, ptr %36, align 4, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %291 = getelementptr inbounds %struct.gpt2_model, ptr %15, i32 0, i32 0
  %292 = getelementptr inbounds %struct.gpt2_hparams, ptr %291, i32 0, i32 0
  %293 = load i32, ptr %292, align 8, !tbaa !45
  store i32 %293, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  store i32 0, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %294 = invoke i64 @ggml_time_us()
          to label %295 unwind label %316

295:                                              ; preds = %284
  store i64 %294, ptr %39, align 8, !tbaa !11
  %296 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  %297 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  %298 = load i32, ptr %37, align 4, !tbaa !5
  %299 = sext i32 %298 to i64
  %300 = sub i64 %297, %299
  %301 = getelementptr inbounds float, ptr %296, i64 %300
  %302 = load i32, ptr %34, align 4, !tbaa !5
  %303 = load float, ptr %35, align 4, !tbaa !43
  %304 = fpext float %303 to double
  %305 = load float, ptr %36, align 4, !tbaa !43
  %306 = fpext float %305 to double
  %307 = invoke noundef i32 @_Z22gpt_sample_top_k_top_pRK9gpt_vocabPKfiddRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr noundef nonnull align 8 dereferenceable(120) %14, ptr noundef %301, i32 noundef %302, double noundef %304, double noundef %306, ptr noundef nonnull align 8 dereferenceable(5000) %11)
          to label %308 unwind label %316

308:                                              ; preds = %295
  store i32 %307, ptr %38, align 4, !tbaa !5
  %309 = invoke i64 @ggml_time_us()
          to label %310 unwind label %316

310:                                              ; preds = %308
  %311 = load i64, ptr %39, align 8, !tbaa !11
  %312 = sub nsw i64 %309, %311
  %313 = load i64, ptr %23, align 8, !tbaa !11
  %314 = add nsw i64 %313, %312
  store i64 %314, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(4) %38)
          to label %315 unwind label %320

315:                                              ; preds = %310
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %356

316:                                              ; preds = %308, %295, %284
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %8, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %324

320:                                              ; preds = %310
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %8, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %9, align 4
  br label %324

324:                                              ; preds = %320, %316
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %403

325:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %326 = load i64, ptr %32, align 8, !tbaa !11
  store i64 %326, ptr %40, align 8, !tbaa !11
  br label %327

327:                                              ; preds = %347, %325
  %328 = load i64, ptr %40, align 8, !tbaa !11
  %329 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  %330 = icmp ult i64 %328, %329
  br i1 %330, label %332, label %331

331:                                              ; preds = %327
  store i32 8, ptr %10, align 4
  br label %350

332:                                              ; preds = %327
  %333 = load i64, ptr %40, align 8, !tbaa !11
  %334 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %333) #8
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(4) %334)
          to label %335 unwind label %342

335:                                              ; preds = %332
  %336 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %337 = trunc i64 %336 to i32
  %338 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 4
  %339 = load i32, ptr %338, align 8, !tbaa !46
  %340 = icmp sge i32 %337, %339
  br i1 %340, label %341, label %346

341:                                              ; preds = %335
  store i32 8, ptr %10, align 4
  br label %350

342:                                              ; preds = %332
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %8, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %403

346:                                              ; preds = %335
  br label %347

347:                                              ; preds = %346
  %348 = load i64, ptr %40, align 8, !tbaa !11
  %349 = add i64 %348, 1
  store i64 %349, ptr %40, align 8, !tbaa !11
  br label %327, !llvm.loop !47

350:                                              ; preds = %341, %331
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %351

351:                                              ; preds = %350
  %352 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %353 = sub i64 %352, 1
  %354 = load i64, ptr %32, align 8, !tbaa !11
  %355 = add i64 %354, %353
  store i64 %355, ptr %32, align 8, !tbaa !11
  br label %356

356:                                              ; preds = %351, %315
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  store ptr %31, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %357 = load ptr, ptr %41, align 8, !tbaa !9
  %358 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %357) #8
  %359 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  store ptr %358, ptr %359, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %360 = load ptr, ptr %41, align 8, !tbaa !9
  %361 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %360) #8
  %362 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %43, i32 0, i32 0
  store ptr %361, ptr %362, align 8
  br label %363

363:                                              ; preds = %375, %356
  %364 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull align 8 dereferenceable(8) %43) #8
  br i1 %364, label %366, label %365

365:                                              ; preds = %363
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %381

366:                                              ; preds = %363
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  %367 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #8
  %368 = load i32, ptr %367, align 4, !tbaa !5
  store i32 %368, ptr %44, align 4, !tbaa !5
  %369 = getelementptr inbounds %struct.gpt_vocab, ptr %14, i32 0, i32 1
  %370 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIiESaISt4pairIKiS5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %369, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %371 unwind label %377

371:                                              ; preds = %366
  %372 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %370) #8
  %373 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.53, ptr noundef %372)
          to label %374 unwind label %377

374:                                              ; preds = %371
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  br label %375

375:                                              ; preds = %374
  %376 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %42) #8
  br label %363

377:                                              ; preds = %371, %366
  %378 = landingpad { ptr, i32 }
          cleanup
  %379 = extractvalue { ptr, i32 } %378, 0
  store ptr %379, ptr %8, align 8
  %380 = extractvalue { ptr, i32 } %378, 1
  store i32 %380, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %403

381:                                              ; preds = %365
  %382 = load ptr, ptr @stdout, align 8, !tbaa !9
  %383 = invoke i32 @fflush(ptr noundef %382)
          to label %384 unwind label %393

384:                                              ; preds = %381
  %385 = getelementptr inbounds %struct.gpt_params, ptr %7, i32 0, i32 7
  %386 = load i8, ptr %385, align 4, !tbaa !48, !range !49, !noundef !50
  %387 = trunc i8 %386 to i1
  br i1 %387, label %397, label %388

388:                                              ; preds = %384
  %389 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  %390 = load i32, ptr %389, align 4, !tbaa !5
  %391 = icmp eq i32 %390, 50256
  br i1 %391, label %392, label %397

392:                                              ; preds = %388
  store i32 5, ptr %10, align 4
  br label %401

393:                                              ; preds = %381
  %394 = landingpad { ptr, i32 }
          cleanup
  %395 = extractvalue { ptr, i32 } %394, 0
  store ptr %395, ptr %8, align 8
  %396 = extractvalue { ptr, i32 } %394, 1
  store i32 %396, ptr %9, align 4
  br label %403

397:                                              ; preds = %388, %384
  br label %398

398:                                              ; preds = %397
  %399 = load i64, ptr %32, align 8, !tbaa !11
  %400 = add i64 %399, 1
  store i64 %400, ptr %32, align 8, !tbaa !11
  br label %237, !llvm.loop !51

401:                                              ; preds = %392, %272, %245
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  %402 = load i32, ptr %10, align 4
  switch i32 %402, label %464 [
    i32 5, label %404
  ]

403:                                              ; preds = %393, %377, %342, %324, %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %465

404:                                              ; preds = %401
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %405 = invoke i64 @ggml_time_us()
          to label %406 unwind label %456

406:                                              ; preds = %404
  store i64 %405, ptr %45, align 8, !tbaa !11
  %407 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.51)
          to label %408 unwind label %456

408:                                              ; preds = %406
  %409 = load i64, ptr %13, align 8, !tbaa !11
  %410 = sitofp i64 %409 to float
  %411 = fdiv float %410, 1.000000e+03
  %412 = fpext float %411 to double
  %413 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.54, ptr noundef @__func__.main, double noundef %412)
          to label %414 unwind label %456

414:                                              ; preds = %408
  %415 = load i64, ptr %23, align 8, !tbaa !11
  %416 = sitofp i64 %415 to float
  %417 = fdiv float %416, 1.000000e+03
  %418 = fpext float %417 to double
  %419 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.55, ptr noundef @__func__.main, double noundef %418)
          to label %420 unwind label %456

420:                                              ; preds = %414
  %421 = load i64, ptr %24, align 8, !tbaa !11
  %422 = sitofp i64 %421 to float
  %423 = fdiv float %422, 1.000000e+03
  %424 = fpext float %423 to double
  %425 = load i64, ptr %24, align 8, !tbaa !11
  %426 = sitofp i64 %425 to float
  %427 = fdiv float %426, 1.000000e+03
  %428 = load i32, ptr %22, align 4, !tbaa !5
  %429 = sitofp i32 %428 to float
  %430 = fdiv float %427, %429
  %431 = fpext float %430 to double
  %432 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.56, ptr noundef @__func__.main, double noundef %424, double noundef %431)
          to label %433 unwind label %456

433:                                              ; preds = %420
  %434 = load i64, ptr %45, align 8, !tbaa !11
  %435 = load i64, ptr %6, align 8, !tbaa !11
  %436 = sub nsw i64 %434, %435
  %437 = sitofp i64 %436 to float
  %438 = fdiv float %437, 1.000000e+03
  %439 = fpext float %438 to double
  %440 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.57, ptr noundef @__func__.main, double noundef %439)
          to label %441 unwind label %456

441:                                              ; preds = %433
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  %442 = getelementptr inbounds %struct.gpt2_model, ptr %15, i32 0, i32 9
  %443 = load ptr, ptr %442, align 8, !tbaa !52
  invoke void @ggml_free(ptr noundef %443)
          to label %444 unwind label %460

444:                                              ; preds = %441
  %445 = load ptr, ptr %17, align 8, !tbaa !9
  invoke void @ggml_gallocr_free(ptr noundef %445)
          to label %446 unwind label %460

446:                                              ; preds = %444
  %447 = getelementptr inbounds %struct.gpt2_model, ptr %15, i32 0, i32 12
  %448 = load ptr, ptr %447, align 8, !tbaa !53
  invoke void @ggml_backend_buffer_free(ptr noundef %448)
          to label %449 unwind label %460

449:                                              ; preds = %446
  %450 = getelementptr inbounds %struct.gpt2_model, ptr %15, i32 0, i32 13
  %451 = load ptr, ptr %450, align 8, !tbaa !54
  invoke void @ggml_backend_buffer_free(ptr noundef %451)
          to label %452 unwind label %460

452:                                              ; preds = %449
  %453 = getelementptr inbounds %struct.gpt2_model, ptr %15, i32 0, i32 11
  %454 = load ptr, ptr %453, align 8, !tbaa !21
  invoke void @ggml_backend_free(ptr noundef %454)
          to label %455 unwind label %460

455:                                              ; preds = %452
  store i32 0, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %464

456:                                              ; preds = %433, %420, %414, %408, %406, %404
  %457 = landingpad { ptr, i32 }
          cleanup
  %458 = extractvalue { ptr, i32 } %457, 0
  store ptr %458, ptr %8, align 8
  %459 = extractvalue { ptr, i32 } %457, 1
  store i32 %459, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  br label %465

460:                                              ; preds = %452, %449, %446, %444, %441
  %461 = landingpad { ptr, i32 }
          cleanup
  %462 = extractvalue { ptr, i32 } %461, 0
  store ptr %462, ptr %8, align 8
  %463 = extractvalue { ptr, i32 } %461, 1
  store i32 %463, ptr %9, align 4
  br label %465

464:                                              ; preds = %455, %401
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %469

465:                                              ; preds = %460, %456, %403
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #8
  br label %466

466:                                              ; preds = %465, %232, %210, %206
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #8
  br label %467

467:                                              ; preds = %466, %202
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %468

468:                                              ; preds = %467, %201, %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %470

469:                                              ; preds = %464, %118
  call void @_ZN10gpt2_modelD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %15) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr %15) #8
  call void @_ZN9gpt_vocabD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %14) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 5000, ptr %11) #8
  br label %472

470:                                              ; preds = %468, %107
  call void @_ZN10gpt2_modelD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %15) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr %15) #8
  call void @_ZN9gpt_vocabD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %14) #8
  call void @llvm.lifetime.end.p0(i64 120, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %471

471:                                              ; preds = %470, %88, %84
  call void @llvm.lifetime.end.p0(i64 5000, ptr %11) #8
  br label %474

472:                                              ; preds = %469, %56
  call void @_ZN10gpt_paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %7) #8
  call void @llvm.lifetime.end.p0(i64 160, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %473 = load i32, ptr %3, align 4
  ret i32 %473

474:                                              ; preds = %471, %57
  call void @_ZN10gpt_paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %7) #8
  call void @llvm.lifetime.end.p0(i64 160, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %475

475:                                              ; preds = %474
  %476 = load ptr, ptr %8, align 8
  %477 = load i32, ptr %9, align 4
  %478 = insertvalue { ptr, i32 } poison, ptr %476, 0
  %479 = insertvalue { ptr, i32 } %478, i32 %477, 1
  resume { ptr, i32 } %479
}

declare void @ggml_time_init() #3

declare i64 @ggml_time_us() #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10gpt_paramsC2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #6 align 2

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

declare noundef zeroext i1 @_Z16gpt_params_parseiPPcR10gpt_params(i32 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(160)) #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

declare void @_Z17gpt_random_promptB5cxx11RSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(5000)) #3

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

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

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

declare void @_Z18test_gpt_tokenizerR9gpt_vocabRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32)) #3

declare ptr @ggml_gallocr_new(ptr noundef) #3

declare ptr @ggml_backend_get_default_buffer_type(ptr noundef) #3

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

declare zeroext i1 @ggml_gallocr_reserve(ptr noundef, ptr noundef) #3

declare i64 @ggml_gallocr_get_buffer_size(ptr noundef, i32 noundef) #3

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

declare void @_Z12gpt_tokenizeRK9gpt_vocabRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::vector.30") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32)) #3

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

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

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

declare noundef i32 @_Z22gpt_sample_top_k_top_pRK9gpt_vocabPKfiddRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, i32 noundef, double noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(5000)) #3

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(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_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

declare i32 @fflush(ptr noundef) #3

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

declare void @ggml_gallocr_free(ptr noundef) #3

declare void @ggml_backend_buffer_free(ptr noundef) #3

declare void @ggml_backend_free(ptr noundef) #3

; 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 void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10gpt_paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #7 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS10gpt_params", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !15, i64 28, !6, i64 32, !16, i64 36, !16, i64 40, !6, i64 44, !16, i64 48, !17, i64 56, !17, i64 88, !17, i64 120, !15, i64 152, !6, i64 156}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !12, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!19 = !{!14, !6, i64 20}
!20 = !{!14, !6, i64 24}
!21 = !{!22, !10, i64 128}
!22 = !{!"_ZTS10gpt2_model", !23, i64 0, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !24, i64 72, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !28, i64 152}
!23 = !{!"_ZTS12gpt2_hparams", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !16, i64 24}
!24 = !{!"_ZTSSt6vectorI10gpt2_layerSaIS0_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseI10gpt2_layerSaIS0_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseI10gpt2_layerSaIS0_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseI10gpt2_layerSaIS0_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!28 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS5_ESaISt4pairIKS5_S7_EEE", !29, i64 0}
!29 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11ggml_tensorESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !30, i64 0}
!30 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11ggml_tensorESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !31, i64 0, !33, i64 8}
!31 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !32, i64 0}
!32 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!33 = !{!"_ZTSSt15_Rb_tree_header", !34, i64 0, !12, i64 32}
!34 = !{!"_ZTSSt18_Rb_tree_node_base", !35, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!35 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!36 = !{!22, !6, i64 4}
!37 = !{!14, !6, i64 8}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!14, !6, i64 4}
!41 = !{!14, !6, i64 32}
!42 = !{!14, !16, i64 36}
!43 = !{!16, !16, i64 0}
!44 = !{!14, !16, i64 40}
!45 = !{!22, !6, i64 0}
!46 = !{!14, !6, i64 16}
!47 = distinct !{!47, !39}
!48 = !{!14, !15, i64 28}
!49 = !{i8 0, i8 2}
!50 = !{}
!51 = distinct !{!51, !39}
!52 = !{!22, !10, i64 112}
!53 = !{!22, !10, i64 136}
!54 = !{!22, !10, i64 144}


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

%struct.gpt_params = type { i32, i32, i32, i32, i32, i32, i32, i8, i32, float, float, i32, float, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::mersenne_twister_engine" = type { [624 x i64], i64 }
%struct.gpt_vocab = type { %"class.std::map.14", %"class.std::map.19", %"class.std::vector" }
%"class.std::map.14" = type { %"class.std::_Rb_tree.15" }
%"class.std::_Rb_tree.15" = 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.19" = type { %"class.std::_Rb_tree.20" }
%"class.std::_Rb_tree.20" = 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 }
%struct.gpt2_model = type { %struct.gpt2_hparams, ptr, ptr, ptr, ptr, ptr, %"class.std::vector.4", ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::map" }
%struct.gpt2_hparams = type { i32, i32, i32, i32, i32, i32, float }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<gpt2_layer, std::allocator<gpt2_layer>>::_Vector_impl" }
%"struct.std::_Vector_base<gpt2_layer, std::allocator<gpt2_layer>>::_Vector_impl" = type { %"struct.std::_Vector_base<gpt2_layer, std::allocator<gpt2_layer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<gpt2_layer, std::allocator<gpt2_layer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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>, ggml_tensor *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, ggml_tensor *>>, 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>, ggml_tensor *>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, ggml_tensor *>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = 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.__gnu_cxx::__normal_iterator" = type { ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.44 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [3 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.54 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [30 x i8], align 1

; 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; 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 uwtable
declare dso_local noundef zeroext i1 @_Z15gpt2_model_loadRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER10gpt2_modelR9gpt_vocabii(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(120), i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

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

declare void @ggml_free(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z9gpt2_evalRK10gpt2_modelP12ggml_gallocriiRKSt6vectorIiSaIiEERS4_IfSaIfEE(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef, i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %3 = alloca %struct.gpt_params, align 8
  %4 = alloca %"class.std::mersenne_twister_engine", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %struct.gpt_vocab, align 8
  %7 = alloca %struct.gpt2_model, align 8
  %8 = alloca %"class.std::vector.35", align 8
  %9 = alloca %"class.std::vector.30", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector.30", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i32, align 4
  tail call void @ggml_time_init()
  %18 = tail call i64 @ggml_time_us()
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %3) #9
  call void @_ZN10gpt_paramsC2Ev(ptr noundef nonnull align 8 dereferenceable(160) %3)
  %19 = getelementptr inbounds i8, ptr %3, i64 56
  %20 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull @.str.44)
          to label %21 unwind label %24

21:                                               ; preds = %2
  %22 = invoke noundef zeroext i1 @_Z16gpt_params_parseiPPcR10gpt_params(i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(160) %3)
          to label %23 unwind label %24

23:                                               ; preds = %21
  br i1 %22, label %26, label %274

24:                                               ; preds = %21, %2
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %275

26:                                               ; preds = %23
  %27 = load i32, ptr %3, align 8, !tbaa !5
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %29, label %32

29:                                               ; preds = %26
  %30 = call i64 @time(ptr noundef null) #9
  %31 = trunc i64 %30 to i32
  store i32 %31, ptr %3, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %29, %26
  %33 = phi i32 [ %31, %29 ], [ %27, %26 ]
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.45, ptr noundef nonnull @__func__.main, i32 noundef %33)
  call void @llvm.lifetime.start.p0(i64 5000, ptr nonnull %4) #9
  %35 = load i32, ptr %3, align 8, !tbaa !5
  %36 = sext i32 %35 to i64
  invoke void @_ZNSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEC2Em(ptr noundef nonnull align 8 dereferenceable(5000) %4, i64 noundef %36)
          to label %37 unwind label %43

37:                                               ; preds = %32
  %38 = getelementptr inbounds i8, ptr %3, i64 88
  %39 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %38) #9
  br i1 %39, label %40, label %47

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  invoke void @_Z17gpt_random_promptB5cxx11RSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(5000) %4)
          to label %41 unwind label %45

41:                                               ; preds = %40
  %42 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %47

43:                                               ; preds = %32
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %273

45:                                               ; preds = %40
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %273

47:                                               ; preds = %41, %37
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %6) #9
  call void @_ZN9gpt_vocabC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %6) #9
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %7) #9
  call void @_ZN10gpt2_modelC2Ev(ptr noundef nonnull align 8 dereferenceable(200) %7) #9
  %48 = invoke i64 @ggml_time_us()
          to label %49 unwind label %56

49:                                               ; preds = %47
  %50 = getelementptr inbounds i8, ptr %3, i64 20
  %51 = load i32, ptr %50, align 4, !tbaa !16
  %52 = getelementptr inbounds i8, ptr %3, i64 24
  %53 = load i32, ptr %52, align 8, !tbaa !17
  %54 = invoke noundef zeroext i1 @_Z15gpt2_model_loadRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEER10gpt2_modelR9gpt_vocabii(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull align 8 dereferenceable(200) %7, ptr noundef nonnull align 8 dereferenceable(120) %6, i32 noundef %51, i32 noundef %53)
          to label %55 unwind label %56

55:                                               ; preds = %49
  br i1 %54, label %58, label %62

56:                                               ; preds = %60, %58, %49, %47
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %272

58:                                               ; preds = %55
  %59 = invoke i64 @ggml_time_us()
          to label %60 unwind label %56

60:                                               ; preds = %58
  %61 = getelementptr inbounds i8, ptr %3, i64 120
  invoke void @_Z18test_gpt_tokenizerR9gpt_vocabRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(120) %6, ptr noundef nonnull align 8 dereferenceable(32) %61)
          to label %66 unwind label %56

62:                                               ; preds = %55
  %63 = load ptr, ptr @stderr, align 8, !tbaa !18
  %64 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %19) #9
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.46, ptr noundef nonnull @__func__.main, ptr noundef %64) #10
  br label %271

66:                                               ; preds = %60
  %67 = sub nsw i64 %59, %48
  %68 = getelementptr inbounds i8, ptr %7, i64 128
  %69 = load ptr, ptr %68, align 8, !tbaa !19
  %70 = invoke ptr @ggml_backend_get_default_buffer_type(ptr noundef %69)
          to label %71 unwind label %121

71:                                               ; preds = %66
  %72 = invoke ptr @ggml_gallocr_new(ptr noundef %70)
          to label %73 unwind label %121

73:                                               ; preds = %71
  %74 = getelementptr inbounds i8, ptr %7, i64 4
  %75 = getelementptr inbounds i8, ptr %3, i64 16
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %74, ptr noundef nonnull align 4 dereferenceable(4) %75)
  %77 = load i32, ptr %76, align 4, !tbaa !34
  %78 = load i32, ptr %74, align 4, !tbaa !35
  %79 = sub nsw i32 %78, %77
  %80 = invoke noundef ptr @_Z10gpt2_graphRK10gpt2_modelii(ptr noundef nonnull align 8 dereferenceable(200) %7, i32 noundef %79, i32 noundef %77)
          to label %81 unwind label %123

81:                                               ; preds = %73
  %82 = invoke zeroext i1 @ggml_gallocr_reserve(ptr noundef %72, ptr noundef %80)
          to label %83 unwind label %123

83:                                               ; preds = %81
  %84 = invoke i64 @ggml_gallocr_get_buffer_size(ptr noundef %72, i32 noundef 0)
          to label %85 unwind label %125

85:                                               ; preds = %83
  %86 = load ptr, ptr @stderr, align 8, !tbaa !18
  %87 = uitofp i64 %84 to double
  %88 = fmul double %87, 0x3F50000000000000
  %89 = fmul double %88, 0x3F50000000000000
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.47, ptr noundef nonnull @__func__.main, double noundef %89) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #9
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #9
  invoke void @_Z12gpt_tokenizeRK9gpt_vocabRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.30") align 8 %9, ptr noundef nonnull align 8 dereferenceable(120) %6, ptr noundef nonnull align 8 dereferenceable(32) %38)
          to label %91 unwind label %127

91:                                               ; preds = %85
  %92 = getelementptr inbounds i8, ptr %3, i64 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  %93 = load i32, ptr %74, align 4, !tbaa !35
  %94 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %95 = trunc i64 %94 to i32
  %96 = sub nsw i32 %93, %95
  store i32 %96, ptr %10, align 4, !tbaa !34
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %92, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %98 = load i32, ptr %97, align 4, !tbaa !34
  store i32 %98, ptr %92, align 8, !tbaa !36
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  %99 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %38) #9
  %100 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.48, ptr noundef nonnull @__func__.main, ptr noundef %99)
  %101 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %102 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.49, ptr noundef nonnull @__func__.main, i64 noundef %101)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  store i32 8, ptr %11, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  %103 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %104 = trunc i64 %103 to i32
  store i32 %104, ptr %12, align 4, !tbaa !34
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %106 = load i32, ptr %105, align 4, !tbaa !34
  %107 = icmp sgt i32 %106, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  br i1 %107, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %91
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #9
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  %109 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  %110 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %111 = load i32, ptr %92, align 8, !tbaa !36
  %112 = sext i32 %111 to i64
  %113 = add i64 %110, %112
  %114 = icmp ult i64 %109, %113
  br i1 %114, label %.lr.ph126, label %._crit_edge127

.lr.ph126:                                        ; preds = %._crit_edge
  %115 = getelementptr inbounds i8, ptr %3, i64 4
  %116 = getelementptr inbounds i8, ptr %3, i64 32
  %117 = getelementptr inbounds i8, ptr %3, i64 36
  %118 = getelementptr inbounds i8, ptr %3, i64 40
  %119 = getelementptr inbounds i8, ptr %6, i64 48
  %120 = getelementptr inbounds i8, ptr %3, i64 28
  br label %138

121:                                              ; preds = %71, %66
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %272

123:                                              ; preds = %81, %73
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %272

125:                                              ; preds = %83
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %272

127:                                              ; preds = %85
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %270

.lr.ph:                                           ; preds = %91, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %91 ]
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv) #9
  %130 = load i32, ptr %129, align 4, !tbaa !34
  %131 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.50, i32 noundef %130)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  store i32 8, ptr %11, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  %132 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %133 = trunc i64 %132 to i32
  store i32 %133, ptr %12, align 4, !tbaa !34
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %135 = load i32, ptr %134, align 4, !tbaa !34
  %136 = sext i32 %135 to i64
  %137 = icmp slt i64 %indvars.iv.next, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  br i1 %137, label %.lr.ph, label %._crit_edge, !llvm.loop !37

138:                                              ; preds = %.lr.ph126, %221
  %.071124 = phi i32 [ 0, %.lr.ph126 ], [ %155, %221 ]
  %.073123 = phi i64 [ 0, %.lr.ph126 ], [ %.174, %221 ]
  %.076122 = phi i64 [ %109, %.lr.ph126 ], [ %222, %221 ]
  %.079121 = phi i64 [ 0, %.lr.ph126 ], [ %.281, %221 ]
  %139 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  %.not = icmp eq i64 %139, 0
  br i1 %.not, label %152, label %140

140:                                              ; preds = %138
  %141 = invoke i64 @ggml_time_us()
          to label %142 unwind label %146

142:                                              ; preds = %140
  %143 = load i32, ptr %115, align 4, !tbaa !39
  %144 = invoke noundef zeroext i1 @_Z9gpt2_evalRK10gpt2_modelP12ggml_gallocriiRKSt6vectorIiSaIiEERS4_IfSaIfEE(ptr noundef nonnull align 8 dereferenceable(200) %7, ptr noundef %72, i32 noundef %143, i32 noundef %.071124, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %145 unwind label %146

145:                                              ; preds = %142
  br i1 %144, label %148, label %228

146:                                              ; preds = %148, %142, %140
  %147 = landingpad { ptr, i32 }
          cleanup
  br label %269

148:                                              ; preds = %145
  %149 = invoke i64 @ggml_time_us()
          to label %.thread100 unwind label %146

.thread100:                                       ; preds = %148
  %150 = sub i64 %.079121, %141
  %151 = add i64 %150, %149
  br label %152

152:                                              ; preds = %.thread100, %138
  %.281 = phi i64 [ %.079121, %138 ], [ %151, %.thread100 ]
  %153 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  %154 = trunc i64 %153 to i32
  %155 = add i32 %.071124, %154
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  %156 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %.not84 = icmp ult i64 %.076122, %156
  br i1 %.not84, label %.preheader, label %159

.preheader:                                       ; preds = %152
  %157 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %158 = icmp ult i64 %.076122, %157
  br i1 %158, label %.lr.ph115, label %._crit_edge116

159:                                              ; preds = %152
  %160 = load i32, ptr %116, align 8, !tbaa !40
  %161 = load float, ptr %117, align 4, !tbaa !41
  %162 = load float, ptr %118, align 8, !tbaa !42
  %163 = load i32, ptr %7, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #9
  store i32 0, ptr %14, align 4, !tbaa !34
  %164 = invoke i64 @ggml_time_us()
          to label %165 unwind label %180

165:                                              ; preds = %159
  %166 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  %167 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  %168 = sext i32 %163 to i64
  %169 = sub i64 %167, %168
  %170 = getelementptr inbounds float, ptr %166, i64 %169
  %171 = fpext float %161 to double
  %172 = fpext float %162 to double
  %173 = invoke noundef i32 @_Z22gpt_sample_top_k_top_pRK9gpt_vocabPKfiddRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr noundef nonnull align 8 dereferenceable(120) %6, ptr noundef %170, i32 noundef %160, double noundef %171, double noundef %172, ptr noundef nonnull align 8 dereferenceable(5000) %4)
          to label %174 unwind label %180

174:                                              ; preds = %165
  store i32 %173, ptr %14, align 4, !tbaa !34
  %175 = invoke i64 @ggml_time_us()
          to label %176 unwind label %180

176:                                              ; preds = %174
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %177 unwind label %182

177:                                              ; preds = %176
  %178 = sub i64 %.073123, %164
  %179 = add i64 %178, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  br label %199

180:                                              ; preds = %174, %165, %159
  %181 = landingpad { ptr, i32 }
          cleanup
  br label %184

182:                                              ; preds = %176
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %184

184:                                              ; preds = %182, %180
  %.pn86 = phi { ptr, i32 } [ %183, %182 ], [ %181, %180 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  br label %269

185:                                              ; preds = %190
  %186 = add nuw i64 %.057114, 1
  %187 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %188 = icmp ult i64 %186, %187
  br i1 %188, label %.lr.ph115, label %._crit_edge116, !llvm.loop !44

.lr.ph115:                                        ; preds = %.preheader, %185
  %.057114 = phi i64 [ %186, %185 ], [ %.076122, %.preheader ]
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.057114) #9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %189)
          to label %190 unwind label %194

190:                                              ; preds = %.lr.ph115
  %191 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  %192 = trunc i64 %191 to i32
  %193 = load i32, ptr %75, align 8, !tbaa !45
  %.not85 = icmp sgt i32 %193, %192
  br i1 %.not85, label %185, label %._crit_edge116

194:                                              ; preds = %.lr.ph115
  %195 = landingpad { ptr, i32 }
          cleanup
  br label %269

._crit_edge116:                                   ; preds = %185, %190, %.preheader
  %196 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  %197 = add i64 %.076122, -1
  %198 = add i64 %197, %196
  br label %199

199:                                              ; preds = %._crit_edge116, %177
  %.177 = phi i64 [ %.076122, %177 ], [ %198, %._crit_edge116 ]
  %.174 = phi i64 [ %179, %177 ], [ %.073123, %._crit_edge116 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  %200 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  store ptr %200, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #9
  %201 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  store ptr %201, ptr %16, align 8
  %202 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  br i1 %202, label %.lr.ph119, label %._crit_edge120

._crit_edge120:                                   ; preds = %210, %199
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  %203 = load ptr, ptr @stdout, align 8, !tbaa !18
  %204 = call i32 @fflush(ptr noundef %203)
  %205 = load i8, ptr %120, align 4, !tbaa !46, !range !47, !noundef !48
  %206 = trunc nuw i8 %205 to i1
  br i1 %206, label %221, label %217

.lr.ph119:                                        ; preds = %199, %210
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #9
  %207 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  %208 = load i32, ptr %207, align 4, !tbaa !34
  store i32 %208, ptr %17, align 4, !tbaa !34
  %209 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapIiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIiESaISt4pairIKiS5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %119, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %210 unwind label %215

210:                                              ; preds = %.lr.ph119
  %211 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %209) #9
  %212 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.53, ptr noundef %211)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  %213 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #9
  %214 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  br i1 %214, label %.lr.ph119, label %._crit_edge120

215:                                              ; preds = %.lr.ph119
  %216 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  br label %269

217:                                              ; preds = %._crit_edge120
  %218 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  %219 = load i32, ptr %218, align 4, !tbaa !34
  %220 = icmp eq i32 %219, 50256
  br i1 %220, label %._crit_edge127.loopexit, label %221

221:                                              ; preds = %._crit_edge120, %217
  %222 = add i64 %.177, 1
  %223 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %224 = load i32, ptr %92, align 8, !tbaa !36
  %225 = sext i32 %224 to i64
  %226 = add i64 %223, %225
  %227 = icmp ult i64 %222, %226
  br i1 %227, label %138, label %._crit_edge127.loopexit, !llvm.loop !49

228:                                              ; preds = %145
  %229 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.52)
  br label %268

._crit_edge127.loopexit:                          ; preds = %221, %217
  %230 = sitofp i64 %.174 to float
  %231 = sitofp i64 %.281 to float
  %232 = sitofp i32 %155 to float
  br label %._crit_edge127

._crit_edge127:                                   ; preds = %._crit_edge127.loopexit, %._crit_edge
  %.382.ph = phi float [ 0.000000e+00, %._crit_edge ], [ %231, %._crit_edge127.loopexit ]
  %.275.ph = phi float [ 0.000000e+00, %._crit_edge ], [ %230, %._crit_edge127.loopexit ]
  %.172.ph = phi float [ 0.000000e+00, %._crit_edge ], [ %232, %._crit_edge127.loopexit ]
  %233 = invoke i64 @ggml_time_us()
          to label %234 unwind label %264

234:                                              ; preds = %._crit_edge127
  %235 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.51)
  %236 = sitofp i64 %67 to float
  %237 = fdiv float %236, 1.000000e+03
  %238 = fpext float %237 to double
  %239 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.54, ptr noundef nonnull @__func__.main, double noundef %238)
  %240 = fdiv float %.275.ph, 1.000000e+03
  %241 = fpext float %240 to double
  %242 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.55, ptr noundef nonnull @__func__.main, double noundef %241)
  %243 = fdiv float %.382.ph, 1.000000e+03
  %244 = fpext float %243 to double
  %245 = fdiv float %243, %.172.ph
  %246 = fpext float %245 to double
  %247 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.56, ptr noundef nonnull @__func__.main, double noundef %244, double noundef %246)
  %248 = sub nsw i64 %233, %18
  %249 = sitofp i64 %248 to float
  %250 = fdiv float %249, 1.000000e+03
  %251 = fpext float %250 to double
  %252 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.57, ptr noundef nonnull @__func__.main, double noundef %251)
  %253 = getelementptr inbounds i8, ptr %7, i64 112
  %254 = load ptr, ptr %253, align 8, !tbaa !50
  invoke void @ggml_free(ptr noundef %254)
          to label %255 unwind label %266

255:                                              ; preds = %234
  invoke void @ggml_gallocr_free(ptr noundef %72)
          to label %256 unwind label %266

256:                                              ; preds = %255
  %257 = getelementptr inbounds i8, ptr %7, i64 136
  %258 = load ptr, ptr %257, align 8, !tbaa !51
  invoke void @ggml_backend_buffer_free(ptr noundef %258)
          to label %259 unwind label %266

259:                                              ; preds = %256
  %260 = getelementptr inbounds i8, ptr %7, i64 144
  %261 = load ptr, ptr %260, align 8, !tbaa !52
  invoke void @ggml_backend_buffer_free(ptr noundef %261)
          to label %262 unwind label %266

262:                                              ; preds = %259
  %263 = load ptr, ptr %68, align 8, !tbaa !19
  invoke void @ggml_backend_free(ptr noundef %263)
          to label %268 unwind label %266

264:                                              ; preds = %._crit_edge127
  %265 = landingpad { ptr, i32 }
          cleanup
  br label %269

266:                                              ; preds = %262, %259, %256, %255, %234
  %267 = landingpad { ptr, i32 }
          cleanup
  br label %269

268:                                              ; preds = %228, %262
  %.5 = phi i32 [ 1, %228 ], [ 0, %262 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  br label %271

269:                                              ; preds = %146, %184, %194, %215, %266, %264
  %.pn88.pn = phi { ptr, i32 } [ %267, %266 ], [ %265, %264 ], [ %216, %215 ], [ %.pn86, %184 ], [ %195, %194 ], [ %147, %146 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  br label %270

270:                                              ; preds = %269, %127
  %.pn88.pn.pn = phi { ptr, i32 } [ %.pn88.pn, %269 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #9
  br label %272

271:                                              ; preds = %62, %268
  %.6 = phi i32 [ %.5, %268 ], [ 1, %62 ]
  call void @_ZN10gpt2_modelD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %7) #9
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %7) #9
  call void @_ZN9gpt_vocabD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %6) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %4) #9
  br label %274

272:                                              ; preds = %121, %270, %125, %123, %56
  %.pn88.pn.pn.pn.pn = phi { ptr, i32 } [ %57, %56 ], [ %.pn88.pn.pn, %270 ], [ %122, %121 ], [ %126, %125 ], [ %124, %123 ]
  call void @_ZN10gpt2_modelD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %7) #9
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %7) #9
  call void @_ZN9gpt_vocabD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %6) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %6) #9
  br label %273

273:                                              ; preds = %272, %45, %43
  %.pn88.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn88.pn.pn.pn.pn, %272 ], [ %46, %45 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 5000, ptr nonnull %4) #9
  br label %275

274:                                              ; preds = %23, %271
  %.7 = phi i32 [ %.6, %271 ], [ 1, %23 ]
  call void @_ZN10gpt_paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %3) #9
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %3) #9
  ret i32 %.7

275:                                              ; preds = %273, %24
  %.pn88.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn88.pn.pn.pn.pn.pn, %273 ], [ %25, %24 ]
  call void @_ZN10gpt_paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %3) #9
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn88.pn.pn.pn.pn.pn.pn
}

declare void @ggml_time_init() local_unnamed_addr #4

declare i64 @ggml_time_us() local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10gpt_paramsC2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #6 align 2

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

declare noundef zeroext i1 @_Z16gpt_params_parseiPPcR10gpt_params(i32 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #4

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

declare void @_Z17gpt_random_promptB5cxx11RSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #4

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

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

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

declare void @_Z18test_gpt_tokenizerR9gpt_vocabRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare ptr @ggml_gallocr_new(ptr noundef) local_unnamed_addr #4

declare ptr @ggml_backend_get_default_buffer_type(ptr noundef) local_unnamed_addr #4

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

declare zeroext i1 @ggml_gallocr_reserve(ptr noundef, ptr noundef) local_unnamed_addr #4

declare i64 @ggml_gallocr_get_buffer_size(ptr noundef, i32 noundef) local_unnamed_addr #4

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

declare void @_Z12gpt_tokenizeRK9gpt_vocabRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::vector.30") align 8, ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

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

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

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

declare noundef i32 @_Z22gpt_sample_top_k_top_pRK9gpt_vocabPKfiddRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef, i32 noundef, double noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(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_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(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_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #3

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

declare void @ggml_gallocr_free(ptr noundef) local_unnamed_addr #4

declare void @ggml_backend_buffer_free(ptr noundef) local_unnamed_addr #4

declare void @ggml_backend_free(ptr noundef) local_unnamed_addr #4

; 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 void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10gpt_paramsD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #8 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { cold 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, !7, i64 0}
!6 = !{!"_ZTS10gpt_params", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 28, !7, i64 32, !11, i64 36, !11, i64 40, !7, i64 44, !11, i64 48, !12, i64 56, !12, i64 88, !12, i64 120, !10, i64 152, !7, i64 156}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !15, i64 8, !8, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!6, !7, i64 20}
!17 = !{!6, !7, i64 24}
!18 = !{!14, !14, i64 0}
!19 = !{!20, !14, i64 128}
!20 = !{!"_ZTS10gpt2_model", !21, i64 0, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !22, i64 72, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !26, i64 152}
!21 = !{!"_ZTS12gpt2_hparams", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !11, i64 24}
!22 = !{!"_ZTSSt6vectorI10gpt2_layerSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseI10gpt2_layerSaIS0_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI10gpt2_layerSaIS0_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI10gpt2_layerSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!26 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS5_ESaISt4pairIKS5_S7_EEE", !27, i64 0}
!27 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11ggml_tensorESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !28, i64 0}
!28 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11ggml_tensorESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !29, i64 0, !31, i64 8}
!29 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !30, i64 0}
!30 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!31 = !{!"_ZTSSt15_Rb_tree_header", !32, i64 0, !15, i64 32}
!32 = !{!"_ZTSSt18_Rb_tree_node_base", !33, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!33 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!34 = !{!7, !7, i64 0}
!35 = !{!20, !7, i64 4}
!36 = !{!6, !7, i64 8}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!6, !7, i64 4}
!40 = !{!6, !7, i64 32}
!41 = !{!6, !11, i64 36}
!42 = !{!6, !11, i64 40}
!43 = !{!20, !7, i64 0}
!44 = distinct !{!44, !38}
!45 = !{!6, !7, i64 16}
!46 = !{!6, !10, i64 28}
!47 = !{i8 0, i8 2}
!48 = !{}
!49 = distinct !{!49, !38}
!50 = !{!20, !14, i64 112}
!51 = !{!20, !14, i64 136}
!52 = !{!20, !14, i64 144}


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