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

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

@.str = external hidden unnamed_addr constant [24 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
declare dso_local void @mul_mat_vec_f32_1(ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %18 = call noalias align 32 ptr @aligned_alloc(i64 noundef 32, i64 noundef 1073741824) #6
  store ptr %18, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %19 = call noalias align 32 ptr @aligned_alloc(i64 noundef 32, i64 noundef 65536) #6
  store ptr %19, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %20 = call noalias align 32 ptr @aligned_alloc(i64 noundef 32, i64 noundef 65536) #6
  store ptr %20, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %32, %2
  %22 = load i32, ptr %9, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 268435456
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %35

25:                                               ; preds = %21
  %26 = load i32, ptr %9, align 4, !tbaa !5
  %27 = sitofp i32 %26 to float
  %28 = load ptr, ptr %6, align 8, !tbaa !9
  %29 = load i32, ptr %9, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds float, ptr %28, i64 %30
  store float %27, ptr %31, align 4, !tbaa !11
  br label %32

32:                                               ; preds = %25
  %33 = load i32, ptr %9, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %9, align 4, !tbaa !5
  br label %21, !llvm.loop !13

35:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %47, %35
  %37 = load i32, ptr %10, align 4, !tbaa !5
  %38 = icmp slt i32 %37, 16384
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %50

40:                                               ; preds = %36
  %41 = load i32, ptr %10, align 4, !tbaa !5
  %42 = sitofp i32 %41 to float
  %43 = load ptr, ptr %7, align 8, !tbaa !9
  %44 = load i32, ptr %10, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds float, ptr %43, i64 %45
  store float %42, ptr %46, align 4, !tbaa !11
  br label %47

47:                                               ; preds = %40
  %48 = load i32, ptr %10, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %10, align 4, !tbaa !5
  br label %36, !llvm.loop !15

50:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 10, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %51 = call i64 @clock() #5
  store i64 %51, ptr %12, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store double 0.000000e+00, ptr %13, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %77, %50
  %53 = load i32, ptr %14, align 4, !tbaa !5
  %54 = icmp slt i32 %53, 10
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %80

56:                                               ; preds = %52
  %57 = load ptr, ptr %6, align 8, !tbaa !9
  %58 = load ptr, ptr %7, align 8, !tbaa !9
  %59 = load ptr, ptr %8, align 8, !tbaa !9
  call void @mul_mat_vec_f32_1(ptr noundef %57, ptr noundef %58, ptr noundef %59, i32 noundef 16384, i32 noundef 16384)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %73, %56
  %61 = load i32, ptr %16, align 4, !tbaa !5
  %62 = icmp slt i32 %61, 16384
  br i1 %62, label %64, label %63

63:                                               ; preds = %60
  store i32 11, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %76

64:                                               ; preds = %60
  %65 = load ptr, ptr %8, align 8, !tbaa !9
  %66 = load i32, ptr %16, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds float, ptr %65, i64 %67
  %69 = load float, ptr %68, align 4, !tbaa !11
  %70 = fpext float %69 to double
  %71 = load double, ptr %13, align 8, !tbaa !18
  %72 = fadd double %71, %70
  store double %72, ptr %13, align 8, !tbaa !18
  br label %73

73:                                               ; preds = %64
  %74 = load i32, ptr %16, align 4, !tbaa !5
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %16, align 4, !tbaa !5
  br label %60, !llvm.loop !20

76:                                               ; preds = %63
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %14, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %14, align 4, !tbaa !5
  br label %52, !llvm.loop !21

80:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %81 = call i64 @clock() #5
  store i64 %81, ptr %17, align 8, !tbaa !16
  %82 = load i64, ptr %17, align 8, !tbaa !16
  %83 = load i64, ptr %12, align 8, !tbaa !16
  %84 = sub nsw i64 %82, %83
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @__func__.main, i64 noundef %84)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  %86 = load double, ptr %13, align 8, !tbaa !18
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %86)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %88 = load i32, ptr %3, align 4
  ret i32 %88
}

; Function Attrs: nounwind allocsize(1)
declare noalias ptr @aligned_alloc(i64 noundef, i64 noundef) #2

; Function Attrs: nounwind
declare i64 @clock() #3

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

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [24 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @mul_mat_vec_f32_1(ptr noalias noundef, ptr noalias noundef, ptr noalias noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
vector.ph:
  %2 = tail call noalias align 32 dereferenceable_or_null(1073741824) ptr @aligned_alloc(i64 noundef 32, i64 noundef 1073741824) #4
  %3 = tail call noalias align 32 dereferenceable_or_null(65536) ptr @aligned_alloc(i64 noundef 32, i64 noundef 65536) #4
  %4 = tail call noalias align 32 dereferenceable_or_null(65536) ptr @aligned_alloc(i64 noundef 32, i64 noundef 65536) #4
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next.1, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next.1, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %5 = uitofp <4 x i32> %vec.ind to <4 x float>
  %6 = uitofp <4 x i32> %step.add to <4 x float>
  %7 = getelementptr inbounds float, ptr %2, i64 %index
  %8 = getelementptr inbounds i8, ptr %7, i64 16
  store <4 x float> %5, ptr %7, align 32, !tbaa !5
  store <4 x float> %6, ptr %8, align 16, !tbaa !5
  %index.next = or disjoint i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %step.add.1 = add <4 x i32> %vec.ind, <i32 12, i32 12, i32 12, i32 12>
  %9 = uitofp <4 x i32> %vec.ind.next to <4 x float>
  %10 = uitofp <4 x i32> %step.add.1 to <4 x float>
  %11 = getelementptr inbounds float, ptr %2, i64 %index.next
  %12 = getelementptr inbounds i8, ptr %11, i64 16
  store <4 x float> %9, ptr %11, align 32, !tbaa !5
  store <4 x float> %10, ptr %12, align 16, !tbaa !5
  %index.next.1 = add nuw nsw i64 %index, 16
  %vec.ind.next.1 = add <4 x i32> %vec.ind, <i32 16, i32 16, i32 16, i32 16>
  %13 = icmp eq i64 %index.next.1, 268435456
  br i1 %13, label %vector.body66, label %vector.body, !llvm.loop !9

vector.body66:                                    ; preds = %vector.body, %vector.body66
  %index67 = phi i64 [ %index.next72.1, %vector.body66 ], [ 0, %vector.body ]
  %vec.ind68 = phi <4 x i32> [ %vec.ind.next71.1, %vector.body66 ], [ <i32 0, i32 1, i32 2, i32 3>, %vector.body ]
  %step.add69 = add <4 x i32> %vec.ind68, <i32 4, i32 4, i32 4, i32 4>
  %14 = uitofp <4 x i32> %vec.ind68 to <4 x float>
  %15 = uitofp <4 x i32> %step.add69 to <4 x float>
  %16 = getelementptr inbounds float, ptr %3, i64 %index67
  %17 = getelementptr inbounds i8, ptr %16, i64 16
  store <4 x float> %14, ptr %16, align 32, !tbaa !5
  store <4 x float> %15, ptr %17, align 16, !tbaa !5
  %index.next72 = or disjoint i64 %index67, 8
  %vec.ind.next71 = add <4 x i32> %vec.ind68, <i32 8, i32 8, i32 8, i32 8>
  %step.add69.1 = add <4 x i32> %vec.ind68, <i32 12, i32 12, i32 12, i32 12>
  %18 = uitofp <4 x i32> %vec.ind.next71 to <4 x float>
  %19 = uitofp <4 x i32> %step.add69.1 to <4 x float>
  %20 = getelementptr inbounds float, ptr %3, i64 %index.next72
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  store <4 x float> %18, ptr %20, align 32, !tbaa !5
  store <4 x float> %19, ptr %21, align 16, !tbaa !5
  %index.next72.1 = add nuw nsw i64 %index67, 16
  %vec.ind.next71.1 = add <4 x i32> %vec.ind68, <i32 16, i32 16, i32 16, i32 16>
  %22 = icmp eq i64 %index.next72.1, 16384
  br i1 %22, label %middle.block62, label %vector.body66, !llvm.loop !13

middle.block62:                                   ; preds = %vector.body66
  %23 = tail call i64 @clock() #5
  tail call void @mul_mat_vec_f32_1(ptr noundef %2, ptr noundef nonnull %3, ptr noundef %4, i32 noundef 16384, i32 noundef 16384)
  br label %191

24:                                               ; preds = %191
  tail call void @mul_mat_vec_f32_1(ptr noundef %2, ptr noundef %3, ptr noundef nonnull %4, i32 noundef 16384, i32 noundef 16384)
  br label %25

25:                                               ; preds = %25, %24
  %indvars.iv38.1 = phi i64 [ 0, %24 ], [ %indvars.iv.next39.1.3, %25 ]
  %.129.1 = phi double [ %207, %24 ], [ %41, %25 ]
  %26 = getelementptr inbounds float, ptr %4, i64 %indvars.iv38.1
  %27 = load float, ptr %26, align 16, !tbaa !5
  %28 = fpext float %27 to double
  %29 = fadd double %.129.1, %28
  %indvars.iv.next39.1 = or disjoint i64 %indvars.iv38.1, 1
  %30 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.1
  %31 = load float, ptr %30, align 4, !tbaa !5
  %32 = fpext float %31 to double
  %33 = fadd double %29, %32
  %indvars.iv.next39.1.1 = or disjoint i64 %indvars.iv38.1, 2
  %34 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.1.1
  %35 = load float, ptr %34, align 8, !tbaa !5
  %36 = fpext float %35 to double
  %37 = fadd double %33, %36
  %indvars.iv.next39.1.2 = or disjoint i64 %indvars.iv38.1, 3
  %38 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.1.2
  %39 = load float, ptr %38, align 4, !tbaa !5
  %40 = fpext float %39 to double
  %41 = fadd double %37, %40
  %indvars.iv.next39.1.3 = add nuw nsw i64 %indvars.iv38.1, 4
  %exitcond41.1.not.3 = icmp eq i64 %indvars.iv.next39.1.3, 16384
  br i1 %exitcond41.1.not.3, label %42, label %25, !llvm.loop !14

42:                                               ; preds = %25
  tail call void @mul_mat_vec_f32_1(ptr noundef %2, ptr noundef %3, ptr noundef nonnull %4, i32 noundef 16384, i32 noundef 16384)
  br label %43

43:                                               ; preds = %43, %42
  %indvars.iv38.2 = phi i64 [ 0, %42 ], [ %indvars.iv.next39.2.3, %43 ]
  %.129.2 = phi double [ %41, %42 ], [ %59, %43 ]
  %44 = getelementptr inbounds float, ptr %4, i64 %indvars.iv38.2
  %45 = load float, ptr %44, align 16, !tbaa !5
  %46 = fpext float %45 to double
  %47 = fadd double %.129.2, %46
  %indvars.iv.next39.2 = or disjoint i64 %indvars.iv38.2, 1
  %48 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.2
  %49 = load float, ptr %48, align 4, !tbaa !5
  %50 = fpext float %49 to double
  %51 = fadd double %47, %50
  %indvars.iv.next39.2.1 = or disjoint i64 %indvars.iv38.2, 2
  %52 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.2.1
  %53 = load float, ptr %52, align 8, !tbaa !5
  %54 = fpext float %53 to double
  %55 = fadd double %51, %54
  %indvars.iv.next39.2.2 = or disjoint i64 %indvars.iv38.2, 3
  %56 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.2.2
  %57 = load float, ptr %56, align 4, !tbaa !5
  %58 = fpext float %57 to double
  %59 = fadd double %55, %58
  %indvars.iv.next39.2.3 = add nuw nsw i64 %indvars.iv38.2, 4
  %exitcond41.2.not.3 = icmp eq i64 %indvars.iv.next39.2.3, 16384
  br i1 %exitcond41.2.not.3, label %60, label %43, !llvm.loop !14

60:                                               ; preds = %43
  tail call void @mul_mat_vec_f32_1(ptr noundef %2, ptr noundef %3, ptr noundef nonnull %4, i32 noundef 16384, i32 noundef 16384)
  br label %61

61:                                               ; preds = %61, %60
  %indvars.iv38.3 = phi i64 [ 0, %60 ], [ %indvars.iv.next39.3.3, %61 ]
  %.129.3 = phi double [ %59, %60 ], [ %77, %61 ]
  %62 = getelementptr inbounds float, ptr %4, i64 %indvars.iv38.3
  %63 = load float, ptr %62, align 16, !tbaa !5
  %64 = fpext float %63 to double
  %65 = fadd double %.129.3, %64
  %indvars.iv.next39.3 = or disjoint i64 %indvars.iv38.3, 1
  %66 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.3
  %67 = load float, ptr %66, align 4, !tbaa !5
  %68 = fpext float %67 to double
  %69 = fadd double %65, %68
  %indvars.iv.next39.3.1 = or disjoint i64 %indvars.iv38.3, 2
  %70 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.3.1
  %71 = load float, ptr %70, align 8, !tbaa !5
  %72 = fpext float %71 to double
  %73 = fadd double %69, %72
  %indvars.iv.next39.3.2 = or disjoint i64 %indvars.iv38.3, 3
  %74 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.3.2
  %75 = load float, ptr %74, align 4, !tbaa !5
  %76 = fpext float %75 to double
  %77 = fadd double %73, %76
  %indvars.iv.next39.3.3 = add nuw nsw i64 %indvars.iv38.3, 4
  %exitcond41.3.not.3 = icmp eq i64 %indvars.iv.next39.3.3, 16384
  br i1 %exitcond41.3.not.3, label %78, label %61, !llvm.loop !14

78:                                               ; preds = %61
  tail call void @mul_mat_vec_f32_1(ptr noundef %2, ptr noundef %3, ptr noundef nonnull %4, i32 noundef 16384, i32 noundef 16384)
  br label %79

79:                                               ; preds = %79, %78
  %indvars.iv38.4 = phi i64 [ 0, %78 ], [ %indvars.iv.next39.4.3, %79 ]
  %.129.4 = phi double [ %77, %78 ], [ %95, %79 ]
  %80 = getelementptr inbounds float, ptr %4, i64 %indvars.iv38.4
  %81 = load float, ptr %80, align 16, !tbaa !5
  %82 = fpext float %81 to double
  %83 = fadd double %.129.4, %82
  %indvars.iv.next39.4 = or disjoint i64 %indvars.iv38.4, 1
  %84 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.4
  %85 = load float, ptr %84, align 4, !tbaa !5
  %86 = fpext float %85 to double
  %87 = fadd double %83, %86
  %indvars.iv.next39.4.1 = or disjoint i64 %indvars.iv38.4, 2
  %88 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.4.1
  %89 = load float, ptr %88, align 8, !tbaa !5
  %90 = fpext float %89 to double
  %91 = fadd double %87, %90
  %indvars.iv.next39.4.2 = or disjoint i64 %indvars.iv38.4, 3
  %92 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.4.2
  %93 = load float, ptr %92, align 4, !tbaa !5
  %94 = fpext float %93 to double
  %95 = fadd double %91, %94
  %indvars.iv.next39.4.3 = add nuw nsw i64 %indvars.iv38.4, 4
  %exitcond41.4.not.3 = icmp eq i64 %indvars.iv.next39.4.3, 16384
  br i1 %exitcond41.4.not.3, label %96, label %79, !llvm.loop !14

96:                                               ; preds = %79
  tail call void @mul_mat_vec_f32_1(ptr noundef %2, ptr noundef %3, ptr noundef nonnull %4, i32 noundef 16384, i32 noundef 16384)
  br label %97

97:                                               ; preds = %97, %96
  %indvars.iv38.5 = phi i64 [ 0, %96 ], [ %indvars.iv.next39.5.3, %97 ]
  %.129.5 = phi double [ %95, %96 ], [ %113, %97 ]
  %98 = getelementptr inbounds float, ptr %4, i64 %indvars.iv38.5
  %99 = load float, ptr %98, align 16, !tbaa !5
  %100 = fpext float %99 to double
  %101 = fadd double %.129.5, %100
  %indvars.iv.next39.5 = or disjoint i64 %indvars.iv38.5, 1
  %102 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.5
  %103 = load float, ptr %102, align 4, !tbaa !5
  %104 = fpext float %103 to double
  %105 = fadd double %101, %104
  %indvars.iv.next39.5.1 = or disjoint i64 %indvars.iv38.5, 2
  %106 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.5.1
  %107 = load float, ptr %106, align 8, !tbaa !5
  %108 = fpext float %107 to double
  %109 = fadd double %105, %108
  %indvars.iv.next39.5.2 = or disjoint i64 %indvars.iv38.5, 3
  %110 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.5.2
  %111 = load float, ptr %110, align 4, !tbaa !5
  %112 = fpext float %111 to double
  %113 = fadd double %109, %112
  %indvars.iv.next39.5.3 = add nuw nsw i64 %indvars.iv38.5, 4
  %exitcond41.5.not.3 = icmp eq i64 %indvars.iv.next39.5.3, 16384
  br i1 %exitcond41.5.not.3, label %114, label %97, !llvm.loop !14

114:                                              ; preds = %97
  tail call void @mul_mat_vec_f32_1(ptr noundef %2, ptr noundef %3, ptr noundef nonnull %4, i32 noundef 16384, i32 noundef 16384)
  br label %115

115:                                              ; preds = %115, %114
  %indvars.iv38.6 = phi i64 [ 0, %114 ], [ %indvars.iv.next39.6.3, %115 ]
  %.129.6 = phi double [ %113, %114 ], [ %131, %115 ]
  %116 = getelementptr inbounds float, ptr %4, i64 %indvars.iv38.6
  %117 = load float, ptr %116, align 16, !tbaa !5
  %118 = fpext float %117 to double
  %119 = fadd double %.129.6, %118
  %indvars.iv.next39.6 = or disjoint i64 %indvars.iv38.6, 1
  %120 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.6
  %121 = load float, ptr %120, align 4, !tbaa !5
  %122 = fpext float %121 to double
  %123 = fadd double %119, %122
  %indvars.iv.next39.6.1 = or disjoint i64 %indvars.iv38.6, 2
  %124 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.6.1
  %125 = load float, ptr %124, align 8, !tbaa !5
  %126 = fpext float %125 to double
  %127 = fadd double %123, %126
  %indvars.iv.next39.6.2 = or disjoint i64 %indvars.iv38.6, 3
  %128 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.6.2
  %129 = load float, ptr %128, align 4, !tbaa !5
  %130 = fpext float %129 to double
  %131 = fadd double %127, %130
  %indvars.iv.next39.6.3 = add nuw nsw i64 %indvars.iv38.6, 4
  %exitcond41.6.not.3 = icmp eq i64 %indvars.iv.next39.6.3, 16384
  br i1 %exitcond41.6.not.3, label %132, label %115, !llvm.loop !14

132:                                              ; preds = %115
  tail call void @mul_mat_vec_f32_1(ptr noundef %2, ptr noundef %3, ptr noundef nonnull %4, i32 noundef 16384, i32 noundef 16384)
  br label %133

133:                                              ; preds = %133, %132
  %indvars.iv38.7 = phi i64 [ 0, %132 ], [ %indvars.iv.next39.7.3, %133 ]
  %.129.7 = phi double [ %131, %132 ], [ %149, %133 ]
  %134 = getelementptr inbounds float, ptr %4, i64 %indvars.iv38.7
  %135 = load float, ptr %134, align 16, !tbaa !5
  %136 = fpext float %135 to double
  %137 = fadd double %.129.7, %136
  %indvars.iv.next39.7 = or disjoint i64 %indvars.iv38.7, 1
  %138 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.7
  %139 = load float, ptr %138, align 4, !tbaa !5
  %140 = fpext float %139 to double
  %141 = fadd double %137, %140
  %indvars.iv.next39.7.1 = or disjoint i64 %indvars.iv38.7, 2
  %142 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.7.1
  %143 = load float, ptr %142, align 8, !tbaa !5
  %144 = fpext float %143 to double
  %145 = fadd double %141, %144
  %indvars.iv.next39.7.2 = or disjoint i64 %indvars.iv38.7, 3
  %146 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.7.2
  %147 = load float, ptr %146, align 4, !tbaa !5
  %148 = fpext float %147 to double
  %149 = fadd double %145, %148
  %indvars.iv.next39.7.3 = add nuw nsw i64 %indvars.iv38.7, 4
  %exitcond41.7.not.3 = icmp eq i64 %indvars.iv.next39.7.3, 16384
  br i1 %exitcond41.7.not.3, label %150, label %133, !llvm.loop !14

150:                                              ; preds = %133
  tail call void @mul_mat_vec_f32_1(ptr noundef %2, ptr noundef %3, ptr noundef nonnull %4, i32 noundef 16384, i32 noundef 16384)
  br label %151

151:                                              ; preds = %151, %150
  %indvars.iv38.8 = phi i64 [ 0, %150 ], [ %indvars.iv.next39.8.3, %151 ]
  %.129.8 = phi double [ %149, %150 ], [ %167, %151 ]
  %152 = getelementptr inbounds float, ptr %4, i64 %indvars.iv38.8
  %153 = load float, ptr %152, align 16, !tbaa !5
  %154 = fpext float %153 to double
  %155 = fadd double %.129.8, %154
  %indvars.iv.next39.8 = or disjoint i64 %indvars.iv38.8, 1
  %156 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.8
  %157 = load float, ptr %156, align 4, !tbaa !5
  %158 = fpext float %157 to double
  %159 = fadd double %155, %158
  %indvars.iv.next39.8.1 = or disjoint i64 %indvars.iv38.8, 2
  %160 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.8.1
  %161 = load float, ptr %160, align 8, !tbaa !5
  %162 = fpext float %161 to double
  %163 = fadd double %159, %162
  %indvars.iv.next39.8.2 = or disjoint i64 %indvars.iv38.8, 3
  %164 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.8.2
  %165 = load float, ptr %164, align 4, !tbaa !5
  %166 = fpext float %165 to double
  %167 = fadd double %163, %166
  %indvars.iv.next39.8.3 = add nuw nsw i64 %indvars.iv38.8, 4
  %exitcond41.8.not.3 = icmp eq i64 %indvars.iv.next39.8.3, 16384
  br i1 %exitcond41.8.not.3, label %168, label %151, !llvm.loop !14

168:                                              ; preds = %151
  tail call void @mul_mat_vec_f32_1(ptr noundef %2, ptr noundef %3, ptr noundef nonnull %4, i32 noundef 16384, i32 noundef 16384)
  br label %169

169:                                              ; preds = %169, %168
  %indvars.iv38.9 = phi i64 [ 0, %168 ], [ %indvars.iv.next39.9.3, %169 ]
  %.129.9 = phi double [ %167, %168 ], [ %185, %169 ]
  %170 = getelementptr inbounds float, ptr %4, i64 %indvars.iv38.9
  %171 = load float, ptr %170, align 16, !tbaa !5
  %172 = fpext float %171 to double
  %173 = fadd double %.129.9, %172
  %indvars.iv.next39.9 = or disjoint i64 %indvars.iv38.9, 1
  %174 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.9
  %175 = load float, ptr %174, align 4, !tbaa !5
  %176 = fpext float %175 to double
  %177 = fadd double %173, %176
  %indvars.iv.next39.9.1 = or disjoint i64 %indvars.iv38.9, 2
  %178 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.9.1
  %179 = load float, ptr %178, align 8, !tbaa !5
  %180 = fpext float %179 to double
  %181 = fadd double %177, %180
  %indvars.iv.next39.9.2 = or disjoint i64 %indvars.iv38.9, 3
  %182 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.9.2
  %183 = load float, ptr %182, align 4, !tbaa !5
  %184 = fpext float %183 to double
  %185 = fadd double %181, %184
  %indvars.iv.next39.9.3 = add nuw nsw i64 %indvars.iv38.9, 4
  %exitcond41.9.not.3 = icmp eq i64 %indvars.iv.next39.9.3, 16384
  br i1 %exitcond41.9.not.3, label %186, label %169, !llvm.loop !14

186:                                              ; preds = %169
  %187 = tail call i64 @clock() #5
  %188 = sub nsw i64 %187, %23
  %189 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull @__func__.main, i64 noundef %188)
  %190 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %185)
  ret i32 0

191:                                              ; preds = %191, %middle.block62
  %indvars.iv38 = phi i64 [ 0, %middle.block62 ], [ %indvars.iv.next39.390, %191 ]
  %.129 = phi double [ 0.000000e+00, %middle.block62 ], [ %207, %191 ]
  %192 = getelementptr inbounds float, ptr %4, i64 %indvars.iv38
  %193 = load float, ptr %192, align 16, !tbaa !5
  %194 = fpext float %193 to double
  %195 = fadd double %.129, %194
  %indvars.iv.next39 = or disjoint i64 %indvars.iv38, 1
  %196 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39
  %197 = load float, ptr %196, align 4, !tbaa !5
  %198 = fpext float %197 to double
  %199 = fadd double %195, %198
  %indvars.iv.next39.184 = or disjoint i64 %indvars.iv38, 2
  %200 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.184
  %201 = load float, ptr %200, align 8, !tbaa !5
  %202 = fpext float %201 to double
  %203 = fadd double %199, %202
  %indvars.iv.next39.287 = or disjoint i64 %indvars.iv38, 3
  %204 = getelementptr inbounds float, ptr %4, i64 %indvars.iv.next39.287
  %205 = load float, ptr %204, align 4, !tbaa !5
  %206 = fpext float %205 to double
  %207 = fadd double %203, %206
  %indvars.iv.next39.390 = add nuw nsw i64 %indvars.iv38, 4
  %exitcond41.not.3 = icmp eq i64 %indvars.iv.next39.390, 16384
  br i1 %exitcond41.not.3, label %24, label %191, !llvm.loop !14
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized,aligned") allocsize(1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @aligned_alloc(i64 allocalign noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #2

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

attributes #0 = { 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 nofree nounwind willreturn allockind("alloc,uninitialized,aligned") allocsize(1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind allocsize(1) }
attributes #5 = { 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, !12}
!14 = distinct !{!14, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass