; LLVM IR from ggml-org/ggml :: tests/test-conv2d.ll (Z10load_modelR10test_modelb)

; 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%struct.ggml_init_params = type { i64, ptr, i8 }
%struct.ggml_tallocr = type { ptr, ptr, i64, i64 }
%struct.test_model = type { ptr, ptr, ptr, ptr, ptr }
%struct.ggml_tensor = type { i32, ptr, [4 x i64], [4 x i64], i32, [16 x i32], i32, [10 x ptr], ptr, i64, ptr, [64 x i8], ptr, [8 x i8] }

@.str = external hidden unnamed_addr constant [36 x i8], align 1
@__func__._Z10load_modelR10test_modelb = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10load_modelR10test_modelb(ptr noundef nonnull align 8 dereferenceable(40) %0, i1 noundef zeroext %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector.0", align 8
  %18 = alloca %"class.std::allocator.2", align 1
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  %24 = alloca %struct.ggml_init_params, align 8
  %25 = alloca %struct.ggml_init_params, align 8
  %26 = alloca %struct.ggml_tallocr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %27 = zext i1 %1 to i8
  store i8 %27, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 3, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 3, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 10, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 10, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 8, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 6, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 1, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %28 = load i32, ptr %5, align 4, !tbaa !11
  %29 = load i32, ptr %6, align 4, !tbaa !11
  %30 = mul nsw i32 %28, %29
  %31 = load i32, ptr %7, align 4, !tbaa !11
  %32 = mul nsw i32 %30, %31
  %33 = load i32, ptr %8, align 4, !tbaa !11
  %34 = mul nsw i32 %32, %33
  %35 = sext i32 %34 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %35, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %36 unwind label %48

36:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %37

37:                                               ; preds = %56, %36
  %38 = load i32, ptr %16, align 4, !tbaa !11
  %39 = load i32, ptr %5, align 4, !tbaa !11
  %40 = load i32, ptr %6, align 4, !tbaa !11
  %41 = mul nsw i32 %39, %40
  %42 = load i32, ptr %7, align 4, !tbaa !11
  %43 = mul nsw i32 %41, %42
  %44 = load i32, ptr %8, align 4, !tbaa !11
  %45 = mul nsw i32 %43, %44
  %46 = icmp slt i32 %38, %45
  br i1 %46, label %52, label %47

47:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %59

48:                                               ; preds = %2
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %14, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %15, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %307

52:                                               ; preds = %37
  %53 = load i32, ptr %16, align 4, !tbaa !11
  %54 = sext i32 %53 to i64
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %54) #5
  store float 2.500000e+00, ptr %55, align 4, !tbaa !13
  br label %56

56:                                               ; preds = %52
  %57 = load i32, ptr %16, align 4, !tbaa !11
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %16, align 4, !tbaa !11
  br label %37, !llvm.loop !15

59:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #5
  %60 = load i32, ptr %5, align 4, !tbaa !11
  %61 = load i32, ptr %6, align 4, !tbaa !11
  %62 = mul nsw i32 %60, %61
  %63 = load i32, ptr %7, align 4, !tbaa !11
  %64 = mul nsw i32 %62, %63
  %65 = load i32, ptr %8, align 4, !tbaa !11
  %66 = mul nsw i32 %64, %65
  %67 = sext i32 %66 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  call void @_ZNSaItEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  invoke void @_ZNSt6vectorItSaItEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %67, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %68 unwind label %100

68:                                               ; preds = %59
  call void @_ZNSt15__new_allocatorItED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  %69 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  %70 = call noundef ptr @_ZNSt6vectorItSaItEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  %71 = load i32, ptr %5, align 4, !tbaa !11
  %72 = load i32, ptr %6, align 4, !tbaa !11
  %73 = mul nsw i32 %71, %72
  %74 = load i32, ptr %7, align 4, !tbaa !11
  %75 = mul nsw i32 %73, %74
  %76 = load i32, ptr %8, align 4, !tbaa !11
  %77 = mul nsw i32 %75, %76
  %78 = sext i32 %77 to i64
  invoke void @ggml_fp32_to_fp16_row(ptr noundef %69, ptr noundef %70, i64 noundef %78)
          to label %79 unwind label %104

79:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #5
  %80 = load i32, ptr %9, align 4, !tbaa !11
  %81 = load i32, ptr %10, align 4, !tbaa !11
  %82 = mul nsw i32 %80, %81
  %83 = load i32, ptr %7, align 4, !tbaa !11
  %84 = mul nsw i32 %82, %83
  %85 = load i32, ptr %11, align 4, !tbaa !11
  %86 = mul nsw i32 %84, %85
  %87 = sext i32 %86 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %87, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %88 unwind label %108

88:                                               ; preds = %79
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !11
  br label %89

89:                                               ; preds = %116, %88
  %90 = load i32, ptr %21, align 4, !tbaa !11
  %91 = load i32, ptr %9, align 4, !tbaa !11
  %92 = load i32, ptr %10, align 4, !tbaa !11
  %93 = mul nsw i32 %91, %92
  %94 = load i32, ptr %7, align 4, !tbaa !11
  %95 = mul nsw i32 %93, %94
  %96 = load i32, ptr %11, align 4, !tbaa !11
  %97 = mul nsw i32 %95, %96
  %98 = icmp slt i32 %90, %97
  br i1 %98, label %112, label %99

99:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %119

100:                                              ; preds = %59
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %14, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %15, align 4
  call void @_ZNSt15__new_allocatorItED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  br label %306

104:                                              ; preds = %68
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %14, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %15, align 4
  br label %305

108:                                              ; preds = %79
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %14, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %15, align 4
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  br label %304

112:                                              ; preds = %89
  %113 = load i32, ptr %21, align 4, !tbaa !11
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %114) #5
  store float 1.500000e+00, ptr %115, align 4, !tbaa !13
  br label %116

116:                                              ; preds = %112
  %117 = load i32, ptr %21, align 4, !tbaa !11
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %21, align 4, !tbaa !11
  br label %89, !llvm.loop !17

119:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  store i64 0, ptr %22, align 8, !tbaa !18
  %120 = load i32, ptr %5, align 4, !tbaa !11
  %121 = load i32, ptr %6, align 4, !tbaa !11
  %122 = mul nsw i32 %120, %121
  %123 = load i32, ptr %7, align 4, !tbaa !11
  %124 = mul nsw i32 %122, %123
  %125 = load i32, ptr %8, align 4, !tbaa !11
  %126 = mul nsw i32 %124, %125
  %127 = sext i32 %126 to i64
  %128 = invoke i64 @ggml_type_size(i32 noundef 1)
          to label %129 unwind label %175

129:                                              ; preds = %119
  %130 = mul i64 %127, %128
  %131 = load i64, ptr %22, align 8, !tbaa !18
  %132 = add i64 %131, %130
  store i64 %132, ptr %22, align 8, !tbaa !18
  %133 = load i32, ptr %9, align 4, !tbaa !11
  %134 = load i32, ptr %10, align 4, !tbaa !11
  %135 = mul nsw i32 %133, %134
  %136 = load i32, ptr %7, align 4, !tbaa !11
  %137 = mul nsw i32 %135, %136
  %138 = load i32, ptr %11, align 4, !tbaa !11
  %139 = mul nsw i32 %137, %138
  %140 = sext i32 %139 to i64
  %141 = invoke i64 @ggml_type_size(i32 noundef 0)
          to label %142 unwind label %175

142:                                              ; preds = %129
  %143 = mul i64 %140, %141
  %144 = load i64, ptr %22, align 8, !tbaa !18
  %145 = add i64 %144, %143
  store i64 %145, ptr %22, align 8, !tbaa !18
  %146 = load i64, ptr %22, align 8, !tbaa !18
  %147 = add i64 %146, 1024
  store i64 %147, ptr %22, align 8, !tbaa !18
  %148 = invoke i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @__func__._Z10load_modelR10test_modelb, i32 noundef 336)
          to label %149 unwind label %175

149:                                              ; preds = %142
  %150 = load i64, ptr %22, align 8, !tbaa !18
  %151 = uitofp i64 %150 to float
  %152 = fdiv float %151, 1.024000e+03
  %153 = fdiv float %152, 1.024000e+03
  %154 = fpext float %153 to double
  %155 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @__func__._Z10load_modelR10test_modelb, double noundef %154)
          to label %156 unwind label %175

156:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 2, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #5
  %157 = getelementptr inbounds %struct.ggml_init_params, ptr %24, i32 0, i32 0
  %158 = invoke i64 @ggml_tensor_overhead()
          to label %159 unwind label %179

159:                                              ; preds = %156
  %160 = load i32, ptr %23, align 4, !tbaa !11
  %161 = sext i32 %160 to i64
  %162 = mul i64 %158, %161
  store i64 %162, ptr %157, align 8, !tbaa !20
  %163 = getelementptr inbounds %struct.ggml_init_params, ptr %24, i32 0, i32 1
  store ptr null, ptr %163, align 8, !tbaa !22
  %164 = getelementptr inbounds %struct.ggml_init_params, ptr %24, i32 0, i32 2
  store i8 1, ptr %164, align 8, !tbaa !23
  invoke void @ggml_log_set(ptr noundef @_ZL25ggml_log_callback_default14ggml_log_levelPKcPv, ptr noundef null)
          to label %165 unwind label %179

165:                                              ; preds = %159
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.test_model, ptr %166, i32 0, i32 2
  %168 = load ptr, ptr %167, align 8, !tbaa !24
  %169 = icmp ne ptr %168, null
  br i1 %169, label %183, label %170

170:                                              ; preds = %165
  %171 = invoke ptr @ggml_backend_cpu_init()
          to label %172 unwind label %179

172:                                              ; preds = %170
  %173 = load ptr, ptr %3, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.test_model, ptr %173, i32 0, i32 2
  store ptr %171, ptr %174, align 8, !tbaa !24
  br label %183

175:                                              ; preds = %149, %142, %129, %119
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %14, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %15, align 4
  br label %303

179:                                              ; preds = %208, %193, %189, %183, %170, %159, %156
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %14, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %15, align 4
  br label %302

183:                                              ; preds = %172, %165
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.test_model, ptr %184, i32 0, i32 2
  %186 = load ptr, ptr %185, align 8, !tbaa !24
  %187 = load i64, ptr %22, align 8, !tbaa !18
  %188 = invoke ptr @ggml_backend_alloc_buffer(ptr noundef %186, i64 noundef %187)
          to label %189 unwind label %179

189:                                              ; preds = %183
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.test_model, ptr %190, i32 0, i32 3
  store ptr %188, ptr %191, align 8, !tbaa !26
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %24, i64 24, i1 false), !tbaa.struct !27
  %192 = invoke ptr @ggml_init(ptr noundef byval(%struct.ggml_init_params) align 8 %25)
          to label %193 unwind label %179

193:                                              ; preds = %189
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.test_model, ptr %194, i32 0, i32 4
  store ptr %192, ptr %195, align 8, !tbaa !28
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.test_model, ptr %196, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !28
  %199 = load i32, ptr %5, align 4, !tbaa !11
  %200 = sext i32 %199 to i64
  %201 = load i32, ptr %6, align 4, !tbaa !11
  %202 = sext i32 %201 to i64
  %203 = load i32, ptr %7, align 4, !tbaa !11
  %204 = sext i32 %203 to i64
  %205 = load i32, ptr %8, align 4, !tbaa !11
  %206 = sext i32 %205 to i64
  %207 = invoke ptr @ggml_new_tensor_4d(ptr noundef %198, i32 noundef 1, i64 noundef %200, i64 noundef %202, i64 noundef %204, i64 noundef %206)
          to label %208 unwind label %179

208:                                              ; preds = %193
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.test_model, ptr %209, i32 0, i32 0
  store ptr %207, ptr %210, align 8, !tbaa !29
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.test_model, ptr %211, i32 0, i32 4
  %213 = load ptr, ptr %212, align 8, !tbaa !28
  %214 = load i32, ptr %9, align 4, !tbaa !11
  %215 = sext i32 %214 to i64
  %216 = load i32, ptr %10, align 4, !tbaa !11
  %217 = sext i32 %216 to i64
  %218 = load i32, ptr %7, align 4, !tbaa !11
  %219 = sext i32 %218 to i64
  %220 = load i32, ptr %11, align 4, !tbaa !11
  %221 = sext i32 %220 to i64
  %222 = invoke ptr @ggml_new_tensor_4d(ptr noundef %213, i32 noundef 0, i64 noundef %215, i64 noundef %217, i64 noundef %219, i64 noundef %221)
          to label %223 unwind label %179

223:                                              ; preds = %208
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.test_model, ptr %224, i32 0, i32 1
  store ptr %222, ptr %225, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #5
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.test_model, ptr %226, i32 0, i32 3
  %228 = load ptr, ptr %227, align 8, !tbaa !26
  invoke void @ggml_tallocr_new(ptr dead_on_unwind writable sret(%struct.ggml_tallocr) align 8 %26, ptr noundef %228)
          to label %229 unwind label %252

229:                                              ; preds = %223
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.test_model, ptr %230, i32 0, i32 0
  %232 = load ptr, ptr %231, align 8, !tbaa !29
  %233 = invoke i32 @ggml_tallocr_alloc(ptr noundef %26, ptr noundef %232)
          to label %234 unwind label %252

234:                                              ; preds = %229
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.test_model, ptr %235, i32 0, i32 2
  %237 = load ptr, ptr %236, align 8, !tbaa !24
  %238 = invoke zeroext i1 @ggml_backend_is_cpu(ptr noundef %237)
          to label %239 unwind label %252

239:                                              ; preds = %234
  br i1 %238, label %240, label %256

240:                                              ; preds = %239
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.test_model, ptr %241, i32 0, i32 0
  %243 = load ptr, ptr %242, align 8, !tbaa !29
  %244 = getelementptr inbounds %struct.ggml_tensor, ptr %243, i32 0, i32 10
  %245 = load ptr, ptr %244, align 8, !tbaa !31
  %246 = call noundef ptr @_ZNSt6vectorItSaItEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.test_model, ptr %247, i32 0, i32 0
  %249 = load ptr, ptr %248, align 8, !tbaa !29
  %250 = invoke i64 @ggml_nbytes(ptr noundef %249)
          to label %251 unwind label %252

251:                                              ; preds = %240
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %245, ptr align 2 %246, i64 %250, i1 false)
  br label %267

252:                                              ; preds = %299, %290, %278, %272, %267, %265, %256, %240, %234, %229, %223
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %14, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #5
  br label %302

256:                                              ; preds = %239
  %257 = load ptr, ptr %3, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.test_model, ptr %257, i32 0, i32 0
  %259 = load ptr, ptr %258, align 8, !tbaa !29
  %260 = call noundef ptr @_ZNSt6vectorItSaItEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  %261 = load ptr, ptr %3, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.test_model, ptr %261, i32 0, i32 0
  %263 = load ptr, ptr %262, align 8, !tbaa !29
  %264 = invoke i64 @ggml_nbytes(ptr noundef %263)
          to label %265 unwind label %252

265:                                              ; preds = %256
  invoke void @ggml_backend_tensor_set(ptr noundef %259, ptr noundef %260, i64 noundef 0, i64 noundef %264)
          to label %266 unwind label %252

266:                                              ; preds = %265
  br label %267

267:                                              ; preds = %266, %251
  %268 = load ptr, ptr %3, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.test_model, ptr %268, i32 0, i32 1
  %270 = load ptr, ptr %269, align 8, !tbaa !30
  %271 = invoke i32 @ggml_tallocr_alloc(ptr noundef %26, ptr noundef %270)
          to label %272 unwind label %252

272:                                              ; preds = %267
  %273 = load ptr, ptr %3, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.test_model, ptr %273, i32 0, i32 2
  %275 = load ptr, ptr %274, align 8, !tbaa !24
  %276 = invoke zeroext i1 @ggml_backend_is_cpu(ptr noundef %275)
          to label %277 unwind label %252

277:                                              ; preds = %272
  br i1 %276, label %278, label %290

278:                                              ; preds = %277
  %279 = load ptr, ptr %3, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.test_model, ptr %279, i32 0, i32 1
  %281 = load ptr, ptr %280, align 8, !tbaa !30
  %282 = getelementptr inbounds %struct.ggml_tensor, ptr %281, i32 0, i32 10
  %283 = load ptr, ptr %282, align 8, !tbaa !31
  %284 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %285 = load ptr, ptr %3, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.test_model, ptr %285, i32 0, i32 1
  %287 = load ptr, ptr %286, align 8, !tbaa !30
  %288 = invoke i64 @ggml_nbytes(ptr noundef %287)
          to label %289 unwind label %252

289:                                              ; preds = %278
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %283, ptr align 4 %284, i64 %288, i1 false)
  br label %301

290:                                              ; preds = %277
  %291 = load ptr, ptr %3, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.test_model, ptr %291, i32 0, i32 1
  %293 = load ptr, ptr %292, align 8, !tbaa !30
  %294 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  %295 = load ptr, ptr %3, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.test_model, ptr %295, i32 0, i32 1
  %297 = load ptr, ptr %296, align 8, !tbaa !30
  %298 = invoke i64 @ggml_nbytes(ptr noundef %297)
          to label %299 unwind label %252

299:                                              ; preds = %290
  invoke void @ggml_backend_tensor_set(ptr noundef %293, ptr noundef %294, i64 noundef 0, i64 noundef %298)
          to label %300 unwind label %252

300:                                              ; preds = %299
  br label %301

301:                                              ; preds = %300, %289
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void

302:                                              ; preds = %252, %179
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %303

303:                                              ; preds = %302, %175
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #5
  br label %304

304:                                              ; preds = %303, %108
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  br label %305

305:                                              ; preds = %304, %104
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  br label %306

306:                                              ; preds = %305, %100
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #5
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %307

307:                                              ; preds = %306, %48
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %308

308:                                              ; preds = %307
  %309 = load ptr, ptr %14, align 8
  %310 = load i32, ptr %15, align 4
  %311 = insertvalue { ptr, i32 } poison, ptr %309, 0
  %312 = insertvalue { ptr, i32 } %311, i32 %310, 1
  resume { ptr, i32 } %312
}

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

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

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

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) #1

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

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

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

declare void @ggml_fp32_to_fp16_row(ptr noundef, ptr noundef, i64 noundef) #3

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

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

declare i64 @ggml_type_size(i32 noundef) #3

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

declare i64 @ggml_tensor_overhead() #3

declare void @ggml_log_set(ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25ggml_log_callback_default14ggml_log_levelPKcPv(i32 noundef, ptr noundef, ptr noundef) #0

declare ptr @ggml_backend_cpu_init() #3

declare ptr @ggml_backend_alloc_buffer(ptr noundef, i64 noundef) #3

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

; 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) #4

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

declare void @ggml_tallocr_new(ptr dead_on_unwind writable sret(%struct.ggml_tallocr) align 8, ptr noundef) #3

declare i32 @ggml_tallocr_alloc(ptr noundef, ptr noundef) #3

declare zeroext i1 @ggml_backend_is_cpu(ptr noundef) #3

declare i64 @ggml_nbytes(ptr noundef) #3

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!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, !10, i64 16}
!22 = !{!21, !6, i64 8}
!23 = !{!21, !10, i64 16}
!24 = !{!25, !6, i64 16}
!25 = !{!"_ZTS10test_model", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!26 = !{!25, !6, i64 24}
!27 = !{i64 0, i64 8, !18, i64 8, i64 8, !5, i64 16, i64 1, !9}
!28 = !{!25, !6, i64 32}
!29 = !{!25, !6, i64 0}
!30 = !{!25, !6, i64 8}
!31 = !{!32, !6, i64 248}
!32 = !{!"_ZTS11ggml_tensor", !33, i64 0, !6, i64 8, !7, i64 16, !7, i64 48, !34, i64 80, !7, i64 84, !12, i64 148, !7, i64 152, !6, i64 232, !19, i64 240, !6, i64 248, !7, i64 256, !6, i64 320, !7, i64 328}
!33 = !{!"_ZTS9ggml_type", !7, i64 0}
!34 = !{!"_ZTS7ggml_op", !7, i64 0}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.2" = type { i8 }
%struct.ggml_init_params = type { i64, ptr, i8 }
%struct.ggml_tallocr = type { ptr, ptr, i64, i64 }

@.str = external hidden unnamed_addr constant [36 x i8], align 1
@__func__._Z10load_modelR10test_modelb = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10load_modelR10test_modelb(ptr nocapture noundef nonnull align 8 dereferenceable(40) %0, i1 noundef zeroext %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca %"class.std::allocator.2", align 1
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %struct.ggml_init_params, align 8
  %10 = alloca %struct.ggml_tallocr, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 900, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %11 unwind label %13

11:                                               ; preds = %2
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %15

12:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaItEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt6vectorItSaItEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 900, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %17 unwind label %24

13:                                               ; preds = %2
  %14 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %120

15:                                               ; preds = %11, %15
  %indvars.iv = phi i64 [ 0, %11 ], [ %indvars.iv.next, %15 ]
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  store float 2.500000e+00, ptr %16, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 900
  br i1 %exitcond.not, label %12, label %15, !llvm.loop !9

17:                                               ; preds = %12
  call void @_ZNSt15__new_allocatorItED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  %18 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %19 = call noundef ptr @_ZNSt6vectorItSaItEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  invoke void @ggml_fp32_to_fp16_row(ptr noundef %18, ptr noundef %19, i64 noundef 900)
          to label %20 unwind label %26

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIfEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt6vectorIfSaIfEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 480, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %21 unwind label %28

21:                                               ; preds = %20
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  br label %30

22:                                               ; preds = %30
  %23 = invoke i64 @ggml_type_size(i32 noundef 1)
          to label %32 unwind label %54

24:                                               ; preds = %12
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorItED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  br label %119

26:                                               ; preds = %17
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %118

28:                                               ; preds = %20
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIfED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  br label %117

30:                                               ; preds = %21, %30
  %indvars.iv92 = phi i64 [ 0, %21 ], [ %indvars.iv.next93, %30 ]
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv92) #6
  store float 1.500000e+00, ptr %31, align 4, !tbaa !5
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %exitcond95.not = icmp eq i64 %indvars.iv.next93, 480
  br i1 %exitcond95.not, label %22, label %30, !llvm.loop !11

32:                                               ; preds = %22
  %33 = invoke i64 @ggml_type_size(i32 noundef 0)
          to label %34 unwind label %54

34:                                               ; preds = %32
  %35 = mul i64 %23, 900
  %36 = mul i64 %33, 480
  %37 = add i64 %35, 1024
  %38 = add i64 %37, %36
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @__func__._Z10load_modelR10test_modelb, i32 noundef 336)
  %40 = uitofp i64 %38 to float
  %41 = fmul float %40, 0x3F50000000000000
  %42 = fmul float %41, 0x3F50000000000000
  %43 = fpext float %42 to double
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull @__func__._Z10load_modelR10test_modelb, double noundef %43)
  %45 = invoke i64 @ggml_tensor_overhead()
          to label %46 unwind label %56

46:                                               ; preds = %34
  %47 = shl i64 %45, 1
  invoke void @ggml_log_set(ptr noundef nonnull @_ZL25ggml_log_callback_default14ggml_log_levelPKcPv, ptr noundef null)
          to label %48 unwind label %56

48:                                               ; preds = %46
  %49 = getelementptr inbounds i8, ptr %0, i64 16
  %50 = load ptr, ptr %49, align 8, !tbaa !12
  %.not = icmp eq ptr %50, null
  br i1 %.not, label %51, label %58

51:                                               ; preds = %48
  %52 = invoke ptr @ggml_backend_cpu_init()
          to label %53 unwind label %56

53:                                               ; preds = %51
  store ptr %52, ptr %49, align 8, !tbaa !12
  br label %58

54:                                               ; preds = %32, %22
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %116

56:                                               ; preds = %67, %64, %61, %58, %51, %46, %34
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %116

58:                                               ; preds = %53, %48
  %59 = phi ptr [ %52, %53 ], [ %50, %48 ]
  %60 = invoke ptr @ggml_backend_alloc_buffer(ptr noundef %59, i64 noundef %38)
          to label %61 unwind label %56

61:                                               ; preds = %58
  %62 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %60, ptr %62, align 8, !tbaa !15
  store i64 %47, ptr %9, align 8, !tbaa !16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store ptr null, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !18
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 16
  store i8 1, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !19
  %63 = invoke ptr @ggml_init(ptr noundef nonnull byval(%struct.ggml_init_params) align 8 %9)
          to label %64 unwind label %56

64:                                               ; preds = %61
  %65 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %63, ptr %65, align 8, !tbaa !21
  %66 = invoke ptr @ggml_new_tensor_4d(ptr noundef %63, i32 noundef 1, i64 noundef 3, i64 noundef 3, i64 noundef 10, i64 noundef 10)
          to label %67 unwind label %56

67:                                               ; preds = %64
  store ptr %66, ptr %0, align 8, !tbaa !22
  %68 = load ptr, ptr %65, align 8, !tbaa !21
  %69 = invoke ptr @ggml_new_tensor_4d(ptr noundef %68, i32 noundef 0, i64 noundef 8, i64 noundef 6, i64 noundef 10, i64 noundef 1)
          to label %70 unwind label %56

70:                                               ; preds = %67
  %71 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %69, ptr %71, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  %72 = load ptr, ptr %62, align 8, !tbaa !15
  invoke void @ggml_tallocr_new(ptr dead_on_unwind nonnull writable sret(%struct.ggml_tallocr) align 8 %10, ptr noundef %72)
          to label %73 unwind label %88

73:                                               ; preds = %70
  %74 = load ptr, ptr %0, align 8, !tbaa !22
  %75 = invoke i32 @ggml_tallocr_alloc(ptr noundef nonnull %10, ptr noundef %74)
          to label %76 unwind label %88

76:                                               ; preds = %73
  %77 = load ptr, ptr %49, align 8, !tbaa !12
  %78 = invoke zeroext i1 @ggml_backend_is_cpu(ptr noundef %77)
          to label %79 unwind label %88

79:                                               ; preds = %76
  %80 = load ptr, ptr %0, align 8, !tbaa !22
  br i1 %78, label %81, label %90

81:                                               ; preds = %79
  %82 = getelementptr inbounds i8, ptr %80, i64 248
  %83 = load ptr, ptr %82, align 8, !tbaa !24
  %84 = call noundef ptr @_ZNSt6vectorItSaItEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %85 = load ptr, ptr %0, align 8, !tbaa !22
  %86 = invoke i64 @ggml_nbytes(ptr noundef %85)
          to label %87 unwind label %88

87:                                               ; preds = %81
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %83, ptr align 2 %84, i64 %86, i1 false)
  br label %95

88:                                               ; preds = %114, %110, %103, %98, %95, %94, %90, %81, %76, %73, %70
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  br label %116

90:                                               ; preds = %79
  %91 = call noundef ptr @_ZNSt6vectorItSaItEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %92 = load ptr, ptr %0, align 8, !tbaa !22
  %93 = invoke i64 @ggml_nbytes(ptr noundef %92)
          to label %94 unwind label %88

94:                                               ; preds = %90
  invoke void @ggml_backend_tensor_set(ptr noundef %80, ptr noundef %91, i64 noundef 0, i64 noundef %93)
          to label %95 unwind label %88

95:                                               ; preds = %94, %87
  %96 = load ptr, ptr %71, align 8, !tbaa !23
  %97 = invoke i32 @ggml_tallocr_alloc(ptr noundef nonnull %10, ptr noundef %96)
          to label %98 unwind label %88

98:                                               ; preds = %95
  %99 = load ptr, ptr %49, align 8, !tbaa !12
  %100 = invoke zeroext i1 @ggml_backend_is_cpu(ptr noundef %99)
          to label %101 unwind label %88

101:                                              ; preds = %98
  %102 = load ptr, ptr %71, align 8, !tbaa !23
  br i1 %100, label %103, label %110

103:                                              ; preds = %101
  %104 = getelementptr inbounds i8, ptr %102, i64 248
  %105 = load ptr, ptr %104, align 8, !tbaa !24
  %106 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %107 = load ptr, ptr %71, align 8, !tbaa !23
  %108 = invoke i64 @ggml_nbytes(ptr noundef %107)
          to label %109 unwind label %88

109:                                              ; preds = %103
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %105, ptr align 4 %106, i64 %108, i1 false)
  br label %115

110:                                              ; preds = %101
  %111 = call noundef ptr @_ZNSt6vectorIfSaIfEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %112 = load ptr, ptr %71, align 8, !tbaa !23
  %113 = invoke i64 @ggml_nbytes(ptr noundef %112)
          to label %114 unwind label %88

114:                                              ; preds = %110
  invoke void @ggml_backend_tensor_set(ptr noundef %102, ptr noundef %111, i64 noundef 0, i64 noundef %113)
          to label %115 unwind label %88

115:                                              ; preds = %114, %109
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret void

116:                                              ; preds = %56, %88, %54
  %.pn.pn = phi { ptr, i32 } [ %55, %54 ], [ %89, %88 ], [ %57, %56 ]
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %117

117:                                              ; preds = %116, %28
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %116 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %118

118:                                              ; preds = %117, %26
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %117 ], [ %27, %26 ]
  call void @_ZNSt6vectorItSaItEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br label %119

119:                                              ; preds = %118, %24
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %118 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %120

120:                                              ; preds = %119, %13
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %119 ], [ %14, %13 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

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

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

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

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) #1

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

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

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

declare void @ggml_fp32_to_fp16_row(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

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

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

declare i64 @ggml_type_size(i32 noundef) local_unnamed_addr #3

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

declare i64 @ggml_tensor_overhead() local_unnamed_addr #3

declare void @ggml_log_set(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25ggml_log_callback_default14ggml_log_levelPKcPv(i32 noundef, ptr noundef, ptr noundef) #0

declare ptr @ggml_backend_cpu_init() local_unnamed_addr #3

declare ptr @ggml_backend_alloc_buffer(ptr noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress 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) #5

declare ptr @ggml_new_tensor_4d(ptr noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare void @ggml_tallocr_new(ptr dead_on_unwind writable sret(%struct.ggml_tallocr) align 8, ptr noundef) local_unnamed_addr #3

declare i32 @ggml_tallocr_alloc(ptr noundef, ptr noundef) local_unnamed_addr #3

declare zeroext i1 @ggml_backend_is_cpu(ptr noundef) local_unnamed_addr #3

declare i64 @ggml_nbytes(ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !14, i64 16}
!13 = !{!"_ZTS10test_model", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!13, !14, i64 24}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!14, !14, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!13, !14, i64 32}
!22 = !{!13, !14, i64 0}
!23 = !{!13, !14, i64 8}
!24 = !{!25, !14, i64 248}
!25 = !{!"_ZTS11ggml_tensor", !26, i64 0, !14, i64 8, !7, i64 16, !7, i64 48, !27, i64 80, !7, i64 84, !28, i64 148, !7, i64 152, !14, i64 232, !17, i64 240, !14, i64 248, !7, i64 256, !14, i64 320, !7, i64 328}
!26 = !{!"_ZTS9ggml_type", !7, i64 0}
!27 = !{!"_ZTS7ggml_op", !7, i64 0}
!28 = !{!"int", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass