; LLVM IR from ggml-org/ggml :: tests/test-conv-transpose-1d.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"

%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, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ggml_tensor = type { i32, ptr, [4 x i64], [4 x i64], i32, [16 x i32], i32, [10 x ptr], ptr, i64, ptr, [64 x i8], ptr, [8 x i8] }

@__const._Z10load_modelR10test_modelb.adata_0 = external hidden unnamed_addr constant [3 x float], align 4
@__const._Z10load_modelR10test_modelb.bdata_0 = external hidden unnamed_addr constant [2 x float], align 4
@__const._Z10load_modelR10test_modelb.adata_1 = external hidden unnamed_addr constant [6 x float], align 16
@__const._Z10load_modelR10test_modelb.bdata_1 = external hidden unnamed_addr constant [6 x float], align 16
@__const._Z10load_modelR10test_modelb.adata_2 = external hidden unnamed_addr constant [12 x float], align 16
@__const._Z10load_modelR10test_modelb.bdata_2 = external hidden unnamed_addr constant [6 x float], align 16
@.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(104) %0, i1 noundef zeroext %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca [3 x float], align 4
  %6 = alloca [2 x float], align 4
  %7 = alloca [6 x float], align 16
  %8 = alloca [6 x float], align 16
  %9 = alloca [12 x float], align 16
  %10 = alloca [6 x float], align 16
  %11 = alloca [16384 x float], align 16
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.ggml_init_params, align 8
  %16 = alloca %struct.ggml_init_params, align 8
  %17 = alloca %struct.ggml_tallocr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %18 = zext i1 %1 to i8
  store i8 %18, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 @__const._Z10load_modelR10test_modelb.adata_0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const._Z10load_modelR10test_modelb.bdata_0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const._Z10load_modelR10test_modelb.adata_1, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const._Z10load_modelR10test_modelb.bdata_1, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const._Z10load_modelR10test_modelb.adata_2, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const._Z10load_modelR10test_modelb.bdata_2, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 65536, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %19

19:                                               ; preds = %30, %2
  %20 = load i32, ptr %12, align 4, !tbaa !11
  %21 = icmp slt i32 %20, 16384
  br i1 %21, label %23, label %22

22:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %33

23:                                               ; preds = %19
  %24 = load i32, ptr %12, align 4, !tbaa !11
  %25 = srem i32 %24, 1024
  %26 = sitofp i32 %25 to float
  %27 = load i32, ptr %12, align 4, !tbaa !11
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [16384 x float], ptr %11, i64 0, i64 %28
  store float %26, ptr %29, align 4, !tbaa !13
  br label %30

30:                                               ; preds = %23
  %31 = load i32, ptr %12, align 4, !tbaa !11
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %12, align 4, !tbaa !11
  br label %19, !llvm.loop !15

33:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store i64 0, ptr %13, align 8, !tbaa !17
  %34 = call i64 @ggml_type_size(i32 noundef 0)
  %35 = mul i64 3, %34
  %36 = load i64, ptr %13, align 8, !tbaa !17
  %37 = add i64 %36, %35
  store i64 %37, ptr %13, align 8, !tbaa !17
  %38 = call i64 @ggml_type_size(i32 noundef 0)
  %39 = mul i64 2, %38
  %40 = load i64, ptr %13, align 8, !tbaa !17
  %41 = add i64 %40, %39
  store i64 %41, ptr %13, align 8, !tbaa !17
  %42 = call i64 @ggml_type_size(i32 noundef 0)
  %43 = mul i64 6, %42
  %44 = load i64, ptr %13, align 8, !tbaa !17
  %45 = add i64 %44, %43
  store i64 %45, ptr %13, align 8, !tbaa !17
  %46 = call i64 @ggml_type_size(i32 noundef 0)
  %47 = mul i64 6, %46
  %48 = load i64, ptr %13, align 8, !tbaa !17
  %49 = add i64 %48, %47
  store i64 %49, ptr %13, align 8, !tbaa !17
  %50 = call i64 @ggml_type_size(i32 noundef 0)
  %51 = mul i64 12, %50
  %52 = load i64, ptr %13, align 8, !tbaa !17
  %53 = add i64 %52, %51
  store i64 %53, ptr %13, align 8, !tbaa !17
  %54 = call i64 @ggml_type_size(i32 noundef 0)
  %55 = mul i64 6, %54
  %56 = load i64, ptr %13, align 8, !tbaa !17
  %57 = add i64 %56, %55
  store i64 %57, ptr %13, align 8, !tbaa !17
  %58 = call i64 @ggml_type_size(i32 noundef 0)
  %59 = mul i64 12, %58
  %60 = load i64, ptr %13, align 8, !tbaa !17
  %61 = add i64 %60, %59
  store i64 %61, ptr %13, align 8, !tbaa !17
  %62 = call i64 @ggml_type_size(i32 noundef 0)
  %63 = mul i64 6, %62
  %64 = load i64, ptr %13, align 8, !tbaa !17
  %65 = add i64 %64, %63
  store i64 %65, ptr %13, align 8, !tbaa !17
  %66 = call i64 @ggml_type_size(i32 noundef 0)
  %67 = mul i64 16384, %66
  %68 = load i64, ptr %13, align 8, !tbaa !17
  %69 = add i64 %68, %67
  store i64 %69, ptr %13, align 8, !tbaa !17
  %70 = call i64 @ggml_type_size(i32 noundef 0)
  %71 = mul i64 6304, %70
  %72 = load i64, ptr %13, align 8, !tbaa !17
  %73 = add i64 %72, %71
  store i64 %73, ptr %13, align 8, !tbaa !17
  %74 = load i64, ptr %13, align 8, !tbaa !17
  %75 = add i64 %74, 1024
  store i64 %75, ptr %13, align 8, !tbaa !17
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @__func__._Z10load_modelR10test_modelb, i32 noundef 336)
  %77 = load i64, ptr %13, align 8, !tbaa !17
  %78 = uitofp i64 %77 to float
  %79 = fdiv float %78, 1.024000e+03
  %80 = fdiv float %79, 1.024000e+03
  %81 = fpext float %80 to double
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef @__func__._Z10load_modelR10test_modelb, double noundef %81)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 10, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  %83 = getelementptr inbounds %struct.ggml_init_params, ptr %15, i32 0, i32 0
  %84 = call i64 @ggml_tensor_overhead()
  %85 = load i32, ptr %14, align 4, !tbaa !11
  %86 = sext i32 %85 to i64
  %87 = mul i64 %84, %86
  store i64 %87, ptr %83, align 8, !tbaa !19
  %88 = getelementptr inbounds %struct.ggml_init_params, ptr %15, i32 0, i32 1
  store ptr null, ptr %88, align 8, !tbaa !21
  %89 = getelementptr inbounds %struct.ggml_init_params, ptr %15, i32 0, i32 2
  store i8 1, ptr %89, align 8, !tbaa !22
  call void @ggml_log_set(ptr noundef @_ZL25ggml_log_callback_default14ggml_log_levelPKcPv, ptr noundef null)
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.test_model, ptr %90, i32 0, i32 10
  %92 = load ptr, ptr %91, align 8, !tbaa !23
  %93 = icmp ne ptr %92, null
  br i1 %93, label %98, label %94

94:                                               ; preds = %33
  %95 = call ptr @ggml_backend_cpu_init()
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.test_model, ptr %96, i32 0, i32 10
  store ptr %95, ptr %97, align 8, !tbaa !23
  br label %98

98:                                               ; preds = %94, %33
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.test_model, ptr %99, i32 0, i32 10
  %101 = load ptr, ptr %100, align 8, !tbaa !23
  %102 = load i64, ptr %13, align 8, !tbaa !17
  %103 = call ptr @ggml_backend_alloc_buffer(ptr noundef %101, i64 noundef %102)
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.test_model, ptr %104, i32 0, i32 11
  store ptr %103, ptr %105, align 8, !tbaa !25
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %15, i64 24, i1 false), !tbaa.struct !26
  %106 = call ptr @ggml_init(ptr noundef byval(%struct.ggml_init_params) align 8 %16)
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.test_model, ptr %107, i32 0, i32 12
  store ptr %106, ptr %108, align 8, !tbaa !27
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.test_model, ptr %109, i32 0, i32 12
  %111 = load ptr, ptr %110, align 8, !tbaa !27
  %112 = call ptr @ggml_new_tensor_1d(ptr noundef %111, i32 noundef 0, i64 noundef 3)
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.test_model, ptr %113, i32 0, i32 0
  store ptr %112, ptr %114, align 8, !tbaa !28
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.test_model, ptr %115, i32 0, i32 12
  %117 = load ptr, ptr %116, align 8, !tbaa !27
  %118 = call ptr @ggml_new_tensor_1d(ptr noundef %117, i32 noundef 0, i64 noundef 2)
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.test_model, ptr %119, i32 0, i32 1
  store ptr %118, ptr %120, align 8, !tbaa !29
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.test_model, ptr %121, i32 0, i32 12
  %123 = load ptr, ptr %122, align 8, !tbaa !27
  %124 = call ptr @ggml_new_tensor_3d(ptr noundef %123, i32 noundef 0, i64 noundef 3, i64 noundef 1, i64 noundef 2)
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.test_model, ptr %125, i32 0, i32 2
  store ptr %124, ptr %126, align 8, !tbaa !30
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.test_model, ptr %127, i32 0, i32 12
  %129 = load ptr, ptr %128, align 8, !tbaa !27
  %130 = call ptr @ggml_new_tensor_2d(ptr noundef %129, i32 noundef 0, i64 noundef 3, i64 noundef 2)
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.test_model, ptr %131, i32 0, i32 3
  store ptr %130, ptr %132, align 8, !tbaa !31
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.test_model, ptr %133, i32 0, i32 12
  %135 = load ptr, ptr %134, align 8, !tbaa !27
  %136 = call ptr @ggml_new_tensor_3d(ptr noundef %135, i32 noundef 0, i64 noundef 3, i64 noundef 2, i64 noundef 2)
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.test_model, ptr %137, i32 0, i32 4
  store ptr %136, ptr %138, align 8, !tbaa !32
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.test_model, ptr %139, i32 0, i32 12
  %141 = load ptr, ptr %140, align 8, !tbaa !27
  %142 = call ptr @ggml_new_tensor_2d(ptr noundef %141, i32 noundef 0, i64 noundef 3, i64 noundef 2)
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.test_model, ptr %143, i32 0, i32 5
  store ptr %142, ptr %144, align 8, !tbaa !33
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.test_model, ptr %145, i32 0, i32 12
  %147 = load ptr, ptr %146, align 8, !tbaa !27
  %148 = call ptr @ggml_new_tensor_3d(ptr noundef %147, i32 noundef 0, i64 noundef 2, i64 noundef 3, i64 noundef 2)
  %149 = load ptr, ptr %3, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.test_model, ptr %149, i32 0, i32 6
  store ptr %148, ptr %150, align 8, !tbaa !34
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.test_model, ptr %151, i32 0, i32 12
  %153 = load ptr, ptr %152, align 8, !tbaa !27
  %154 = call ptr @ggml_new_tensor_2d(ptr noundef %153, i32 noundef 0, i64 noundef 3, i64 noundef 2)
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.test_model, ptr %155, i32 0, i32 7
  store ptr %154, ptr %156, align 8, !tbaa !35
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.test_model, ptr %157, i32 0, i32 12
  %159 = load ptr, ptr %158, align 8, !tbaa !27
  %160 = call ptr @ggml_new_tensor_3d(ptr noundef %159, i32 noundef 0, i64 noundef 16, i64 noundef 32, i64 noundef 32)
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.test_model, ptr %161, i32 0, i32 8
  store ptr %160, ptr %162, align 8, !tbaa !36
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.test_model, ptr %163, i32 0, i32 12
  %165 = load ptr, ptr %164, align 8, !tbaa !27
  %166 = call ptr @ggml_new_tensor_2d(ptr noundef %165, i32 noundef 0, i64 noundef 197, i64 noundef 32)
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.test_model, ptr %167, i32 0, i32 9
  store ptr %166, ptr %168, align 8, !tbaa !37
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #4
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.test_model, ptr %169, i32 0, i32 11
  %171 = load ptr, ptr %170, align 8, !tbaa !25
  call void @ggml_tallocr_new(ptr dead_on_unwind writable sret(%struct.ggml_tallocr) align 8 %17, ptr noundef %171)
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.test_model, ptr %172, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8, !tbaa !28
  %175 = call i32 @ggml_tallocr_alloc(ptr noundef %17, ptr noundef %174)
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.test_model, ptr %176, i32 0, i32 10
  %178 = load ptr, ptr %177, align 8, !tbaa !23
  %179 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %178)
  br i1 %179, label %180, label %191

180:                                              ; preds = %98
  %181 = load ptr, ptr %3, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.test_model, ptr %181, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8, !tbaa !28
  %184 = getelementptr inbounds %struct.ggml_tensor, ptr %183, i32 0, i32 10
  %185 = load ptr, ptr %184, align 8, !tbaa !38
  %186 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.test_model, ptr %187, i32 0, i32 0
  %189 = load ptr, ptr %188, align 8, !tbaa !28
  %190 = call i64 @ggml_nbytes(ptr noundef %189)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %185, ptr align 4 %186, i64 %190, i1 false)
  br label %200

191:                                              ; preds = %98
  %192 = load ptr, ptr %3, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.test_model, ptr %192, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8, !tbaa !28
  %195 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.test_model, ptr %196, i32 0, i32 0
  %198 = load ptr, ptr %197, align 8, !tbaa !28
  %199 = call i64 @ggml_nbytes(ptr noundef %198)
  call void @ggml_backend_tensor_set(ptr noundef %194, ptr noundef %195, i64 noundef 0, i64 noundef %199)
  br label %200

200:                                              ; preds = %191, %180
  %201 = load ptr, ptr %3, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.test_model, ptr %201, i32 0, i32 2
  %203 = load ptr, ptr %202, align 8, !tbaa !30
  %204 = call i32 @ggml_tallocr_alloc(ptr noundef %17, ptr noundef %203)
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.test_model, ptr %205, i32 0, i32 10
  %207 = load ptr, ptr %206, align 8, !tbaa !23
  %208 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %207)
  br i1 %208, label %209, label %220

209:                                              ; preds = %200
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.test_model, ptr %210, i32 0, i32 2
  %212 = load ptr, ptr %211, align 8, !tbaa !30
  %213 = getelementptr inbounds %struct.ggml_tensor, ptr %212, i32 0, i32 10
  %214 = load ptr, ptr %213, align 8, !tbaa !38
  %215 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 0
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.test_model, ptr %216, i32 0, i32 2
  %218 = load ptr, ptr %217, align 8, !tbaa !30
  %219 = call i64 @ggml_nbytes(ptr noundef %218)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %214, ptr align 16 %215, i64 %219, i1 false)
  br label %229

220:                                              ; preds = %200
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.test_model, ptr %221, i32 0, i32 2
  %223 = load ptr, ptr %222, align 8, !tbaa !30
  %224 = getelementptr inbounds [6 x float], ptr %7, i64 0, i64 0
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.test_model, ptr %225, i32 0, i32 2
  %227 = load ptr, ptr %226, align 8, !tbaa !30
  %228 = call i64 @ggml_nbytes(ptr noundef %227)
  call void @ggml_backend_tensor_set(ptr noundef %223, ptr noundef %224, i64 noundef 0, i64 noundef %228)
  br label %229

229:                                              ; preds = %220, %209
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.test_model, ptr %230, i32 0, i32 4
  %232 = load ptr, ptr %231, align 8, !tbaa !32
  %233 = call i32 @ggml_tallocr_alloc(ptr noundef %17, ptr noundef %232)
  %234 = load ptr, ptr %3, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.test_model, ptr %234, i32 0, i32 10
  %236 = load ptr, ptr %235, align 8, !tbaa !23
  %237 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %236)
  br i1 %237, label %238, label %249

238:                                              ; preds = %229
  %239 = load ptr, ptr %3, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.test_model, ptr %239, i32 0, i32 4
  %241 = load ptr, ptr %240, align 8, !tbaa !32
  %242 = getelementptr inbounds %struct.ggml_tensor, ptr %241, i32 0, i32 10
  %243 = load ptr, ptr %242, align 8, !tbaa !38
  %244 = getelementptr inbounds [12 x float], ptr %9, i64 0, i64 0
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.test_model, ptr %245, i32 0, i32 4
  %247 = load ptr, ptr %246, align 8, !tbaa !32
  %248 = call i64 @ggml_nbytes(ptr noundef %247)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %243, ptr align 16 %244, i64 %248, i1 false)
  br label %258

249:                                              ; preds = %229
  %250 = load ptr, ptr %3, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.test_model, ptr %250, i32 0, i32 4
  %252 = load ptr, ptr %251, align 8, !tbaa !32
  %253 = getelementptr inbounds [12 x float], ptr %9, i64 0, i64 0
  %254 = load ptr, ptr %3, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.test_model, ptr %254, i32 0, i32 4
  %256 = load ptr, ptr %255, align 8, !tbaa !32
  %257 = call i64 @ggml_nbytes(ptr noundef %256)
  call void @ggml_backend_tensor_set(ptr noundef %252, ptr noundef %253, i64 noundef 0, i64 noundef %257)
  br label %258

258:                                              ; preds = %249, %238
  %259 = load ptr, ptr %3, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.test_model, ptr %259, i32 0, i32 6
  %261 = load ptr, ptr %260, align 8, !tbaa !34
  %262 = call i32 @ggml_tallocr_alloc(ptr noundef %17, ptr noundef %261)
  %263 = load ptr, ptr %3, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.test_model, ptr %263, i32 0, i32 10
  %265 = load ptr, ptr %264, align 8, !tbaa !23
  %266 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %265)
  br i1 %266, label %267, label %278

267:                                              ; preds = %258
  %268 = load ptr, ptr %3, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.test_model, ptr %268, i32 0, i32 6
  %270 = load ptr, ptr %269, align 8, !tbaa !34
  %271 = getelementptr inbounds %struct.ggml_tensor, ptr %270, i32 0, i32 10
  %272 = load ptr, ptr %271, align 8, !tbaa !38
  %273 = getelementptr inbounds [16384 x float], ptr %11, i64 0, i64 0
  %274 = load ptr, ptr %3, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.test_model, ptr %274, i32 0, i32 6
  %276 = load ptr, ptr %275, align 8, !tbaa !34
  %277 = call i64 @ggml_nbytes(ptr noundef %276)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %272, ptr align 16 %273, i64 %277, i1 false)
  br label %287

278:                                              ; preds = %258
  %279 = load ptr, ptr %3, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.test_model, ptr %279, i32 0, i32 6
  %281 = load ptr, ptr %280, align 8, !tbaa !34
  %282 = getelementptr inbounds [16384 x float], ptr %11, i64 0, i64 0
  %283 = load ptr, ptr %3, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.test_model, ptr %283, i32 0, i32 6
  %285 = load ptr, ptr %284, align 8, !tbaa !34
  %286 = call i64 @ggml_nbytes(ptr noundef %285)
  call void @ggml_backend_tensor_set(ptr noundef %281, ptr noundef %282, i64 noundef 0, i64 noundef %286)
  br label %287

287:                                              ; preds = %278, %267
  %288 = load ptr, ptr %3, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.test_model, ptr %288, i32 0, i32 8
  %290 = load ptr, ptr %289, align 8, !tbaa !36
  %291 = call i32 @ggml_tallocr_alloc(ptr noundef %17, ptr noundef %290)
  %292 = load ptr, ptr %3, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.test_model, ptr %292, i32 0, i32 10
  %294 = load ptr, ptr %293, align 8, !tbaa !23
  %295 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %294)
  br i1 %295, label %296, label %307

296:                                              ; preds = %287
  %297 = load ptr, ptr %3, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.test_model, ptr %297, i32 0, i32 8
  %299 = load ptr, ptr %298, align 8, !tbaa !36
  %300 = getelementptr inbounds %struct.ggml_tensor, ptr %299, i32 0, i32 10
  %301 = load ptr, ptr %300, align 8, !tbaa !38
  %302 = getelementptr inbounds [16384 x float], ptr %11, i64 0, i64 0
  %303 = load ptr, ptr %3, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.test_model, ptr %303, i32 0, i32 8
  %305 = load ptr, ptr %304, align 8, !tbaa !36
  %306 = call i64 @ggml_nbytes(ptr noundef %305)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %301, ptr align 16 %302, i64 %306, i1 false)
  br label %316

307:                                              ; preds = %287
  %308 = load ptr, ptr %3, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.test_model, ptr %308, i32 0, i32 8
  %310 = load ptr, ptr %309, align 8, !tbaa !36
  %311 = getelementptr inbounds [16384 x float], ptr %11, i64 0, i64 0
  %312 = load ptr, ptr %3, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.test_model, ptr %312, i32 0, i32 8
  %314 = load ptr, ptr %313, align 8, !tbaa !36
  %315 = call i64 @ggml_nbytes(ptr noundef %314)
  call void @ggml_backend_tensor_set(ptr noundef %310, ptr noundef %311, i64 noundef 0, i64 noundef %315)
  br label %316

316:                                              ; preds = %307, %296
  %317 = load ptr, ptr %3, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.test_model, ptr %317, i32 0, i32 1
  %319 = load ptr, ptr %318, align 8, !tbaa !29
  %320 = call i32 @ggml_tallocr_alloc(ptr noundef %17, ptr noundef %319)
  %321 = load ptr, ptr %3, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.test_model, ptr %321, i32 0, i32 10
  %323 = load ptr, ptr %322, align 8, !tbaa !23
  %324 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %323)
  br i1 %324, label %325, label %336

325:                                              ; preds = %316
  %326 = load ptr, ptr %3, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.test_model, ptr %326, i32 0, i32 1
  %328 = load ptr, ptr %327, align 8, !tbaa !29
  %329 = getelementptr inbounds %struct.ggml_tensor, ptr %328, i32 0, i32 10
  %330 = load ptr, ptr %329, align 8, !tbaa !38
  %331 = getelementptr inbounds [2 x float], ptr %6, i64 0, i64 0
  %332 = load ptr, ptr %3, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.test_model, ptr %332, i32 0, i32 1
  %334 = load ptr, ptr %333, align 8, !tbaa !29
  %335 = call i64 @ggml_nbytes(ptr noundef %334)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %330, ptr align 4 %331, i64 %335, i1 false)
  br label %345

336:                                              ; preds = %316
  %337 = load ptr, ptr %3, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.test_model, ptr %337, i32 0, i32 1
  %339 = load ptr, ptr %338, align 8, !tbaa !29
  %340 = getelementptr inbounds [2 x float], ptr %6, i64 0, i64 0
  %341 = load ptr, ptr %3, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.test_model, ptr %341, i32 0, i32 1
  %343 = load ptr, ptr %342, align 8, !tbaa !29
  %344 = call i64 @ggml_nbytes(ptr noundef %343)
  call void @ggml_backend_tensor_set(ptr noundef %339, ptr noundef %340, i64 noundef 0, i64 noundef %344)
  br label %345

345:                                              ; preds = %336, %325
  %346 = load ptr, ptr %3, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.test_model, ptr %346, i32 0, i32 3
  %348 = load ptr, ptr %347, align 8, !tbaa !31
  %349 = call i32 @ggml_tallocr_alloc(ptr noundef %17, ptr noundef %348)
  %350 = load ptr, ptr %3, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.test_model, ptr %350, i32 0, i32 10
  %352 = load ptr, ptr %351, align 8, !tbaa !23
  %353 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %352)
  br i1 %353, label %354, label %365

354:                                              ; preds = %345
  %355 = load ptr, ptr %3, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.test_model, ptr %355, i32 0, i32 3
  %357 = load ptr, ptr %356, align 8, !tbaa !31
  %358 = getelementptr inbounds %struct.ggml_tensor, ptr %357, i32 0, i32 10
  %359 = load ptr, ptr %358, align 8, !tbaa !38
  %360 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 0
  %361 = load ptr, ptr %3, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.test_model, ptr %361, i32 0, i32 3
  %363 = load ptr, ptr %362, align 8, !tbaa !31
  %364 = call i64 @ggml_nbytes(ptr noundef %363)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %359, ptr align 16 %360, i64 %364, i1 false)
  br label %374

365:                                              ; preds = %345
  %366 = load ptr, ptr %3, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.test_model, ptr %366, i32 0, i32 3
  %368 = load ptr, ptr %367, align 8, !tbaa !31
  %369 = getelementptr inbounds [6 x float], ptr %8, i64 0, i64 0
  %370 = load ptr, ptr %3, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.test_model, ptr %370, i32 0, i32 3
  %372 = load ptr, ptr %371, align 8, !tbaa !31
  %373 = call i64 @ggml_nbytes(ptr noundef %372)
  call void @ggml_backend_tensor_set(ptr noundef %368, ptr noundef %369, i64 noundef 0, i64 noundef %373)
  br label %374

374:                                              ; preds = %365, %354
  %375 = load ptr, ptr %3, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.test_model, ptr %375, i32 0, i32 5
  %377 = load ptr, ptr %376, align 8, !tbaa !33
  %378 = call i32 @ggml_tallocr_alloc(ptr noundef %17, ptr noundef %377)
  %379 = load ptr, ptr %3, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.test_model, ptr %379, i32 0, i32 10
  %381 = load ptr, ptr %380, align 8, !tbaa !23
  %382 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %381)
  br i1 %382, label %383, label %394

383:                                              ; preds = %374
  %384 = load ptr, ptr %3, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.test_model, ptr %384, i32 0, i32 5
  %386 = load ptr, ptr %385, align 8, !tbaa !33
  %387 = getelementptr inbounds %struct.ggml_tensor, ptr %386, i32 0, i32 10
  %388 = load ptr, ptr %387, align 8, !tbaa !38
  %389 = getelementptr inbounds [6 x float], ptr %10, i64 0, i64 0
  %390 = load ptr, ptr %3, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.test_model, ptr %390, i32 0, i32 5
  %392 = load ptr, ptr %391, align 8, !tbaa !33
  %393 = call i64 @ggml_nbytes(ptr noundef %392)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %388, ptr align 16 %389, i64 %393, i1 false)
  br label %403

394:                                              ; preds = %374
  %395 = load ptr, ptr %3, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.test_model, ptr %395, i32 0, i32 5
  %397 = load ptr, ptr %396, align 8, !tbaa !33
  %398 = getelementptr inbounds [6 x float], ptr %10, i64 0, i64 0
  %399 = load ptr, ptr %3, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.test_model, ptr %399, i32 0, i32 5
  %401 = load ptr, ptr %400, align 8, !tbaa !33
  %402 = call i64 @ggml_nbytes(ptr noundef %401)
  call void @ggml_backend_tensor_set(ptr noundef %397, ptr noundef %398, i64 noundef 0, i64 noundef %402)
  br label %403

403:                                              ; preds = %394, %383
  %404 = load ptr, ptr %3, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.test_model, ptr %404, i32 0, i32 7
  %406 = load ptr, ptr %405, align 8, !tbaa !35
  %407 = call i32 @ggml_tallocr_alloc(ptr noundef %17, ptr noundef %406)
  %408 = load ptr, ptr %3, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.test_model, ptr %408, i32 0, i32 10
  %410 = load ptr, ptr %409, align 8, !tbaa !23
  %411 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %410)
  br i1 %411, label %412, label %423

412:                                              ; preds = %403
  %413 = load ptr, ptr %3, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.test_model, ptr %413, i32 0, i32 7
  %415 = load ptr, ptr %414, align 8, !tbaa !35
  %416 = getelementptr inbounds %struct.ggml_tensor, ptr %415, i32 0, i32 10
  %417 = load ptr, ptr %416, align 8, !tbaa !38
  %418 = getelementptr inbounds [16384 x float], ptr %11, i64 0, i64 0
  %419 = load ptr, ptr %3, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.test_model, ptr %419, i32 0, i32 7
  %421 = load ptr, ptr %420, align 8, !tbaa !35
  %422 = call i64 @ggml_nbytes(ptr noundef %421)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %417, ptr align 16 %418, i64 %422, i1 false)
  br label %432

423:                                              ; preds = %403
  %424 = load ptr, ptr %3, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.test_model, ptr %424, i32 0, i32 7
  %426 = load ptr, ptr %425, align 8, !tbaa !35
  %427 = getelementptr inbounds [16384 x float], ptr %11, i64 0, i64 0
  %428 = load ptr, ptr %3, align 8, !tbaa !5
  %429 = getelementptr inbounds %struct.test_model, ptr %428, i32 0, i32 7
  %430 = load ptr, ptr %429, align 8, !tbaa !35
  %431 = call i64 @ggml_nbytes(ptr noundef %430)
  call void @ggml_backend_tensor_set(ptr noundef %426, ptr noundef %427, i64 noundef 0, i64 noundef %431)
  br label %432

432:                                              ; preds = %423, %412
  %433 = load ptr, ptr %3, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.test_model, ptr %433, i32 0, i32 9
  %435 = load ptr, ptr %434, align 8, !tbaa !37
  %436 = call i32 @ggml_tallocr_alloc(ptr noundef %17, ptr noundef %435)
  %437 = load ptr, ptr %3, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.test_model, ptr %437, i32 0, i32 10
  %439 = load ptr, ptr %438, align 8, !tbaa !23
  %440 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %439)
  br i1 %440, label %441, label %452

441:                                              ; preds = %432
  %442 = load ptr, ptr %3, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.test_model, ptr %442, i32 0, i32 9
  %444 = load ptr, ptr %443, align 8, !tbaa !37
  %445 = getelementptr inbounds %struct.ggml_tensor, ptr %444, i32 0, i32 10
  %446 = load ptr, ptr %445, align 8, !tbaa !38
  %447 = getelementptr inbounds [16384 x float], ptr %11, i64 0, i64 0
  %448 = load ptr, ptr %3, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.test_model, ptr %448, i32 0, i32 9
  %450 = load ptr, ptr %449, align 8, !tbaa !37
  %451 = call i64 @ggml_nbytes(ptr noundef %450)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %446, ptr align 16 %447, i64 %451, i1 false)
  br label %461

452:                                              ; preds = %432
  %453 = load ptr, ptr %3, align 8, !tbaa !5
  %454 = getelementptr inbounds %struct.test_model, ptr %453, i32 0, i32 9
  %455 = load ptr, ptr %454, align 8, !tbaa !37
  %456 = getelementptr inbounds [16384 x float], ptr %11, i64 0, i64 0
  %457 = load ptr, ptr %3, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.test_model, ptr %457, i32 0, i32 9
  %459 = load ptr, ptr %458, align 8, !tbaa !37
  %460 = call i64 @ggml_nbytes(ptr noundef %459)
  call void @ggml_backend_tensor_set(ptr noundef %455, ptr noundef %456, i64 noundef 0, i64 noundef %460)
  br label %461

461:                                              ; preds = %452, %441
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 65536, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #4
  ret void
}

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

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

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

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

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

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

declare ptr @ggml_new_tensor_2d(ptr noundef, i32 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

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

!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 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!20, !18, i64 0}
!20 = !{!"_ZTS16ggml_init_params", !18, i64 0, !6, i64 8, !10, i64 16}
!21 = !{!20, !6, i64 8}
!22 = !{!20, !10, i64 16}
!23 = !{!24, !6, i64 80}
!24 = !{!"_ZTS10test_model", !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, !6, i64 96}
!25 = !{!24, !6, i64 88}
!26 = !{i64 0, i64 8, !17, i64 8, i64 8, !5, i64 16, i64 1, !9}
!27 = !{!24, !6, i64 96}
!28 = !{!24, !6, i64 0}
!29 = !{!24, !6, i64 8}
!30 = !{!24, !6, i64 16}
!31 = !{!24, !6, i64 24}
!32 = !{!24, !6, i64 32}
!33 = !{!24, !6, i64 40}
!34 = !{!24, !6, i64 48}
!35 = !{!24, !6, i64 56}
!36 = !{!24, !6, i64 64}
!37 = !{!24, !6, i64 72}
!38 = !{!39, !6, i64 248}
!39 = !{!"_ZTS11ggml_tensor", !40, i64 0, !6, i64 8, !7, i64 16, !7, i64 48, !41, i64 80, !7, i64 84, !12, i64 148, !7, i64 152, !6, i64 232, !18, i64 240, !6, i64 248, !7, i64 256, !6, i64 320, !7, i64 328}
!40 = !{!"_ZTS9ggml_type", !7, i64 0}
!41 = !{!"_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"

%struct.ggml_init_params = type { i64, ptr, i8 }
%struct.ggml_tallocr = type { ptr, ptr, i64, i64 }

@__const._Z10load_modelR10test_modelb.adata_0 = external hidden unnamed_addr constant [3 x float], align 4
@__const._Z10load_modelR10test_modelb.bdata_0 = external hidden unnamed_addr constant [2 x float], align 4
@__const._Z10load_modelR10test_modelb.adata_1 = external hidden unnamed_addr constant [6 x float], align 16
@__const._Z10load_modelR10test_modelb.bdata_1 = external hidden unnamed_addr constant [6 x float], align 16
@__const._Z10load_modelR10test_modelb.adata_2 = external hidden unnamed_addr constant [12 x float], align 16
@__const._Z10load_modelR10test_modelb.bdata_2 = external hidden unnamed_addr constant [6 x float], align 16
@.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(104) %0, i1 noundef zeroext %1) local_unnamed_addr #0 {
vector.ph:
  %2 = alloca [3 x float], align 4
  %3 = alloca [2 x float], align 8
  %4 = alloca [6 x float], align 16
  %5 = alloca [6 x float], align 16
  %6 = alloca [12 x float], align 16
  %7 = alloca [6 x float], align 16
  %8 = alloca [16384 x float], align 16
  %9 = alloca %struct.ggml_init_params, align 8
  %10 = alloca %struct.ggml_tallocr, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) @__const._Z10load_modelR10test_modelb.adata_0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %11 = load i64, ptr @__const._Z10load_modelR10test_modelb.bdata_0, align 4
  store i64 %11, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %4, ptr noundef nonnull align 16 dereferenceable(24) @__const._Z10load_modelR10test_modelb.adata_1, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %5, ptr noundef nonnull align 16 dereferenceable(24) @__const._Z10load_modelR10test_modelb.bdata_1, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) %6, ptr noundef nonnull align 16 dereferenceable(48) @__const._Z10load_modelR10test_modelb.adata_2, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(24) @__const._Z10load_modelR10test_modelb.bdata_2, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 65536, ptr nonnull %8) #5
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next.1, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next.1, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %12 = and <4 x i32> %vec.ind, <i32 1023, i32 1023, i32 1023, i32 1023>
  %13 = and <4 x i32> %step.add, <i32 1023, i32 1023, i32 1023, i32 1023>
  %14 = uitofp nneg <4 x i32> %12 to <4 x float>
  %15 = uitofp nneg <4 x i32> %13 to <4 x float>
  %16 = getelementptr inbounds [16384 x float], ptr %8, i64 0, i64 %index
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  store <4 x float> %14, ptr %16, align 16, !tbaa !5
  store <4 x float> %15, ptr %17, align 16, !tbaa !5
  %index.next = or disjoint i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %step.add.1 = add <4 x i32> %vec.ind, <i32 12, i32 12, i32 12, i32 12>
  %18 = and <4 x i32> %vec.ind.next, <i32 1023, i32 1023, i32 1023, i32 1023>
  %19 = and <4 x i32> %step.add.1, <i32 1023, i32 1023, i32 1023, i32 1023>
  %20 = uitofp nneg <4 x i32> %18 to <4 x float>
  %21 = uitofp nneg <4 x i32> %19 to <4 x float>
  %22 = getelementptr inbounds [16384 x float], ptr %8, i64 0, i64 %index.next
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  store <4 x float> %20, ptr %22, align 16, !tbaa !5
  store <4 x float> %21, ptr %23, align 16, !tbaa !5
  %index.next.1 = add nuw nsw i64 %index, 16
  %vec.ind.next.1 = add <4 x i32> %vec.ind, <i32 16, i32 16, i32 16, i32 16>
  %24 = icmp eq i64 %index.next.1, 16384
  br i1 %24, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %25 = tail call i64 @ggml_type_size(i32 noundef 0)
  %26 = mul i64 %25, 3
  %27 = tail call i64 @ggml_type_size(i32 noundef 0)
  %28 = shl i64 %27, 1
  %29 = tail call i64 @ggml_type_size(i32 noundef 0)
  %30 = tail call i64 @ggml_type_size(i32 noundef 0)
  %31 = tail call i64 @ggml_type_size(i32 noundef 0)
  %32 = tail call i64 @ggml_type_size(i32 noundef 0)
  %33 = tail call i64 @ggml_type_size(i32 noundef 0)
  %34 = tail call i64 @ggml_type_size(i32 noundef 0)
  %35 = tail call i64 @ggml_type_size(i32 noundef 0)
  %36 = shl i64 %35, 14
  %37 = tail call i64 @ggml_type_size(i32 noundef 0)
  %38 = mul i64 %37, 6304
  %reass.add = add i64 %30, %29
  %reass.add103 = add i64 %reass.add, %32
  %reass.add104 = add i64 %reass.add103, %34
  %reass.mul = mul i64 %reass.add104, 6
  %reass.add105 = add i64 %33, %31
  %reass.mul106 = mul i64 %reass.add105, 12
  %39 = add i64 %26, 1024
  %40 = add i64 %39, %28
  %41 = add i64 %40, %reass.mul106
  %42 = add i64 %41, %36
  %43 = add i64 %42, %38
  %44 = add i64 %43, %reass.mul
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @__func__._Z10load_modelR10test_modelb, i32 noundef 336)
  %46 = uitofp i64 %44 to float
  %47 = fmul float %46, 0x3F50000000000000
  %48 = fmul float %47, 0x3F50000000000000
  %49 = fpext float %48 to double
  %50 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull @__func__._Z10load_modelR10test_modelb, double noundef %49)
  %51 = tail call i64 @ggml_tensor_overhead()
  %52 = mul i64 %51, 10
  tail call void @ggml_log_set(ptr noundef nonnull @_ZL25ggml_log_callback_default14ggml_log_levelPKcPv, ptr noundef null)
  %53 = getelementptr inbounds i8, ptr %0, i64 80
  %54 = load ptr, ptr %53, align 8, !tbaa !13
  %.not = icmp eq ptr %54, null
  br i1 %.not, label %55, label %57

55:                                               ; preds = %middle.block
  %56 = tail call ptr @ggml_backend_cpu_init()
  store ptr %56, ptr %53, align 8, !tbaa !13
  br label %57

57:                                               ; preds = %55, %middle.block
  %58 = phi ptr [ %56, %55 ], [ %54, %middle.block ]
  %59 = tail call ptr @ggml_backend_alloc_buffer(ptr noundef %58, i64 noundef %44)
  %60 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %59, ptr %60, align 8, !tbaa !16
  store i64 %52, ptr %9, align 8, !tbaa !17
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store ptr null, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !19
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 16
  store i8 1, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !20
  %61 = tail call ptr @ggml_init(ptr noundef nonnull byval(%struct.ggml_init_params) align 8 %9)
  %62 = getelementptr inbounds i8, ptr %0, i64 96
  store ptr %61, ptr %62, align 8, !tbaa !22
  %63 = tail call ptr @ggml_new_tensor_1d(ptr noundef %61, i32 noundef 0, i64 noundef 3)
  store ptr %63, ptr %0, align 8, !tbaa !23
  %64 = load ptr, ptr %62, align 8, !tbaa !22
  %65 = tail call ptr @ggml_new_tensor_1d(ptr noundef %64, i32 noundef 0, i64 noundef 2)
  %66 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %65, ptr %66, align 8, !tbaa !24
  %67 = load ptr, ptr %62, align 8, !tbaa !22
  %68 = tail call ptr @ggml_new_tensor_3d(ptr noundef %67, i32 noundef 0, i64 noundef 3, i64 noundef 1, i64 noundef 2)
  %69 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %68, ptr %69, align 8, !tbaa !25
  %70 = load ptr, ptr %62, align 8, !tbaa !22
  %71 = tail call ptr @ggml_new_tensor_2d(ptr noundef %70, i32 noundef 0, i64 noundef 3, i64 noundef 2)
  %72 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %71, ptr %72, align 8, !tbaa !26
  %73 = load ptr, ptr %62, align 8, !tbaa !22
  %74 = tail call ptr @ggml_new_tensor_3d(ptr noundef %73, i32 noundef 0, i64 noundef 3, i64 noundef 2, i64 noundef 2)
  %75 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %74, ptr %75, align 8, !tbaa !27
  %76 = load ptr, ptr %62, align 8, !tbaa !22
  %77 = tail call ptr @ggml_new_tensor_2d(ptr noundef %76, i32 noundef 0, i64 noundef 3, i64 noundef 2)
  %78 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %77, ptr %78, align 8, !tbaa !28
  %79 = load ptr, ptr %62, align 8, !tbaa !22
  %80 = tail call ptr @ggml_new_tensor_3d(ptr noundef %79, i32 noundef 0, i64 noundef 2, i64 noundef 3, i64 noundef 2)
  %81 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %80, ptr %81, align 8, !tbaa !29
  %82 = load ptr, ptr %62, align 8, !tbaa !22
  %83 = tail call ptr @ggml_new_tensor_2d(ptr noundef %82, i32 noundef 0, i64 noundef 3, i64 noundef 2)
  %84 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %83, ptr %84, align 8, !tbaa !30
  %85 = load ptr, ptr %62, align 8, !tbaa !22
  %86 = tail call ptr @ggml_new_tensor_3d(ptr noundef %85, i32 noundef 0, i64 noundef 16, i64 noundef 32, i64 noundef 32)
  %87 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %86, ptr %87, align 8, !tbaa !31
  %88 = load ptr, ptr %62, align 8, !tbaa !22
  %89 = tail call ptr @ggml_new_tensor_2d(ptr noundef %88, i32 noundef 0, i64 noundef 197, i64 noundef 32)
  %90 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %89, ptr %90, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #5
  %91 = load ptr, ptr %60, align 8, !tbaa !16
  call void @ggml_tallocr_new(ptr dead_on_unwind nonnull writable sret(%struct.ggml_tallocr) align 8 %10, ptr noundef %91)
  %92 = load ptr, ptr %0, align 8, !tbaa !23
  %93 = call i32 @ggml_tallocr_alloc(ptr noundef nonnull %10, ptr noundef %92)
  %94 = load ptr, ptr %53, align 8, !tbaa !13
  %95 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %94)
  %96 = load ptr, ptr %0, align 8, !tbaa !23
  br i1 %95, label %97, label %101

97:                                               ; preds = %57
  %98 = getelementptr inbounds i8, ptr %96, i64 248
  %99 = load ptr, ptr %98, align 8, !tbaa !33
  %100 = call i64 @ggml_nbytes(ptr noundef %96)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %99, ptr nonnull align 4 %2, i64 %100, i1 false)
  br label %103

101:                                              ; preds = %57
  %102 = call i64 @ggml_nbytes(ptr noundef %96)
  call void @ggml_backend_tensor_set(ptr noundef %96, ptr noundef nonnull %2, i64 noundef 0, i64 noundef %102)
  br label %103

103:                                              ; preds = %101, %97
  %104 = load ptr, ptr %69, align 8, !tbaa !25
  %105 = call i32 @ggml_tallocr_alloc(ptr noundef nonnull %10, ptr noundef %104)
  %106 = load ptr, ptr %53, align 8, !tbaa !13
  %107 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %106)
  %108 = load ptr, ptr %69, align 8, !tbaa !25
  br i1 %107, label %109, label %113

109:                                              ; preds = %103
  %110 = getelementptr inbounds i8, ptr %108, i64 248
  %111 = load ptr, ptr %110, align 8, !tbaa !33
  %112 = call i64 @ggml_nbytes(ptr noundef %108)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %111, ptr nonnull align 16 %4, i64 %112, i1 false)
  br label %115

113:                                              ; preds = %103
  %114 = call i64 @ggml_nbytes(ptr noundef %108)
  call void @ggml_backend_tensor_set(ptr noundef %108, ptr noundef nonnull %4, i64 noundef 0, i64 noundef %114)
  br label %115

115:                                              ; preds = %113, %109
  %116 = load ptr, ptr %75, align 8, !tbaa !27
  %117 = call i32 @ggml_tallocr_alloc(ptr noundef nonnull %10, ptr noundef %116)
  %118 = load ptr, ptr %53, align 8, !tbaa !13
  %119 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %118)
  %120 = load ptr, ptr %75, align 8, !tbaa !27
  br i1 %119, label %121, label %125

121:                                              ; preds = %115
  %122 = getelementptr inbounds i8, ptr %120, i64 248
  %123 = load ptr, ptr %122, align 8, !tbaa !33
  %124 = call i64 @ggml_nbytes(ptr noundef %120)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %123, ptr nonnull align 16 %6, i64 %124, i1 false)
  br label %127

125:                                              ; preds = %115
  %126 = call i64 @ggml_nbytes(ptr noundef %120)
  call void @ggml_backend_tensor_set(ptr noundef %120, ptr noundef nonnull %6, i64 noundef 0, i64 noundef %126)
  br label %127

127:                                              ; preds = %125, %121
  %128 = load ptr, ptr %81, align 8, !tbaa !29
  %129 = call i32 @ggml_tallocr_alloc(ptr noundef nonnull %10, ptr noundef %128)
  %130 = load ptr, ptr %53, align 8, !tbaa !13
  %131 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %130)
  %132 = load ptr, ptr %81, align 8, !tbaa !29
  br i1 %131, label %133, label %137

133:                                              ; preds = %127
  %134 = getelementptr inbounds i8, ptr %132, i64 248
  %135 = load ptr, ptr %134, align 8, !tbaa !33
  %136 = call i64 @ggml_nbytes(ptr noundef %132)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %135, ptr nonnull align 16 %8, i64 %136, i1 false)
  br label %139

137:                                              ; preds = %127
  %138 = call i64 @ggml_nbytes(ptr noundef %132)
  call void @ggml_backend_tensor_set(ptr noundef %132, ptr noundef nonnull %8, i64 noundef 0, i64 noundef %138)
  br label %139

139:                                              ; preds = %137, %133
  %140 = load ptr, ptr %87, align 8, !tbaa !31
  %141 = call i32 @ggml_tallocr_alloc(ptr noundef nonnull %10, ptr noundef %140)
  %142 = load ptr, ptr %53, align 8, !tbaa !13
  %143 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %142)
  %144 = load ptr, ptr %87, align 8, !tbaa !31
  br i1 %143, label %145, label %149

145:                                              ; preds = %139
  %146 = getelementptr inbounds i8, ptr %144, i64 248
  %147 = load ptr, ptr %146, align 8, !tbaa !33
  %148 = call i64 @ggml_nbytes(ptr noundef %144)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %147, ptr nonnull align 16 %8, i64 %148, i1 false)
  br label %151

149:                                              ; preds = %139
  %150 = call i64 @ggml_nbytes(ptr noundef %144)
  call void @ggml_backend_tensor_set(ptr noundef %144, ptr noundef nonnull %8, i64 noundef 0, i64 noundef %150)
  br label %151

151:                                              ; preds = %149, %145
  %152 = load ptr, ptr %66, align 8, !tbaa !24
  %153 = call i32 @ggml_tallocr_alloc(ptr noundef nonnull %10, ptr noundef %152)
  %154 = load ptr, ptr %53, align 8, !tbaa !13
  %155 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %154)
  %156 = load ptr, ptr %66, align 8, !tbaa !24
  br i1 %155, label %157, label %161

157:                                              ; preds = %151
  %158 = getelementptr inbounds i8, ptr %156, i64 248
  %159 = load ptr, ptr %158, align 8, !tbaa !33
  %160 = call i64 @ggml_nbytes(ptr noundef %156)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %159, ptr nonnull align 8 %3, i64 %160, i1 false)
  br label %163

161:                                              ; preds = %151
  %162 = call i64 @ggml_nbytes(ptr noundef %156)
  call void @ggml_backend_tensor_set(ptr noundef %156, ptr noundef nonnull %3, i64 noundef 0, i64 noundef %162)
  br label %163

163:                                              ; preds = %161, %157
  %164 = load ptr, ptr %72, align 8, !tbaa !26
  %165 = call i32 @ggml_tallocr_alloc(ptr noundef nonnull %10, ptr noundef %164)
  %166 = load ptr, ptr %53, align 8, !tbaa !13
  %167 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %166)
  %168 = load ptr, ptr %72, align 8, !tbaa !26
  br i1 %167, label %169, label %173

169:                                              ; preds = %163
  %170 = getelementptr inbounds i8, ptr %168, i64 248
  %171 = load ptr, ptr %170, align 8, !tbaa !33
  %172 = call i64 @ggml_nbytes(ptr noundef %168)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %171, ptr nonnull align 16 %5, i64 %172, i1 false)
  br label %175

173:                                              ; preds = %163
  %174 = call i64 @ggml_nbytes(ptr noundef %168)
  call void @ggml_backend_tensor_set(ptr noundef %168, ptr noundef nonnull %5, i64 noundef 0, i64 noundef %174)
  br label %175

175:                                              ; preds = %173, %169
  %176 = load ptr, ptr %78, align 8, !tbaa !28
  %177 = call i32 @ggml_tallocr_alloc(ptr noundef nonnull %10, ptr noundef %176)
  %178 = load ptr, ptr %53, align 8, !tbaa !13
  %179 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %178)
  %180 = load ptr, ptr %78, align 8, !tbaa !28
  br i1 %179, label %181, label %185

181:                                              ; preds = %175
  %182 = getelementptr inbounds i8, ptr %180, i64 248
  %183 = load ptr, ptr %182, align 8, !tbaa !33
  %184 = call i64 @ggml_nbytes(ptr noundef %180)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %183, ptr nonnull align 16 %7, i64 %184, i1 false)
  br label %187

185:                                              ; preds = %175
  %186 = call i64 @ggml_nbytes(ptr noundef %180)
  call void @ggml_backend_tensor_set(ptr noundef %180, ptr noundef nonnull %7, i64 noundef 0, i64 noundef %186)
  br label %187

187:                                              ; preds = %185, %181
  %188 = load ptr, ptr %84, align 8, !tbaa !30
  %189 = call i32 @ggml_tallocr_alloc(ptr noundef nonnull %10, ptr noundef %188)
  %190 = load ptr, ptr %53, align 8, !tbaa !13
  %191 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %190)
  %192 = load ptr, ptr %84, align 8, !tbaa !30
  br i1 %191, label %193, label %197

193:                                              ; preds = %187
  %194 = getelementptr inbounds i8, ptr %192, i64 248
  %195 = load ptr, ptr %194, align 8, !tbaa !33
  %196 = call i64 @ggml_nbytes(ptr noundef %192)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %195, ptr nonnull align 16 %8, i64 %196, i1 false)
  br label %199

197:                                              ; preds = %187
  %198 = call i64 @ggml_nbytes(ptr noundef %192)
  call void @ggml_backend_tensor_set(ptr noundef %192, ptr noundef nonnull %8, i64 noundef 0, i64 noundef %198)
  br label %199

199:                                              ; preds = %197, %193
  %200 = load ptr, ptr %90, align 8, !tbaa !32
  %201 = call i32 @ggml_tallocr_alloc(ptr noundef nonnull %10, ptr noundef %200)
  %202 = load ptr, ptr %53, align 8, !tbaa !13
  %203 = call zeroext i1 @ggml_backend_is_cpu(ptr noundef %202)
  %204 = load ptr, ptr %90, align 8, !tbaa !32
  br i1 %203, label %205, label %209

205:                                              ; preds = %199
  %206 = getelementptr inbounds i8, ptr %204, i64 248
  %207 = load ptr, ptr %206, align 8, !tbaa !33
  %208 = call i64 @ggml_nbytes(ptr noundef %204)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %207, ptr nonnull align 16 %8, i64 %208, i1 false)
  br label %211

209:                                              ; preds = %199
  %210 = call i64 @ggml_nbytes(ptr noundef %204)
  call void @ggml_backend_tensor_set(ptr noundef %204, ptr noundef nonnull %8, i64 noundef 0, i64 noundef %210)
  br label %211

211:                                              ; preds = %209, %205
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 65536, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #5
  ret void
}

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

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

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

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

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

declare ptr @ggml_new_tensor_2d(ptr noundef, i32 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

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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = !{!14, !15, i64 80}
!14 = !{!"_ZTS10test_model", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!14, !15, i64 88}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!15, !15, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!14, !15, i64 96}
!23 = !{!14, !15, i64 0}
!24 = !{!14, !15, i64 8}
!25 = !{!14, !15, i64 16}
!26 = !{!14, !15, i64 24}
!27 = !{!14, !15, i64 32}
!28 = !{!14, !15, i64 40}
!29 = !{!14, !15, i64 48}
!30 = !{!14, !15, i64 56}
!31 = !{!14, !15, i64 64}
!32 = !{!14, !15, i64 72}
!33 = !{!34, !15, i64 248}
!34 = !{!"_ZTS11ggml_tensor", !35, i64 0, !15, i64 8, !7, i64 16, !7, i64 48, !36, i64 80, !7, i64 84, !37, i64 148, !7, i64 152, !15, i64 232, !18, i64 240, !15, i64 248, !7, i64 256, !15, i64 320, !7, i64 328}
!35 = !{!"_ZTS9ggml_type", !7, i64 0}
!36 = !{!"_ZTS7ggml_op", !7, i64 0}
!37 = !{!"int", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopLoadEliminationPass,LoopRotatePass,LoopUnrollPass,LoopVectorizePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass