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

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

%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.ggml_init_params = type { i64, ptr, i8 }
%"class.std::allocator.27" = type { i8 }
%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" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%struct.gpt2_layer = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ggml_tensor = type { i32, ptr, [4 x i64], [4 x i64], i32, [16 x i32], i32, [10 x ptr], ptr, i64, ptr, [64 x i8], ptr, [8 x i8] }

@__dso_handle = external hidden global i8
@_ZZ10gpt2_graphRK10gpt2_modeliiE8buf_size = external hidden global i64, align 8
@_ZGVZ10gpt2_graphRK10gpt2_modeliiE8buf_size = external hidden global i64, align 8
@_ZZ10gpt2_graphRK10gpt2_modeliiE3buf = external hidden global %"class.std::vector.25", align 8
@_ZGVZ10gpt2_graphRK10gpt2_modeliiE3buf = external hidden global i64, align 8
@.str.41 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [7 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #1

declare i64 @ggml_tensor_overhead() #2

declare ptr @ggml_init(ptr noundef byval(%struct.ggml_init_params) align 8) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @ggml_new_tensor_1d(ptr noundef, i32 noundef, i64 noundef) #2

declare ptr @ggml_set_name(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z10gpt2_graphRK10gpt2_modelii(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef %1, i32 noundef %2) #4 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::allocator.27", align 1
  %16 = alloca %struct.ggml_init_params, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %struct.ggml_init_params, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #1
  %40 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %40, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #1
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.gpt2_model, ptr %41, i32 0, i32 0
  store ptr %42, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #1
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.gpt2_hparams, ptr %43, i32 0, i32 2
  %45 = load i32, ptr %44, align 4, !tbaa !11
  store i32 %45, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #1
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.gpt2_hparams, ptr %46, i32 0, i32 4
  %48 = load i32, ptr %47, align 4, !tbaa !14
  store i32 %48, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #1
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.gpt2_hparams, ptr %49, i32 0, i32 1
  %51 = load i32, ptr %50, align 4, !tbaa !15
  store i32 %51, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #1
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.gpt2_hparams, ptr %52, i32 0, i32 3
  %54 = load i32, ptr %53, align 4, !tbaa !16
  store i32 %54, ptr %12, align 4, !tbaa !9
  %55 = load atomic i8, ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliiE8buf_size acquire, align 8
  %56 = icmp eq i8 %55, 0
  br i1 %56, label %57, label %67, !prof !17

57:                                               ; preds = %3
  %58 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliiE8buf_size) #1
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %67

60:                                               ; preds = %57
  %61 = invoke i64 @ggml_tensor_overhead()
          to label %62 unwind label %119

62:                                               ; preds = %60
  %63 = mul i64 %61, 4096
  %64 = invoke i64 @ggml_graph_overhead_custom(i64 noundef 4096, i1 noundef zeroext false)
          to label %65 unwind label %119

65:                                               ; preds = %62
  %66 = add i64 %63, %64
  store i64 %66, ptr @_ZZ10gpt2_graphRK10gpt2_modeliiE8buf_size, align 8, !tbaa !18
  call void @__cxa_guard_release(ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliiE8buf_size) #1
  br label %67

67:                                               ; preds = %65, %57, %3
  %68 = load atomic i8, ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliiE3buf acquire, align 8
  %69 = icmp eq i8 %68, 0
  br i1 %69, label %70, label %77, !prof !17

70:                                               ; preds = %67
  %71 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliiE3buf) #1
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %77

73:                                               ; preds = %70
  %74 = load i64, ptr @_ZZ10gpt2_graphRK10gpt2_modeliiE8buf_size, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #1
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #1
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) @_ZZ10gpt2_graphRK10gpt2_modeliiE3buf, i64 noundef %74, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %75 unwind label %123

75:                                               ; preds = %73
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #1
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #1
  %76 = call i32 @__cxa_atexit(ptr @_ZNSt6vectorIhSaIhEED2Ev, ptr @_ZZ10gpt2_graphRK10gpt2_modeliiE3buf, ptr @__dso_handle) #1
  call void @__cxa_guard_release(ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliiE3buf) #1
  br label %77

77:                                               ; preds = %75, %70, %67
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #1
  %78 = getelementptr inbounds %struct.ggml_init_params, ptr %16, i32 0, i32 0
  %79 = load i64, ptr @_ZZ10gpt2_graphRK10gpt2_modeliiE8buf_size, align 8, !tbaa !18
  store i64 %79, ptr %78, align 8, !tbaa !20
  %80 = getelementptr inbounds %struct.ggml_init_params, ptr %16, i32 0, i32 1
  %81 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZ10gpt2_graphRK10gpt2_modeliiE3buf) #1
  store ptr %81, ptr %80, align 8, !tbaa !23
  %82 = getelementptr inbounds %struct.ggml_init_params, ptr %16, i32 0, i32 2
  store i8 1, ptr %82, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %16, i64 24, i1 false), !tbaa.struct !25
  %83 = call ptr @ggml_init(ptr noundef byval(%struct.ggml_init_params) align 8 %18)
  store ptr %83, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #1
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = call ptr @ggml_new_graph_custom(ptr noundef %84, i64 noundef 4096, i1 noundef zeroext false)
  store ptr %85, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #1
  %86 = load ptr, ptr %17, align 8, !tbaa !5
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = call ptr @ggml_new_tensor_1d(ptr noundef %86, i32 noundef 26, i64 noundef %88)
  store ptr %89, ptr %20, align 8, !tbaa !5
  %90 = load ptr, ptr %20, align 8, !tbaa !5
  %91 = call ptr @ggml_set_name(ptr noundef %90, ptr noundef @.str.41)
  %92 = load ptr, ptr %20, align 8, !tbaa !5
  call void @ggml_set_input(ptr noundef %92)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #1
  %93 = load ptr, ptr %17, align 8, !tbaa !5
  %94 = load i32, ptr %7, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = call ptr @ggml_new_tensor_1d(ptr noundef %93, i32 noundef 26, i64 noundef %95)
  store ptr %96, ptr %21, align 8, !tbaa !5
  %97 = load ptr, ptr %21, align 8, !tbaa !5
  %98 = call ptr @ggml_set_name(ptr noundef %97, ptr noundef @.str.42)
  %99 = load ptr, ptr %21, align 8, !tbaa !5
  call void @ggml_set_input(ptr noundef %99)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #1
  %100 = load ptr, ptr %17, align 8, !tbaa !5
  %101 = load ptr, ptr %17, align 8, !tbaa !5
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.gpt2_model, ptr %102, i32 0, i32 3
  %104 = load ptr, ptr %103, align 8, !tbaa !27
  %105 = load ptr, ptr %20, align 8, !tbaa !5
  %106 = call ptr @ggml_get_rows(ptr noundef %101, ptr noundef %104, ptr noundef %105)
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.gpt2_model, ptr %108, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !41
  %111 = load ptr, ptr %21, align 8, !tbaa !5
  %112 = call ptr @ggml_get_rows(ptr noundef %107, ptr noundef %110, ptr noundef %111)
  %113 = call ptr @ggml_add(ptr noundef %100, ptr noundef %106, ptr noundef %112)
  store ptr %113, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #1
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %506, %77
  %115 = load i32, ptr %23, align 4, !tbaa !9
  %116 = load i32, ptr %10, align 4, !tbaa !9
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %127, label %118

118:                                              ; preds = %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #1
  br label %509

119:                                              ; preds = %62, %60
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %13, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %14, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliiE8buf_size) #1
  br label %540

123:                                              ; preds = %73
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %13, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #1
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #1
  call void @__cxa_guard_abort(ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliiE3buf) #1
  br label %540

127:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #1
  %128 = load ptr, ptr %17, align 8, !tbaa !5
  %129 = load ptr, ptr %22, align 8, !tbaa !5
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.gpt2_hparams, ptr %130, i32 0, i32 6
  %132 = load float, ptr %131, align 4, !tbaa !42
  %133 = call ptr @ggml_norm(ptr noundef %128, ptr noundef %129, float noundef %132)
  store ptr %133, ptr %24, align 8, !tbaa !5
  %134 = load ptr, ptr %17, align 8, !tbaa !5
  %135 = load ptr, ptr %17, align 8, !tbaa !5
  %136 = load ptr, ptr %24, align 8, !tbaa !5
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.gpt2_model, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %23, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %140) #1
  %142 = getelementptr inbounds %struct.gpt2_layer, ptr %141, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8, !tbaa !43
  %144 = call ptr @ggml_mul(ptr noundef %135, ptr noundef %136, ptr noundef %143)
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.gpt2_model, ptr %145, i32 0, i32 6
  %147 = load i32, ptr %23, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef %148) #1
  %150 = getelementptr inbounds %struct.gpt2_layer, ptr %149, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !45
  %152 = call ptr @ggml_add(ptr noundef %134, ptr noundef %144, ptr noundef %151)
  store ptr %152, ptr %24, align 8, !tbaa !5
  %153 = load ptr, ptr %17, align 8, !tbaa !5
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.gpt2_model, ptr %154, i32 0, i32 6
  %156 = load i32, ptr %23, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %157) #1
  %159 = getelementptr inbounds %struct.gpt2_layer, ptr %158, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !46
  %161 = load ptr, ptr %24, align 8, !tbaa !5
  %162 = call ptr @ggml_mul_mat(ptr noundef %153, ptr noundef %160, ptr noundef %161)
  store ptr %162, ptr %24, align 8, !tbaa !5
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.gpt2_model, ptr %165, i32 0, i32 6
  %167 = load i32, ptr %23, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %168) #1
  %170 = getelementptr inbounds %struct.gpt2_layer, ptr %169, i32 0, i32 5
  %171 = load ptr, ptr %170, align 8, !tbaa !47
  %172 = call ptr @ggml_add(ptr noundef %163, ptr noundef %164, ptr noundef %171)
  store ptr %172, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #1
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  %174 = load ptr, ptr %24, align 8, !tbaa !5
  %175 = load i32, ptr %9, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = load i32, ptr %7, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = load ptr, ptr %24, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.ggml_tensor, ptr %179, i32 0, i32 3
  %181 = getelementptr inbounds [4 x i64], ptr %180, i64 0, i64 1
  %182 = load i64, ptr %181, align 8, !tbaa !18
  %183 = load i32, ptr %9, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = mul i64 0, %184
  %186 = call ptr @ggml_view_2d(ptr noundef %173, ptr noundef %174, i64 noundef %176, i64 noundef %178, i64 noundef %182, i64 noundef %185)
  store ptr %186, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #1
  %187 = load ptr, ptr %17, align 8, !tbaa !5
  %188 = load ptr, ptr %24, align 8, !tbaa !5
  %189 = load i32, ptr %9, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = load i32, ptr %7, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = load ptr, ptr %24, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.ggml_tensor, ptr %193, i32 0, i32 3
  %195 = getelementptr inbounds [4 x i64], ptr %194, i64 0, i64 1
  %196 = load i64, ptr %195, align 8, !tbaa !18
  %197 = load i32, ptr %9, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = mul i64 4, %198
  %200 = call ptr @ggml_view_2d(ptr noundef %187, ptr noundef %188, i64 noundef %190, i64 noundef %192, i64 noundef %196, i64 noundef %199)
  store ptr %200, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #1
  %201 = load ptr, ptr %17, align 8, !tbaa !5
  %202 = load ptr, ptr %24, align 8, !tbaa !5
  %203 = load i32, ptr %9, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = load i32, ptr %7, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = load ptr, ptr %24, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.ggml_tensor, ptr %207, i32 0, i32 3
  %209 = getelementptr inbounds [4 x i64], ptr %208, i64 0, i64 1
  %210 = load i64, ptr %209, align 8, !tbaa !18
  %211 = load i32, ptr %9, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = mul i64 8, %212
  %214 = call ptr @ggml_view_2d(ptr noundef %201, ptr noundef %202, i64 noundef %204, i64 noundef %206, i64 noundef %210, i64 noundef %213)
  store ptr %214, ptr %27, align 8, !tbaa !5
  %215 = load i32, ptr %7, align 4, !tbaa !9
  %216 = icmp sge i32 %215, 1
  br i1 %216, label %217, label %274

217:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #1
  %218 = load ptr, ptr %17, align 8, !tbaa !5
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.gpt2_model, ptr %219, i32 0, i32 7
  %221 = load ptr, ptr %220, align 8, !tbaa !48
  %222 = load i32, ptr %7, align 4, !tbaa !9
  %223 = load i32, ptr %9, align 4, !tbaa !9
  %224 = mul nsw i32 %222, %223
  %225 = sext i32 %224 to i64
  %226 = load ptr, ptr %4, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.gpt2_model, ptr %226, i32 0, i32 7
  %228 = load ptr, ptr %227, align 8, !tbaa !48
  %229 = call i64 @ggml_element_size(ptr noundef %228)
  %230 = load i32, ptr %9, align 4, !tbaa !9
  %231 = sext i32 %230 to i64
  %232 = mul i64 %229, %231
  %233 = load i32, ptr %23, align 4, !tbaa !9
  %234 = load i32, ptr %11, align 4, !tbaa !9
  %235 = mul nsw i32 %233, %234
  %236 = load i32, ptr %5, align 4, !tbaa !9
  %237 = add nsw i32 %235, %236
  %238 = sext i32 %237 to i64
  %239 = mul i64 %232, %238
  %240 = call ptr @ggml_view_1d(ptr noundef %218, ptr noundef %221, i64 noundef %225, i64 noundef %239)
  store ptr %240, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #1
  %241 = load ptr, ptr %17, align 8, !tbaa !5
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.gpt2_model, ptr %242, i32 0, i32 8
  %244 = load ptr, ptr %243, align 8, !tbaa !49
  %245 = load i32, ptr %7, align 4, !tbaa !9
  %246 = load i32, ptr %9, align 4, !tbaa !9
  %247 = mul nsw i32 %245, %246
  %248 = sext i32 %247 to i64
  %249 = load ptr, ptr %4, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.gpt2_model, ptr %249, i32 0, i32 8
  %251 = load ptr, ptr %250, align 8, !tbaa !49
  %252 = call i64 @ggml_element_size(ptr noundef %251)
  %253 = load i32, ptr %9, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = mul i64 %252, %254
  %256 = load i32, ptr %23, align 4, !tbaa !9
  %257 = load i32, ptr %11, align 4, !tbaa !9
  %258 = mul nsw i32 %256, %257
  %259 = load i32, ptr %5, align 4, !tbaa !9
  %260 = add nsw i32 %258, %259
  %261 = sext i32 %260 to i64
  %262 = mul i64 %255, %261
  %263 = call ptr @ggml_view_1d(ptr noundef %241, ptr noundef %244, i64 noundef %248, i64 noundef %262)
  store ptr %263, ptr %29, align 8, !tbaa !5
  %264 = load ptr, ptr %19, align 8, !tbaa !5
  %265 = load ptr, ptr %17, align 8, !tbaa !5
  %266 = load ptr, ptr %26, align 8, !tbaa !5
  %267 = load ptr, ptr %28, align 8, !tbaa !5
  %268 = call ptr @ggml_cpy(ptr noundef %265, ptr noundef %266, ptr noundef %267)
  call void @ggml_build_forward_expand(ptr noundef %264, ptr noundef %268)
  %269 = load ptr, ptr %19, align 8, !tbaa !5
  %270 = load ptr, ptr %17, align 8, !tbaa !5
  %271 = load ptr, ptr %27, align 8, !tbaa !5
  %272 = load ptr, ptr %29, align 8, !tbaa !5
  %273 = call ptr @ggml_cpy(ptr noundef %270, ptr noundef %271, ptr noundef %272)
  call void @ggml_build_forward_expand(ptr noundef %269, ptr noundef %273)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #1
  br label %274

274:                                              ; preds = %217, %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #1
  %275 = load ptr, ptr %17, align 8, !tbaa !5
  %276 = load ptr, ptr %17, align 8, !tbaa !5
  %277 = load ptr, ptr %25, align 8, !tbaa !5
  %278 = load i32, ptr %9, align 4, !tbaa !9
  %279 = load i32, ptr %12, align 4, !tbaa !9
  %280 = sdiv i32 %278, %279
  %281 = sext i32 %280 to i64
  %282 = load i32, ptr %12, align 4, !tbaa !9
  %283 = sext i32 %282 to i64
  %284 = load i32, ptr %7, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = call ptr @ggml_cont_3d(ptr noundef %276, ptr noundef %277, i64 noundef %281, i64 noundef %283, i64 noundef %285)
  %287 = call ptr @ggml_permute(ptr noundef %275, ptr noundef %286, i32 noundef 0, i32 noundef 2, i32 noundef 1, i32 noundef 3)
  store ptr %287, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #1
  %288 = load ptr, ptr %17, align 8, !tbaa !5
  %289 = load ptr, ptr %17, align 8, !tbaa !5
  %290 = load ptr, ptr %17, align 8, !tbaa !5
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.gpt2_model, ptr %291, i32 0, i32 7
  %293 = load ptr, ptr %292, align 8, !tbaa !48
  %294 = load i32, ptr %5, align 4, !tbaa !9
  %295 = load i32, ptr %7, align 4, !tbaa !9
  %296 = add nsw i32 %294, %295
  %297 = load i32, ptr %9, align 4, !tbaa !9
  %298 = mul nsw i32 %296, %297
  %299 = sext i32 %298 to i64
  %300 = load i32, ptr %23, align 4, !tbaa !9
  %301 = load i32, ptr %11, align 4, !tbaa !9
  %302 = mul nsw i32 %300, %301
  %303 = sext i32 %302 to i64
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.gpt2_model, ptr %304, i32 0, i32 7
  %306 = load ptr, ptr %305, align 8, !tbaa !48
  %307 = call i64 @ggml_element_size(ptr noundef %306)
  %308 = mul i64 %303, %307
  %309 = load i32, ptr %9, align 4, !tbaa !9
  %310 = sext i32 %309 to i64
  %311 = mul i64 %308, %310
  %312 = call ptr @ggml_view_1d(ptr noundef %290, ptr noundef %293, i64 noundef %299, i64 noundef %311)
  %313 = load i32, ptr %9, align 4, !tbaa !9
  %314 = load i32, ptr %12, align 4, !tbaa !9
  %315 = sdiv i32 %313, %314
  %316 = sext i32 %315 to i64
  %317 = load i32, ptr %12, align 4, !tbaa !9
  %318 = sext i32 %317 to i64
  %319 = load i32, ptr %5, align 4, !tbaa !9
  %320 = load i32, ptr %7, align 4, !tbaa !9
  %321 = add nsw i32 %319, %320
  %322 = sext i32 %321 to i64
  %323 = call ptr @ggml_reshape_3d(ptr noundef %289, ptr noundef %312, i64 noundef %316, i64 noundef %318, i64 noundef %322)
  %324 = call ptr @ggml_permute(ptr noundef %288, ptr noundef %323, i32 noundef 0, i32 noundef 2, i32 noundef 1, i32 noundef 3)
  store ptr %324, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #1
  %325 = load ptr, ptr %17, align 8, !tbaa !5
  %326 = load ptr, ptr %31, align 8, !tbaa !5
  %327 = load ptr, ptr %30, align 8, !tbaa !5
  %328 = call ptr @ggml_mul_mat(ptr noundef %325, ptr noundef %326, ptr noundef %327)
  store ptr %328, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #1
  %329 = load ptr, ptr %17, align 8, !tbaa !5
  %330 = load ptr, ptr %32, align 8, !tbaa !5
  %331 = load i32, ptr %9, align 4, !tbaa !9
  %332 = sitofp i32 %331 to float
  %333 = load i32, ptr %12, align 4, !tbaa !9
  %334 = sitofp i32 %333 to float
  %335 = fdiv float %332, %334
  %336 = call float @sqrtf(float noundef %335) #1
  %337 = fdiv float 1.000000e+00, %336
  %338 = call ptr @ggml_scale(ptr noundef %329, ptr noundef %330, float noundef %337)
  store ptr %338, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #1
  %339 = load ptr, ptr %17, align 8, !tbaa !5
  %340 = load ptr, ptr %33, align 8, !tbaa !5
  %341 = load i32, ptr %5, align 4, !tbaa !9
  %342 = call ptr @ggml_diag_mask_inf(ptr noundef %339, ptr noundef %340, i32 noundef %341)
  store ptr %342, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #1
  %343 = load ptr, ptr %17, align 8, !tbaa !5
  %344 = load ptr, ptr %34, align 8, !tbaa !5
  %345 = call ptr @ggml_soft_max(ptr noundef %343, ptr noundef %344)
  store ptr %345, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #1
  %346 = load ptr, ptr %17, align 8, !tbaa !5
  %347 = load ptr, ptr %17, align 8, !tbaa !5
  %348 = load ptr, ptr %17, align 8, !tbaa !5
  %349 = load ptr, ptr %17, align 8, !tbaa !5
  %350 = load ptr, ptr %4, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.gpt2_model, ptr %350, i32 0, i32 8
  %352 = load ptr, ptr %351, align 8, !tbaa !49
  %353 = load i32, ptr %5, align 4, !tbaa !9
  %354 = load i32, ptr %7, align 4, !tbaa !9
  %355 = add nsw i32 %353, %354
  %356 = load i32, ptr %9, align 4, !tbaa !9
  %357 = mul nsw i32 %355, %356
  %358 = sext i32 %357 to i64
  %359 = load i32, ptr %23, align 4, !tbaa !9
  %360 = load i32, ptr %11, align 4, !tbaa !9
  %361 = mul nsw i32 %359, %360
  %362 = sext i32 %361 to i64
  %363 = load ptr, ptr %4, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.gpt2_model, ptr %363, i32 0, i32 8
  %365 = load ptr, ptr %364, align 8, !tbaa !49
  %366 = call i64 @ggml_element_size(ptr noundef %365)
  %367 = mul i64 %362, %366
  %368 = load i32, ptr %9, align 4, !tbaa !9
  %369 = sext i32 %368 to i64
  %370 = mul i64 %367, %369
  %371 = call ptr @ggml_view_1d(ptr noundef %349, ptr noundef %352, i64 noundef %358, i64 noundef %370)
  %372 = load i32, ptr %9, align 4, !tbaa !9
  %373 = load i32, ptr %12, align 4, !tbaa !9
  %374 = sdiv i32 %372, %373
  %375 = sext i32 %374 to i64
  %376 = load i32, ptr %12, align 4, !tbaa !9
  %377 = sext i32 %376 to i64
  %378 = load i32, ptr %5, align 4, !tbaa !9
  %379 = load i32, ptr %7, align 4, !tbaa !9
  %380 = add nsw i32 %378, %379
  %381 = sext i32 %380 to i64
  %382 = call ptr @ggml_reshape_3d(ptr noundef %348, ptr noundef %371, i64 noundef %375, i64 noundef %377, i64 noundef %381)
  %383 = call ptr @ggml_permute(ptr noundef %347, ptr noundef %382, i32 noundef 1, i32 noundef 2, i32 noundef 0, i32 noundef 3)
  %384 = load i32, ptr %5, align 4, !tbaa !9
  %385 = load i32, ptr %7, align 4, !tbaa !9
  %386 = add nsw i32 %384, %385
  %387 = sext i32 %386 to i64
  %388 = load i32, ptr %9, align 4, !tbaa !9
  %389 = load i32, ptr %12, align 4, !tbaa !9
  %390 = sdiv i32 %388, %389
  %391 = sext i32 %390 to i64
  %392 = load i32, ptr %12, align 4, !tbaa !9
  %393 = sext i32 %392 to i64
  %394 = call ptr @ggml_cont_3d(ptr noundef %346, ptr noundef %383, i64 noundef %387, i64 noundef %391, i64 noundef %393)
  store ptr %394, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #1
  %395 = load ptr, ptr %17, align 8, !tbaa !5
  %396 = load ptr, ptr %36, align 8, !tbaa !5
  %397 = load ptr, ptr %35, align 8, !tbaa !5
  %398 = call ptr @ggml_mul_mat(ptr noundef %395, ptr noundef %396, ptr noundef %397)
  store ptr %398, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #1
  %399 = load ptr, ptr %17, align 8, !tbaa !5
  %400 = load ptr, ptr %37, align 8, !tbaa !5
  %401 = call ptr @ggml_permute(ptr noundef %399, ptr noundef %400, i32 noundef 0, i32 noundef 2, i32 noundef 1, i32 noundef 3)
  store ptr %401, ptr %38, align 8, !tbaa !5
  %402 = load ptr, ptr %17, align 8, !tbaa !5
  %403 = load ptr, ptr %38, align 8, !tbaa !5
  %404 = load i32, ptr %9, align 4, !tbaa !9
  %405 = sext i32 %404 to i64
  %406 = load i32, ptr %7, align 4, !tbaa !9
  %407 = sext i32 %406 to i64
  %408 = call ptr @ggml_cont_2d(ptr noundef %402, ptr noundef %403, i64 noundef %405, i64 noundef %407)
  store ptr %408, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #1
  %409 = load ptr, ptr %17, align 8, !tbaa !5
  %410 = load ptr, ptr %4, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.gpt2_model, ptr %410, i32 0, i32 6
  %412 = load i32, ptr %23, align 4, !tbaa !9
  %413 = sext i32 %412 to i64
  %414 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %411, i64 noundef %413) #1
  %415 = getelementptr inbounds %struct.gpt2_layer, ptr %414, i32 0, i32 6
  %416 = load ptr, ptr %415, align 8, !tbaa !50
  %417 = load ptr, ptr %24, align 8, !tbaa !5
  %418 = call ptr @ggml_mul_mat(ptr noundef %409, ptr noundef %416, ptr noundef %417)
  store ptr %418, ptr %24, align 8, !tbaa !5
  %419 = load ptr, ptr %17, align 8, !tbaa !5
  %420 = load ptr, ptr %24, align 8, !tbaa !5
  %421 = load ptr, ptr %4, align 8, !tbaa !5
  %422 = getelementptr inbounds %struct.gpt2_model, ptr %421, i32 0, i32 6
  %423 = load i32, ptr %23, align 4, !tbaa !9
  %424 = sext i32 %423 to i64
  %425 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %422, i64 noundef %424) #1
  %426 = getelementptr inbounds %struct.gpt2_layer, ptr %425, i32 0, i32 7
  %427 = load ptr, ptr %426, align 8, !tbaa !51
  %428 = call ptr @ggml_add(ptr noundef %419, ptr noundef %420, ptr noundef %427)
  store ptr %428, ptr %24, align 8, !tbaa !5
  %429 = load ptr, ptr %17, align 8, !tbaa !5
  %430 = load ptr, ptr %24, align 8, !tbaa !5
  %431 = load ptr, ptr %22, align 8, !tbaa !5
  %432 = call ptr @ggml_add(ptr noundef %429, ptr noundef %430, ptr noundef %431)
  store ptr %432, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #1
  %433 = load ptr, ptr %24, align 8, !tbaa !5
  store ptr %433, ptr %39, align 8, !tbaa !5
  %434 = load ptr, ptr %17, align 8, !tbaa !5
  %435 = load ptr, ptr %39, align 8, !tbaa !5
  %436 = load ptr, ptr %8, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.gpt2_hparams, ptr %436, i32 0, i32 6
  %438 = load float, ptr %437, align 4, !tbaa !42
  %439 = call ptr @ggml_norm(ptr noundef %434, ptr noundef %435, float noundef %438)
  store ptr %439, ptr %24, align 8, !tbaa !5
  %440 = load ptr, ptr %17, align 8, !tbaa !5
  %441 = load ptr, ptr %17, align 8, !tbaa !5
  %442 = load ptr, ptr %24, align 8, !tbaa !5
  %443 = load ptr, ptr %4, align 8, !tbaa !5
  %444 = getelementptr inbounds %struct.gpt2_model, ptr %443, i32 0, i32 6
  %445 = load i32, ptr %23, align 4, !tbaa !9
  %446 = sext i32 %445 to i64
  %447 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %444, i64 noundef %446) #1
  %448 = getelementptr inbounds %struct.gpt2_layer, ptr %447, i32 0, i32 2
  %449 = load ptr, ptr %448, align 8, !tbaa !52
  %450 = call ptr @ggml_mul(ptr noundef %441, ptr noundef %442, ptr noundef %449)
  %451 = load ptr, ptr %4, align 8, !tbaa !5
  %452 = getelementptr inbounds %struct.gpt2_model, ptr %451, i32 0, i32 6
  %453 = load i32, ptr %23, align 4, !tbaa !9
  %454 = sext i32 %453 to i64
  %455 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %452, i64 noundef %454) #1
  %456 = getelementptr inbounds %struct.gpt2_layer, ptr %455, i32 0, i32 3
  %457 = load ptr, ptr %456, align 8, !tbaa !53
  %458 = call ptr @ggml_add(ptr noundef %440, ptr noundef %450, ptr noundef %457)
  store ptr %458, ptr %24, align 8, !tbaa !5
  %459 = load ptr, ptr %17, align 8, !tbaa !5
  %460 = load ptr, ptr %4, align 8, !tbaa !5
  %461 = getelementptr inbounds %struct.gpt2_model, ptr %460, i32 0, i32 6
  %462 = load i32, ptr %23, align 4, !tbaa !9
  %463 = sext i32 %462 to i64
  %464 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %461, i64 noundef %463) #1
  %465 = getelementptr inbounds %struct.gpt2_layer, ptr %464, i32 0, i32 8
  %466 = load ptr, ptr %465, align 8, !tbaa !54
  %467 = load ptr, ptr %24, align 8, !tbaa !5
  %468 = call ptr @ggml_mul_mat(ptr noundef %459, ptr noundef %466, ptr noundef %467)
  store ptr %468, ptr %24, align 8, !tbaa !5
  %469 = load ptr, ptr %17, align 8, !tbaa !5
  %470 = load ptr, ptr %24, align 8, !tbaa !5
  %471 = load ptr, ptr %4, align 8, !tbaa !5
  %472 = getelementptr inbounds %struct.gpt2_model, ptr %471, i32 0, i32 6
  %473 = load i32, ptr %23, align 4, !tbaa !9
  %474 = sext i32 %473 to i64
  %475 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %472, i64 noundef %474) #1
  %476 = getelementptr inbounds %struct.gpt2_layer, ptr %475, i32 0, i32 9
  %477 = load ptr, ptr %476, align 8, !tbaa !55
  %478 = call ptr @ggml_add(ptr noundef %469, ptr noundef %470, ptr noundef %477)
  store ptr %478, ptr %24, align 8, !tbaa !5
  %479 = load ptr, ptr %17, align 8, !tbaa !5
  %480 = load ptr, ptr %24, align 8, !tbaa !5
  %481 = call ptr @ggml_gelu(ptr noundef %479, ptr noundef %480)
  store ptr %481, ptr %24, align 8, !tbaa !5
  %482 = load ptr, ptr %17, align 8, !tbaa !5
  %483 = load ptr, ptr %4, align 8, !tbaa !5
  %484 = getelementptr inbounds %struct.gpt2_model, ptr %483, i32 0, i32 6
  %485 = load i32, ptr %23, align 4, !tbaa !9
  %486 = sext i32 %485 to i64
  %487 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %484, i64 noundef %486) #1
  %488 = getelementptr inbounds %struct.gpt2_layer, ptr %487, i32 0, i32 10
  %489 = load ptr, ptr %488, align 8, !tbaa !56
  %490 = load ptr, ptr %24, align 8, !tbaa !5
  %491 = call ptr @ggml_mul_mat(ptr noundef %482, ptr noundef %489, ptr noundef %490)
  store ptr %491, ptr %24, align 8, !tbaa !5
  %492 = load ptr, ptr %17, align 8, !tbaa !5
  %493 = load ptr, ptr %24, align 8, !tbaa !5
  %494 = load ptr, ptr %4, align 8, !tbaa !5
  %495 = getelementptr inbounds %struct.gpt2_model, ptr %494, i32 0, i32 6
  %496 = load i32, ptr %23, align 4, !tbaa !9
  %497 = sext i32 %496 to i64
  %498 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %495, i64 noundef %497) #1
  %499 = getelementptr inbounds %struct.gpt2_layer, ptr %498, i32 0, i32 11
  %500 = load ptr, ptr %499, align 8, !tbaa !57
  %501 = call ptr @ggml_add(ptr noundef %492, ptr noundef %493, ptr noundef %500)
  store ptr %501, ptr %24, align 8, !tbaa !5
  %502 = load ptr, ptr %17, align 8, !tbaa !5
  %503 = load ptr, ptr %24, align 8, !tbaa !5
  %504 = load ptr, ptr %39, align 8, !tbaa !5
  %505 = call ptr @ggml_add(ptr noundef %502, ptr noundef %503, ptr noundef %504)
  store ptr %505, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #1
  br label %506

506:                                              ; preds = %274
  %507 = load i32, ptr %23, align 4, !tbaa !9
  %508 = add nsw i32 %507, 1
  store i32 %508, ptr %23, align 4, !tbaa !9
  br label %114, !llvm.loop !58

509:                                              ; preds = %118
  %510 = load ptr, ptr %17, align 8, !tbaa !5
  %511 = load ptr, ptr %22, align 8, !tbaa !5
  %512 = load ptr, ptr %8, align 8, !tbaa !5
  %513 = getelementptr inbounds %struct.gpt2_hparams, ptr %512, i32 0, i32 6
  %514 = load float, ptr %513, align 4, !tbaa !42
  %515 = call ptr @ggml_norm(ptr noundef %510, ptr noundef %511, float noundef %514)
  store ptr %515, ptr %22, align 8, !tbaa !5
  %516 = load ptr, ptr %17, align 8, !tbaa !5
  %517 = load ptr, ptr %17, align 8, !tbaa !5
  %518 = load ptr, ptr %22, align 8, !tbaa !5
  %519 = load ptr, ptr %4, align 8, !tbaa !5
  %520 = getelementptr inbounds %struct.gpt2_model, ptr %519, i32 0, i32 1
  %521 = load ptr, ptr %520, align 8, !tbaa !60
  %522 = call ptr @ggml_mul(ptr noundef %517, ptr noundef %518, ptr noundef %521)
  %523 = load ptr, ptr %4, align 8, !tbaa !5
  %524 = getelementptr inbounds %struct.gpt2_model, ptr %523, i32 0, i32 2
  %525 = load ptr, ptr %524, align 8, !tbaa !61
  %526 = call ptr @ggml_add(ptr noundef %516, ptr noundef %522, ptr noundef %525)
  store ptr %526, ptr %22, align 8, !tbaa !5
  %527 = load ptr, ptr %17, align 8, !tbaa !5
  %528 = load ptr, ptr %4, align 8, !tbaa !5
  %529 = getelementptr inbounds %struct.gpt2_model, ptr %528, i32 0, i32 5
  %530 = load ptr, ptr %529, align 8, !tbaa !62
  %531 = load ptr, ptr %22, align 8, !tbaa !5
  %532 = call ptr @ggml_mul_mat(ptr noundef %527, ptr noundef %530, ptr noundef %531)
  store ptr %532, ptr %22, align 8, !tbaa !5
  %533 = load ptr, ptr %22, align 8, !tbaa !5
  %534 = call ptr @ggml_set_name(ptr noundef %533, ptr noundef @.str.43)
  %535 = load ptr, ptr %22, align 8, !tbaa !5
  call void @ggml_set_output(ptr noundef %535)
  %536 = load ptr, ptr %19, align 8, !tbaa !5
  %537 = load ptr, ptr %22, align 8, !tbaa !5
  call void @ggml_build_forward_expand(ptr noundef %536, ptr noundef %537)
  %538 = load ptr, ptr %17, align 8, !tbaa !5
  call void @ggml_free(ptr noundef %538)
  %539 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #1
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #1
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #1
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #1
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #1
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #1
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #1
  ret ptr %539

540:                                              ; preds = %123, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #1
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #1
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #1
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #1
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #1
  br label %541

541:                                              ; preds = %540
  %542 = load ptr, ptr %13, align 8
  %543 = load i32, ptr %14, align 4
  %544 = insertvalue { ptr, i32 } poison, ptr %542, 0
  %545 = insertvalue { ptr, i32 } %544, i32 %543, 1
  resume { ptr, i32 } %545
}

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #1

declare i64 @ggml_graph_overhead_custom(i64 noundef, i1 noundef zeroext) #2

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #1

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #1

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

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

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

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

declare ptr @ggml_new_graph_custom(ptr noundef, i64 noundef, i1 noundef zeroext) #2

declare void @ggml_set_input(ptr noundef) #2

declare ptr @ggml_add(ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @ggml_get_rows(ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @ggml_norm(ptr noundef, ptr noundef, float noundef) #2

declare ptr @ggml_mul(ptr noundef, ptr noundef, ptr noundef) #2

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

declare ptr @ggml_mul_mat(ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @ggml_view_2d(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #2

declare ptr @ggml_view_1d(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #2

declare i64 @ggml_element_size(ptr noundef) #2

declare void @ggml_build_forward_expand(ptr noundef, ptr noundef) #2

declare ptr @ggml_cpy(ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @ggml_permute(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

declare ptr @ggml_cont_3d(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef) #2

declare ptr @ggml_reshape_3d(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef) #2

declare ptr @ggml_scale(ptr noundef, ptr noundef, float noundef) #2

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #6

declare ptr @ggml_diag_mask_inf(ptr noundef, ptr noundef, i32 noundef) #2

declare ptr @ggml_soft_max(ptr noundef, ptr noundef) #2

declare ptr @ggml_cont_2d(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #2

declare ptr @ggml_gelu(ptr noundef, ptr noundef) #2

declare void @ggml_set_output(ptr noundef) #2

declare void @ggml_free(ptr noundef) #2

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

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

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

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


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

%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.ggml_init_params = type { i64, ptr, i8 }
%"class.std::allocator.27" = type { i8 }

@__dso_handle = external hidden global i8
@_ZZ10gpt2_graphRK10gpt2_modeliiE8buf_size = external hidden local_unnamed_addr global i64, align 8
@_ZGVZ10gpt2_graphRK10gpt2_modeliiE8buf_size = external hidden global i64, align 8
@_ZZ10gpt2_graphRK10gpt2_modeliiE3buf = external hidden global %"class.std::vector.25", align 8
@_ZGVZ10gpt2_graphRK10gpt2_modeliiE3buf = external hidden global i64, align 8
@.str.41 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [7 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #1

declare i64 @ggml_tensor_overhead() local_unnamed_addr #2

declare ptr @ggml_init(ptr noundef byval(%struct.ggml_init_params) align 8) local_unnamed_addr #2

declare ptr @ggml_new_tensor_1d(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2

declare ptr @ggml_set_name(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z10gpt2_graphRK10gpt2_modelii(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::allocator.27", align 1
  %5 = alloca %struct.ggml_init_params, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = load i32, ptr %8, align 8, !tbaa !11
  %10 = getelementptr inbounds i8, ptr %0, i64 4
  %11 = load i32, ptr %10, align 4, !tbaa !12
  %12 = getelementptr inbounds i8, ptr %0, i64 12
  %13 = load i32, ptr %12, align 4, !tbaa !13
  %14 = load atomic i8, ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliiE8buf_size acquire, align 8
  %15 = icmp eq i8 %14, 0
  br i1 %15, label %16, label %25, !prof !14

16:                                               ; preds = %3
  %17 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ10gpt2_graphRK10gpt2_modeliiE8buf_size) #6
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %25, label %18

18:                                               ; preds = %16
  %19 = invoke i64 @ggml_tensor_overhead()
          to label %20 unwind label %85

20:                                               ; preds = %18
  %21 = invoke i64 @ggml_graph_overhead_custom(i64 noundef 4096, i1 noundef zeroext false)
          to label %22 unwind label %85

22:                                               ; preds = %20
  %23 = shl i64 %19, 12
  %24 = add i64 %21, %23
  store i64 %24, ptr @_ZZ10gpt2_graphRK10gpt2_modeliiE8buf_size, align 8, !tbaa !15
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ10gpt2_graphRK10gpt2_modeliiE8buf_size) #6
  br label %25

25:                                               ; preds = %22, %16, %3
  %26 = load atomic i8, ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliiE3buf acquire, align 8
  %27 = icmp eq i8 %26, 0
  br i1 %27, label %28, label %34, !prof !14

28:                                               ; preds = %25
  %29 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ10gpt2_graphRK10gpt2_modeliiE3buf) #6
  %.not219 = icmp eq i32 %29, 0
  br i1 %.not219, label %34, label %30

30:                                               ; preds = %28
  %31 = load i64, ptr @_ZZ10gpt2_graphRK10gpt2_modeliiE8buf_size, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIhEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorIhSaIhEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) @_ZZ10gpt2_graphRK10gpt2_modeliiE3buf, i64 noundef %31, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %32 unwind label %87

32:                                               ; preds = %30
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  %33 = call i32 @__cxa_atexit(ptr nonnull @_ZNSt6vectorIhSaIhEED2Ev, ptr nonnull @_ZZ10gpt2_graphRK10gpt2_modeliiE3buf, ptr nonnull @__dso_handle) #6
  call void @__cxa_guard_release(ptr nonnull @_ZGVZ10gpt2_graphRK10gpt2_modeliiE3buf) #6
  br label %34

34:                                               ; preds = %32, %28, %25
  %35 = load i64, ptr @_ZZ10gpt2_graphRK10gpt2_modeliiE8buf_size, align 8, !tbaa !15
  %36 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZ10gpt2_graphRK10gpt2_modeliiE3buf) #6
  store i64 %35, ptr %5, align 8, !tbaa !15
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %36, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !17
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 16
  store i8 1, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !19
  %37 = call ptr @ggml_init(ptr noundef nonnull byval(%struct.ggml_init_params) align 8 %5)
  %38 = call ptr @ggml_new_graph_custom(ptr noundef %37, i64 noundef 4096, i1 noundef zeroext false)
  %39 = sext i32 %2 to i64
  %40 = call ptr @ggml_new_tensor_1d(ptr noundef %37, i32 noundef 26, i64 noundef %39)
  %41 = call ptr @ggml_set_name(ptr noundef %40, ptr noundef nonnull @.str.41)
  call void @ggml_set_input(ptr noundef %40)
  %42 = call ptr @ggml_new_tensor_1d(ptr noundef %37, i32 noundef 26, i64 noundef %39)
  %43 = call ptr @ggml_set_name(ptr noundef %42, ptr noundef nonnull @.str.42)
  call void @ggml_set_input(ptr noundef %42)
  %44 = getelementptr inbounds i8, ptr %0, i64 48
  %45 = load ptr, ptr %44, align 8, !tbaa !21
  %46 = call ptr @ggml_get_rows(ptr noundef %37, ptr noundef %45, ptr noundef %40)
  %47 = getelementptr inbounds i8, ptr %0, i64 56
  %48 = load ptr, ptr %47, align 8, !tbaa !35
  %49 = call ptr @ggml_get_rows(ptr noundef %37, ptr noundef %48, ptr noundef %42)
  %50 = call ptr @ggml_add(ptr noundef %37, ptr noundef %46, ptr noundef %49)
  %51 = icmp sgt i32 %9, 0
  br i1 %51, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %34
  %52 = getelementptr inbounds i8, ptr %0, i64 24
  %53 = getelementptr inbounds i8, ptr %0, i64 72
  %54 = sext i32 %7 to i64
  %55 = shl nsw i64 %54, 2
  %56 = shl nsw i64 %54, 3
  %57 = icmp sgt i32 %2, 0
  %58 = getelementptr inbounds i8, ptr %0, i64 96
  %59 = mul nsw i32 %7, %2
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i8, ptr %0, i64 104
  %62 = sext i32 %13 to i64
  %63 = add nsw i32 %2, %1
  %64 = mul nsw i32 %7, %63
  %65 = sext i32 %64 to i64
  %66 = sext i32 %63 to i64
  %67 = sitofp i32 %7 to float
  %68 = sitofp i32 %13 to float
  %69 = fdiv float %67, %68
  %70 = sext i32 %11 to i64
  %71 = sext i32 %1 to i64
  %wide.trip.count = zext nneg i32 %9 to i64
  br label %89

._crit_edge:                                      ; preds = %128, %34
  %.0216.lcssa = phi ptr [ %50, %34 ], [ %192, %128 ]
  %72 = getelementptr inbounds i8, ptr %0, i64 24
  %73 = load float, ptr %72, align 8, !tbaa !36
  %74 = call ptr @ggml_norm(ptr noundef %37, ptr noundef %.0216.lcssa, float noundef %73)
  %75 = getelementptr inbounds i8, ptr %0, i64 32
  %76 = load ptr, ptr %75, align 8, !tbaa !37
  %77 = call ptr @ggml_mul(ptr noundef %37, ptr noundef %74, ptr noundef %76)
  %78 = getelementptr inbounds i8, ptr %0, i64 40
  %79 = load ptr, ptr %78, align 8, !tbaa !38
  %80 = call ptr @ggml_add(ptr noundef %37, ptr noundef %77, ptr noundef %79)
  %81 = getelementptr inbounds i8, ptr %0, i64 64
  %82 = load ptr, ptr %81, align 8, !tbaa !39
  %83 = call ptr @ggml_mul_mat(ptr noundef %37, ptr noundef %82, ptr noundef %80)
  %84 = call ptr @ggml_set_name(ptr noundef %83, ptr noundef nonnull @.str.43)
  call void @ggml_set_output(ptr noundef %83)
  call void @ggml_build_forward_expand(ptr noundef %38, ptr noundef %83)
  call void @ggml_free(ptr noundef %37)
  ret ptr %38

85:                                               ; preds = %20, %18
  %86 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_guard_abort(ptr nonnull @_ZGVZ10gpt2_graphRK10gpt2_modeliiE8buf_size) #6
  br label %193

87:                                               ; preds = %30
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIhED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZ10gpt2_graphRK10gpt2_modeliiE3buf) #6
  br label %193

89:                                               ; preds = %.lr.ph, %128
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %128 ]
  %.0216222 = phi ptr [ %50, %.lr.ph ], [ %192, %128 ]
  %90 = load float, ptr %52, align 8, !tbaa !36
  %91 = call ptr @ggml_norm(ptr noundef %37, ptr noundef %.0216222, float noundef %90)
  %92 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #6
  %93 = load ptr, ptr %92, align 8, !tbaa !40
  %94 = call ptr @ggml_mul(ptr noundef %37, ptr noundef %91, ptr noundef %93)
  %95 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #6
  %96 = getelementptr inbounds i8, ptr %95, i64 8
  %97 = load ptr, ptr %96, align 8, !tbaa !42
  %98 = call ptr @ggml_add(ptr noundef %37, ptr noundef %94, ptr noundef %97)
  %99 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #6
  %100 = getelementptr inbounds i8, ptr %99, i64 32
  %101 = load ptr, ptr %100, align 8, !tbaa !43
  %102 = call ptr @ggml_mul_mat(ptr noundef %37, ptr noundef %101, ptr noundef %98)
  %103 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #6
  %104 = getelementptr inbounds i8, ptr %103, i64 40
  %105 = load ptr, ptr %104, align 8, !tbaa !44
  %106 = call ptr @ggml_add(ptr noundef %37, ptr noundef %102, ptr noundef %105)
  %107 = getelementptr inbounds i8, ptr %106, i64 56
  %108 = load i64, ptr %107, align 8, !tbaa !15
  %109 = call ptr @ggml_view_2d(ptr noundef %37, ptr noundef %106, i64 noundef %54, i64 noundef %39, i64 noundef %108, i64 noundef 0)
  %110 = load i64, ptr %107, align 8, !tbaa !15
  %111 = call ptr @ggml_view_2d(ptr noundef %37, ptr noundef %106, i64 noundef %54, i64 noundef %39, i64 noundef %110, i64 noundef %55)
  %112 = load i64, ptr %107, align 8, !tbaa !15
  %113 = call ptr @ggml_view_2d(ptr noundef %37, ptr noundef %106, i64 noundef %54, i64 noundef %39, i64 noundef %112, i64 noundef %56)
  br i1 %57, label %114, label %._crit_edge224

._crit_edge224:                                   ; preds = %89
  %.pre = mul nsw i64 %indvars.iv, %70
  br label %128

114:                                              ; preds = %89
  %115 = load ptr, ptr %58, align 8, !tbaa !45
  %116 = call i64 @ggml_element_size(ptr noundef %115)
  %117 = mul nsw i64 %indvars.iv, %70
  %118 = add nsw i64 %117, %71
  %119 = mul nsw i64 %118, %54
  %120 = mul i64 %119, %116
  %121 = call ptr @ggml_view_1d(ptr noundef %37, ptr noundef %115, i64 noundef %60, i64 noundef %120)
  %122 = load ptr, ptr %61, align 8, !tbaa !46
  %123 = call i64 @ggml_element_size(ptr noundef %122)
  %124 = mul i64 %119, %123
  %125 = call ptr @ggml_view_1d(ptr noundef %37, ptr noundef %122, i64 noundef %60, i64 noundef %124)
  %126 = call ptr @ggml_cpy(ptr noundef %37, ptr noundef %111, ptr noundef %121)
  call void @ggml_build_forward_expand(ptr noundef %38, ptr noundef %126)
  %127 = call ptr @ggml_cpy(ptr noundef %37, ptr noundef %113, ptr noundef %125)
  call void @ggml_build_forward_expand(ptr noundef %38, ptr noundef %127)
  br label %128

128:                                              ; preds = %._crit_edge224, %114
  %.pre-phi = phi i64 [ %.pre, %._crit_edge224 ], [ %117, %114 ]
  %129 = sdiv i32 %7, %13
  %130 = sext i32 %129 to i64
  %131 = call ptr @ggml_cont_3d(ptr noundef %37, ptr noundef %109, i64 noundef %130, i64 noundef %62, i64 noundef %39)
  %132 = call ptr @ggml_permute(ptr noundef %37, ptr noundef %131, i32 noundef 0, i32 noundef 2, i32 noundef 1, i32 noundef 3)
  %133 = load ptr, ptr %58, align 8, !tbaa !45
  %134 = call i64 @ggml_element_size(ptr noundef %133)
  %135 = mul nsw i64 %.pre-phi, %54
  %136 = mul i64 %135, %134
  %137 = call ptr @ggml_view_1d(ptr noundef %37, ptr noundef %133, i64 noundef %65, i64 noundef %136)
  %138 = call ptr @ggml_reshape_3d(ptr noundef %37, ptr noundef %137, i64 noundef %130, i64 noundef %62, i64 noundef %66)
  %139 = call ptr @ggml_permute(ptr noundef %37, ptr noundef %138, i32 noundef 0, i32 noundef 2, i32 noundef 1, i32 noundef 3)
  %140 = call ptr @ggml_mul_mat(ptr noundef %37, ptr noundef %139, ptr noundef %132)
  %141 = call float @sqrtf(float noundef %69) #6
  %142 = fdiv float 1.000000e+00, %141
  %143 = call ptr @ggml_scale(ptr noundef %37, ptr noundef %140, float noundef %142)
  %144 = call ptr @ggml_diag_mask_inf(ptr noundef %37, ptr noundef %143, i32 noundef %1)
  %145 = call ptr @ggml_soft_max(ptr noundef %37, ptr noundef %144)
  %146 = load ptr, ptr %61, align 8, !tbaa !46
  %147 = call i64 @ggml_element_size(ptr noundef %146)
  %148 = mul i64 %135, %147
  %149 = call ptr @ggml_view_1d(ptr noundef %37, ptr noundef %146, i64 noundef %65, i64 noundef %148)
  %150 = call ptr @ggml_reshape_3d(ptr noundef %37, ptr noundef %149, i64 noundef %130, i64 noundef %62, i64 noundef %66)
  %151 = call ptr @ggml_permute(ptr noundef %37, ptr noundef %150, i32 noundef 1, i32 noundef 2, i32 noundef 0, i32 noundef 3)
  %152 = call ptr @ggml_cont_3d(ptr noundef %37, ptr noundef %151, i64 noundef %66, i64 noundef %130, i64 noundef %62)
  %153 = call ptr @ggml_mul_mat(ptr noundef %37, ptr noundef %152, ptr noundef %145)
  %154 = call ptr @ggml_permute(ptr noundef %37, ptr noundef %153, i32 noundef 0, i32 noundef 2, i32 noundef 1, i32 noundef 3)
  %155 = call ptr @ggml_cont_2d(ptr noundef %37, ptr noundef %154, i64 noundef %54, i64 noundef %39)
  %156 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #6
  %157 = getelementptr inbounds i8, ptr %156, i64 48
  %158 = load ptr, ptr %157, align 8, !tbaa !47
  %159 = call ptr @ggml_mul_mat(ptr noundef %37, ptr noundef %158, ptr noundef %155)
  %160 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #6
  %161 = getelementptr inbounds i8, ptr %160, i64 56
  %162 = load ptr, ptr %161, align 8, !tbaa !48
  %163 = call ptr @ggml_add(ptr noundef %37, ptr noundef %159, ptr noundef %162)
  %164 = call ptr @ggml_add(ptr noundef %37, ptr noundef %163, ptr noundef %.0216222)
  %165 = load float, ptr %52, align 8, !tbaa !36
  %166 = call ptr @ggml_norm(ptr noundef %37, ptr noundef %164, float noundef %165)
  %167 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #6
  %168 = getelementptr inbounds i8, ptr %167, i64 16
  %169 = load ptr, ptr %168, align 8, !tbaa !49
  %170 = call ptr @ggml_mul(ptr noundef %37, ptr noundef %166, ptr noundef %169)
  %171 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #6
  %172 = getelementptr inbounds i8, ptr %171, i64 24
  %173 = load ptr, ptr %172, align 8, !tbaa !50
  %174 = call ptr @ggml_add(ptr noundef %37, ptr noundef %170, ptr noundef %173)
  %175 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #6
  %176 = getelementptr inbounds i8, ptr %175, i64 64
  %177 = load ptr, ptr %176, align 8, !tbaa !51
  %178 = call ptr @ggml_mul_mat(ptr noundef %37, ptr noundef %177, ptr noundef %174)
  %179 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #6
  %180 = getelementptr inbounds i8, ptr %179, i64 72
  %181 = load ptr, ptr %180, align 8, !tbaa !52
  %182 = call ptr @ggml_add(ptr noundef %37, ptr noundef %178, ptr noundef %181)
  %183 = call ptr @ggml_gelu(ptr noundef %37, ptr noundef %182)
  %184 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #6
  %185 = getelementptr inbounds i8, ptr %184, i64 80
  %186 = load ptr, ptr %185, align 8, !tbaa !53
  %187 = call ptr @ggml_mul_mat(ptr noundef %37, ptr noundef %186, ptr noundef %183)
  %188 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv) #6
  %189 = getelementptr inbounds i8, ptr %188, i64 88
  %190 = load ptr, ptr %189, align 8, !tbaa !54
  %191 = call ptr @ggml_add(ptr noundef %37, ptr noundef %187, ptr noundef %190)
  %192 = call ptr @ggml_add(ptr noundef %37, ptr noundef %191, ptr noundef %164)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %89, !llvm.loop !55

193:                                              ; preds = %87, %85
  %.pn = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ]
  resume { ptr, i32 } %.pn
}

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #1

declare i64 @ggml_graph_overhead_custom(i64 noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #1

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

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

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

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

declare ptr @ggml_new_graph_custom(ptr noundef, i64 noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @ggml_set_input(ptr noundef) local_unnamed_addr #2

declare ptr @ggml_add(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @ggml_get_rows(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @ggml_norm(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #2

declare ptr @ggml_mul(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare ptr @ggml_mul_mat(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @ggml_view_2d(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

declare ptr @ggml_view_1d(ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

declare i64 @ggml_element_size(ptr noundef) local_unnamed_addr #2

declare void @ggml_build_forward_expand(ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @ggml_cpy(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @ggml_permute(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare ptr @ggml_cont_3d(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

declare ptr @ggml_reshape_3d(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

declare ptr @ggml_scale(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @sqrtf(float noundef) local_unnamed_addr #5

declare ptr @ggml_diag_mask_inf(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @ggml_soft_max(ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @ggml_cont_2d(ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

declare ptr @ggml_gelu(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @ggml_set_output(ptr noundef) local_unnamed_addr #2

declare void @ggml_free(ptr noundef) local_unnamed_addr #2

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

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

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

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


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