; 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.134 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [23 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.139 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [44 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
define dso_local ptr @ggml_rwkv_wkv6(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr 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 ptr, align 8
  %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 ptr %6, ptr %14, align 8, !tbaa !5
  %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 4691, 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 4692, 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 4693, ptr noundef @.str.13, ptr noundef @.str.134) #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 4694, ptr noundef @.str.13, ptr noundef @.str.135) #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 4695, ptr noundef @.str.13, ptr noundef @.str.136) #3
  unreachable

40:                                               ; preds = %36
  %41 = load ptr, ptr %14, align 8, !tbaa !5
  %42 = call zeroext i1 @ggml_is_contiguous(ptr noundef %41)
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4696, ptr noundef @.str.13, ptr noundef @.str.137) #3
  unreachable

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #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 0
  %48 = load i64, ptr %47, align 8, !tbaa !9
  store i64 %48, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #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 1
  %52 = load i64, ptr %51, align 8, !tbaa !9
  store i64 %52, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %53 = load ptr, ptr %9, 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 2
  %56 = load i64, ptr %55, align 8, !tbaa !9
  store i64 %56, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %57 = load ptr, ptr %14, 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 1
  %60 = load i64, ptr %59, align 8, !tbaa !9
  store i64 %60, ptr %18, align 8, !tbaa !9
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ggml_tensor, ptr %61, i32 0, i32 2
  %63 = getelementptr inbounds [4 x i64], ptr %62, i64 0, i64 0
  %64 = load i64, ptr %63, align 8, !tbaa !9
  %65 = load i64, ptr %15, align 8, !tbaa !9
  %66 = icmp eq i64 %64, %65
  br i1 %66, label %67, label %81

67:                                               ; preds = %44
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ggml_tensor, ptr %68, i32 0, i32 2
  %70 = getelementptr inbounds [4 x i64], ptr %69, i64 0, i64 1
  %71 = load i64, ptr %70, align 8, !tbaa !9
  %72 = load i64, ptr %16, align 8, !tbaa !9
  %73 = icmp eq i64 %71, %72
  br i1 %73, label %74, label %81

74:                                               ; preds = %67
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ggml_tensor, ptr %75, i32 0, i32 2
  %77 = getelementptr inbounds [4 x i64], ptr %76, i64 0, i64 2
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = load i64, ptr %17, align 8, !tbaa !9
  %80 = icmp eq i64 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %74, %67, %44
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4703, ptr noundef @.str.13, ptr noundef @.str.138) #3
  unreachable

82:                                               ; preds = %74
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ggml_tensor, ptr %83, i32 0, i32 2
  %85 = getelementptr inbounds [4 x i64], ptr %84, i64 0, i64 0
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = load i64, ptr %15, align 8, !tbaa !9
  %88 = icmp eq i64 %86, %87
  br i1 %88, label %89, label %103

89:                                               ; preds = %82
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ggml_tensor, ptr %90, i32 0, i32 2
  %92 = getelementptr inbounds [4 x i64], ptr %91, i64 0, i64 1
  %93 = load i64, ptr %92, align 8, !tbaa !9
  %94 = load i64, ptr %16, align 8, !tbaa !9
  %95 = icmp eq i64 %93, %94
  br i1 %95, label %96, label %103

96:                                               ; preds = %89
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ggml_tensor, ptr %97, i32 0, i32 2
  %99 = getelementptr inbounds [4 x i64], ptr %98, i64 0, i64 2
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = load i64, ptr %17, align 8, !tbaa !9
  %102 = icmp eq i64 %100, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %96, %89, %82
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4704, ptr noundef @.str.13, ptr noundef @.str.139) #3
  unreachable

104:                                              ; preds = %96
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.ggml_tensor, ptr %105, i32 0, i32 2
  %107 = getelementptr inbounds [4 x i64], ptr %106, i64 0, i64 0
  %108 = load i64, ptr %107, align 8, !tbaa !9
  %109 = load i64, ptr %15, align 8, !tbaa !9
  %110 = icmp eq i64 %108, %109
  br i1 %110, label %111, label %125

111:                                              ; preds = %104
  %112 = load ptr, ptr %13, 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 !9
  %116 = load i64, ptr %16, align 8, !tbaa !9
  %117 = icmp eq i64 %115, %116
  br i1 %117, label %118, label %125

118:                                              ; preds = %111
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.ggml_tensor, ptr %119, i32 0, i32 2
  %121 = getelementptr inbounds [4 x i64], ptr %120, i64 0, i64 2
  %122 = load i64, ptr %121, align 8, !tbaa !9
  %123 = load i64, ptr %17, align 8, !tbaa !9
  %124 = icmp eq i64 %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %118, %111, %104
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4705, ptr noundef @.str.13, ptr noundef @.str.140) #3
  unreachable

126:                                              ; preds = %118
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  %128 = call i64 @ggml_nelements(ptr noundef %127)
  %129 = load i64, ptr %15, align 8, !tbaa !9
  %130 = load i64, ptr %15, align 8, !tbaa !9
  %131 = mul nsw i64 %129, %130
  %132 = load i64, ptr %16, align 8, !tbaa !9
  %133 = mul nsw i64 %131, %132
  %134 = load i64, ptr %18, align 8, !tbaa !9
  %135 = mul nsw i64 %133, %134
  %136 = icmp eq i64 %128, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %126
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str.12, i32 noundef 4706, ptr noundef @.str.13, ptr noundef @.str.141) #3
  unreachable

138:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  %139 = load i64, ptr %15, align 8, !tbaa !9
  %140 = load i64, ptr %16, align 8, !tbaa !9
  %141 = mul nsw i64 %139, %140
  store i64 %141, ptr %19, align 8, !tbaa !9
  %142 = getelementptr inbounds i64, ptr %19, i64 1
  %143 = load i64, ptr %17, align 8, !tbaa !9
  %144 = load i64, ptr %15, align 8, !tbaa !9
  %145 = load i64, ptr %18, align 8, !tbaa !9
  %146 = mul nsw i64 %144, %145
  %147 = add nsw i64 %143, %146
  store i64 %147, ptr %142, align 8, !tbaa !9
  %148 = getelementptr inbounds i64, ptr %19, i64 2
  store i64 1, ptr %148, align 8, !tbaa !9
  %149 = getelementptr inbounds i64, ptr %19, i64 3
  store i64 1, ptr %149, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %150 = load ptr, ptr %8, align 8, !tbaa !5
  %151 = getelementptr inbounds [4 x i64], ptr %19, i64 0, i64 0
  %152 = call ptr @ggml_new_tensor(ptr noundef %150, i32 noundef 0, i32 noundef 4, ptr noundef %151)
  store ptr %152, ptr %20, align 8, !tbaa !5
  %153 = load ptr, ptr %20, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.ggml_tensor, ptr %153, i32 0, i32 4
  store i32 71, ptr %154, align 8, !tbaa !11
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = load ptr, ptr %20, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.ggml_tensor, ptr %156, i32 0, i32 7
  %158 = getelementptr inbounds [10 x ptr], ptr %157, i64 0, i64 0
  store ptr %155, ptr %158, align 8, !tbaa !5
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = load ptr, ptr %20, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.ggml_tensor, ptr %160, i32 0, i32 7
  %162 = getelementptr inbounds [10 x ptr], ptr %161, i64 0, i64 1
  store ptr %159, ptr %162, align 8, !tbaa !5
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = load ptr, ptr %20, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.ggml_tensor, ptr %164, i32 0, i32 7
  %166 = getelementptr inbounds [10 x ptr], ptr %165, i64 0, i64 2
  store ptr %163, ptr %166, align 8, !tbaa !5
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  %168 = load ptr, ptr %20, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ggml_tensor, ptr %168, i32 0, i32 7
  %170 = getelementptr inbounds [10 x ptr], ptr %169, i64 0, i64 3
  store ptr %167, ptr %170, align 8, !tbaa !5
  %171 = load ptr, ptr %13, align 8, !tbaa !5
  %172 = load ptr, ptr %20, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.ggml_tensor, ptr %172, i32 0, i32 7
  %174 = getelementptr inbounds [10 x ptr], ptr %173, i64 0, i64 4
  store ptr %171, ptr %174, align 8, !tbaa !5
  %175 = load ptr, ptr %14, align 8, !tbaa !5
  %176 = load ptr, ptr %20, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.ggml_tensor, ptr %176, i32 0, i32 7
  %178 = getelementptr inbounds [10 x ptr], ptr %177, i64 0, i64 5
  store ptr %175, ptr %178, align 8, !tbaa !5
  %179 = 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 %179
}

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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 80}
!12 = !{!"ggml_tensor", !13, i64 0, !6, i64 8, !7, i64 16, !7, i64 48, !13, i64 80, !7, i64 84, !13, i64 148, !7, i64 152, !6, i64 232, !10, i64 240, !6, i64 248, !7, i64 256, !6, i64 320, !7, i64 328}
!13 = !{!"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.134 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [23 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.139 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [44 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
define dso_local ptr @ggml_rwkv_wkv6(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr 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 4691, 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 4692, 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 4693, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.134) #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 4694, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.135) #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 4695, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.136) #3
  unreachable

23:                                               ; preds = %20
  %24 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %6)
  br i1 %24, label %26, label %25

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

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

38:                                               ; preds = %26
  %39 = getelementptr inbounds i8, ptr %2, i64 24
  %40 = load i64, ptr %39, align 8, !tbaa !5
  %41 = icmp eq i64 %40, %30
  br i1 %41, label %42, label %46

42:                                               ; preds = %38
  %43 = getelementptr inbounds i8, ptr %2, i64 32
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %45 = icmp eq i64 %44, %32
  br i1 %45, label %47, label %46

46:                                               ; preds = %42, %38, %26
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 4703, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.138) #3
  unreachable

47:                                               ; preds = %42
  %48 = getelementptr inbounds i8, ptr %3, i64 16
  %49 = load i64, ptr %48, align 8, !tbaa !5
  %50 = icmp eq i64 %49, %28
  br i1 %50, label %51, label %59

51:                                               ; preds = %47
  %52 = getelementptr inbounds i8, ptr %3, i64 24
  %53 = load i64, ptr %52, align 8, !tbaa !5
  %54 = icmp eq i64 %53, %30
  br i1 %54, label %55, label %59

55:                                               ; preds = %51
  %56 = getelementptr inbounds i8, ptr %3, i64 32
  %57 = load i64, ptr %56, align 8, !tbaa !5
  %58 = icmp eq i64 %57, %32
  br i1 %58, label %60, label %59

59:                                               ; preds = %55, %51, %47
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 4704, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.139) #3
  unreachable

60:                                               ; preds = %55
  %61 = getelementptr inbounds i8, ptr %5, i64 16
  %62 = load i64, ptr %61, align 8, !tbaa !5
  %63 = icmp eq i64 %62, %28
  br i1 %63, label %64, label %72

64:                                               ; preds = %60
  %65 = getelementptr inbounds i8, ptr %5, i64 24
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %67 = icmp eq i64 %66, %30
  br i1 %67, label %68, label %72

68:                                               ; preds = %64
  %69 = getelementptr inbounds i8, ptr %5, i64 32
  %70 = load i64, ptr %69, align 8, !tbaa !5
  %71 = icmp eq i64 %70, %32
  br i1 %71, label %73, label %72

72:                                               ; preds = %68, %64, %60
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str.12, i32 noundef 4705, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.140) #3
  unreachable

73:                                               ; preds = %68
  %74 = tail call i64 @ggml_nelements(ptr noundef nonnull %6)
  %75 = mul i64 %30, %28
  %76 = mul i64 %75, %28
  %77 = mul nsw i64 %76, %34
  %78 = icmp eq i64 %74, %77
  br i1 %78, label %80, label %79

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

80:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  store i64 %75, ptr %8, align 16, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %8, i64 8
  %82 = mul nsw i64 %34, %28
  %83 = add nsw i64 %82, %32
  store i64 %83, ptr %81, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %8, i64 16
  store i64 1, ptr %84, align 16, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %8, i64 24
  store i64 1, ptr %85, align 8, !tbaa !5
  %86 = call ptr @ggml_new_tensor(ptr noundef %0, i32 noundef 0, i32 noundef 4, ptr noundef nonnull %8)
  %87 = getelementptr inbounds i8, ptr %86, i64 80
  store i32 71, ptr %87, align 8, !tbaa !9
  %88 = getelementptr inbounds i8, ptr %86, i64 152
  store ptr %1, ptr %88, align 8, !tbaa !13
  %89 = getelementptr inbounds i8, ptr %86, i64 160
  store ptr %2, ptr %89, align 8, !tbaa !13
  %90 = getelementptr inbounds i8, ptr %86, i64 168
  store ptr %3, ptr %90, align 8, !tbaa !13
  %91 = getelementptr inbounds i8, ptr %86, i64 176
  store ptr %4, ptr %91, align 8, !tbaa !13
  %92 = getelementptr inbounds i8, ptr %86, i64 184
  store ptr %5, ptr %92, align 8, !tbaa !13
  %93 = getelementptr inbounds i8, ptr %86, i64 192
  store ptr %6, ptr %93, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  ret ptr %86
}

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,ReassociatePass,SROAPass,TailCallElimPass