; LLVM IR from ggml-org/ggml :: src (ggml)

; 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.12 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [55 x i8], align 1

; Function Attrs: noreturn nounwind uwtable
declare dso_local void @ggml_abort(ptr noundef, i32 noundef, ptr noundef, ...) #0

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @ggml_nelements(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @ggml_is_contiguous(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @ggml_new_tensor(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @ggml_set_op_params_f32(ptr noundef, i32 noundef, float noundef) #2

; Function Attrs: nounwind uwtable
define dso_local ptr @ggml_gated_linear_attn(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, float noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca [4 x i64], align 16
  %20 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store float %6, ptr %14, align 4, !tbaa !9
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = call zeroext i1 @ggml_is_contiguous(ptr noundef %21)
  br i1 %22, label %24, label %23

23:                                               ; preds = %7
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4734, ptr noundef @.str.13, ptr noundef @.str.132) #3
  unreachable

24:                                               ; preds = %7
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = call zeroext i1 @ggml_is_contiguous(ptr noundef %25)
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4735, ptr noundef @.str.13, ptr noundef @.str.133) #3
  unreachable

28:                                               ; preds = %24
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = call zeroext i1 @ggml_is_contiguous(ptr noundef %29)
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4736, ptr noundef @.str.13, ptr noundef @.str.142) #3
  unreachable

32:                                               ; preds = %28
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  %34 = call zeroext i1 @ggml_is_contiguous(ptr noundef %33)
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4737, ptr noundef @.str.13, ptr noundef @.str.143) #3
  unreachable

36:                                               ; preds = %32
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = call zeroext i1 @ggml_is_contiguous(ptr noundef %37)
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4738, ptr noundef @.str.13, ptr noundef @.str.137) #3
  unreachable

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ggml_tensor, ptr %41, i32 0, i32 2
  %43 = getelementptr inbounds [4 x i64], ptr %42, i64 0, i64 0
  %44 = load i64, ptr %43, align 8, !tbaa !11
  store i64 %44, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ggml_tensor, ptr %45, i32 0, i32 2
  %47 = getelementptr inbounds [4 x i64], ptr %46, i64 0, i64 1
  %48 = load i64, ptr %47, align 8, !tbaa !11
  store i64 %48, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.ggml_tensor, ptr %49, i32 0, i32 2
  %51 = getelementptr inbounds [4 x i64], ptr %50, i64 0, i64 2
  %52 = load i64, ptr %51, align 8, !tbaa !11
  store i64 %52, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ggml_tensor, ptr %53, i32 0, i32 2
  %55 = getelementptr inbounds [4 x i64], ptr %54, i64 0, i64 1
  %56 = load i64, ptr %55, align 8, !tbaa !11
  store i64 %56, ptr %18, align 8, !tbaa !11
  %57 = load ptr, ptr %10, 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 !11
  %61 = load i64, ptr %15, align 8, !tbaa !11
  %62 = icmp eq i64 %60, %61
  br i1 %62, label %63, label %77

63:                                               ; preds = %40
  %64 = load ptr, ptr %10, 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 1
  %67 = load i64, ptr %66, align 8, !tbaa !11
  %68 = load i64, ptr %16, align 8, !tbaa !11
  %69 = icmp eq i64 %67, %68
  br i1 %69, label %70, label %77

70:                                               ; preds = %63
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ggml_tensor, ptr %71, i32 0, i32 2
  %73 = getelementptr inbounds [4 x i64], ptr %72, i64 0, i64 2
  %74 = load i64, ptr %73, align 8, !tbaa !11
  %75 = load i64, ptr %17, align 8, !tbaa !11
  %76 = icmp eq i64 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %70, %63, %40
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4745, ptr noundef @.str.13, ptr noundef @.str.138) #3
  unreachable

78:                                               ; preds = %70
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.ggml_tensor, ptr %79, i32 0, i32 2
  %81 = getelementptr inbounds [4 x i64], ptr %80, i64 0, i64 0
  %82 = load i64, ptr %81, align 8, !tbaa !11
  %83 = load i64, ptr %15, align 8, !tbaa !11
  %84 = icmp eq i64 %82, %83
  br i1 %84, label %85, label %99

85:                                               ; preds = %78
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.ggml_tensor, ptr %86, i32 0, i32 2
  %88 = getelementptr inbounds [4 x i64], ptr %87, i64 0, i64 1
  %89 = load i64, ptr %88, align 8, !tbaa !11
  %90 = load i64, ptr %16, align 8, !tbaa !11
  %91 = icmp eq i64 %89, %90
  br i1 %91, label %92, label %99

92:                                               ; preds = %85
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.ggml_tensor, ptr %93, i32 0, i32 2
  %95 = getelementptr inbounds [4 x i64], ptr %94, i64 0, i64 2
  %96 = load i64, ptr %95, align 8, !tbaa !11
  %97 = load i64, ptr %17, align 8, !tbaa !11
  %98 = icmp eq i64 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %92, %85, %78
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4746, ptr noundef @.str.13, ptr noundef @.str.144) #3
  unreachable

100:                                              ; preds = %92
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.ggml_tensor, ptr %101, i32 0, i32 2
  %103 = getelementptr inbounds [4 x i64], ptr %102, i64 0, i64 0
  %104 = load i64, ptr %103, align 8, !tbaa !11
  %105 = load i64, ptr %15, align 8, !tbaa !11
  %106 = icmp eq i64 %104, %105
  br i1 %106, label %107, label %121

107:                                              ; preds = %100
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.ggml_tensor, ptr %108, i32 0, i32 2
  %110 = getelementptr inbounds [4 x i64], ptr %109, i64 0, i64 1
  %111 = load i64, ptr %110, align 8, !tbaa !11
  %112 = load i64, ptr %16, align 8, !tbaa !11
  %113 = icmp eq i64 %111, %112
  br i1 %113, label %114, label %121

114:                                              ; preds = %107
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ggml_tensor, ptr %115, i32 0, i32 2
  %117 = getelementptr inbounds [4 x i64], ptr %116, i64 0, i64 2
  %118 = load i64, ptr %117, align 8, !tbaa !11
  %119 = load i64, ptr %17, align 8, !tbaa !11
  %120 = icmp eq i64 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %114, %107, %100
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4747, ptr noundef @.str.13, ptr noundef @.str.145) #3
  unreachable

122:                                              ; preds = %114
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = call i64 @ggml_nelements(ptr noundef %123)
  %125 = load i64, ptr %15, align 8, !tbaa !11
  %126 = load i64, ptr %15, align 8, !tbaa !11
  %127 = mul nsw i64 %125, %126
  %128 = load i64, ptr %16, align 8, !tbaa !11
  %129 = mul nsw i64 %127, %128
  %130 = load i64, ptr %18, align 8, !tbaa !11
  %131 = mul nsw i64 %129, %130
  %132 = icmp eq i64 %124, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %122
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4748, ptr noundef @.str.13, ptr noundef @.str.141) #3
  unreachable

134:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  %135 = load i64, ptr %15, align 8, !tbaa !11
  %136 = load i64, ptr %16, align 8, !tbaa !11
  %137 = mul nsw i64 %135, %136
  store i64 %137, ptr %19, align 8, !tbaa !11
  %138 = getelementptr inbounds i64, ptr %19, i64 1
  %139 = load i64, ptr %17, align 8, !tbaa !11
  %140 = load i64, ptr %15, align 8, !tbaa !11
  %141 = load i64, ptr %18, align 8, !tbaa !11
  %142 = mul nsw i64 %140, %141
  %143 = add nsw i64 %139, %142
  store i64 %143, ptr %138, align 8, !tbaa !11
  %144 = getelementptr inbounds i64, ptr %19, i64 2
  store i64 1, ptr %144, align 8, !tbaa !11
  %145 = getelementptr inbounds i64, ptr %19, i64 3
  store i64 1, ptr %145, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = getelementptr inbounds [4 x i64], ptr %19, i64 0, i64 0
  %148 = call ptr @ggml_new_tensor(ptr noundef %146, i32 noundef 0, i32 noundef 4, ptr noundef %147)
  store ptr %148, ptr %20, align 8, !tbaa !5
  %149 = load ptr, ptr %20, align 8, !tbaa !5
  %150 = load float, ptr %14, align 4, !tbaa !9
  call void @ggml_set_op_params_f32(ptr noundef %149, i32 noundef 0, float noundef %150)
  %151 = load ptr, ptr %20, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.ggml_tensor, ptr %151, i32 0, i32 4
  store i32 72, ptr %152, align 8, !tbaa !13
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = load ptr, ptr %20, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.ggml_tensor, ptr %154, i32 0, i32 7
  %156 = getelementptr inbounds [10 x ptr], ptr %155, i64 0, i64 0
  store ptr %153, ptr %156, align 8, !tbaa !5
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = load ptr, ptr %20, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.ggml_tensor, ptr %158, i32 0, i32 7
  %160 = getelementptr inbounds [10 x ptr], ptr %159, i64 0, i64 1
  store ptr %157, ptr %160, align 8, !tbaa !5
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = load ptr, ptr %20, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.ggml_tensor, ptr %162, i32 0, i32 7
  %164 = getelementptr inbounds [10 x ptr], ptr %163, i64 0, i64 2
  store ptr %161, ptr %164, align 8, !tbaa !5
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = load ptr, ptr %20, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.ggml_tensor, ptr %166, i32 0, i32 7
  %168 = getelementptr inbounds [10 x ptr], ptr %167, i64 0, i64 3
  store ptr %165, ptr %168, align 8, !tbaa !5
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = load ptr, ptr %20, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.ggml_tensor, ptr %170, i32 0, i32 7
  %172 = getelementptr inbounds [10 x ptr], ptr %171, i64 0, i64 4
  store ptr %169, ptr %172, align 8, !tbaa !5
  %173 = load ptr, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  ret ptr %173
}

attributes #0 = { noreturn 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !15, i64 80}
!14 = !{!"ggml_tensor", !15, i64 0, !6, i64 8, !7, i64 16, !7, i64 48, !15, i64 80, !7, i64 84, !15, i64 148, !7, i64 152, !6, i64 232, !12, i64 240, !6, i64 248, !7, i64 256, !6, i64 320, !7, i64 328}
!15 = !{!"int", !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"

@.str.12 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [55 x i8], align 1

; Function Attrs: noreturn nounwind uwtable
declare dso_local void @ggml_abort(ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @ggml_nelements(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @ggml_is_contiguous(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @ggml_new_tensor(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden void @ggml_set_op_params_f32(ptr noundef, i32 noundef, float noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @ggml_gated_linear_attn(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, float noundef %6) local_unnamed_addr #2 {
  %8 = alloca [4 x i64], align 16
  %9 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %1)
  br i1 %9, label %11, label %10

10:                                               ; preds = %7
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 4734, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.132) #3
  unreachable

11:                                               ; preds = %7
  %12 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %2)
  br i1 %12, label %14, label %13

13:                                               ; preds = %11
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 4735, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.133) #3
  unreachable

14:                                               ; preds = %11
  %15 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %3)
  br i1 %15, label %17, label %16

16:                                               ; preds = %14
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 4736, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.142) #3
  unreachable

17:                                               ; preds = %14
  %18 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %4)
  br i1 %18, label %20, label %19

19:                                               ; preds = %17
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 4737, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.143) #3
  unreachable

20:                                               ; preds = %17
  %21 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %5)
  br i1 %21, label %23, label %22

22:                                               ; preds = %20
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 4738, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.137) #3
  unreachable

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %1, i64 16
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %1, i64 24
  %27 = load i64, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %1, i64 32
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %5, i64 24
  %31 = load i64, ptr %30, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %2, i64 16
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %34 = icmp eq i64 %33, %25
  br i1 %34, label %35, label %43

35:                                               ; preds = %23
  %36 = getelementptr inbounds i8, ptr %2, i64 24
  %37 = load i64, ptr %36, align 8, !tbaa !5
  %38 = icmp eq i64 %37, %27
  br i1 %38, label %39, label %43

39:                                               ; preds = %35
  %40 = getelementptr inbounds i8, ptr %2, i64 32
  %41 = load i64, ptr %40, align 8, !tbaa !5
  %42 = icmp eq i64 %41, %29
  br i1 %42, label %44, label %43

43:                                               ; preds = %39, %35, %23
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 4745, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.138) #3
  unreachable

44:                                               ; preds = %39
  %45 = getelementptr inbounds i8, ptr %3, i64 16
  %46 = load i64, ptr %45, align 8, !tbaa !5
  %47 = icmp eq i64 %46, %25
  br i1 %47, label %48, label %56

48:                                               ; preds = %44
  %49 = getelementptr inbounds i8, ptr %3, i64 24
  %50 = load i64, ptr %49, align 8, !tbaa !5
  %51 = icmp eq i64 %50, %27
  br i1 %51, label %52, label %56

52:                                               ; preds = %48
  %53 = getelementptr inbounds i8, ptr %3, i64 32
  %54 = load i64, ptr %53, align 8, !tbaa !5
  %55 = icmp eq i64 %54, %29
  br i1 %55, label %57, label %56

56:                                               ; preds = %52, %48, %44
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 4746, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.144) #3
  unreachable

57:                                               ; preds = %52
  %58 = getelementptr inbounds i8, ptr %4, i64 16
  %59 = load i64, ptr %58, align 8, !tbaa !5
  %60 = icmp eq i64 %59, %25
  br i1 %60, label %61, label %69

61:                                               ; preds = %57
  %62 = getelementptr inbounds i8, ptr %4, i64 24
  %63 = load i64, ptr %62, align 8, !tbaa !5
  %64 = icmp eq i64 %63, %27
  br i1 %64, label %65, label %69

65:                                               ; preds = %61
  %66 = getelementptr inbounds i8, ptr %4, i64 32
  %67 = load i64, ptr %66, align 8, !tbaa !5
  %68 = icmp eq i64 %67, %29
  br i1 %68, label %70, label %69

69:                                               ; preds = %65, %61, %57
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 4747, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.145) #3
  unreachable

70:                                               ; preds = %65
  %71 = tail call i64 @ggml_nelements(ptr noundef nonnull %5)
  %72 = mul i64 %27, %25
  %73 = mul i64 %72, %25
  %74 = mul nsw i64 %73, %31
  %75 = icmp eq i64 %71, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %70
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 4748, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.141) #3
  unreachable

77:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  store i64 %72, ptr %8, align 16, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %8, i64 8
  %79 = mul nsw i64 %31, %25
  %80 = add nsw i64 %79, %29
  store i64 %80, ptr %78, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %8, i64 16
  store i64 1, ptr %81, align 16, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %8, i64 24
  store i64 1, ptr %82, align 8, !tbaa !5
  %83 = call ptr @ggml_new_tensor(ptr noundef %0, i32 noundef 0, i32 noundef 4, ptr noundef nonnull %8)
  call void @ggml_set_op_params_f32(ptr noundef %83, i32 noundef 0, float noundef %6)
  %84 = getelementptr inbounds i8, ptr %83, i64 80
  store i32 72, ptr %84, align 8, !tbaa !9
  %85 = getelementptr inbounds i8, ptr %83, i64 152
  store ptr %1, ptr %85, align 8, !tbaa !13
  %86 = getelementptr inbounds i8, ptr %83, i64 160
  store ptr %2, ptr %86, align 8, !tbaa !13
  %87 = getelementptr inbounds i8, ptr %83, i64 168
  store ptr %3, ptr %87, align 8, !tbaa !13
  %88 = getelementptr inbounds i8, ptr %83, i64 176
  store ptr %4, ptr %88, align 8, !tbaa !13
  %89 = getelementptr inbounds i8, ptr %83, i64 184
  store ptr %5, ptr %89, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  ret ptr %83
}

attributes #0 = { noreturn 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 }
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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 80}
!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 = !{!12, !12, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,TailCallElimPass