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

; 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.58" = type { %"struct.std::_Vector_base.59" }
%"struct.std::_Vector_base.59" = 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.60" = type { i8 }
%struct.gpt2_model = type { %struct.gpt2_hparams, ptr, ptr, ptr, ptr, ptr, %"class.std::vector.3", ptr, ptr, ptr, %"class.std::vector.8", %"class.std::vector.13", ptr, ptr, %"class.std::map", ptr, ptr }
%struct.gpt2_hparams = type { i32, i32, i32, i32, i32, i32, float }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<ggml_backend *, std::allocator<ggml_backend *>>::_Vector_impl" }
%"struct.std::_Vector_base<ggml_backend *, std::allocator<ggml_backend *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ggml_backend *, std::allocator<ggml_backend *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ggml_backend *, std::allocator<ggml_backend *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<ggml_backend_buffer *, std::allocator<ggml_backend_buffer *>>::_Vector_impl" }
%"struct.std::_Vector_base<ggml_backend_buffer *, std::allocator<ggml_backend_buffer *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ggml_backend_buffer *, std::allocator<ggml_backend_buffer *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ggml_backend_buffer *, std::allocator<ggml_backend_buffer *>>::_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.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] }
%struct.gpt2_layer = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@__dso_handle = external hidden global i8
@_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size = external hidden global i64, align 8
@_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size = external hidden global i64, align 8
@_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf = external hidden global %"class.std::vector.58", align 8
@_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf = external hidden global i64, align 8
@.str.44 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [12 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_set_name(ptr noundef, ptr noundef) #2

declare void @ggml_backend_tensor_set(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(248) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #4 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %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.60", 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 i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca float, align 4
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %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
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #1
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #1
  %45 = trunc i64 %44 to i32
  store i32 %45, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #1
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.gpt2_model, ptr %46, i32 0, i32 0
  store ptr %47, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #1
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.gpt2_hparams, ptr %48, i32 0, i32 2
  %50 = load i32, ptr %49, align 4, !tbaa !11
  store i32 %50, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #1
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.gpt2_hparams, ptr %51, i32 0, i32 4
  %53 = load i32, ptr %52, align 4, !tbaa !14
  store i32 %53, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #1
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.gpt2_hparams, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 4, !tbaa !15
  store i32 %56, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #1
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.gpt2_hparams, ptr %57, i32 0, i32 3
  %59 = load i32, ptr %58, align 4, !tbaa !16
  store i32 %59, ptr %12, align 4, !tbaa !9
  %60 = load atomic i8, ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size acquire, align 8
  %61 = icmp eq i8 %60, 0
  br i1 %61, label %62, label %72, !prof !17

62:                                               ; preds = %3
  %63 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size) #1
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %72

65:                                               ; preds = %62
  %66 = invoke i64 @ggml_tensor_overhead()
          to label %67 unwind label %120

67:                                               ; preds = %65
  %68 = mul i64 %66, 4096
  %69 = invoke i64 @ggml_graph_overhead_custom(i64 noundef 4096, i1 noundef zeroext false)
          to label %70 unwind label %120

70:                                               ; preds = %67
  %71 = add i64 %68, %69
  store i64 %71, ptr @_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size, align 8, !tbaa !18
  call void @__cxa_guard_release(ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size) #1
  br label %72

72:                                               ; preds = %70, %62, %3
  %73 = load atomic i8, ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf acquire, align 8
  %74 = icmp eq i8 %73, 0
  br i1 %74, label %75, label %82, !prof !17

75:                                               ; preds = %72
  %76 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf) #1
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %82

78:                                               ; preds = %75
  %79 = load i64, ptr @_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_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_modeliRKSt6vectorIiSaIiEEE3buf, i64 noundef %79, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %80 unwind label %124

80:                                               ; preds = %78
  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
  %81 = call i32 @__cxa_atexit(ptr @_ZNSt6vectorIhSaIhEED2Ev, ptr @_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf, ptr @__dso_handle) #1
  call void @__cxa_guard_release(ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf) #1
  br label %82

82:                                               ; preds = %80, %75, %72
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #1
  %83 = getelementptr inbounds %struct.ggml_init_params, ptr %16, i32 0, i32 0
  %84 = load i64, ptr @_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size, align 8, !tbaa !18
  store i64 %84, ptr %83, align 8, !tbaa !20
  %85 = getelementptr inbounds %struct.ggml_init_params, ptr %16, i32 0, i32 1
  %86 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf) #1
  store ptr %86, ptr %85, align 8, !tbaa !23
  %87 = getelementptr inbounds %struct.ggml_init_params, ptr %16, i32 0, i32 2
  store i8 1, ptr %87, 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
  %88 = call ptr @ggml_init(ptr noundef byval(%struct.ggml_init_params) align 8 %18)
  store ptr %88, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #1
  %89 = load ptr, ptr %17, align 8, !tbaa !5
  %90 = call ptr @ggml_new_graph_custom(ptr noundef %89, i64 noundef 4096, i1 noundef zeroext false)
  store ptr %90, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #1
  %91 = load ptr, ptr %17, align 8, !tbaa !5
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.gpt2_model, ptr %92, i32 0, i32 15
  %94 = load ptr, ptr %93, align 8, !tbaa !27
  %95 = load i32, ptr %7, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = call ptr @ggml_view_1d(ptr noundef %91, ptr noundef %94, i64 noundef %96, i64 noundef 0)
  store ptr %97, ptr %20, align 8, !tbaa !5
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.gpt2_model, ptr %98, i32 0, i32 15
  %100 = load ptr, ptr %99, align 8, !tbaa !27
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = call noundef ptr @_ZNKSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %101) #1
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = load ptr, ptr %20, align 8, !tbaa !5
  %106 = call i64 @ggml_element_size(ptr noundef %105)
  %107 = mul i64 %104, %106
  call void @ggml_backend_tensor_set(ptr noundef %100, ptr noundef %102, i64 noundef 0, i64 noundef %107)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #1
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.gpt2_model, ptr %109, i32 0, i32 16
  %111 = load ptr, ptr %110, align 8, !tbaa !49
  %112 = load i32, ptr %7, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = call ptr @ggml_view_1d(ptr noundef %108, ptr noundef %111, i64 noundef %113, i64 noundef 0)
  store ptr %114, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #1
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %138, %82
  %116 = load i32, ptr %22, align 4, !tbaa !9
  %117 = load i32, ptr %7, align 4, !tbaa !9
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %128, label %119

119:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #1
  br label %141

120:                                              ; preds = %67, %65
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %13, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %14, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size) #1
  br label %694

124:                                              ; preds = %78
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %13, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, 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_modeliRKSt6vectorIiSaIiEEE3buf) #1
  br label %694

128:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #1
  %129 = load i32, ptr %5, align 4, !tbaa !9
  %130 = load i32, ptr %22, align 4, !tbaa !9
  %131 = add nsw i32 %129, %130
  store i32 %131, ptr %23, align 4, !tbaa !9
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.gpt2_model, ptr %132, i32 0, i32 16
  %134 = load ptr, ptr %133, align 8, !tbaa !49
  %135 = load i32, ptr %22, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = mul i64 %136, 4
  call void @ggml_backend_tensor_set(ptr noundef %134, ptr noundef %23, i64 noundef %137, i64 noundef 4)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #1
  br label %138

138:                                              ; preds = %128
  %139 = load i32, ptr %22, align 4, !tbaa !9
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %22, align 4, !tbaa !9
  br label %115, !llvm.loop !50

141:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #1
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.gpt2_model, ptr %142, i32 0, i32 0
  %144 = getelementptr inbounds %struct.gpt2_hparams, ptr %143, i32 0, i32 2
  %145 = load i32, ptr %144, align 8, !tbaa !52
  %146 = sitofp i32 %145 to float
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.gpt2_model, ptr %147, i32 0, i32 0
  %149 = getelementptr inbounds %struct.gpt2_hparams, ptr %148, i32 0, i32 3
  %150 = load i32, ptr %149, align 4, !tbaa !53
  %151 = sitofp i32 %150 to float
  %152 = fdiv float %146, %151
  %153 = call float @sqrtf(float noundef %152) #1
  %154 = fdiv float 1.000000e+00, %153
  store float %154, ptr %24, align 4, !tbaa !54
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #1
  %155 = load ptr, ptr %17, align 8, !tbaa !5
  %156 = load ptr, ptr %17, align 8, !tbaa !5
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.gpt2_model, ptr %157, i32 0, i32 3
  %159 = load ptr, ptr %158, align 8, !tbaa !55
  %160 = load ptr, ptr %20, align 8, !tbaa !5
  %161 = call ptr @ggml_get_rows(ptr noundef %156, ptr noundef %159, ptr noundef %160)
  %162 = load ptr, ptr %17, align 8, !tbaa !5
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.gpt2_model, ptr %163, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !56
  %166 = load ptr, ptr %21, align 8, !tbaa !5
  %167 = call ptr @ggml_get_rows(ptr noundef %162, ptr noundef %165, ptr noundef %166)
  %168 = call ptr @ggml_add(ptr noundef %155, ptr noundef %161, ptr noundef %167)
  store ptr %168, ptr %25, align 8, !tbaa !5
  %169 = load ptr, ptr %25, align 8, !tbaa !5
  %170 = call ptr @ggml_set_name(ptr noundef %169, ptr noundef @.str.44)
  %171 = load ptr, ptr %25, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.ggml_tensor, ptr %171, i32 0, i32 7
  %173 = getelementptr inbounds [10 x ptr], ptr %172, i64 0, i64 0
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = call ptr @ggml_set_name(ptr noundef %174, ptr noundef @.str.45)
  %176 = load ptr, ptr %25, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.ggml_tensor, ptr %176, i32 0, i32 7
  %178 = getelementptr inbounds [10 x ptr], ptr %177, i64 0, i64 1
  %179 = load ptr, ptr %178, align 8, !tbaa !5
  %180 = call ptr @ggml_set_name(ptr noundef %179, ptr noundef @.str.46)
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #1
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %652, %141
  %182 = load i32, ptr %26, align 4, !tbaa !9
  %183 = load i32, ptr %10, align 4, !tbaa !9
  %184 = icmp slt i32 %182, %183
  br i1 %184, label %186, label %185

185:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #1
  br label %655

186:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #1
  %187 = load ptr, ptr %17, align 8, !tbaa !5
  %188 = load ptr, ptr %25, align 8, !tbaa !5
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.gpt2_hparams, ptr %189, i32 0, i32 6
  %191 = load float, ptr %190, align 4, !tbaa !57
  %192 = call ptr @ggml_norm(ptr noundef %187, ptr noundef %188, float noundef %191)
  store ptr %192, ptr %27, align 8, !tbaa !5
  %193 = load ptr, ptr %27, align 8, !tbaa !5
  %194 = load i32, ptr %26, align 4, !tbaa !9
  %195 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %193, ptr noundef @.str.47, i32 noundef %194)
  %196 = load ptr, ptr %17, align 8, !tbaa !5
  %197 = load ptr, ptr %17, align 8, !tbaa !5
  %198 = load ptr, ptr %27, align 8, !tbaa !5
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.gpt2_model, ptr %199, i32 0, i32 6
  %201 = load i32, ptr %26, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %200, i64 noundef %202) #1
  %204 = getelementptr inbounds %struct.gpt2_layer, ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !58
  %206 = call ptr @ggml_mul(ptr noundef %197, ptr noundef %198, ptr noundef %205)
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.gpt2_model, ptr %207, i32 0, i32 6
  %209 = load i32, ptr %26, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %208, i64 noundef %210) #1
  %212 = getelementptr inbounds %struct.gpt2_layer, ptr %211, i32 0, i32 1
  %213 = load ptr, ptr %212, align 8, !tbaa !60
  %214 = call ptr @ggml_add(ptr noundef %196, ptr noundef %206, ptr noundef %213)
  store ptr %214, ptr %27, align 8, !tbaa !5
  %215 = load ptr, ptr %27, align 8, !tbaa !5
  %216 = load i32, ptr %26, align 4, !tbaa !9
  %217 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %215, ptr noundef @.str.48, i32 noundef %216)
  %218 = load ptr, ptr %27, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.ggml_tensor, ptr %218, i32 0, i32 7
  %220 = getelementptr inbounds [10 x ptr], ptr %219, i64 0, i64 0
  %221 = load ptr, ptr %220, align 8, !tbaa !5
  %222 = load i32, ptr %26, align 4, !tbaa !9
  %223 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %221, ptr noundef @.str.49, i32 noundef %222)
  %224 = load ptr, ptr %17, align 8, !tbaa !5
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.gpt2_model, ptr %225, i32 0, i32 6
  %227 = load i32, ptr %26, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %226, i64 noundef %228) #1
  %230 = getelementptr inbounds %struct.gpt2_layer, ptr %229, i32 0, i32 4
  %231 = load ptr, ptr %230, align 8, !tbaa !61
  %232 = load ptr, ptr %27, align 8, !tbaa !5
  %233 = call ptr @ggml_mul_mat(ptr noundef %224, ptr noundef %231, ptr noundef %232)
  store ptr %233, ptr %27, align 8, !tbaa !5
  %234 = load ptr, ptr %27, align 8, !tbaa !5
  %235 = load i32, ptr %26, align 4, !tbaa !9
  %236 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %234, ptr noundef @.str.50, i32 noundef %235)
  %237 = load ptr, ptr %17, align 8, !tbaa !5
  %238 = load ptr, ptr %27, align 8, !tbaa !5
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.gpt2_model, ptr %239, i32 0, i32 6
  %241 = load i32, ptr %26, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %240, i64 noundef %242) #1
  %244 = getelementptr inbounds %struct.gpt2_layer, ptr %243, i32 0, i32 5
  %245 = load ptr, ptr %244, align 8, !tbaa !62
  %246 = call ptr @ggml_add(ptr noundef %237, ptr noundef %238, ptr noundef %245)
  store ptr %246, ptr %27, align 8, !tbaa !5
  %247 = load ptr, ptr %27, align 8, !tbaa !5
  %248 = load i32, ptr %26, align 4, !tbaa !9
  %249 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %247, ptr noundef @.str.51, i32 noundef %248)
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #1
  %250 = load ptr, ptr %17, align 8, !tbaa !5
  %251 = load ptr, ptr %27, align 8, !tbaa !5
  %252 = load i32, ptr %9, align 4, !tbaa !9
  %253 = sext i32 %252 to i64
  %254 = load i32, ptr %7, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = load ptr, ptr %27, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.ggml_tensor, ptr %256, i32 0, i32 3
  %258 = getelementptr inbounds [4 x i64], ptr %257, i64 0, i64 1
  %259 = load i64, ptr %258, align 8, !tbaa !18
  %260 = load i32, ptr %9, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = mul i64 0, %261
  %263 = call ptr @ggml_view_2d(ptr noundef %250, ptr noundef %251, i64 noundef %253, i64 noundef %255, i64 noundef %259, i64 noundef %262)
  store ptr %263, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #1
  %264 = load ptr, ptr %17, align 8, !tbaa !5
  %265 = load ptr, ptr %27, align 8, !tbaa !5
  %266 = load i32, ptr %9, align 4, !tbaa !9
  %267 = sext i32 %266 to i64
  %268 = load i32, ptr %7, align 4, !tbaa !9
  %269 = sext i32 %268 to i64
  %270 = load ptr, ptr %27, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.ggml_tensor, ptr %270, i32 0, i32 3
  %272 = getelementptr inbounds [4 x i64], ptr %271, i64 0, i64 1
  %273 = load i64, ptr %272, align 8, !tbaa !18
  %274 = load i32, ptr %9, align 4, !tbaa !9
  %275 = sext i32 %274 to i64
  %276 = mul i64 4, %275
  %277 = call ptr @ggml_view_2d(ptr noundef %264, ptr noundef %265, i64 noundef %267, i64 noundef %269, i64 noundef %273, i64 noundef %276)
  store ptr %277, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #1
  %278 = load ptr, ptr %17, align 8, !tbaa !5
  %279 = load ptr, ptr %27, align 8, !tbaa !5
  %280 = load i32, ptr %9, align 4, !tbaa !9
  %281 = sext i32 %280 to i64
  %282 = load i32, ptr %7, align 4, !tbaa !9
  %283 = sext i32 %282 to i64
  %284 = load ptr, ptr %27, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.ggml_tensor, ptr %284, i32 0, i32 3
  %286 = getelementptr inbounds [4 x i64], ptr %285, i64 0, i64 1
  %287 = load i64, ptr %286, align 8, !tbaa !18
  %288 = load i32, ptr %9, align 4, !tbaa !9
  %289 = sext i32 %288 to i64
  %290 = mul i64 8, %289
  %291 = call ptr @ggml_view_2d(ptr noundef %278, ptr noundef %279, i64 noundef %281, i64 noundef %283, i64 noundef %287, i64 noundef %290)
  store ptr %291, ptr %30, align 8, !tbaa !5
  %292 = load ptr, ptr %28, align 8, !tbaa !5
  %293 = load i32, ptr %26, align 4, !tbaa !9
  %294 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %292, ptr noundef @.str.52, i32 noundef %293)
  %295 = load ptr, ptr %29, align 8, !tbaa !5
  %296 = load i32, ptr %26, align 4, !tbaa !9
  %297 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %295, ptr noundef @.str.53, i32 noundef %296)
  %298 = load ptr, ptr %30, align 8, !tbaa !5
  %299 = load i32, ptr %26, align 4, !tbaa !9
  %300 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %298, ptr noundef @.str.54, i32 noundef %299)
  %301 = load i32, ptr %7, align 4, !tbaa !9
  %302 = icmp sge i32 %301, 1
  br i1 %302, label %303, label %360

303:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #1
  %304 = load ptr, ptr %17, align 8, !tbaa !5
  %305 = load ptr, ptr %4, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.gpt2_model, ptr %305, i32 0, i32 7
  %307 = load ptr, ptr %306, align 8, !tbaa !63
  %308 = load i32, ptr %7, align 4, !tbaa !9
  %309 = load i32, ptr %9, align 4, !tbaa !9
  %310 = mul nsw i32 %308, %309
  %311 = sext i32 %310 to i64
  %312 = load ptr, ptr %4, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.gpt2_model, ptr %312, i32 0, i32 7
  %314 = load ptr, ptr %313, align 8, !tbaa !63
  %315 = call i64 @ggml_element_size(ptr noundef %314)
  %316 = load i32, ptr %9, align 4, !tbaa !9
  %317 = sext i32 %316 to i64
  %318 = mul i64 %315, %317
  %319 = load i32, ptr %26, align 4, !tbaa !9
  %320 = load i32, ptr %11, align 4, !tbaa !9
  %321 = mul nsw i32 %319, %320
  %322 = load i32, ptr %5, align 4, !tbaa !9
  %323 = add nsw i32 %321, %322
  %324 = sext i32 %323 to i64
  %325 = mul i64 %318, %324
  %326 = call ptr @ggml_view_1d(ptr noundef %304, ptr noundef %307, i64 noundef %311, i64 noundef %325)
  store ptr %326, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #1
  %327 = load ptr, ptr %17, align 8, !tbaa !5
  %328 = load ptr, ptr %4, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.gpt2_model, ptr %328, i32 0, i32 8
  %330 = load ptr, ptr %329, align 8, !tbaa !64
  %331 = load i32, ptr %7, align 4, !tbaa !9
  %332 = load i32, ptr %9, align 4, !tbaa !9
  %333 = mul nsw i32 %331, %332
  %334 = sext i32 %333 to i64
  %335 = load ptr, ptr %4, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.gpt2_model, ptr %335, i32 0, i32 8
  %337 = load ptr, ptr %336, align 8, !tbaa !64
  %338 = call i64 @ggml_element_size(ptr noundef %337)
  %339 = load i32, ptr %9, align 4, !tbaa !9
  %340 = sext i32 %339 to i64
  %341 = mul i64 %338, %340
  %342 = load i32, ptr %26, align 4, !tbaa !9
  %343 = load i32, ptr %11, align 4, !tbaa !9
  %344 = mul nsw i32 %342, %343
  %345 = load i32, ptr %5, align 4, !tbaa !9
  %346 = add nsw i32 %344, %345
  %347 = sext i32 %346 to i64
  %348 = mul i64 %341, %347
  %349 = call ptr @ggml_view_1d(ptr noundef %327, ptr noundef %330, i64 noundef %334, i64 noundef %348)
  store ptr %349, ptr %32, align 8, !tbaa !5
  %350 = load ptr, ptr %19, align 8, !tbaa !5
  %351 = load ptr, ptr %17, align 8, !tbaa !5
  %352 = load ptr, ptr %29, align 8, !tbaa !5
  %353 = load ptr, ptr %31, align 8, !tbaa !5
  %354 = call ptr @ggml_cpy(ptr noundef %351, ptr noundef %352, ptr noundef %353)
  call void @ggml_build_forward_expand(ptr noundef %350, ptr noundef %354)
  %355 = load ptr, ptr %19, align 8, !tbaa !5
  %356 = load ptr, ptr %17, align 8, !tbaa !5
  %357 = load ptr, ptr %30, align 8, !tbaa !5
  %358 = load ptr, ptr %32, align 8, !tbaa !5
  %359 = call ptr @ggml_cpy(ptr noundef %356, ptr noundef %357, ptr noundef %358)
  call void @ggml_build_forward_expand(ptr noundef %355, ptr noundef %359)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #1
  br label %360

360:                                              ; preds = %303, %186
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #1
  %361 = load ptr, ptr %17, align 8, !tbaa !5
  %362 = load ptr, ptr %17, align 8, !tbaa !5
  %363 = load ptr, ptr %28, align 8, !tbaa !5
  %364 = load i32, ptr %9, align 4, !tbaa !9
  %365 = load i32, ptr %12, align 4, !tbaa !9
  %366 = sdiv i32 %364, %365
  %367 = sext i32 %366 to i64
  %368 = load i32, ptr %12, align 4, !tbaa !9
  %369 = sext i32 %368 to i64
  %370 = load i32, ptr %7, align 4, !tbaa !9
  %371 = sext i32 %370 to i64
  %372 = call ptr @ggml_cont_3d(ptr noundef %362, ptr noundef %363, i64 noundef %367, i64 noundef %369, i64 noundef %371)
  %373 = call ptr @ggml_permute(ptr noundef %361, ptr noundef %372, i32 noundef 0, i32 noundef 2, i32 noundef 1, i32 noundef 3)
  store ptr %373, ptr %33, align 8, !tbaa !5
  %374 = load ptr, ptr %33, align 8, !tbaa !5
  %375 = load i32, ptr %26, align 4, !tbaa !9
  %376 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %374, ptr noundef @.str.55, i32 noundef %375)
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #1
  %377 = load ptr, ptr %17, align 8, !tbaa !5
  %378 = load ptr, ptr %17, align 8, !tbaa !5
  %379 = load ptr, ptr %17, align 8, !tbaa !5
  %380 = load ptr, ptr %4, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.gpt2_model, ptr %380, i32 0, i32 7
  %382 = load ptr, ptr %381, align 8, !tbaa !63
  %383 = load i32, ptr %5, align 4, !tbaa !9
  %384 = load i32, ptr %7, align 4, !tbaa !9
  %385 = add nsw i32 %383, %384
  %386 = load i32, ptr %9, align 4, !tbaa !9
  %387 = mul nsw i32 %385, %386
  %388 = sext i32 %387 to i64
  %389 = load i32, ptr %26, align 4, !tbaa !9
  %390 = load i32, ptr %11, align 4, !tbaa !9
  %391 = mul nsw i32 %389, %390
  %392 = sext i32 %391 to i64
  %393 = load ptr, ptr %4, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.gpt2_model, ptr %393, i32 0, i32 7
  %395 = load ptr, ptr %394, align 8, !tbaa !63
  %396 = call i64 @ggml_element_size(ptr noundef %395)
  %397 = mul i64 %392, %396
  %398 = load i32, ptr %9, align 4, !tbaa !9
  %399 = sext i32 %398 to i64
  %400 = mul i64 %397, %399
  %401 = call ptr @ggml_view_1d(ptr noundef %379, ptr noundef %382, i64 noundef %388, i64 noundef %400)
  %402 = load i32, ptr %9, align 4, !tbaa !9
  %403 = load i32, ptr %12, align 4, !tbaa !9
  %404 = sdiv i32 %402, %403
  %405 = sext i32 %404 to i64
  %406 = load i32, ptr %12, align 4, !tbaa !9
  %407 = sext i32 %406 to i64
  %408 = load i32, ptr %5, align 4, !tbaa !9
  %409 = load i32, ptr %7, align 4, !tbaa !9
  %410 = add nsw i32 %408, %409
  %411 = sext i32 %410 to i64
  %412 = call ptr @ggml_reshape_3d(ptr noundef %378, ptr noundef %401, i64 noundef %405, i64 noundef %407, i64 noundef %411)
  %413 = call ptr @ggml_permute(ptr noundef %377, ptr noundef %412, i32 noundef 0, i32 noundef 2, i32 noundef 1, i32 noundef 3)
  store ptr %413, ptr %34, align 8, !tbaa !5
  %414 = load ptr, ptr %34, align 8, !tbaa !5
  %415 = load i32, ptr %26, align 4, !tbaa !9
  %416 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %414, ptr noundef @.str.56, i32 noundef %415)
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #1
  %417 = load ptr, ptr %17, align 8, !tbaa !5
  %418 = load ptr, ptr %34, align 8, !tbaa !5
  %419 = load ptr, ptr %33, align 8, !tbaa !5
  %420 = call ptr @ggml_mul_mat(ptr noundef %417, ptr noundef %418, ptr noundef %419)
  store ptr %420, ptr %35, align 8, !tbaa !5
  %421 = load ptr, ptr %35, align 8, !tbaa !5
  %422 = load i32, ptr %26, align 4, !tbaa !9
  %423 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %421, ptr noundef @.str.57, i32 noundef %422)
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #1
  %424 = load ptr, ptr %17, align 8, !tbaa !5
  %425 = load ptr, ptr %35, align 8, !tbaa !5
  %426 = load float, ptr %24, align 4, !tbaa !54
  %427 = call ptr @ggml_scale(ptr noundef %424, ptr noundef %425, float noundef %426)
  store ptr %427, ptr %36, align 8, !tbaa !5
  %428 = load ptr, ptr %36, align 8, !tbaa !5
  %429 = load i32, ptr %26, align 4, !tbaa !9
  %430 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %428, ptr noundef @.str.58, i32 noundef %429)
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #1
  %431 = load ptr, ptr %17, align 8, !tbaa !5
  %432 = load ptr, ptr %36, align 8, !tbaa !5
  %433 = load i32, ptr %5, align 4, !tbaa !9
  %434 = call ptr @ggml_diag_mask_inf(ptr noundef %431, ptr noundef %432, i32 noundef %433)
  store ptr %434, ptr %37, align 8, !tbaa !5
  %435 = load ptr, ptr %37, align 8, !tbaa !5
  %436 = load i32, ptr %26, align 4, !tbaa !9
  %437 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %435, ptr noundef @.str.59, i32 noundef %436)
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #1
  %438 = load ptr, ptr %17, align 8, !tbaa !5
  %439 = load ptr, ptr %37, align 8, !tbaa !5
  %440 = call ptr @ggml_soft_max(ptr noundef %438, ptr noundef %439)
  store ptr %440, ptr %38, align 8, !tbaa !5
  %441 = load ptr, ptr %38, align 8, !tbaa !5
  %442 = load i32, ptr %26, align 4, !tbaa !9
  %443 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %441, ptr noundef @.str.60, i32 noundef %442)
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #1
  %444 = load ptr, ptr %17, align 8, !tbaa !5
  %445 = load ptr, ptr %17, align 8, !tbaa !5
  %446 = load ptr, ptr %17, align 8, !tbaa !5
  %447 = load ptr, ptr %17, align 8, !tbaa !5
  %448 = load ptr, ptr %4, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.gpt2_model, ptr %448, i32 0, i32 8
  %450 = load ptr, ptr %449, align 8, !tbaa !64
  %451 = load i32, ptr %5, align 4, !tbaa !9
  %452 = load i32, ptr %7, align 4, !tbaa !9
  %453 = add nsw i32 %451, %452
  %454 = load i32, ptr %9, align 4, !tbaa !9
  %455 = mul nsw i32 %453, %454
  %456 = sext i32 %455 to i64
  %457 = load i32, ptr %26, align 4, !tbaa !9
  %458 = load i32, ptr %11, align 4, !tbaa !9
  %459 = mul nsw i32 %457, %458
  %460 = sext i32 %459 to i64
  %461 = load ptr, ptr %4, align 8, !tbaa !5
  %462 = getelementptr inbounds %struct.gpt2_model, ptr %461, i32 0, i32 8
  %463 = load ptr, ptr %462, align 8, !tbaa !64
  %464 = call i64 @ggml_element_size(ptr noundef %463)
  %465 = mul i64 %460, %464
  %466 = load i32, ptr %9, align 4, !tbaa !9
  %467 = sext i32 %466 to i64
  %468 = mul i64 %465, %467
  %469 = call ptr @ggml_view_1d(ptr noundef %447, ptr noundef %450, i64 noundef %456, i64 noundef %468)
  %470 = load i32, ptr %9, align 4, !tbaa !9
  %471 = load i32, ptr %12, align 4, !tbaa !9
  %472 = sdiv i32 %470, %471
  %473 = sext i32 %472 to i64
  %474 = load i32, ptr %12, align 4, !tbaa !9
  %475 = sext i32 %474 to i64
  %476 = load i32, ptr %5, align 4, !tbaa !9
  %477 = load i32, ptr %7, align 4, !tbaa !9
  %478 = add nsw i32 %476, %477
  %479 = sext i32 %478 to i64
  %480 = call ptr @ggml_reshape_3d(ptr noundef %446, ptr noundef %469, i64 noundef %473, i64 noundef %475, i64 noundef %479)
  %481 = call ptr @ggml_permute(ptr noundef %445, ptr noundef %480, i32 noundef 1, i32 noundef 2, i32 noundef 0, i32 noundef 3)
  %482 = load i32, ptr %5, align 4, !tbaa !9
  %483 = load i32, ptr %7, align 4, !tbaa !9
  %484 = add nsw i32 %482, %483
  %485 = sext i32 %484 to i64
  %486 = load i32, ptr %9, align 4, !tbaa !9
  %487 = load i32, ptr %12, align 4, !tbaa !9
  %488 = sdiv i32 %486, %487
  %489 = sext i32 %488 to i64
  %490 = load i32, ptr %12, align 4, !tbaa !9
  %491 = sext i32 %490 to i64
  %492 = call ptr @ggml_cont_3d(ptr noundef %444, ptr noundef %481, i64 noundef %485, i64 noundef %489, i64 noundef %491)
  store ptr %492, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #1
  %493 = load ptr, ptr %17, align 8, !tbaa !5
  %494 = load ptr, ptr %39, align 8, !tbaa !5
  %495 = load ptr, ptr %38, align 8, !tbaa !5
  %496 = call ptr @ggml_mul_mat(ptr noundef %493, ptr noundef %494, ptr noundef %495)
  store ptr %496, ptr %40, align 8, !tbaa !5
  %497 = load ptr, ptr %40, align 8, !tbaa !5
  %498 = load i32, ptr %26, align 4, !tbaa !9
  %499 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %497, ptr noundef @.str.61, i32 noundef %498)
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #1
  %500 = load ptr, ptr %17, align 8, !tbaa !5
  %501 = load ptr, ptr %40, align 8, !tbaa !5
  %502 = call ptr @ggml_permute(ptr noundef %500, ptr noundef %501, i32 noundef 0, i32 noundef 2, i32 noundef 1, i32 noundef 3)
  store ptr %502, ptr %41, align 8, !tbaa !5
  %503 = load ptr, ptr %41, align 8, !tbaa !5
  %504 = load i32, ptr %26, align 4, !tbaa !9
  %505 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %503, ptr noundef @.str.62, i32 noundef %504)
  %506 = load ptr, ptr %17, align 8, !tbaa !5
  %507 = load ptr, ptr %41, align 8, !tbaa !5
  %508 = load i32, ptr %9, align 4, !tbaa !9
  %509 = sext i32 %508 to i64
  %510 = load i32, ptr %7, align 4, !tbaa !9
  %511 = sext i32 %510 to i64
  %512 = call ptr @ggml_cont_2d(ptr noundef %506, ptr noundef %507, i64 noundef %509, i64 noundef %511)
  store ptr %512, ptr %27, align 8, !tbaa !5
  %513 = load ptr, ptr %27, align 8, !tbaa !5
  %514 = load i32, ptr %26, align 4, !tbaa !9
  %515 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %513, ptr noundef @.str.63, i32 noundef %514)
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #1
  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 %30) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #1
  %516 = load ptr, ptr %17, align 8, !tbaa !5
  %517 = load ptr, ptr %4, align 8, !tbaa !5
  %518 = getelementptr inbounds %struct.gpt2_model, ptr %517, i32 0, i32 6
  %519 = load i32, ptr %26, align 4, !tbaa !9
  %520 = sext i32 %519 to i64
  %521 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %518, i64 noundef %520) #1
  %522 = getelementptr inbounds %struct.gpt2_layer, ptr %521, i32 0, i32 6
  %523 = load ptr, ptr %522, align 8, !tbaa !65
  %524 = load ptr, ptr %27, align 8, !tbaa !5
  %525 = call ptr @ggml_mul_mat(ptr noundef %516, ptr noundef %523, ptr noundef %524)
  store ptr %525, ptr %27, align 8, !tbaa !5
  %526 = load ptr, ptr %27, align 8, !tbaa !5
  %527 = load i32, ptr %26, align 4, !tbaa !9
  %528 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %526, ptr noundef @.str.64, i32 noundef %527)
  %529 = load ptr, ptr %17, align 8, !tbaa !5
  %530 = load ptr, ptr %27, align 8, !tbaa !5
  %531 = load ptr, ptr %4, align 8, !tbaa !5
  %532 = getelementptr inbounds %struct.gpt2_model, ptr %531, i32 0, i32 6
  %533 = load i32, ptr %26, align 4, !tbaa !9
  %534 = sext i32 %533 to i64
  %535 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %532, i64 noundef %534) #1
  %536 = getelementptr inbounds %struct.gpt2_layer, ptr %535, i32 0, i32 7
  %537 = load ptr, ptr %536, align 8, !tbaa !66
  %538 = call ptr @ggml_add(ptr noundef %529, ptr noundef %530, ptr noundef %537)
  store ptr %538, ptr %27, align 8, !tbaa !5
  %539 = load ptr, ptr %27, align 8, !tbaa !5
  %540 = load i32, ptr %26, align 4, !tbaa !9
  %541 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %539, ptr noundef @.str.65, i32 noundef %540)
  %542 = load ptr, ptr %17, align 8, !tbaa !5
  %543 = load ptr, ptr %27, align 8, !tbaa !5
  %544 = load ptr, ptr %25, align 8, !tbaa !5
  %545 = call ptr @ggml_add(ptr noundef %542, ptr noundef %543, ptr noundef %544)
  store ptr %545, ptr %27, align 8, !tbaa !5
  %546 = load ptr, ptr %27, align 8, !tbaa !5
  %547 = load i32, ptr %26, align 4, !tbaa !9
  %548 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %546, ptr noundef @.str.66, i32 noundef %547)
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #1
  %549 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %549, ptr %42, align 8, !tbaa !5
  %550 = load ptr, ptr %17, align 8, !tbaa !5
  %551 = load ptr, ptr %42, align 8, !tbaa !5
  %552 = load ptr, ptr %8, align 8, !tbaa !5
  %553 = getelementptr inbounds %struct.gpt2_hparams, ptr %552, i32 0, i32 6
  %554 = load float, ptr %553, align 4, !tbaa !57
  %555 = call ptr @ggml_norm(ptr noundef %550, ptr noundef %551, float noundef %554)
  store ptr %555, ptr %27, align 8, !tbaa !5
  %556 = load ptr, ptr %27, align 8, !tbaa !5
  %557 = load i32, ptr %26, align 4, !tbaa !9
  %558 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %556, ptr noundef @.str.67, i32 noundef %557)
  %559 = load ptr, ptr %17, align 8, !tbaa !5
  %560 = load ptr, ptr %17, align 8, !tbaa !5
  %561 = load ptr, ptr %27, align 8, !tbaa !5
  %562 = load ptr, ptr %4, align 8, !tbaa !5
  %563 = getelementptr inbounds %struct.gpt2_model, ptr %562, i32 0, i32 6
  %564 = load i32, ptr %26, align 4, !tbaa !9
  %565 = sext i32 %564 to i64
  %566 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %563, i64 noundef %565) #1
  %567 = getelementptr inbounds %struct.gpt2_layer, ptr %566, i32 0, i32 2
  %568 = load ptr, ptr %567, align 8, !tbaa !67
  %569 = call ptr @ggml_mul(ptr noundef %560, ptr noundef %561, ptr noundef %568)
  %570 = load ptr, ptr %4, align 8, !tbaa !5
  %571 = getelementptr inbounds %struct.gpt2_model, ptr %570, i32 0, i32 6
  %572 = load i32, ptr %26, align 4, !tbaa !9
  %573 = sext i32 %572 to i64
  %574 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %571, i64 noundef %573) #1
  %575 = getelementptr inbounds %struct.gpt2_layer, ptr %574, i32 0, i32 3
  %576 = load ptr, ptr %575, align 8, !tbaa !68
  %577 = call ptr @ggml_add(ptr noundef %559, ptr noundef %569, ptr noundef %576)
  store ptr %577, ptr %27, align 8, !tbaa !5
  %578 = load ptr, ptr %27, align 8, !tbaa !5
  %579 = load i32, ptr %26, align 4, !tbaa !9
  %580 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %578, ptr noundef @.str.68, i32 noundef %579)
  %581 = load ptr, ptr %27, align 8, !tbaa !5
  %582 = getelementptr inbounds %struct.ggml_tensor, ptr %581, i32 0, i32 7
  %583 = getelementptr inbounds [10 x ptr], ptr %582, i64 0, i64 0
  %584 = load ptr, ptr %583, align 8, !tbaa !5
  %585 = load i32, ptr %26, align 4, !tbaa !9
  %586 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %584, ptr noundef @.str.69, i32 noundef %585)
  %587 = load ptr, ptr %17, align 8, !tbaa !5
  %588 = load ptr, ptr %4, align 8, !tbaa !5
  %589 = getelementptr inbounds %struct.gpt2_model, ptr %588, i32 0, i32 6
  %590 = load i32, ptr %26, align 4, !tbaa !9
  %591 = sext i32 %590 to i64
  %592 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %589, i64 noundef %591) #1
  %593 = getelementptr inbounds %struct.gpt2_layer, ptr %592, i32 0, i32 8
  %594 = load ptr, ptr %593, align 8, !tbaa !69
  %595 = load ptr, ptr %27, align 8, !tbaa !5
  %596 = call ptr @ggml_mul_mat(ptr noundef %587, ptr noundef %594, ptr noundef %595)
  store ptr %596, ptr %27, align 8, !tbaa !5
  %597 = load ptr, ptr %27, align 8, !tbaa !5
  %598 = load i32, ptr %26, align 4, !tbaa !9
  %599 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %597, ptr noundef @.str.70, i32 noundef %598)
  %600 = load ptr, ptr %17, align 8, !tbaa !5
  %601 = load ptr, ptr %27, align 8, !tbaa !5
  %602 = load ptr, ptr %4, align 8, !tbaa !5
  %603 = getelementptr inbounds %struct.gpt2_model, ptr %602, i32 0, i32 6
  %604 = load i32, ptr %26, align 4, !tbaa !9
  %605 = sext i32 %604 to i64
  %606 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %603, i64 noundef %605) #1
  %607 = getelementptr inbounds %struct.gpt2_layer, ptr %606, i32 0, i32 9
  %608 = load ptr, ptr %607, align 8, !tbaa !70
  %609 = call ptr @ggml_add(ptr noundef %600, ptr noundef %601, ptr noundef %608)
  store ptr %609, ptr %27, align 8, !tbaa !5
  %610 = load ptr, ptr %27, align 8, !tbaa !5
  %611 = load i32, ptr %26, align 4, !tbaa !9
  %612 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %610, ptr noundef @.str.71, i32 noundef %611)
  %613 = load ptr, ptr %17, align 8, !tbaa !5
  %614 = load ptr, ptr %27, align 8, !tbaa !5
  %615 = call ptr @ggml_gelu(ptr noundef %613, ptr noundef %614)
  store ptr %615, ptr %27, align 8, !tbaa !5
  %616 = load ptr, ptr %27, align 8, !tbaa !5
  %617 = load i32, ptr %26, align 4, !tbaa !9
  %618 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %616, ptr noundef @.str.72, i32 noundef %617)
  %619 = load ptr, ptr %17, align 8, !tbaa !5
  %620 = load ptr, ptr %4, align 8, !tbaa !5
  %621 = getelementptr inbounds %struct.gpt2_model, ptr %620, i32 0, i32 6
  %622 = load i32, ptr %26, align 4, !tbaa !9
  %623 = sext i32 %622 to i64
  %624 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %621, i64 noundef %623) #1
  %625 = getelementptr inbounds %struct.gpt2_layer, ptr %624, i32 0, i32 10
  %626 = load ptr, ptr %625, align 8, !tbaa !71
  %627 = load ptr, ptr %27, align 8, !tbaa !5
  %628 = call ptr @ggml_mul_mat(ptr noundef %619, ptr noundef %626, ptr noundef %627)
  store ptr %628, ptr %27, align 8, !tbaa !5
  %629 = load ptr, ptr %27, align 8, !tbaa !5
  %630 = load i32, ptr %26, align 4, !tbaa !9
  %631 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %629, ptr noundef @.str.73, i32 noundef %630)
  %632 = load ptr, ptr %17, align 8, !tbaa !5
  %633 = load ptr, ptr %27, align 8, !tbaa !5
  %634 = load ptr, ptr %4, align 8, !tbaa !5
  %635 = getelementptr inbounds %struct.gpt2_model, ptr %634, i32 0, i32 6
  %636 = load i32, ptr %26, align 4, !tbaa !9
  %637 = sext i32 %636 to i64
  %638 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %635, i64 noundef %637) #1
  %639 = getelementptr inbounds %struct.gpt2_layer, ptr %638, i32 0, i32 11
  %640 = load ptr, ptr %639, align 8, !tbaa !72
  %641 = call ptr @ggml_add(ptr noundef %632, ptr noundef %633, ptr noundef %640)
  store ptr %641, ptr %27, align 8, !tbaa !5
  %642 = load ptr, ptr %27, align 8, !tbaa !5
  %643 = load i32, ptr %26, align 4, !tbaa !9
  %644 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %642, ptr noundef @.str.74, i32 noundef %643)
  %645 = load ptr, ptr %17, align 8, !tbaa !5
  %646 = load ptr, ptr %27, align 8, !tbaa !5
  %647 = load ptr, ptr %42, align 8, !tbaa !5
  %648 = call ptr @ggml_add(ptr noundef %645, ptr noundef %646, ptr noundef %647)
  store ptr %648, ptr %25, align 8, !tbaa !5
  %649 = load ptr, ptr %25, align 8, !tbaa !5
  %650 = load i32, ptr %26, align 4, !tbaa !9
  %651 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %649, ptr noundef @.str.75, i32 noundef %650)
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #1
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #1
  br label %652

652:                                              ; preds = %360
  %653 = load i32, ptr %26, align 4, !tbaa !9
  %654 = add nsw i32 %653, 1
  store i32 %654, ptr %26, align 4, !tbaa !9
  br label %181, !llvm.loop !73

655:                                              ; preds = %185
  %656 = load ptr, ptr %17, align 8, !tbaa !5
  %657 = load ptr, ptr %25, align 8, !tbaa !5
  %658 = load ptr, ptr %8, align 8, !tbaa !5
  %659 = getelementptr inbounds %struct.gpt2_hparams, ptr %658, i32 0, i32 6
  %660 = load float, ptr %659, align 4, !tbaa !57
  %661 = call ptr @ggml_norm(ptr noundef %656, ptr noundef %657, float noundef %660)
  store ptr %661, ptr %25, align 8, !tbaa !5
  %662 = load ptr, ptr %25, align 8, !tbaa !5
  %663 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %662, ptr noundef @.str.76)
  %664 = load ptr, ptr %17, align 8, !tbaa !5
  %665 = load ptr, ptr %17, align 8, !tbaa !5
  %666 = load ptr, ptr %25, align 8, !tbaa !5
  %667 = load ptr, ptr %4, align 8, !tbaa !5
  %668 = getelementptr inbounds %struct.gpt2_model, ptr %667, i32 0, i32 1
  %669 = load ptr, ptr %668, align 8, !tbaa !74
  %670 = call ptr @ggml_mul(ptr noundef %665, ptr noundef %666, ptr noundef %669)
  %671 = load ptr, ptr %4, align 8, !tbaa !5
  %672 = getelementptr inbounds %struct.gpt2_model, ptr %671, i32 0, i32 2
  %673 = load ptr, ptr %672, align 8, !tbaa !75
  %674 = call ptr @ggml_add(ptr noundef %664, ptr noundef %670, ptr noundef %673)
  store ptr %674, ptr %25, align 8, !tbaa !5
  %675 = load ptr, ptr %25, align 8, !tbaa !5
  %676 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %675, ptr noundef @.str.77)
  %677 = load ptr, ptr %25, align 8, !tbaa !5
  %678 = getelementptr inbounds %struct.ggml_tensor, ptr %677, i32 0, i32 7
  %679 = getelementptr inbounds [10 x ptr], ptr %678, i64 0, i64 0
  %680 = load ptr, ptr %679, align 8, !tbaa !5
  %681 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %680, ptr noundef @.str.78)
  %682 = load ptr, ptr %17, align 8, !tbaa !5
  %683 = load ptr, ptr %4, align 8, !tbaa !5
  %684 = getelementptr inbounds %struct.gpt2_model, ptr %683, i32 0, i32 5
  %685 = load ptr, ptr %684, align 8, !tbaa !76
  %686 = load ptr, ptr %25, align 8, !tbaa !5
  %687 = call ptr @ggml_mul_mat(ptr noundef %682, ptr noundef %685, ptr noundef %686)
  store ptr %687, ptr %25, align 8, !tbaa !5
  %688 = load ptr, ptr %25, align 8, !tbaa !5
  %689 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %688, ptr noundef @.str.79)
  %690 = load ptr, ptr %19, align 8, !tbaa !5
  %691 = load ptr, ptr %25, align 8, !tbaa !5
  call void @ggml_build_forward_expand(ptr noundef %690, ptr noundef %691)
  %692 = load ptr, ptr %17, align 8, !tbaa !5
  call void @ggml_free(ptr noundef %692)
  %693 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #1
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #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 %693

694:                                              ; preds = %124, %120
  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 %695

695:                                              ; preds = %694
  %696 = load ptr, ptr %13, align 8
  %697 = load i32, ptr %14, align 4
  %698 = insertvalue { ptr, i32 } poison, ptr %696, 0
  %699 = insertvalue { ptr, i32 } %698, i32 %697, 1
  resume { ptr, i32 } %699
}

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

; 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 ptr @ggml_view_1d(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #2

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

declare i64 @ggml_element_size(ptr noundef) #2

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

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_format_name(ptr noundef, ptr 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 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

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_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 232}
!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, !33, i64 120, !37, i64 144, !6, i64 168, !6, i64 176, !41, i64 184, !6, i64 232, !6, i64 240}
!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 = !{!"_ZTSSt6vectorIP12ggml_backendSaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIP12ggml_backendSaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIP12ggml_backendSaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIP12ggml_backendSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTSSt6vectorIP19ggml_backend_bufferSaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIP19ggml_backend_bufferSaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIP19ggml_backend_bufferSaIS1_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIP19ggml_backend_bufferSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!41 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS5_ESaISt4pairIKS5_S7_EEE", !42, i64 0}
!42 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11ggml_tensorESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !43, i64 0}
!43 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11ggml_tensorESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !44, i64 0, !46, i64 8}
!44 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !45, i64 0}
!45 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!46 = !{!"_ZTSSt15_Rb_tree_header", !47, i64 0, !19, i64 32}
!47 = !{!"_ZTSSt18_Rb_tree_node_base", !48, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!48 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!49 = !{!28, !6, i64 240}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}
!52 = !{!28, !10, i64 8}
!53 = !{!28, !10, i64 12}
!54 = !{!13, !13, i64 0}
!55 = !{!28, !6, i64 48}
!56 = !{!28, !6, i64 56}
!57 = !{!12, !13, i64 24}
!58 = !{!59, !6, i64 0}
!59 = !{!"_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}
!60 = !{!59, !6, i64 8}
!61 = !{!59, !6, i64 32}
!62 = !{!59, !6, i64 40}
!63 = !{!28, !6, i64 96}
!64 = !{!28, !6, i64 104}
!65 = !{!59, !6, i64 48}
!66 = !{!59, !6, i64 56}
!67 = !{!59, !6, i64 16}
!68 = !{!59, !6, i64 24}
!69 = !{!59, !6, i64 64}
!70 = !{!59, !6, i64 72}
!71 = !{!59, !6, i64 80}
!72 = !{!59, !6, i64 88}
!73 = distinct !{!73, !51}
!74 = !{!28, !6, i64 32}
!75 = !{!28, !6, i64 40}
!76 = !{!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.58" = type { %"struct.std::_Vector_base.59" }
%"struct.std::_Vector_base.59" = 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.60" = type { i8 }

@__dso_handle = external hidden global i8
@_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size = external hidden local_unnamed_addr global i64, align 8
@_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size = external hidden global i64, align 8
@_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf = external hidden global %"class.std::vector.58", align 8
@_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf = external hidden global i64, align 8
@.str.44 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [12 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_set_name(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @ggml_backend_tensor_set(ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEE(ptr noundef nonnull align 8 dereferenceable(248) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::allocator.60", align 1
  %5 = alloca %struct.ggml_init_params, align 8
  %6 = alloca i32, align 4
  %7 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %8 = trunc i64 %7 to i32
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = load i32, ptr %11, align 8, !tbaa !11
  %13 = getelementptr inbounds i8, ptr %0, i64 4
  %14 = load i32, ptr %13, align 4, !tbaa !12
  %15 = getelementptr inbounds i8, ptr %0, i64 12
  %16 = load i32, ptr %15, align 4, !tbaa !13
  %17 = load atomic i8, ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size acquire, align 8
  %18 = icmp eq i8 %17, 0
  br i1 %18, label %19, label %28, !prof !14

19:                                               ; preds = %3
  %20 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size) #6
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %28, label %21

21:                                               ; preds = %19
  %22 = invoke i64 @ggml_tensor_overhead()
          to label %23 unwind label %92

23:                                               ; preds = %21
  %24 = invoke i64 @ggml_graph_overhead_custom(i64 noundef 4096, i1 noundef zeroext false)
          to label %25 unwind label %92

25:                                               ; preds = %23
  %26 = shl i64 %22, 12
  %27 = add i64 %24, %26
  store i64 %27, ptr @_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size, align 8, !tbaa !15
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size) #6
  br label %28

28:                                               ; preds = %25, %19, %3
  %29 = load atomic i8, ptr @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf acquire, align 8
  %30 = icmp eq i8 %29, 0
  br i1 %30, label %31, label %37, !prof !14

31:                                               ; preds = %28
  %32 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf) #6
  %.not293 = icmp eq i32 %32, 0
  br i1 %.not293, label %37, label %33

33:                                               ; preds = %31
  %34 = load i64, ptr @_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_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_modeliRKSt6vectorIiSaIiEEE3buf, i64 noundef %34, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %35 unwind label %94

35:                                               ; preds = %33
  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
  %36 = call i32 @__cxa_atexit(ptr nonnull @_ZNSt6vectorIhSaIhEED2Ev, ptr nonnull @_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf, ptr nonnull @__dso_handle) #6
  call void @__cxa_guard_release(ptr nonnull @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf) #6
  br label %37

37:                                               ; preds = %35, %31, %28
  %38 = load i64, ptr @_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size, align 8, !tbaa !15
  %39 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE3buf) #6
  store i64 %38, ptr %5, align 8, !tbaa !15
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %39, 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
  %40 = call ptr @ggml_init(ptr noundef nonnull byval(%struct.ggml_init_params) align 8 %5)
  %41 = call ptr @ggml_new_graph_custom(ptr noundef %40, i64 noundef 4096, i1 noundef zeroext false)
  %42 = getelementptr inbounds i8, ptr %0, i64 232
  %43 = load ptr, ptr %42, align 8, !tbaa !21
  %sext = shl i64 %7, 32
  %44 = ashr exact i64 %sext, 32
  %45 = call ptr @ggml_view_1d(ptr noundef %40, ptr noundef %43, i64 noundef %44, i64 noundef 0)
  %46 = load ptr, ptr %42, align 8, !tbaa !21
  %47 = call noundef ptr @_ZNKSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %48 = call i64 @ggml_element_size(ptr noundef %45)
  %49 = mul i64 %48, %44
  call void @ggml_backend_tensor_set(ptr noundef %46, ptr noundef %47, i64 noundef 0, i64 noundef %49)
  %50 = getelementptr inbounds i8, ptr %0, i64 240
  %51 = load ptr, ptr %50, align 8, !tbaa !43
  %52 = call ptr @ggml_view_1d(ptr noundef %40, ptr noundef %51, i64 noundef %44, i64 noundef 0)
  %53 = icmp sgt i32 %8, 0
  br i1 %53, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %37
  %wide.trip.count = and i64 %7, 2147483647
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %37
  %54 = load i32, ptr %9, align 8, !tbaa !44
  %55 = sitofp i32 %54 to float
  %56 = load i32, ptr %15, align 4, !tbaa !45
  %57 = sitofp i32 %56 to float
  %58 = fdiv float %55, %57
  %59 = call float @sqrtf(float noundef %58) #6
  %60 = fdiv float 1.000000e+00, %59
  %61 = getelementptr inbounds i8, ptr %0, i64 48
  %62 = load ptr, ptr %61, align 8, !tbaa !46
  %63 = call ptr @ggml_get_rows(ptr noundef %40, ptr noundef %62, ptr noundef %45)
  %64 = getelementptr inbounds i8, ptr %0, i64 56
  %65 = load ptr, ptr %64, align 8, !tbaa !47
  %66 = call ptr @ggml_get_rows(ptr noundef %40, ptr noundef %65, ptr noundef %52)
  %67 = call ptr @ggml_add(ptr noundef %40, ptr noundef %63, ptr noundef %66)
  %68 = call ptr @ggml_set_name(ptr noundef %67, ptr noundef nonnull @.str.44)
  %69 = getelementptr inbounds i8, ptr %67, i64 152
  %70 = load ptr, ptr %69, align 8, !tbaa !17
  %71 = call ptr @ggml_set_name(ptr noundef %70, ptr noundef nonnull @.str.45)
  %72 = getelementptr inbounds i8, ptr %67, i64 160
  %73 = load ptr, ptr %72, align 8, !tbaa !17
  %74 = call ptr @ggml_set_name(ptr noundef %73, ptr noundef nonnull @.str.46)
  %75 = icmp sgt i32 %12, 0
  br i1 %75, label %.lr.ph299, label %._crit_edge300

.lr.ph299:                                        ; preds = %._crit_edge
  %76 = getelementptr inbounds i8, ptr %0, i64 24
  %77 = getelementptr inbounds i8, ptr %0, i64 72
  %78 = sext i32 %10 to i64
  %79 = shl nsw i64 %78, 2
  %80 = shl nsw i64 %78, 3
  %81 = getelementptr inbounds i8, ptr %0, i64 96
  %82 = mul nsw i32 %10, %8
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds i8, ptr %0, i64 104
  %85 = sext i32 %16 to i64
  %86 = add nsw i32 %8, %1
  %87 = mul nsw i32 %86, %10
  %88 = sext i32 %87 to i64
  %89 = sext i32 %86 to i64
  %90 = sext i32 %14 to i64
  %91 = sext i32 %1 to i64
  %wide.trip.count305 = zext nneg i32 %12 to i64
  br label %118

92:                                               ; preds = %23, %21
  %93 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_guard_abort(ptr nonnull @_ZGVZ10gpt2_graphRK10gpt2_modeliRKSt6vectorIiSaIiEEE8buf_size) #6
  br label %254

94:                                               ; preds = %33
  %95 = 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_modeliRKSt6vectorIiSaIiEEE3buf) #6
  br label %254

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %96 = trunc i64 %indvars.iv to i32
  %97 = add i32 %96, %1
  store i32 %97, ptr %6, align 4, !tbaa !48
  %98 = load ptr, ptr %50, align 8, !tbaa !43
  %99 = shl nuw nsw i64 %indvars.iv, 2
  call void @ggml_backend_tensor_set(ptr noundef %98, ptr noundef nonnull %6, i64 noundef %99, i64 noundef 4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  %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 %.lr.ph, !llvm.loop !49

._crit_edge300:                                   ; preds = %168, %._crit_edge
  %.0290.lcssa = phi ptr [ %67, %._crit_edge ], [ %252, %168 ]
  %100 = getelementptr inbounds i8, ptr %0, i64 24
  %101 = load float, ptr %100, align 8, !tbaa !51
  %102 = call ptr @ggml_norm(ptr noundef %40, ptr noundef %.0290.lcssa, float noundef %101)
  %103 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %102, ptr noundef nonnull @.str.76)
  %104 = getelementptr inbounds i8, ptr %0, i64 32
  %105 = load ptr, ptr %104, align 8, !tbaa !52
  %106 = call ptr @ggml_mul(ptr noundef %40, ptr noundef %102, ptr noundef %105)
  %107 = getelementptr inbounds i8, ptr %0, i64 40
  %108 = load ptr, ptr %107, align 8, !tbaa !53
  %109 = call ptr @ggml_add(ptr noundef %40, ptr noundef %106, ptr noundef %108)
  %110 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %109, ptr noundef nonnull @.str.77)
  %111 = getelementptr inbounds i8, ptr %109, i64 152
  %112 = load ptr, ptr %111, align 8, !tbaa !17
  %113 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %112, ptr noundef nonnull @.str.78)
  %114 = getelementptr inbounds i8, ptr %0, i64 64
  %115 = load ptr, ptr %114, align 8, !tbaa !54
  %116 = call ptr @ggml_mul_mat(ptr noundef %40, ptr noundef %115, ptr noundef %109)
  %117 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %116, ptr noundef nonnull @.str.79)
  call void @ggml_build_forward_expand(ptr noundef %41, ptr noundef %116)
  call void @ggml_free(ptr noundef %40)
  ret ptr %41

118:                                              ; preds = %.lr.ph299, %168
  %indvars.iv302 = phi i64 [ 0, %.lr.ph299 ], [ %indvars.iv.next303, %168 ]
  %.0290297 = phi ptr [ %67, %.lr.ph299 ], [ %252, %168 ]
  %119 = load float, ptr %76, align 8, !tbaa !51
  %120 = call ptr @ggml_norm(ptr noundef %40, ptr noundef %.0290297, float noundef %119)
  %121 = trunc nuw nsw i64 %indvars.iv302 to i32
  %122 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %120, ptr noundef nonnull @.str.47, i32 noundef %121)
  %123 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv302) #6
  %124 = load ptr, ptr %123, align 8, !tbaa !55
  %125 = call ptr @ggml_mul(ptr noundef %40, ptr noundef %120, ptr noundef %124)
  %126 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv302) #6
  %127 = getelementptr inbounds i8, ptr %126, i64 8
  %128 = load ptr, ptr %127, align 8, !tbaa !57
  %129 = call ptr @ggml_add(ptr noundef %40, ptr noundef %125, ptr noundef %128)
  %130 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %129, ptr noundef nonnull @.str.48, i32 noundef %121)
  %131 = getelementptr inbounds i8, ptr %129, i64 152
  %132 = load ptr, ptr %131, align 8, !tbaa !17
  %133 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %132, ptr noundef nonnull @.str.49, i32 noundef %121)
  %134 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv302) #6
  %135 = getelementptr inbounds i8, ptr %134, i64 32
  %136 = load ptr, ptr %135, align 8, !tbaa !58
  %137 = call ptr @ggml_mul_mat(ptr noundef %40, ptr noundef %136, ptr noundef %129)
  %138 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %137, ptr noundef nonnull @.str.50, i32 noundef %121)
  %139 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv302) #6
  %140 = getelementptr inbounds i8, ptr %139, i64 40
  %141 = load ptr, ptr %140, align 8, !tbaa !59
  %142 = call ptr @ggml_add(ptr noundef %40, ptr noundef %137, ptr noundef %141)
  %143 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %142, ptr noundef nonnull @.str.51, i32 noundef %121)
  %144 = getelementptr inbounds i8, ptr %142, i64 56
  %145 = load i64, ptr %144, align 8, !tbaa !15
  %146 = call ptr @ggml_view_2d(ptr noundef %40, ptr noundef %142, i64 noundef %78, i64 noundef %44, i64 noundef %145, i64 noundef 0)
  %147 = load i64, ptr %144, align 8, !tbaa !15
  %148 = call ptr @ggml_view_2d(ptr noundef %40, ptr noundef %142, i64 noundef %78, i64 noundef %44, i64 noundef %147, i64 noundef %79)
  %149 = load i64, ptr %144, align 8, !tbaa !15
  %150 = call ptr @ggml_view_2d(ptr noundef %40, ptr noundef %142, i64 noundef %78, i64 noundef %44, i64 noundef %149, i64 noundef %80)
  %151 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %146, ptr noundef nonnull @.str.52, i32 noundef %121)
  %152 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %148, ptr noundef nonnull @.str.53, i32 noundef %121)
  %153 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %150, ptr noundef nonnull @.str.54, i32 noundef %121)
  br i1 %53, label %154, label %._crit_edge307

._crit_edge307:                                   ; preds = %118
  %.pre = mul nsw i64 %indvars.iv302, %90
  br label %168

154:                                              ; preds = %118
  %155 = load ptr, ptr %81, align 8, !tbaa !60
  %156 = call i64 @ggml_element_size(ptr noundef %155)
  %157 = mul nsw i64 %indvars.iv302, %90
  %158 = add nsw i64 %157, %91
  %159 = mul nsw i64 %158, %78
  %160 = mul i64 %159, %156
  %161 = call ptr @ggml_view_1d(ptr noundef %40, ptr noundef %155, i64 noundef %83, i64 noundef %160)
  %162 = load ptr, ptr %84, align 8, !tbaa !61
  %163 = call i64 @ggml_element_size(ptr noundef %162)
  %164 = mul i64 %159, %163
  %165 = call ptr @ggml_view_1d(ptr noundef %40, ptr noundef %162, i64 noundef %83, i64 noundef %164)
  %166 = call ptr @ggml_cpy(ptr noundef %40, ptr noundef %148, ptr noundef %161)
  call void @ggml_build_forward_expand(ptr noundef %41, ptr noundef %166)
  %167 = call ptr @ggml_cpy(ptr noundef %40, ptr noundef %150, ptr noundef %165)
  call void @ggml_build_forward_expand(ptr noundef %41, ptr noundef %167)
  br label %168

168:                                              ; preds = %._crit_edge307, %154
  %.pre-phi = phi i64 [ %.pre, %._crit_edge307 ], [ %157, %154 ]
  %169 = sdiv i32 %10, %16
  %170 = sext i32 %169 to i64
  %171 = call ptr @ggml_cont_3d(ptr noundef %40, ptr noundef %146, i64 noundef %170, i64 noundef %85, i64 noundef %44)
  %172 = call ptr @ggml_permute(ptr noundef %40, ptr noundef %171, i32 noundef 0, i32 noundef 2, i32 noundef 1, i32 noundef 3)
  %173 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %172, ptr noundef nonnull @.str.55, i32 noundef %121)
  %174 = load ptr, ptr %81, align 8, !tbaa !60
  %175 = call i64 @ggml_element_size(ptr noundef %174)
  %176 = mul nsw i64 %.pre-phi, %78
  %177 = mul i64 %176, %175
  %178 = call ptr @ggml_view_1d(ptr noundef %40, ptr noundef %174, i64 noundef %88, i64 noundef %177)
  %179 = call ptr @ggml_reshape_3d(ptr noundef %40, ptr noundef %178, i64 noundef %170, i64 noundef %85, i64 noundef %89)
  %180 = call ptr @ggml_permute(ptr noundef %40, ptr noundef %179, i32 noundef 0, i32 noundef 2, i32 noundef 1, i32 noundef 3)
  %181 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %180, ptr noundef nonnull @.str.56, i32 noundef %121)
  %182 = call ptr @ggml_mul_mat(ptr noundef %40, ptr noundef %180, ptr noundef %172)
  %183 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %182, ptr noundef nonnull @.str.57, i32 noundef %121)
  %184 = call ptr @ggml_scale(ptr noundef %40, ptr noundef %182, float noundef %60)
  %185 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %184, ptr noundef nonnull @.str.58, i32 noundef %121)
  %186 = call ptr @ggml_diag_mask_inf(ptr noundef %40, ptr noundef %184, i32 noundef %1)
  %187 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %186, ptr noundef nonnull @.str.59, i32 noundef %121)
  %188 = call ptr @ggml_soft_max(ptr noundef %40, ptr noundef %186)
  %189 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %188, ptr noundef nonnull @.str.60, i32 noundef %121)
  %190 = load ptr, ptr %84, align 8, !tbaa !61
  %191 = call i64 @ggml_element_size(ptr noundef %190)
  %192 = mul i64 %176, %191
  %193 = call ptr @ggml_view_1d(ptr noundef %40, ptr noundef %190, i64 noundef %88, i64 noundef %192)
  %194 = call ptr @ggml_reshape_3d(ptr noundef %40, ptr noundef %193, i64 noundef %170, i64 noundef %85, i64 noundef %89)
  %195 = call ptr @ggml_permute(ptr noundef %40, ptr noundef %194, i32 noundef 1, i32 noundef 2, i32 noundef 0, i32 noundef 3)
  %196 = call ptr @ggml_cont_3d(ptr noundef %40, ptr noundef %195, i64 noundef %89, i64 noundef %170, i64 noundef %85)
  %197 = call ptr @ggml_mul_mat(ptr noundef %40, ptr noundef %196, ptr noundef %188)
  %198 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %197, ptr noundef nonnull @.str.61, i32 noundef %121)
  %199 = call ptr @ggml_permute(ptr noundef %40, ptr noundef %197, i32 noundef 0, i32 noundef 2, i32 noundef 1, i32 noundef 3)
  %200 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %199, ptr noundef nonnull @.str.62, i32 noundef %121)
  %201 = call ptr @ggml_cont_2d(ptr noundef %40, ptr noundef %199, i64 noundef %78, i64 noundef %44)
  %202 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %201, ptr noundef nonnull @.str.63, i32 noundef %121)
  %203 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv302) #6
  %204 = getelementptr inbounds i8, ptr %203, i64 48
  %205 = load ptr, ptr %204, align 8, !tbaa !62
  %206 = call ptr @ggml_mul_mat(ptr noundef %40, ptr noundef %205, ptr noundef %201)
  %207 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %206, ptr noundef nonnull @.str.64, i32 noundef %121)
  %208 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv302) #6
  %209 = getelementptr inbounds i8, ptr %208, i64 56
  %210 = load ptr, ptr %209, align 8, !tbaa !63
  %211 = call ptr @ggml_add(ptr noundef %40, ptr noundef %206, ptr noundef %210)
  %212 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %211, ptr noundef nonnull @.str.65, i32 noundef %121)
  %213 = call ptr @ggml_add(ptr noundef %40, ptr noundef %211, ptr noundef %.0290297)
  %214 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %213, ptr noundef nonnull @.str.66, i32 noundef %121)
  %215 = load float, ptr %76, align 8, !tbaa !51
  %216 = call ptr @ggml_norm(ptr noundef %40, ptr noundef %213, float noundef %215)
  %217 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %216, ptr noundef nonnull @.str.67, i32 noundef %121)
  %218 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv302) #6
  %219 = getelementptr inbounds i8, ptr %218, i64 16
  %220 = load ptr, ptr %219, align 8, !tbaa !64
  %221 = call ptr @ggml_mul(ptr noundef %40, ptr noundef %216, ptr noundef %220)
  %222 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv302) #6
  %223 = getelementptr inbounds i8, ptr %222, i64 24
  %224 = load ptr, ptr %223, align 8, !tbaa !65
  %225 = call ptr @ggml_add(ptr noundef %40, ptr noundef %221, ptr noundef %224)
  %226 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %225, ptr noundef nonnull @.str.68, i32 noundef %121)
  %227 = getelementptr inbounds i8, ptr %225, i64 152
  %228 = load ptr, ptr %227, align 8, !tbaa !17
  %229 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %228, ptr noundef nonnull @.str.69, i32 noundef %121)
  %230 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv302) #6
  %231 = getelementptr inbounds i8, ptr %230, i64 64
  %232 = load ptr, ptr %231, align 8, !tbaa !66
  %233 = call ptr @ggml_mul_mat(ptr noundef %40, ptr noundef %232, ptr noundef %225)
  %234 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %233, ptr noundef nonnull @.str.70, i32 noundef %121)
  %235 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv302) #6
  %236 = getelementptr inbounds i8, ptr %235, i64 72
  %237 = load ptr, ptr %236, align 8, !tbaa !67
  %238 = call ptr @ggml_add(ptr noundef %40, ptr noundef %233, ptr noundef %237)
  %239 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %238, ptr noundef nonnull @.str.71, i32 noundef %121)
  %240 = call ptr @ggml_gelu(ptr noundef %40, ptr noundef %238)
  %241 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %240, ptr noundef nonnull @.str.72, i32 noundef %121)
  %242 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv302) #6
  %243 = getelementptr inbounds i8, ptr %242, i64 80
  %244 = load ptr, ptr %243, align 8, !tbaa !68
  %245 = call ptr @ggml_mul_mat(ptr noundef %40, ptr noundef %244, ptr noundef %240)
  %246 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %245, ptr noundef nonnull @.str.73, i32 noundef %121)
  %247 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNKSt6vectorI10gpt2_layerSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %indvars.iv302) #6
  %248 = getelementptr inbounds i8, ptr %247, i64 88
  %249 = load ptr, ptr %248, align 8, !tbaa !69
  %250 = call ptr @ggml_add(ptr noundef %40, ptr noundef %245, ptr noundef %249)
  %251 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %250, ptr noundef nonnull @.str.74, i32 noundef %121)
  %252 = call ptr @ggml_add(ptr noundef %40, ptr noundef %250, ptr noundef %213)
  %253 = call ptr (ptr, ptr, ...) @ggml_format_name(ptr noundef %252, ptr noundef nonnull @.str.75, i32 noundef %121)
  %indvars.iv.next303 = add nuw nsw i64 %indvars.iv302, 1
  %exitcond306.not = icmp eq i64 %indvars.iv.next303, %wide.trip.count305
  br i1 %exitcond306.not, label %._crit_edge300, label %118, !llvm.loop !70

254:                                              ; preds = %94, %92
  %.pn = phi { ptr, i32 } [ %95, %94 ], [ %93, %92 ]
  resume { ptr, i32 } %.pn
}

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

; 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 ptr @ggml_view_1d(ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

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

declare i64 @ggml_element_size(ptr 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_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_format_name(ptr noundef, ptr 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 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

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_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 232}
!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, !27, i64 120, !31, i64 144, !18, i64 168, !18, i64 176, !35, i64 184, !18, i64 232, !18, i64 240}
!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 = !{!"_ZTSSt6vectorIP12ggml_backendSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIP12ggml_backendSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP12ggml_backendSaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP12ggml_backendSaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!31 = !{!"_ZTSSt6vectorIP19ggml_backend_bufferSaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIP19ggml_backend_bufferSaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIP19ggml_backend_bufferSaIS1_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIP19ggml_backend_bufferSaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!35 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEP11ggml_tensorSt4lessIS5_ESaISt4pairIKS5_S7_EEE", !36, i64 0}
!36 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11ggml_tensorESt10_Select1stISA_ESt4lessIS5_ESaISA_EE", !37, i64 0}
!37 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_P11ggml_tensorESt10_Select1stISA_ESt4lessIS5_ESaISA_EE13_Rb_tree_implISE_Lb1EEE", !38, i64 0, !40, i64 8}
!38 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !39, i64 0}
!39 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!40 = !{!"_ZTSSt15_Rb_tree_header", !41, i64 0, !16, i64 32}
!41 = !{!"_ZTSSt18_Rb_tree_node_base", !42, i64 0, !18, i64 8, !18, i64 16, !18, i64 24}
!42 = !{!"_ZTSSt14_Rb_tree_color", !8, i64 0}
!43 = !{!22, !18, i64 240}
!44 = !{!22, !7, i64 8}
!45 = !{!22, !7, i64 12}
!46 = !{!22, !18, i64 48}
!47 = !{!22, !18, i64 56}
!48 = !{!7, !7, i64 0}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}
!51 = !{!6, !10, i64 24}
!52 = !{!22, !18, i64 32}
!53 = !{!22, !18, i64 40}
!54 = !{!22, !18, i64 64}
!55 = !{!56, !18, i64 0}
!56 = !{!"_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}
!57 = !{!56, !18, i64 8}
!58 = !{!56, !18, i64 32}
!59 = !{!56, !18, i64 40}
!60 = !{!22, !18, i64 96}
!61 = !{!22, !18, i64 104}
!62 = !{!56, !18, i64 48}
!63 = !{!56, !18, i64 56}
!64 = !{!56, !18, i64 16}
!65 = !{!56, !18, i64 24}
!66 = !{!56, !18, i64 64}
!67 = !{!56, !18, i64 72}
!68 = !{!56, !18, i64 80}
!69 = !{!56, !18, i64 88}
!70 = distinct !{!70, !50}


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