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

; 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 [65 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 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
declare void @free(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @check_tensor(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ggml_tensor, ptr %20, i32 0, i32 2
  %22 = getelementptr inbounds [4 x i64], ptr %21, i64 0, i64 0
  %23 = load i64, ptr %22, align 8, !tbaa !11
  %24 = load i32, ptr %8, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = icmp eq i64 %23, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %5
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 85, ptr noundef @.str.1, ptr noundef @.str.2) #6
  unreachable

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

36:                                               ; preds = %28
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 86, ptr noundef @.str.1, ptr noundef @.str.3) #6
  unreachable

37:                                               ; preds = %28
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.ggml_tensor, ptr %38, i32 0, i32 2
  %40 = getelementptr inbounds [4 x i64], ptr %39, i64 0, i64 2
  %41 = load i64, ptr %40, align 8, !tbaa !11
  %42 = load i32, ptr %10, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = icmp eq i64 %41, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %37
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 87, ptr noundef @.str.1, ptr noundef @.str.4) #6
  unreachable

46:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = call i64 @ggml_nbytes(ptr noundef %47)
  store i64 %48, ptr %11, align 8, !tbaa !11
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ggml_tensor, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 8, !tbaa !13
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %97

53:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %54 = load i64, ptr %11, align 8, !tbaa !11
  %55 = call noalias ptr @malloc(i64 noundef %54) #8
  store ptr %55, ptr %12, align 8, !tbaa !5
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = load i64, ptr %11, align 8, !tbaa !11
  call void @ggml_backend_tensor_get(ptr noundef %56, ptr noundef %57, i64 noundef 0, i64 noundef %58)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %92, %53
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = load i64, ptr %11, align 8, !tbaa !11
  %63 = udiv i64 %62, 4
  %64 = icmp ult i64 %61, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %95

66:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds float, ptr %67, i64 %69
  %71 = load float, ptr %70, align 4, !tbaa !15
  store float %71, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = load i32, ptr %13, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds float, ptr %72, i64 %74
  %76 = load float, ptr %75, align 4, !tbaa !15
  store float %76, ptr %15, align 4, !tbaa !15
  %77 = load float, ptr %14, align 4, !tbaa !15
  %78 = load float, ptr %15, align 4, !tbaa !15
  %79 = fcmp une float %77, %78
  br i1 %79, label %80, label %86

80:                                               ; preds = %66
  %81 = load float, ptr %14, align 4, !tbaa !15
  %82 = fpext float %81 to double
  %83 = load float, ptr %15, align 4, !tbaa !15
  %84 = fpext float %83 to double
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %82, double noundef %84)
  br label %86

86:                                               ; preds = %80, %66
  %87 = load float, ptr %14, align 4, !tbaa !15
  %88 = load float, ptr %15, align 4, !tbaa !15
  %89 = fcmp oeq float %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 98, ptr noundef @.str.1, ptr noundef @.str.6) #6
  unreachable

91:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %13, align 4, !tbaa !9
  br label %59, !llvm.loop !17

95:                                               ; preds = %65
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %96) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %149

97:                                               ; preds = %46
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ggml_tensor, ptr %98, i32 0, i32 0
  %100 = load i32, ptr %99, align 8, !tbaa !13
  %101 = icmp eq i32 %100, 1
  br i1 %101, label %102, label %147

102:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %103 = load i64, ptr %11, align 8, !tbaa !11
  %104 = call noalias ptr @malloc(i64 noundef %103) #8
  store ptr %104, ptr %16, align 8, !tbaa !5
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  %107 = load i64, ptr %11, align 8, !tbaa !11
  call void @ggml_backend_tensor_get(ptr noundef %105, ptr noundef %106, i64 noundef 0, i64 noundef %107)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %142, %102
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = load i64, ptr %11, align 8, !tbaa !11
  %112 = udiv i64 %111, 2
  %113 = icmp ult i64 %110, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %145

115:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = load i32, ptr %17, align 4, !tbaa !9
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds float, ptr %116, i64 %118
  %120 = load float, ptr %119, align 4, !tbaa !15
  store float %120, ptr %18, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %121 = load ptr, ptr %16, align 8, !tbaa !5
  %122 = load i32, ptr %17, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds i16, ptr %121, i64 %123
  %125 = load i16, ptr %124, align 2, !tbaa !19
  %126 = call float @ggml_fp16_to_fp32(i16 noundef zeroext %125)
  store float %126, ptr %19, align 4, !tbaa !15
  %127 = load float, ptr %18, align 4, !tbaa !15
  %128 = load float, ptr %19, align 4, !tbaa !15
  %129 = fcmp une float %127, %128
  br i1 %129, label %130, label %136

130:                                              ; preds = %115
  %131 = load float, ptr %18, align 4, !tbaa !15
  %132 = fpext float %131 to double
  %133 = load float, ptr %19, align 4, !tbaa !15
  %134 = fpext float %133 to double
  %135 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %132, double noundef %134)
  br label %136

136:                                              ; preds = %130, %115
  %137 = load float, ptr %18, align 4, !tbaa !15
  %138 = load float, ptr %19, align 4, !tbaa !15
  %139 = fcmp oeq float %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 110, ptr noundef @.str.1, ptr noundef @.str.6) #6
  unreachable

141:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %17, align 4, !tbaa !9
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %17, align 4, !tbaa !9
  br label %108, !llvm.loop !21

145:                                              ; preds = %114
  %146 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %146) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %148

147:                                              ; preds = %97
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 126, ptr noundef @.str.7) #6
  unreachable

148:                                              ; preds = %145
  br label %149

149:                                              ; preds = %148, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  ret void
}

; Function Attrs: noreturn
declare void @ggml_abort(ptr noundef, i32 noundef, ptr noundef, ...) #3

declare i64 @ggml_nbytes(ptr noundef) #4

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

declare void @ggml_backend_tensor_get(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #4

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

declare float @ggml_fp16_to_fp32(i16 noundef zeroext) #4

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

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"ggml_tensor", !10, i64 0, !6, i64 8, !7, i64 16, !7, i64 48, !10, i64 80, !7, i64 84, !10, i64 148, !7, i64 152, !6, i64 232, !12, i64 240, !6, i64 248, !7, i64 256, !6, i64 320, !7, i64 328}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = distinct !{!21, !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 [65 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @check_tensor(ptr noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load i64, ptr %6, align 8, !tbaa !5
  %8 = sext i32 %2 to i64
  %9 = icmp eq i64 %7, %8
  br i1 %9, label %11, label %10

10:                                               ; preds = %5
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 85, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2) #6
  unreachable

11:                                               ; preds = %5
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %14 = sext i32 %3 to i64
  %15 = icmp eq i64 %13, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %11
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 86, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.3) #6
  unreachable

17:                                               ; preds = %11
  %18 = getelementptr inbounds i8, ptr %0, i64 32
  %19 = load i64, ptr %18, align 8, !tbaa !5
  %20 = sext i32 %4 to i64
  %21 = icmp eq i64 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %17
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 87, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.4) #6
  unreachable

23:                                               ; preds = %17
  %24 = tail call i64 @ggml_nbytes(ptr noundef nonnull %0) #7
  %25 = load i32, ptr %0, align 8, !tbaa !9
  switch i32 %25, label %59 [
    i32 0, label %26
    i32 1, label %42
  ]

26:                                               ; preds = %23
  %27 = tail call noalias ptr @malloc(i64 noundef %24) #8
  tail call void @ggml_backend_tensor_get(ptr noundef nonnull %0, ptr noundef %27, i64 noundef 0, i64 noundef %24) #7
  %28 = lshr i64 %24, 2
  %.not57 = icmp ult i64 %24, 4
  br i1 %.not57, label %._crit_edge56, label %.lr.ph55

29:                                               ; preds = %39
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %exitcond62.not = icmp eq i64 %indvars.iv.next60, %28
  br i1 %exitcond62.not, label %._crit_edge56, label %.lr.ph55, !llvm.loop !13

.lr.ph55:                                         ; preds = %26, %29
  %indvars.iv59 = phi i64 [ %indvars.iv.next60, %29 ], [ 0, %26 ]
  %30 = getelementptr inbounds float, ptr %1, i64 %indvars.iv59
  %31 = load float, ptr %30, align 4, !tbaa !15
  %32 = getelementptr inbounds float, ptr %27, i64 %indvars.iv59
  %33 = load float, ptr %32, align 4, !tbaa !15
  %34 = fcmp une float %31, %33
  br i1 %34, label %35, label %39

35:                                               ; preds = %.lr.ph55
  %36 = fpext float %31 to double
  %37 = fpext float %33 to double
  %38 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %36, double noundef %37)
  br label %39

39:                                               ; preds = %35, %.lr.ph55
  %40 = fcmp oeq float %31, %33
  br i1 %40, label %29, label %41

41:                                               ; preds = %39
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 98, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.6) #6
  unreachable

42:                                               ; preds = %23
  %43 = tail call noalias ptr @malloc(i64 noundef %24) #8
  tail call void @ggml_backend_tensor_get(ptr noundef nonnull %0, ptr noundef %43, i64 noundef 0, i64 noundef %24) #7
  %44 = lshr i64 %24, 1
  %.not = icmp ult i64 %24, 2
  br i1 %.not, label %._crit_edge56, label %.lr.ph

45:                                               ; preds = %56
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %44
  br i1 %exitcond.not, label %._crit_edge56, label %.lr.ph, !llvm.loop !17

.lr.ph:                                           ; preds = %42, %45
  %indvars.iv = phi i64 [ %indvars.iv.next, %45 ], [ 0, %42 ]
  %46 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  %47 = load float, ptr %46, align 4, !tbaa !15
  %48 = getelementptr inbounds i16, ptr %43, i64 %indvars.iv
  %49 = load i16, ptr %48, align 2, !tbaa !18
  %50 = tail call float @ggml_fp16_to_fp32(i16 noundef zeroext %49) #7
  %51 = fcmp une float %47, %50
  br i1 %51, label %52, label %56

52:                                               ; preds = %.lr.ph
  %53 = fpext float %47 to double
  %54 = fpext float %50 to double
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %53, double noundef %54)
  br label %56

56:                                               ; preds = %52, %.lr.ph
  %57 = fcmp oeq float %47, %50
  br i1 %57, label %45, label %58

58:                                               ; preds = %56
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 110, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.6) #6
  unreachable

59:                                               ; preds = %23
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 126, ptr noundef nonnull @.str.7) #6
  unreachable

._crit_edge56:                                    ; preds = %45, %29, %42, %26
  %.sink = phi ptr [ %27, %26 ], [ %43, %42 ], [ %27, %29 ], [ %43, %45 ]
  tail call void @free(ptr noundef %.sink) #7
  ret void
}

; Function Attrs: noreturn
declare void @ggml_abort(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

declare i64 @ggml_nbytes(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

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

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

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

attributes #0 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 = { noreturn "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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #6 = { noreturn nounwind }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!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 = !{!"long", !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, !12, i64 8, !7, i64 16, !7, i64 48, !11, i64 80, !7, i64 84, !11, i64 148, !7, i64 152, !12, i64 232, !6, i64 240, !12, i64 248, !7, i64 256, !12, i64 320, !7, i64 328}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = distinct !{!17, !14}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}


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