; LLVM IR from FedericaPaoli1/stm32-speech-recognition-and-traduction :: Drivers/CMSIS/DSP/Source/FilteringFunctions (arm_fir_q7)

; 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.arm_fir_instance_q7 = type { i16, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local void @arm_fir_q7(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %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 i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.arm_fir_instance_q7, ptr %19, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  store ptr %21, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.arm_fir_instance_q7, ptr %22, i32 0, i32 2
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  store ptr %24, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.arm_fir_instance_q7, ptr %25, i32 0, i32 0
  %27 = load i16, ptr %26, align 8, !tbaa !15
  %28 = zext i16 %27 to i32
  store i32 %28, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.arm_fir_instance_q7, ptr %29, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = load i32, ptr %15, align 4, !tbaa !9
  %33 = sub i32 %32, 1
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds i8, ptr %31, i64 %34
  store ptr %35, ptr %11, align 8, !tbaa !5
  %36 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %36, ptr %18, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %67, %4
  %38 = load i32, ptr %18, align 4, !tbaa !9
  %39 = icmp ugt i32 %38, 0
  br i1 %39, label %40, label %78

40:                                               ; preds = %37
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i32 1
  store ptr %42, ptr %6, align 8, !tbaa !5
  %43 = load i8, ptr %41, align 1, !tbaa !16
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i32 1
  store ptr %45, ptr %11, align 8, !tbaa !5
  store i8 %43, ptr %44, align 1, !tbaa !16
  store i32 0, ptr %14, align 4, !tbaa !9
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %46, ptr %12, align 8, !tbaa !5
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %47, ptr %13, align 8, !tbaa !5
  %48 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %48, ptr %16, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %52, %40
  %50 = load i32, ptr %16, align 4, !tbaa !9
  %51 = icmp ugt i32 %50, 0
  br i1 %51, label %52, label %67

52:                                               ; preds = %49
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i32 1
  store ptr %54, ptr %12, align 8, !tbaa !5
  %55 = load i8, ptr %53, align 1, !tbaa !16
  %56 = sext i8 %55 to i16
  %57 = sext i16 %56 to i32
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i32 1
  store ptr %59, ptr %13, align 8, !tbaa !5
  %60 = load i8, ptr %58, align 1, !tbaa !16
  %61 = sext i8 %60 to i32
  %62 = mul nsw i32 %57, %61
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = add nsw i32 %63, %62
  store i32 %64, ptr %14, align 4, !tbaa !9
  %65 = load i32, ptr %16, align 4, !tbaa !9
  %66 = add i32 %65, -1
  store i32 %66, ptr %16, align 4, !tbaa !9
  br label %49, !llvm.loop !17

67:                                               ; preds = %49
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = ashr i32 %68, 7
  %70 = call i32 @__SSAT(i32 noundef %69, i32 noundef 8)
  %71 = trunc i32 %70 to i8
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %72, i32 1
  store ptr %73, ptr %7, align 8, !tbaa !5
  store i8 %71, ptr %72, align 1, !tbaa !16
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 1
  store ptr %75, ptr %9, align 8, !tbaa !5
  %76 = load i32, ptr %18, align 4, !tbaa !9
  %77 = add i32 %76, -1
  store i32 %77, ptr %18, align 4, !tbaa !9
  br label %37, !llvm.loop !19

78:                                               ; preds = %37
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.arm_fir_instance_q7, ptr %79, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  store ptr %81, ptr %11, align 8, !tbaa !5
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = sub i32 %82, 1
  store i32 %83, ptr %17, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %87, %78
  %85 = load i32, ptr %17, align 4, !tbaa !9
  %86 = icmp ugt i32 %85, 0
  br i1 %86, label %87, label %95

87:                                               ; preds = %84
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i32 1
  store ptr %89, ptr %9, align 8, !tbaa !5
  %90 = load i8, ptr %88, align 1, !tbaa !16
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i32 1
  store ptr %92, ptr %11, align 8, !tbaa !5
  store i8 %90, ptr %91, align 1, !tbaa !16
  %93 = load i32, ptr %17, align 4, !tbaa !9
  %94 = add i32 %93, -1
  store i32 %94, ptr %17, align 4, !tbaa !9
  br label %84, !llvm.loop !20

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__SSAT(i32 noundef, i32 noundef) #2

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline 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 = { 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, !6, i64 8}
!12 = !{!"", !13, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !6, i64 16}
!15 = !{!12, !13, i64 0}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


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

; Function Attrs: nounwind uwtable
define dso_local void @arm_fir_q7(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  %9 = load i16, ptr %0, align 8, !tbaa !12
  %10 = zext i16 %9 to i32
  %11 = add nsw i32 %10, -1
  %.not43 = icmp eq i32 %3, 0
  br i1 %.not43, label %._crit_edge51, label %.lr.ph50

.lr.ph50:                                         ; preds = %4
  %12 = zext i32 %11 to i64
  %13 = getelementptr inbounds i8, ptr %6, i64 %12
  %.not3738 = icmp eq i16 %9, 0
  br i1 %.not3738, label %.lr.ph50.split.us.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph50
  %14 = zext i16 %9 to i64
  %min.iters.check = icmp ult i16 %9, 8
  %n.vec = and i64 %14, 65528
  %.cast = trunc nuw nsw i64 %n.vec to i32
  %ind.end = sub nsw i32 %10, %.cast
  %ind.end67 = getelementptr i8, ptr %8, i64 %n.vec
  %cmp.n = icmp eq i64 %n.vec, %14
  br label %.lr.ph

.lr.ph50.split.us.preheader:                      ; preds = %.lr.ph50
  %15 = zext i32 %3 to i64
  br label %.lr.ph50.split.us

.lr.ph50.split.us:                                ; preds = %.lr.ph50.split.us.preheader, %.lr.ph50.split.us
  %.048.us = phi i32 [ %22, %.lr.ph50.split.us ], [ %3, %.lr.ph50.split.us.preheader ]
  %.02847.us = phi ptr [ %16, %.lr.ph50.split.us ], [ %1, %.lr.ph50.split.us.preheader ]
  %.03246.us = phi ptr [ %18, %.lr.ph50.split.us ], [ %13, %.lr.ph50.split.us.preheader ]
  %.03345.us = phi ptr [ %21, %.lr.ph50.split.us ], [ %2, %.lr.ph50.split.us.preheader ]
  %16 = getelementptr inbounds i8, ptr %.02847.us, i64 1
  %17 = load i8, ptr %.02847.us, align 1, !tbaa !13
  %18 = getelementptr inbounds i8, ptr %.03246.us, i64 1
  store i8 %17, ptr %.03246.us, align 1, !tbaa !13
  %19 = tail call i32 @__SSAT(i32 noundef 0, i32 noundef 8)
  %20 = trunc i32 %19 to i8
  %21 = getelementptr inbounds i8, ptr %.03345.us, i64 1
  store i8 %20, ptr %.03345.us, align 1, !tbaa !13
  %22 = add i32 %.048.us, -1
  %.not.us = icmp eq i32 %22, 0
  br i1 %.not.us, label %._crit_edge51.loopexit, label %.lr.ph50.split.us, !llvm.loop !14

.lr.ph:                                           ; preds = %.lr.ph.preheader, %._crit_edge
  %.048 = phi i32 [ %52, %._crit_edge ], [ %3, %.lr.ph.preheader ]
  %.02847 = phi ptr [ %45, %._crit_edge ], [ %1, %.lr.ph.preheader ]
  %.03246 = phi ptr [ %46, %._crit_edge ], [ %13, %.lr.ph.preheader ]
  %.03345 = phi ptr [ %50, %._crit_edge ], [ %2, %.lr.ph.preheader ]
  %.03444 = phi ptr [ %51, %._crit_edge ], [ %6, %.lr.ph.preheader ]
  %23 = load i8, ptr %.02847, align 1, !tbaa !13
  store i8 %23, ptr %.03246, align 1, !tbaa !13
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %ind.end69 = getelementptr i8, ptr %.03444, i64 %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %32, %vector.body ]
  %vec.phi71 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %33, %vector.body ]
  %next.gep = getelementptr i8, ptr %8, i64 %index
  %next.gep73 = getelementptr i8, ptr %.03444, i64 %index
  %24 = getelementptr i8, ptr %next.gep73, i64 4
  %wide.load = load <4 x i8>, ptr %next.gep73, align 1, !tbaa !13
  %wide.load75 = load <4 x i8>, ptr %24, align 1, !tbaa !13
  %25 = sext <4 x i8> %wide.load to <4 x i32>
  %26 = sext <4 x i8> %wide.load75 to <4 x i32>
  %27 = getelementptr i8, ptr %next.gep, i64 4
  %wide.load76 = load <4 x i8>, ptr %next.gep, align 1, !tbaa !13
  %wide.load77 = load <4 x i8>, ptr %27, align 1, !tbaa !13
  %28 = sext <4 x i8> %wide.load76 to <4 x i32>
  %29 = sext <4 x i8> %wide.load77 to <4 x i32>
  %30 = mul nsw <4 x i32> %28, %25
  %31 = mul nsw <4 x i32> %29, %26
  %32 = add <4 x i32> %30, %vec.phi
  %33 = add <4 x i32> %31, %vec.phi71
  %index.next = add nuw i64 %index, 8
  %34 = icmp eq i64 %index.next, %n.vec
  br i1 %34, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %33, %32
  %35 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %.02742.ph = phi i32 [ %10, %.lr.ph ], [ %ind.end, %middle.block ]
  %.02941.ph = phi i32 [ 0, %.lr.ph ], [ %35, %middle.block ]
  %.03040.ph = phi ptr [ %8, %.lr.ph ], [ %ind.end67, %middle.block ]
  %.03139.ph = phi ptr [ %.03444, %.lr.ph ], [ %ind.end69, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.02742 = phi i32 [ %44, %scalar.ph ], [ %.02742.ph, %scalar.ph.preheader ]
  %.02941 = phi i32 [ %43, %scalar.ph ], [ %.02941.ph, %scalar.ph.preheader ]
  %.03040 = phi ptr [ %39, %scalar.ph ], [ %.03040.ph, %scalar.ph.preheader ]
  %.03139 = phi ptr [ %36, %scalar.ph ], [ %.03139.ph, %scalar.ph.preheader ]
  %36 = getelementptr inbounds i8, ptr %.03139, i64 1
  %37 = load i8, ptr %.03139, align 1, !tbaa !13
  %38 = sext i8 %37 to i32
  %39 = getelementptr inbounds i8, ptr %.03040, i64 1
  %40 = load i8, ptr %.03040, align 1, !tbaa !13
  %41 = sext i8 %40 to i32
  %42 = mul nsw i32 %41, %38
  %43 = add nsw i32 %42, %.02941
  %44 = add nsw i32 %.02742, -1
  %.not37 = icmp eq i32 %44, 0
  br i1 %.not37, label %._crit_edge, label %scalar.ph, !llvm.loop !19

._crit_edge:                                      ; preds = %scalar.ph, %middle.block
  %.lcssa = phi i32 [ %35, %middle.block ], [ %43, %scalar.ph ]
  %45 = getelementptr inbounds i8, ptr %.02847, i64 1
  %46 = getelementptr inbounds i8, ptr %.03246, i64 1
  %47 = ashr i32 %.lcssa, 7
  %48 = tail call i32 @__SSAT(i32 noundef %47, i32 noundef 8)
  %49 = trunc i32 %48 to i8
  %50 = getelementptr inbounds i8, ptr %.03345, i64 1
  store i8 %49, ptr %.03345, align 1, !tbaa !13
  %51 = getelementptr inbounds i8, ptr %.03444, i64 1
  %52 = add i32 %.048, -1
  %.not = icmp eq i32 %52, 0
  br i1 %.not, label %._crit_edge51, label %.lr.ph, !llvm.loop !14

._crit_edge51.loopexit:                           ; preds = %.lr.ph50.split.us
  %scevgep = getelementptr i8, ptr %6, i64 %15
  br label %._crit_edge51

._crit_edge51:                                    ; preds = %._crit_edge, %._crit_edge51.loopexit, %4
  %.034.lcssa = phi ptr [ %6, %4 ], [ %scevgep, %._crit_edge51.loopexit ], [ %51, %._crit_edge ]
  %.not3653 = icmp eq i32 %11, 0
  br i1 %.not3653, label %._crit_edge59, label %iter.check

iter.check:                                       ; preds = %._crit_edge51
  %.034.lcssa78 = ptrtoint ptr %.034.lcssa to i64
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = zext i32 %11 to i64
  %min.iters.check81 = icmp ult i32 %11, 8
  %55 = ptrtoint ptr %53 to i64
  %56 = sub i64 %55, %.034.lcssa78
  %diff.check = icmp ult i64 %56, 32
  %or.cond = select i1 %min.iters.check81, i1 true, i1 %diff.check
  br i1 %or.cond, label %.lr.ph58.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  %min.iters.check83 = icmp ult i32 %11, 32
  br i1 %min.iters.check83, label %vec.epilog.ph, label %vector.ph84

vector.ph84:                                      ; preds = %vector.main.loop.iter.check
  %n.vec86 = and i64 %54, 4294967264
  br label %vector.body87

vector.body87:                                    ; preds = %vector.body87, %vector.ph84
  %index88 = phi i64 [ 0, %vector.ph84 ], [ %index.next95, %vector.body87 ]
  %next.gep89 = getelementptr i8, ptr %53, i64 %index88
  %next.gep91 = getelementptr i8, ptr %.034.lcssa, i64 %index88
  %57 = getelementptr i8, ptr %next.gep91, i64 16
  %wide.load93 = load <16 x i8>, ptr %next.gep91, align 1, !tbaa !13
  %wide.load94 = load <16 x i8>, ptr %57, align 1, !tbaa !13
  %58 = getelementptr i8, ptr %next.gep89, i64 16
  store <16 x i8> %wide.load93, ptr %next.gep89, align 1, !tbaa !13
  store <16 x i8> %wide.load94, ptr %58, align 1, !tbaa !13
  %index.next95 = add nuw i64 %index88, 32
  %59 = icmp eq i64 %index.next95, %n.vec86
  br i1 %59, label %middle.block79, label %vector.body87, !llvm.loop !20

middle.block79:                                   ; preds = %vector.body87
  %cmp.n96 = icmp eq i64 %n.vec86, %54
  br i1 %cmp.n96, label %._crit_edge59, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block79
  %ind.end108 = getelementptr i8, ptr %.034.lcssa, i64 %n.vec86
  %ind.end105 = getelementptr i8, ptr %53, i64 %n.vec86
  %.cast101 = trunc nuw i64 %n.vec86 to i32
  %ind.end102 = sub i32 %11, %.cast101
  %n.vec.remaining = and i64 %54, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph58.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec86, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec98 = and i64 %54, 4294967288
  %.cast99 = trunc nuw i64 %n.vec98 to i32
  %ind.end100 = sub i32 %11, %.cast99
  %ind.end104 = getelementptr i8, ptr %53, i64 %n.vec98
  %ind.end107 = getelementptr i8, ptr %.034.lcssa, i64 %n.vec98
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index110 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next114, %vec.epilog.vector.body ]
  %next.gep111 = getelementptr i8, ptr %53, i64 %index110
  %next.gep112 = getelementptr i8, ptr %.034.lcssa, i64 %index110
  %wide.load113 = load <8 x i8>, ptr %next.gep112, align 1, !tbaa !13
  store <8 x i8> %wide.load113, ptr %next.gep111, align 1, !tbaa !13
  %index.next114 = add nuw i64 %index110, 8
  %60 = icmp eq i64 %index.next114, %n.vec98
  br i1 %60, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !21

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n115 = icmp eq i64 %n.vec98, %54
  br i1 %cmp.n115, label %._crit_edge59, label %.lr.ph58.preheader

.lr.ph58.preheader:                               ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %.02656.ph = phi i32 [ %11, %iter.check ], [ %ind.end102, %vec.epilog.iter.check ], [ %ind.end100, %vec.epilog.middle.block ]
  %.155.ph = phi ptr [ %53, %iter.check ], [ %ind.end105, %vec.epilog.iter.check ], [ %ind.end104, %vec.epilog.middle.block ]
  %.13554.ph = phi ptr [ %.034.lcssa, %iter.check ], [ %ind.end108, %vec.epilog.iter.check ], [ %ind.end107, %vec.epilog.middle.block ]
  %61 = add i32 %.02656.ph, -1
  %xtraiter = and i32 %.02656.ph, 7
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph58.prol.loopexit, label %.lr.ph58.prol

.lr.ph58.prol:                                    ; preds = %.lr.ph58.preheader, %.lr.ph58.prol
  %.02656.prol = phi i32 [ %65, %.lr.ph58.prol ], [ %.02656.ph, %.lr.ph58.preheader ]
  %.155.prol = phi ptr [ %64, %.lr.ph58.prol ], [ %.155.ph, %.lr.ph58.preheader ]
  %.13554.prol = phi ptr [ %62, %.lr.ph58.prol ], [ %.13554.ph, %.lr.ph58.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph58.prol ], [ 0, %.lr.ph58.preheader ]
  %62 = getelementptr inbounds i8, ptr %.13554.prol, i64 1
  %63 = load i8, ptr %.13554.prol, align 1, !tbaa !13
  %64 = getelementptr inbounds i8, ptr %.155.prol, i64 1
  store i8 %63, ptr %.155.prol, align 1, !tbaa !13
  %65 = add i32 %.02656.prol, -1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph58.prol.loopexit, label %.lr.ph58.prol, !llvm.loop !22

.lr.ph58.prol.loopexit:                           ; preds = %.lr.ph58.prol, %.lr.ph58.preheader
  %.02656.unr = phi i32 [ %.02656.ph, %.lr.ph58.preheader ], [ %65, %.lr.ph58.prol ]
  %.155.unr = phi ptr [ %.155.ph, %.lr.ph58.preheader ], [ %64, %.lr.ph58.prol ]
  %.13554.unr = phi ptr [ %.13554.ph, %.lr.ph58.preheader ], [ %62, %.lr.ph58.prol ]
  %66 = icmp ult i32 %61, 7
  br i1 %66, label %._crit_edge59, label %.lr.ph58

.lr.ph58:                                         ; preds = %.lr.ph58.prol.loopexit, %.lr.ph58
  %.02656 = phi i32 [ %91, %.lr.ph58 ], [ %.02656.unr, %.lr.ph58.prol.loopexit ]
  %.155 = phi ptr [ %90, %.lr.ph58 ], [ %.155.unr, %.lr.ph58.prol.loopexit ]
  %.13554 = phi ptr [ %88, %.lr.ph58 ], [ %.13554.unr, %.lr.ph58.prol.loopexit ]
  %67 = getelementptr inbounds i8, ptr %.13554, i64 1
  %68 = load i8, ptr %.13554, align 1, !tbaa !13
  %69 = getelementptr inbounds i8, ptr %.155, i64 1
  store i8 %68, ptr %.155, align 1, !tbaa !13
  %70 = getelementptr inbounds i8, ptr %.13554, i64 2
  %71 = load i8, ptr %67, align 1, !tbaa !13
  %72 = getelementptr inbounds i8, ptr %.155, i64 2
  store i8 %71, ptr %69, align 1, !tbaa !13
  %73 = getelementptr inbounds i8, ptr %.13554, i64 3
  %74 = load i8, ptr %70, align 1, !tbaa !13
  %75 = getelementptr inbounds i8, ptr %.155, i64 3
  store i8 %74, ptr %72, align 1, !tbaa !13
  %76 = getelementptr inbounds i8, ptr %.13554, i64 4
  %77 = load i8, ptr %73, align 1, !tbaa !13
  %78 = getelementptr inbounds i8, ptr %.155, i64 4
  store i8 %77, ptr %75, align 1, !tbaa !13
  %79 = getelementptr inbounds i8, ptr %.13554, i64 5
  %80 = load i8, ptr %76, align 1, !tbaa !13
  %81 = getelementptr inbounds i8, ptr %.155, i64 5
  store i8 %80, ptr %78, align 1, !tbaa !13
  %82 = getelementptr inbounds i8, ptr %.13554, i64 6
  %83 = load i8, ptr %79, align 1, !tbaa !13
  %84 = getelementptr inbounds i8, ptr %.155, i64 6
  store i8 %83, ptr %81, align 1, !tbaa !13
  %85 = getelementptr inbounds i8, ptr %.13554, i64 7
  %86 = load i8, ptr %82, align 1, !tbaa !13
  %87 = getelementptr inbounds i8, ptr %.155, i64 7
  store i8 %86, ptr %84, align 1, !tbaa !13
  %88 = getelementptr inbounds i8, ptr %.13554, i64 8
  %89 = load i8, ptr %85, align 1, !tbaa !13
  %90 = getelementptr inbounds i8, ptr %.155, i64 8
  store i8 %89, ptr %87, align 1, !tbaa !13
  %91 = add i32 %.02656, -8
  %.not36.7 = icmp eq i32 %91, 0
  br i1 %.not36.7, label %._crit_edge59, label %.lr.ph58, !llvm.loop !24

._crit_edge59:                                    ; preds = %.lr.ph58.prol.loopexit, %.lr.ph58, %middle.block79, %vec.epilog.middle.block, %._crit_edge51
  ret void
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__SSAT(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #2

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 = { alwaysinline 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !10, i64 8}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!6, !7, i64 0}
!13 = !{!8, !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !15, !18, !17}
!20 = distinct !{!20, !15, !17, !18}
!21 = distinct !{!21, !15, !17, !18}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.unroll.disable"}
!24 = distinct !{!24, !15, !17}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass