; LLVM IR from ggml-org/ggml :: tests (test-conv-transpose)

; 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_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 [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @printf_tensor(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.ggml_tensor, ptr %12, i32 0, i32 0
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %91

16:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = call ptr @ggml_get_data_f32(ptr noundef %17)
  store ptr %18, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  store i32 0, ptr %4, align 4, !tbaa !13
  br label %19

19:                                               ; preds = %87, %16
  %20 = load i32, ptr %4, align 4, !tbaa !13
  %21 = sext i32 %20 to i64
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ggml_tensor, ptr %22, i32 0, i32 2
  %24 = getelementptr inbounds [4 x i64], ptr %23, i64 0, i64 2
  %25 = load i64, ptr %24, align 8, !tbaa !14
  %26 = icmp slt i64 %21, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %19
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  br label %90

28:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !13
  br label %29

29:                                               ; preds = %82, %28
  %30 = load i32, ptr %6, align 4, !tbaa !13
  %31 = sext i32 %30 to i64
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.ggml_tensor, ptr %32, i32 0, i32 2
  %34 = getelementptr inbounds [4 x i64], ptr %33, i64 0, i64 1
  %35 = load i64, ptr %34, align 8, !tbaa !14
  %36 = icmp slt i64 %31, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %29
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %85

38:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !13
  br label %39

39:                                               ; preds = %77, %38
  %40 = load i32, ptr %7, align 4, !tbaa !13
  %41 = sext i32 %40 to i64
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ggml_tensor, ptr %42, i32 0, i32 2
  %44 = getelementptr inbounds [4 x i64], ptr %43, i64 0, i64 0
  %45 = load i64, ptr %44, align 8, !tbaa !14
  %46 = icmp slt i64 %41, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %39
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %80

48:                                               ; preds = %39
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = load i32, ptr %4, align 4, !tbaa !13
  %51 = sext i32 %50 to i64
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.ggml_tensor, ptr %52, i32 0, i32 2
  %54 = getelementptr inbounds [4 x i64], ptr %53, i64 0, i64 1
  %55 = load i64, ptr %54, align 8, !tbaa !14
  %56 = mul nsw i64 %51, %55
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ggml_tensor, ptr %57, i32 0, i32 2
  %59 = getelementptr inbounds [4 x i64], ptr %58, i64 0, i64 0
  %60 = load i64, ptr %59, align 8, !tbaa !14
  %61 = mul nsw i64 %56, %60
  %62 = load i32, ptr %6, align 4, !tbaa !13
  %63 = sext i32 %62 to i64
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ggml_tensor, ptr %64, i32 0, i32 2
  %66 = getelementptr inbounds [4 x i64], ptr %65, i64 0, i64 0
  %67 = load i64, ptr %66, align 8, !tbaa !14
  %68 = mul nsw i64 %63, %67
  %69 = add nsw i64 %61, %68
  %70 = load i32, ptr %7, align 4, !tbaa !13
  %71 = sext i32 %70 to i64
  %72 = add nsw i64 %69, %71
  %73 = getelementptr inbounds float, ptr %49, i64 %72
  %74 = load float, ptr %73, align 4, !tbaa !15
  %75 = fpext float %74 to double
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %75)
  br label %77

77:                                               ; preds = %48
  %78 = load i32, ptr %7, align 4, !tbaa !13
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %7, align 4, !tbaa !13
  br label %39, !llvm.loop !17

80:                                               ; preds = %47
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %82

82:                                               ; preds = %80
  %83 = load i32, ptr %6, align 4, !tbaa !13
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %6, align 4, !tbaa !13
  br label %29, !llvm.loop !19

85:                                               ; preds = %37
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %87

87:                                               ; preds = %85
  %88 = load i32, ptr %4, align 4, !tbaa !13
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %4, align 4, !tbaa !13
  br label %19, !llvm.loop !20

90:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  br label %175

91:                                               ; preds = %1
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.ggml_tensor, ptr %92, i32 0, i32 0
  %94 = load i32, ptr %93, align 8, !tbaa !9
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %172

96:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = call ptr @ggml_get_data(ptr noundef %97)
  store ptr %98, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !13
  br label %99

99:                                               ; preds = %168, %96
  %100 = load i32, ptr %9, align 4, !tbaa !13
  %101 = sext i32 %100 to i64
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ggml_tensor, ptr %102, i32 0, i32 2
  %104 = getelementptr inbounds [4 x i64], ptr %103, i64 0, i64 2
  %105 = load i64, ptr %104, align 8, !tbaa !14
  %106 = icmp slt i64 %101, %105
  br i1 %106, label %108, label %107

107:                                              ; preds = %99
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %171

108:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %109

109:                                              ; preds = %163, %108
  %110 = load i32, ptr %10, align 4, !tbaa !13
  %111 = sext i32 %110 to i64
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.ggml_tensor, ptr %112, i32 0, i32 2
  %114 = getelementptr inbounds [4 x i64], ptr %113, i64 0, i64 1
  %115 = load i64, ptr %114, align 8, !tbaa !14
  %116 = icmp slt i64 %111, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %109
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %166

118:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !13
  br label %119

119:                                              ; preds = %158, %118
  %120 = load i32, ptr %11, align 4, !tbaa !13
  %121 = sext i32 %120 to i64
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.ggml_tensor, ptr %122, i32 0, i32 2
  %124 = getelementptr inbounds [4 x i64], ptr %123, i64 0, i64 0
  %125 = load i64, ptr %124, align 8, !tbaa !14
  %126 = icmp slt i64 %121, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %119
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %161

128:                                              ; preds = %119
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = load i32, ptr %9, align 4, !tbaa !13
  %131 = sext i32 %130 to i64
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ggml_tensor, ptr %132, i32 0, i32 2
  %134 = getelementptr inbounds [4 x i64], ptr %133, i64 0, i64 1
  %135 = load i64, ptr %134, align 8, !tbaa !14
  %136 = mul nsw i64 %131, %135
  %137 = load ptr, ptr %2, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.ggml_tensor, ptr %137, i32 0, i32 2
  %139 = getelementptr inbounds [4 x i64], ptr %138, i64 0, i64 0
  %140 = load i64, ptr %139, align 8, !tbaa !14
  %141 = mul nsw i64 %136, %140
  %142 = load i32, ptr %10, align 4, !tbaa !13
  %143 = sext i32 %142 to i64
  %144 = load ptr, ptr %2, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.ggml_tensor, ptr %144, i32 0, i32 2
  %146 = getelementptr inbounds [4 x i64], ptr %145, i64 0, i64 0
  %147 = load i64, ptr %146, align 8, !tbaa !14
  %148 = mul nsw i64 %143, %147
  %149 = add nsw i64 %141, %148
  %150 = load i32, ptr %11, align 4, !tbaa !13
  %151 = sext i32 %150 to i64
  %152 = add nsw i64 %149, %151
  %153 = getelementptr inbounds i16, ptr %129, i64 %152
  %154 = load i16, ptr %153, align 2, !tbaa !21
  %155 = call float @ggml_fp16_to_fp32(i16 noundef zeroext %154)
  %156 = fpext float %155 to double
  %157 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %156)
  br label %158

158:                                              ; preds = %128
  %159 = load i32, ptr %11, align 4, !tbaa !13
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %11, align 4, !tbaa !13
  br label %119, !llvm.loop !23

161:                                              ; preds = %127
  %162 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %163

163:                                              ; preds = %161
  %164 = load i32, ptr %10, align 4, !tbaa !13
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %10, align 4, !tbaa !13
  br label %109, !llvm.loop !24

166:                                              ; preds = %117
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %168

168:                                              ; preds = %166
  %169 = load i32, ptr %9, align 4, !tbaa !13
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %9, align 4, !tbaa !13
  br label %99, !llvm.loop !25

171:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %174

172:                                              ; preds = %91
  %173 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %174

174:                                              ; preds = %172, %171
  br label %175

175:                                              ; preds = %174, %90
  ret void
}

declare ptr @ggml_get_data_f32(ptr noundef) #2

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

declare ptr @ggml_get_data(ptr noundef) #2

declare float @ggml_fp16_to_fp32(i16 noundef zeroext) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { 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/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"ggml_tensor", !11, i64 0, !6, i64 8, !7, i64 16, !7, i64 48, !11, i64 80, !7, i64 84, !11, i64 148, !7, i64 152, !6, i64 232, !12, i64 240, !6, i64 248, !7, i64 256, !6, i64 320, !7, i64 328}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = !{!22, !22, i64 0}
!22 = !{!"short", !7, i64 0}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}


; 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"

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @printf_tensor(ptr noundef %0) local_unnamed_addr #0 {
  %2 = load i32, ptr %0, align 8, !tbaa !5
  switch i32 %2, label %62 [
    i32 0, label %3
    i32 1, label %32
  ]

3:                                                ; preds = %1
  %4 = tail call ptr @ggml_get_data_f32(ptr noundef nonnull %0) #3
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = getelementptr inbounds i8, ptr %0, i64 32
  %7 = load i64, ptr %6, align 8, !tbaa !12
  %8 = icmp sgt i64 %7, 0
  br i1 %8, label %.preheader49.lr.ph, label %.loopexit

.preheader49.lr.ph:                               ; preds = %3
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  br label %.preheader49

.preheader49:                                     ; preds = %.preheader49.lr.ph, %._crit_edge61
  %indvars.iv77 = phi i64 [ 0, %.preheader49.lr.ph ], [ %indvars.iv.next78, %._crit_edge61 ]
  %10 = load i64, ptr %9, align 8, !tbaa !12
  %11 = icmp sgt i64 %10, 0
  br i1 %11, label %.preheader, label %._crit_edge61

.preheader:                                       ; preds = %.preheader49, %._crit_edge59
  %indvars.iv74 = phi i64 [ %indvars.iv.next75, %._crit_edge59 ], [ 0, %.preheader49 ]
  %12 = load i64, ptr %5, align 8, !tbaa !12
  %13 = icmp sgt i64 %12, 0
  br i1 %13, label %.lr.ph58, label %._crit_edge59

._crit_edge61:                                    ; preds = %._crit_edge59, %.preheader49
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %15 = load i64, ptr %6, align 8, !tbaa !12
  %16 = icmp sgt i64 %15, %indvars.iv.next78
  br i1 %16, label %.preheader49, label %.loopexit, !llvm.loop !13

._crit_edge59:                                    ; preds = %.lr.ph58, %.preheader
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %18 = load i64, ptr %9, align 8, !tbaa !12
  %19 = icmp sgt i64 %18, %indvars.iv.next75
  br i1 %19, label %.preheader, label %._crit_edge61, !llvm.loop !15

.lr.ph58:                                         ; preds = %.preheader, %.lr.ph58
  %indvars.iv71 = phi i64 [ %indvars.iv.next72, %.lr.ph58 ], [ 0, %.preheader ]
  %20 = phi i64 [ %30, %.lr.ph58 ], [ %12, %.preheader ]
  %21 = load i64, ptr %9, align 8, !tbaa !12
  %22 = mul nsw i64 %21, %indvars.iv77
  %23 = add i64 %22, %indvars.iv74
  %24 = mul i64 %23, %20
  %25 = getelementptr float, ptr %4, i64 %24
  %26 = getelementptr float, ptr %25, i64 %indvars.iv71
  %27 = load float, ptr %26, align 4, !tbaa !16
  %28 = fpext float %27 to double
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %28)
  %indvars.iv.next72 = add nuw nsw i64 %indvars.iv71, 1
  %30 = load i64, ptr %5, align 8, !tbaa !12
  %31 = icmp sgt i64 %30, %indvars.iv.next72
  br i1 %31, label %.lr.ph58, label %._crit_edge59, !llvm.loop !18

32:                                               ; preds = %1
  %33 = tail call ptr @ggml_get_data(ptr noundef nonnull %0) #3
  %34 = getelementptr inbounds i8, ptr %0, i64 16
  %35 = getelementptr inbounds i8, ptr %0, i64 32
  %36 = load i64, ptr %35, align 8, !tbaa !12
  %37 = icmp sgt i64 %36, 0
  br i1 %37, label %.preheader51.lr.ph, label %.loopexit

.preheader51.lr.ph:                               ; preds = %32
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  br label %.preheader51

.preheader51:                                     ; preds = %.preheader51.lr.ph, %._crit_edge55
  %indvars.iv68 = phi i64 [ 0, %.preheader51.lr.ph ], [ %indvars.iv.next69, %._crit_edge55 ]
  %39 = load i64, ptr %38, align 8, !tbaa !12
  %40 = icmp sgt i64 %39, 0
  br i1 %40, label %.preheader50, label %._crit_edge55

.preheader50:                                     ; preds = %.preheader51, %._crit_edge
  %indvars.iv65 = phi i64 [ %indvars.iv.next66, %._crit_edge ], [ 0, %.preheader51 ]
  %41 = load i64, ptr %34, align 8, !tbaa !12
  %42 = icmp sgt i64 %41, 0
  br i1 %42, label %.lr.ph, label %._crit_edge

._crit_edge55:                                    ; preds = %._crit_edge, %.preheader51
  %43 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %indvars.iv.next69 = add nuw nsw i64 %indvars.iv68, 1
  %44 = load i64, ptr %35, align 8, !tbaa !12
  %45 = icmp sgt i64 %44, %indvars.iv.next69
  br i1 %45, label %.preheader51, label %.loopexit, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph, %.preheader50
  %46 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %47 = load i64, ptr %38, align 8, !tbaa !12
  %48 = icmp sgt i64 %47, %indvars.iv.next66
  br i1 %48, label %.preheader50, label %._crit_edge55, !llvm.loop !20

.lr.ph:                                           ; preds = %.preheader50, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader50 ]
  %49 = phi i64 [ %60, %.lr.ph ], [ %41, %.preheader50 ]
  %50 = load i64, ptr %38, align 8, !tbaa !12
  %51 = mul nsw i64 %50, %indvars.iv68
  %52 = add i64 %51, %indvars.iv65
  %53 = mul i64 %52, %49
  %54 = getelementptr i16, ptr %33, i64 %53
  %55 = getelementptr i16, ptr %54, i64 %indvars.iv
  %56 = load i16, ptr %55, align 2, !tbaa !21
  %57 = tail call float @ggml_fp16_to_fp32(i16 noundef zeroext %56) #3
  %58 = fpext float %57 to double
  %59 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %58)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %60 = load i64, ptr %34, align 8, !tbaa !12
  %61 = icmp sgt i64 %60, %indvars.iv.next
  br i1 %61, label %.lr.ph, label %._crit_edge, !llvm.loop !23

62:                                               ; preds = %1
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge55, %._crit_edge61, %32, %3, %62
  ret void
}

declare ptr @ggml_get_data_f32(ptr noundef) local_unnamed_addr #1

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

declare ptr @ggml_get_data(ptr noundef) local_unnamed_addr #1

declare float @ggml_fp16_to_fp32(i16 noundef zeroext) local_unnamed_addr #1

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { nounwind }

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass