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

; 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] }

@g_userdata = external dso_local global [5 x i8], align 1
@.str = external hidden unnamed_addr constant [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [31 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: noreturn
declare void @ggml_abort(ptr noundef, i32 noundef, ptr noundef, ...) #1

declare zeroext i1 @ggml_are_same_shape(ptr noundef, ptr noundef) #2

declare ptr @ggml_get_data_f32(ptr noundef) #2

declare zeroext i1 @ggml_is_contiguous(ptr noundef) #2

declare i64 @ggml_nelements(ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @custom(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #4 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %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 ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.ggml_tensor, ptr %21, i32 0, i32 7
  %23 = getelementptr inbounds [10 x ptr], ptr %22, i64 0, i64 0
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  store ptr %24, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ggml_tensor, ptr %25, i32 0, i32 7
  %27 = getelementptr inbounds [10 x ptr], ptr %26, i64 0, i64 1
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %28, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ggml_tensor, ptr %29, i32 0, i32 7
  %31 = getelementptr inbounds [10 x ptr], ptr %30, i64 0, i64 2
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  store ptr %32, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.ggml_tensor, ptr %33, i32 0, i32 7
  %35 = getelementptr inbounds [10 x ptr], ptr %34, i64 0, i64 3
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %36, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ggml_tensor, ptr %37, i32 0, i32 7
  %39 = getelementptr inbounds [10 x ptr], ptr %38, i64 0, i64 4
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  store ptr %40, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = call ptr @ggml_get_data(ptr noundef %41)
  store ptr %42, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = call ptr @ggml_get_data_f32(ptr noundef %43)
  store ptr %44, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = call ptr @ggml_get_data_f32(ptr noundef %45)
  store ptr %46, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = call ptr @ggml_get_data_f32(ptr noundef %47)
  store ptr %48, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = call ptr @ggml_get_data_f32(ptr noundef %49)
  store ptr %50, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = call ptr @ggml_get_data_f32(ptr noundef %51)
  store ptr %52, ptr %19, align 8, !tbaa !5
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = icmp eq ptr %53, @g_userdata
  br i1 %54, label %56, label %55

55:                                               ; preds = %4
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 145, ptr noundef @.str.1, ptr noundef @.str.6) #7
  unreachable

56:                                               ; preds = %4
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = call i32 @strcmp(ptr noundef %57, ptr noundef @.str.7) #8
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 146, ptr noundef @.str.1, ptr noundef @.str.8) #7
  unreachable

61:                                               ; preds = %56
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = call zeroext i1 @ggml_is_contiguous(ptr noundef %62)
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 149, ptr noundef @.str.1, ptr noundef @.str.4) #7
  unreachable

65:                                               ; preds = %61
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = call zeroext i1 @ggml_is_contiguous(ptr noundef %66)
  br i1 %67, label %69, label %68

68:                                               ; preds = %65
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 150, ptr noundef @.str.1, ptr noundef @.str.14) #7
  unreachable

69:                                               ; preds = %65
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = call zeroext i1 @ggml_is_contiguous(ptr noundef %70)
  br i1 %71, label %73, label %72

72:                                               ; preds = %69
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 151, ptr noundef @.str.1, ptr noundef @.str.15) #7
  unreachable

73:                                               ; preds = %69
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = call zeroext i1 @ggml_is_contiguous(ptr noundef %74)
  br i1 %75, label %77, label %76

76:                                               ; preds = %73
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 152, ptr noundef @.str.1, ptr noundef @.str.16) #7
  unreachable

77:                                               ; preds = %73
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  %79 = call zeroext i1 @ggml_is_contiguous(ptr noundef %78)
  br i1 %79, label %81, label %80

80:                                               ; preds = %77
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 153, ptr noundef @.str.1, ptr noundef @.str.17) #7
  unreachable

81:                                               ; preds = %77
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = call zeroext i1 @ggml_is_contiguous(ptr noundef %82)
  br i1 %83, label %85, label %84

84:                                               ; preds = %81
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 154, ptr noundef @.str.1, ptr noundef @.str.18) #7
  unreachable

85:                                               ; preds = %81
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = call zeroext i1 @ggml_are_same_shape(ptr noundef %86, ptr noundef %87)
  br i1 %88, label %90, label %89

89:                                               ; preds = %85
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 157, ptr noundef @.str.1, ptr noundef @.str.19) #7
  unreachable

90:                                               ; preds = %85
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = call zeroext i1 @ggml_are_same_shape(ptr noundef %91, ptr noundef %92)
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 158, ptr noundef @.str.1, ptr noundef @.str.20) #7
  unreachable

95:                                               ; preds = %90
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = call zeroext i1 @ggml_are_same_shape(ptr noundef %96, ptr noundef %97)
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 159, ptr noundef @.str.1, ptr noundef @.str.21) #7
  unreachable

100:                                              ; preds = %95
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = call zeroext i1 @ggml_are_same_shape(ptr noundef %101, ptr noundef %102)
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 160, ptr noundef @.str.1, ptr noundef @.str.22) #7
  unreachable

105:                                              ; preds = %100
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  %108 = call zeroext i1 @ggml_are_same_shape(ptr noundef %106, ptr noundef %107)
  br i1 %108, label %110, label %109

109:                                              ; preds = %105
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 161, ptr noundef @.str.1, ptr noundef @.str.23) #7
  unreachable

110:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %111 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %111, ptr %20, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %153, %110
  %113 = load i32, ptr %20, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = call i64 @ggml_nelements(ptr noundef %115)
  %117 = icmp slt i64 %114, %116
  br i1 %117, label %119, label %118

118:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %157

119:                                              ; preds = %112
  %120 = load ptr, ptr %15, align 8, !tbaa !5
  %121 = load i32, ptr %20, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds float, ptr %120, i64 %122
  %124 = load float, ptr %123, align 4, !tbaa !11
  %125 = load ptr, ptr %16, align 8, !tbaa !5
  %126 = load i32, ptr %20, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds float, ptr %125, i64 %127
  %129 = load float, ptr %128, align 4, !tbaa !11
  %130 = load ptr, ptr %17, align 8, !tbaa !5
  %131 = load i32, ptr %20, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds float, ptr %130, i64 %132
  %134 = load float, ptr %133, align 4, !tbaa !11
  %135 = call float @llvm.fmuladd.f32(float %129, float %134, float %124)
  %136 = load ptr, ptr %18, align 8, !tbaa !5
  %137 = load i32, ptr %20, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds float, ptr %136, i64 %138
  %140 = load float, ptr %139, align 4, !tbaa !11
  %141 = load ptr, ptr %19, align 8, !tbaa !5
  %142 = load i32, ptr %20, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %141, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !11
  %146 = fneg float %140
  %147 = call float @llvm.fmuladd.f32(float %146, float %145, float %135)
  %148 = fptosi float %147 to i32
  %149 = load ptr, ptr %14, align 8, !tbaa !5
  %150 = load i32, ptr %20, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds i32, ptr %149, i64 %151
  store i32 %148, ptr %152, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %119
  %154 = load i32, ptr %7, align 4, !tbaa !9
  %155 = load i32, ptr %20, align 4, !tbaa !9
  %156 = add nsw i32 %155, %154
  store i32 %156, ptr %20, align 4, !tbaa !9
  br label %112, !llvm.loop !13

157:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret void
}

declare ptr @ggml_get_data(ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

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

!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 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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

@g_userdata = external dso_local global [5 x i8], align 1
@.str = external hidden unnamed_addr constant [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [31 x i8], align 1

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

declare zeroext i1 @ggml_are_same_shape(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @ggml_get_data_f32(ptr noundef) local_unnamed_addr #1

declare zeroext i1 @ggml_is_contiguous(ptr noundef) local_unnamed_addr #1

declare i64 @ggml_nelements(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @custom(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef readnone %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 152
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 160
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 168
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 176
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 184
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = tail call ptr @ggml_get_data(ptr noundef %0) #5
  %16 = tail call ptr @ggml_get_data_f32(ptr noundef %6) #5
  %17 = tail call ptr @ggml_get_data_f32(ptr noundef %8) #5
  %18 = tail call ptr @ggml_get_data_f32(ptr noundef %10) #5
  %19 = tail call ptr @ggml_get_data_f32(ptr noundef %12) #5
  %20 = tail call ptr @ggml_get_data_f32(ptr noundef %14) #5
  %21 = icmp eq ptr %3, @g_userdata
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %4
  %24 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @g_userdata, ptr noundef nonnull dereferenceable(1) @.str.7) #7
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 146, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.8) #6
  unreachable

27:                                               ; preds = %23
  %28 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef nonnull %0) #5
  br i1 %28, label %30, label %29

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

30:                                               ; preds = %27
  %31 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %6) #5
  br i1 %31, label %33, label %32

32:                                               ; preds = %30
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 150, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.14) #6
  unreachable

33:                                               ; preds = %30
  %34 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %8) #5
  br i1 %34, label %36, label %35

35:                                               ; preds = %33
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 151, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.15) #6
  unreachable

36:                                               ; preds = %33
  %37 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %10) #5
  br i1 %37, label %39, label %38

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

39:                                               ; preds = %36
  %40 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %12) #5
  br i1 %40, label %42, label %41

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

42:                                               ; preds = %39
  %43 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %14) #5
  br i1 %43, label %45, label %44

44:                                               ; preds = %42
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 154, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.18) #6
  unreachable

45:                                               ; preds = %42
  %46 = tail call zeroext i1 @ggml_are_same_shape(ptr noundef nonnull %0, ptr noundef %6) #5
  br i1 %46, label %48, label %47

47:                                               ; preds = %45
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 157, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.19) #6
  unreachable

48:                                               ; preds = %45
  %49 = tail call zeroext i1 @ggml_are_same_shape(ptr noundef nonnull %0, ptr noundef %8) #5
  br i1 %49, label %51, label %50

50:                                               ; preds = %48
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 158, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.20) #6
  unreachable

51:                                               ; preds = %48
  %52 = tail call zeroext i1 @ggml_are_same_shape(ptr noundef nonnull %0, ptr noundef %10) #5
  br i1 %52, label %54, label %53

53:                                               ; preds = %51
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 159, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.21) #6
  unreachable

54:                                               ; preds = %51
  %55 = tail call zeroext i1 @ggml_are_same_shape(ptr noundef nonnull %0, ptr noundef %12) #5
  br i1 %55, label %57, label %56

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

57:                                               ; preds = %54
  %58 = tail call zeroext i1 @ggml_are_same_shape(ptr noundef nonnull %0, ptr noundef %14) #5
  br i1 %58, label %.preheader, label %63

.preheader:                                       ; preds = %57
  %59 = sext i32 %1 to i64
  %60 = tail call i64 @ggml_nelements(ptr noundef nonnull %0) #5
  %61 = icmp sgt i64 %60, %59
  br i1 %61, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader
  %62 = sext i32 %2 to i64
  br label %.lr.ph

63:                                               ; preds = %57
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 161, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.23) #6
  unreachable

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  ret void

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %59, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %64 = getelementptr inbounds float, ptr %16, i64 %indvars.iv
  %65 = load float, ptr %64, align 4, !tbaa !9
  %66 = getelementptr inbounds float, ptr %17, i64 %indvars.iv
  %67 = load float, ptr %66, align 4, !tbaa !9
  %68 = getelementptr inbounds float, ptr %18, i64 %indvars.iv
  %69 = load float, ptr %68, align 4, !tbaa !9
  %70 = tail call float @llvm.fmuladd.f32(float %67, float %69, float %65)
  %71 = getelementptr inbounds float, ptr %19, i64 %indvars.iv
  %72 = load float, ptr %71, align 4, !tbaa !9
  %73 = getelementptr inbounds float, ptr %20, i64 %indvars.iv
  %74 = load float, ptr %73, align 4, !tbaa !9
  %75 = fneg float %72
  %76 = tail call float @llvm.fmuladd.f32(float %75, float %74, float %70)
  %77 = fptosi float %76 to i32
  %78 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv
  store i32 %77, ptr %78, align 4, !tbaa !11
  %indvars.iv.next = add nsw i64 %indvars.iv, %62
  %79 = tail call i64 @ggml_nelements(ptr noundef %0) #5
  %80 = icmp sgt i64 %79, %indvars.iv.next
  br i1 %80, label %.lr.ph, label %._crit_edge, !llvm.loop !13
}

declare ptr @ggml_get_data(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

attributes #0 = { 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 #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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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