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

@g_userdata = external dso_local global [5 x i8], align 1
@g_custom3_count = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 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.9 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 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 @custom3(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) #4 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  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 i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !5
  %23 = load ptr, ptr %14, align 8, !tbaa !5
  %24 = icmp eq ptr %23, @g_userdata
  br i1 %24, label %26, label %25

25:                                               ; preds = %7
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 100, ptr noundef @.str.1, ptr noundef @.str.6) #5
  unreachable

26:                                               ; preds = %7
  %27 = load ptr, ptr %14, align 8, !tbaa !5
  %28 = call i32 @strcmp(ptr noundef %27, ptr noundef @.str.7) #6
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 101, ptr noundef @.str.1, ptr noundef @.str.8) #5
  unreachable

31:                                               ; preds = %26
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = call zeroext i1 @ggml_are_same_shape(ptr noundef %32, ptr noundef %33)
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 102, ptr noundef @.str.1, ptr noundef @.str.3) #5
  unreachable

36:                                               ; preds = %31
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = call zeroext i1 @ggml_are_same_shape(ptr noundef %37, ptr noundef %38)
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 103, ptr noundef @.str.1, ptr noundef @.str.9) #5
  unreachable

41:                                               ; preds = %36
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = call zeroext i1 @ggml_are_same_shape(ptr noundef %42, ptr noundef %43)
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 104, ptr noundef @.str.1, ptr noundef @.str.11) #5
  unreachable

46:                                               ; preds = %41
  store i32 1, ptr %15, align 4, !tbaa !9
  %47 = load i32, ptr %15, align 4
  %48 = atomicrmw add ptr @g_custom3_count, i32 %47 seq_cst, align 4
  store i32 %48, ptr %16, align 4
  %49 = load i32, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = call ptr @ggml_get_data_f32(ptr noundef %50)
  store ptr %51, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = call ptr @ggml_get_data_f32(ptr noundef %52)
  store ptr %53, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = call ptr @ggml_get_data_f32(ptr noundef %54)
  store ptr %55, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = call ptr @ggml_get_data_f32(ptr noundef %56)
  store ptr %57, ptr %20, align 8, !tbaa !5
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %61, label %60

60:                                               ; preds = %46
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 114, ptr noundef @.str.1, ptr noundef @.str.12) #5
  unreachable

61:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = call i64 @ggml_nelements(ptr noundef %62)
  %64 = trunc i64 %63 to i32
  store i32 %64, ptr %21, align 4, !tbaa !9
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = call zeroext i1 @ggml_is_contiguous(ptr noundef %65)
  br i1 %66, label %68, label %67

67:                                               ; preds = %61
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 120, ptr noundef @.str.1, ptr noundef @.str.4) #5
  unreachable

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

71:                                               ; preds = %68
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 121, ptr noundef @.str.1, ptr noundef @.str.5) #5
  unreachable

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

75:                                               ; preds = %72
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 122, ptr noundef @.str.1, ptr noundef @.str.10) #5
  unreachable

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

79:                                               ; preds = %76
  call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef @.str, i32 noundef 123, ptr noundef @.str.1, ptr noundef @.str.13) #5
  unreachable

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %108, %80
  %82 = load i32, ptr %22, align 4, !tbaa !9
  %83 = load i32, ptr %21, align 4, !tbaa !9
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %111

86:                                               ; preds = %81
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = load i32, ptr %22, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %87, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !11
  %92 = load ptr, ptr %18, align 8, !tbaa !5
  %93 = load i32, ptr %22, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds float, ptr %92, i64 %94
  %96 = load float, ptr %95, align 4, !tbaa !11
  %97 = fadd float %91, %96
  %98 = load ptr, ptr %19, align 8, !tbaa !5
  %99 = load i32, ptr %22, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds float, ptr %98, i64 %100
  %102 = load float, ptr %101, align 4, !tbaa !11
  %103 = fadd float %97, %102
  %104 = load ptr, ptr %20, align 8, !tbaa !5
  %105 = load i32, ptr %22, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds float, ptr %104, i64 %106
  store float %103, ptr %107, align 4, !tbaa !11
  br label %108

108:                                              ; preds = %86
  %109 = load i32, ptr %22, align 4, !tbaa !9
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %22, align 4, !tbaa !9
  br label %81, !llvm.loop !13

111:                                              ; preds = %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  ret void
}

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 = { noreturn }
attributes #6 = { nounwind willreturn memory(read) }
attributes #7 = { 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 = !{!"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
@g_custom3_count = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 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.9 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 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 @custom3(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef readnone %6) local_unnamed_addr #3 {
  %8 = icmp eq ptr %6, @g_userdata
  br i1 %8, label %10, label %9

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

10:                                               ; preds = %7
  %11 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @g_userdata, ptr noundef nonnull dereferenceable(1) @.str.7) #5
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %14, label %13

13:                                               ; preds = %10
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 101, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.8) #4
  unreachable

14:                                               ; preds = %10
  %15 = tail call zeroext i1 @ggml_are_same_shape(ptr noundef %0, ptr noundef %1) #6
  br i1 %15, label %17, label %16

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

17:                                               ; preds = %14
  %18 = tail call zeroext i1 @ggml_are_same_shape(ptr noundef %0, ptr noundef %2) #6
  br i1 %18, label %20, label %19

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

20:                                               ; preds = %17
  %21 = tail call zeroext i1 @ggml_are_same_shape(ptr noundef %0, ptr noundef %3) #6
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %20
  %24 = atomicrmw add ptr @g_custom3_count, i32 1 seq_cst, align 4
  %25 = tail call ptr @ggml_get_data_f32(ptr noundef %1) #6
  %26 = ptrtoint ptr %25 to i64
  %27 = tail call ptr @ggml_get_data_f32(ptr noundef %2) #6
  %28 = ptrtoint ptr %27 to i64
  %29 = tail call ptr @ggml_get_data_f32(ptr noundef %3) #6
  %30 = ptrtoint ptr %29 to i64
  %31 = tail call ptr @ggml_get_data_f32(ptr noundef %0) #6
  %32 = ptrtoint ptr %31 to i64
  %33 = icmp eq i32 %4, 0
  br i1 %33, label %35, label %34

34:                                               ; preds = %23
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 114, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.12) #4
  unreachable

35:                                               ; preds = %23
  %36 = tail call i64 @ggml_nelements(ptr noundef %0) #6
  %37 = trunc i64 %36 to i32
  %38 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %0) #6
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 120, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.4) #4
  unreachable

40:                                               ; preds = %35
  %41 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %1) #6
  br i1 %41, label %43, label %42

42:                                               ; preds = %40
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 121, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.5) #4
  unreachable

43:                                               ; preds = %40
  %44 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %2) #6
  br i1 %44, label %46, label %45

45:                                               ; preds = %43
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 122, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.10) #4
  unreachable

46:                                               ; preds = %43
  %47 = tail call zeroext i1 @ggml_is_contiguous(ptr noundef %3) #6
  br i1 %47, label %.preheader, label %76

.preheader:                                       ; preds = %46
  %48 = icmp sgt i32 %37, 0
  br i1 %48, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = and i64 %36, 2147483647
  %min.iters.check = icmp ult i64 %wide.trip.count, 8
  br i1 %min.iters.check, label %.lr.ph.preheader41, label %vector.memcheck

.lr.ph.preheader41:                               ; preds = %middle.block, %vector.memcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %49 = sub i64 %36, %indvars.iv.ph
  %.neg = add nsw i64 %indvars.iv.ph, 1
  %xtraiter = and i64 %49, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader41
  %50 = getelementptr inbounds float, ptr %25, i64 %indvars.iv.ph
  %51 = load float, ptr %50, align 4, !tbaa !5
  %52 = getelementptr inbounds float, ptr %27, i64 %indvars.iv.ph
  %53 = load float, ptr %52, align 4, !tbaa !5
  %54 = fadd float %51, %53
  %55 = getelementptr inbounds float, ptr %29, i64 %indvars.iv.ph
  %56 = load float, ptr %55, align 4, !tbaa !5
  %57 = fadd float %54, %56
  %58 = getelementptr inbounds float, ptr %31, i64 %indvars.iv.ph
  store float %57, ptr %58, align 4, !tbaa !5
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.ph, 1
  br label %.lr.ph.prol.loopexit

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader41
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader41 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %59 = icmp eq i64 %wide.trip.count, %.neg
  br i1 %59, label %._crit_edge, label %.lr.ph

vector.memcheck:                                  ; preds = %.lr.ph.preheader
  %60 = sub i64 %32, %26
  %diff.check = icmp ult i64 %60, 32
  %61 = sub i64 %32, %28
  %diff.check33 = icmp ult i64 %61, 32
  %conflict.rdx = or i1 %diff.check, %diff.check33
  %62 = sub i64 %32, %30
  %diff.check34 = icmp ult i64 %62, 32
  %conflict.rdx35 = or i1 %conflict.rdx, %diff.check34
  br i1 %conflict.rdx35, label %.lr.ph.preheader41, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.mod.vf = and i64 %36, 7
  %n.vec = sub nsw i64 %wide.trip.count, %n.mod.vf
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %63 = getelementptr inbounds float, ptr %25, i64 %index
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  %wide.load = load <4 x float>, ptr %63, align 4, !tbaa !5
  %wide.load36 = load <4 x float>, ptr %64, align 4, !tbaa !5
  %65 = getelementptr inbounds float, ptr %27, i64 %index
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  %wide.load37 = load <4 x float>, ptr %65, align 4, !tbaa !5
  %wide.load38 = load <4 x float>, ptr %66, align 4, !tbaa !5
  %67 = fadd <4 x float> %wide.load, %wide.load37
  %68 = fadd <4 x float> %wide.load36, %wide.load38
  %69 = getelementptr inbounds float, ptr %29, i64 %index
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %wide.load39 = load <4 x float>, ptr %69, align 4, !tbaa !5
  %wide.load40 = load <4 x float>, ptr %70, align 4, !tbaa !5
  %71 = fadd <4 x float> %67, %wide.load39
  %72 = fadd <4 x float> %68, %wide.load40
  %73 = getelementptr inbounds float, ptr %31, i64 %index
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  store <4 x float> %71, ptr %73, align 4, !tbaa !5
  store <4 x float> %72, ptr %74, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %75 = icmp eq i64 %index.next, %n.vec
  br i1 %75, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.mod.vf, 0
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader41

76:                                               ; preds = %46
  tail call void (ptr, i32, ptr, ...) @ggml_abort(ptr noundef nonnull @.str, i32 noundef 123, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.13) #4
  unreachable

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %.preheader
  ret void

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %77 = getelementptr inbounds float, ptr %25, i64 %indvars.iv
  %78 = load float, ptr %77, align 4, !tbaa !5
  %79 = getelementptr inbounds float, ptr %27, i64 %indvars.iv
  %80 = load float, ptr %79, align 4, !tbaa !5
  %81 = fadd float %78, %80
  %82 = getelementptr inbounds float, ptr %29, i64 %indvars.iv
  %83 = load float, ptr %82, align 4, !tbaa !5
  %84 = fadd float %81, %83
  %85 = getelementptr inbounds float, ptr %31, i64 %indvars.iv
  store float %84, ptr %85, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %86 = getelementptr inbounds float, ptr %25, i64 %indvars.iv.next
  %87 = load float, ptr %86, align 4, !tbaa !5
  %88 = getelementptr inbounds float, ptr %27, i64 %indvars.iv.next
  %89 = load float, ptr %88, align 4, !tbaa !5
  %90 = fadd float %87, %89
  %91 = getelementptr inbounds float, ptr %29, i64 %indvars.iv.next
  %92 = load float, ptr %91, align 4, !tbaa !5
  %93 = fadd float %90, %92
  %94 = getelementptr inbounds float, ptr %31, i64 %indvars.iv.next
  store float %93, ptr %94, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge, label %.lr.ph, !llvm.loop !13
}

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 = { noreturn nounwind }
attributes #5 = { nounwind willreturn memory(read) }
attributes #6 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !11}


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