; LLVM IR from CactiLab/Sherloc-Cortex-M-CFVD :: Sherloc_runtime/evaluation/src/edn (libedn)

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

; 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
define dso_local void @fir_no_red_ld(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i16, align 2
  %12 = alloca i16, align 2
  %13 = alloca i16, align 2
  %14 = alloca i16, align 2
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #2
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #2
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #2
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #2
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %15

15:                                               ; preds = %97, %3
  %16 = load i64, ptr %8, align 8, !tbaa !9
  %17 = icmp slt i64 %16, 100
  br i1 %17, label %18, label %100

18:                                               ; preds = %15
  store i64 0, ptr %9, align 8, !tbaa !9
  store i64 0, ptr %10, align 8, !tbaa !9
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load i64, ptr %8, align 8, !tbaa !9
  %21 = getelementptr inbounds i16, ptr %19, i64 %20
  %22 = load i16, ptr %21, align 2, !tbaa !11
  store i16 %22, ptr %11, align 2, !tbaa !11
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %23

23:                                               ; preds = %82, %18
  %24 = load i64, ptr %7, align 8, !tbaa !9
  %25 = icmp slt i64 %24, 32
  br i1 %25, label %26, label %85

26:                                               ; preds = %23
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load i64, ptr %8, align 8, !tbaa !9
  %29 = load i64, ptr %7, align 8, !tbaa !9
  %30 = add nsw i64 %28, %29
  %31 = add nsw i64 %30, 1
  %32 = getelementptr inbounds i16, ptr %27, i64 %31
  %33 = load i16, ptr %32, align 2, !tbaa !11
  store i16 %33, ptr %12, align 2, !tbaa !11
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = load i64, ptr %7, align 8, !tbaa !9
  %36 = getelementptr inbounds i16, ptr %34, i64 %35
  %37 = load i16, ptr %36, align 2, !tbaa !11
  store i16 %37, ptr %13, align 2, !tbaa !11
  %38 = load i16, ptr %11, align 2, !tbaa !11
  %39 = sext i16 %38 to i32
  %40 = load i16, ptr %13, align 2, !tbaa !11
  %41 = sext i16 %40 to i32
  %42 = mul nsw i32 %39, %41
  %43 = sext i32 %42 to i64
  %44 = load i64, ptr %9, align 8, !tbaa !9
  %45 = add nsw i64 %44, %43
  store i64 %45, ptr %9, align 8, !tbaa !9
  %46 = load i16, ptr %12, align 2, !tbaa !11
  %47 = sext i16 %46 to i32
  %48 = load i16, ptr %13, align 2, !tbaa !11
  %49 = sext i16 %48 to i32
  %50 = mul nsw i32 %47, %49
  %51 = sext i32 %50 to i64
  %52 = load i64, ptr %10, align 8, !tbaa !9
  %53 = add nsw i64 %52, %51
  store i64 %53, ptr %10, align 8, !tbaa !9
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = load i64, ptr %8, align 8, !tbaa !9
  %56 = load i64, ptr %7, align 8, !tbaa !9
  %57 = add nsw i64 %55, %56
  %58 = add nsw i64 %57, 2
  %59 = getelementptr inbounds i16, ptr %54, i64 %58
  %60 = load i16, ptr %59, align 2, !tbaa !11
  store i16 %60, ptr %11, align 2, !tbaa !11
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = load i64, ptr %7, align 8, !tbaa !9
  %63 = add nsw i64 %62, 1
  %64 = getelementptr inbounds i16, ptr %61, i64 %63
  %65 = load i16, ptr %64, align 2, !tbaa !11
  store i16 %65, ptr %14, align 2, !tbaa !11
  %66 = load i16, ptr %12, align 2, !tbaa !11
  %67 = sext i16 %66 to i32
  %68 = load i16, ptr %14, align 2, !tbaa !11
  %69 = sext i16 %68 to i32
  %70 = mul nsw i32 %67, %69
  %71 = sext i32 %70 to i64
  %72 = load i64, ptr %9, align 8, !tbaa !9
  %73 = add nsw i64 %72, %71
  store i64 %73, ptr %9, align 8, !tbaa !9
  %74 = load i16, ptr %11, align 2, !tbaa !11
  %75 = sext i16 %74 to i32
  %76 = load i16, ptr %14, align 2, !tbaa !11
  %77 = sext i16 %76 to i32
  %78 = mul nsw i32 %75, %77
  %79 = sext i32 %78 to i64
  %80 = load i64, ptr %10, align 8, !tbaa !9
  %81 = add nsw i64 %80, %79
  store i64 %81, ptr %10, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %26
  %83 = load i64, ptr %7, align 8, !tbaa !9
  %84 = add nsw i64 %83, 2
  store i64 %84, ptr %7, align 8, !tbaa !9
  br label %23, !llvm.loop !13

85:                                               ; preds = %23
  %86 = load i64, ptr %9, align 8, !tbaa !9
  %87 = ashr i64 %86, 15
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = load i64, ptr %8, align 8, !tbaa !9
  %90 = getelementptr inbounds i64, ptr %88, i64 %89
  store i64 %87, ptr %90, align 8, !tbaa !9
  %91 = load i64, ptr %10, align 8, !tbaa !9
  %92 = ashr i64 %91, 15
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = load i64, ptr %8, align 8, !tbaa !9
  %95 = add nsw i64 %94, 1
  %96 = getelementptr inbounds i64, ptr %93, i64 %95
  store i64 %92, ptr %96, align 8, !tbaa !9
  br label %97

97:                                               ; preds = %85
  %98 = load i64, ptr %8, align 8, !tbaa !9
  %99 = add nsw i64 %98, 2
  store i64 %99, ptr %8, align 8, !tbaa !9
  br label %15, !llvm.loop !15

100:                                              ; preds = %15
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  ret void
}

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 }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !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"

; Function Attrs: nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local void @fir_no_red_ld(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
  %invariant.gep = getelementptr inbounds i8, ptr %0, i64 10
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  %wide.vec52 = load <4 x i16>, ptr %1, align 2, !tbaa !5
  %wide.vec53 = load <4 x i16>, ptr %4, align 2, !tbaa !5
  %strided.vec54 = shufflevector <4 x i16> %wide.vec52, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec55 = shufflevector <4 x i16> %wide.vec53, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec56 = shufflevector <4 x i16> %wide.vec52, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec57 = shufflevector <4 x i16> %wide.vec53, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %5 = sext <2 x i16> %strided.vec54 to <2 x i32>
  %6 = sext <2 x i16> %strided.vec55 to <2 x i32>
  %7 = sext <2 x i16> %strided.vec56 to <2 x i32>
  %8 = sext <2 x i16> %strided.vec57 to <2 x i32>
  %invariant.gep63 = getelementptr inbounds i8, ptr %0, i64 18
  %invariant.gep65 = getelementptr inbounds i8, ptr %0, i64 26
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  %10 = getelementptr inbounds i8, ptr %1, i64 24
  %wide.vec52.1 = load <4 x i16>, ptr %9, align 2, !tbaa !5
  %wide.vec53.1 = load <4 x i16>, ptr %10, align 2, !tbaa !5
  %strided.vec54.1 = shufflevector <4 x i16> %wide.vec52.1, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec55.1 = shufflevector <4 x i16> %wide.vec53.1, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec56.1 = shufflevector <4 x i16> %wide.vec52.1, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec57.1 = shufflevector <4 x i16> %wide.vec53.1, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %11 = sext <2 x i16> %strided.vec54.1 to <2 x i32>
  %12 = sext <2 x i16> %strided.vec55.1 to <2 x i32>
  %13 = sext <2 x i16> %strided.vec56.1 to <2 x i32>
  %14 = sext <2 x i16> %strided.vec57.1 to <2 x i32>
  %invariant.gep67 = getelementptr inbounds i8, ptr %0, i64 34
  %invariant.gep69 = getelementptr inbounds i8, ptr %0, i64 42
  %15 = getelementptr inbounds i8, ptr %1, i64 32
  %16 = getelementptr inbounds i8, ptr %1, i64 40
  %wide.vec52.2 = load <4 x i16>, ptr %15, align 2, !tbaa !5
  %wide.vec53.2 = load <4 x i16>, ptr %16, align 2, !tbaa !5
  %strided.vec54.2 = shufflevector <4 x i16> %wide.vec52.2, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec55.2 = shufflevector <4 x i16> %wide.vec53.2, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec56.2 = shufflevector <4 x i16> %wide.vec52.2, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec57.2 = shufflevector <4 x i16> %wide.vec53.2, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %17 = sext <2 x i16> %strided.vec54.2 to <2 x i32>
  %18 = sext <2 x i16> %strided.vec55.2 to <2 x i32>
  %19 = sext <2 x i16> %strided.vec56.2 to <2 x i32>
  %20 = sext <2 x i16> %strided.vec57.2 to <2 x i32>
  %invariant.gep71 = getelementptr inbounds i8, ptr %0, i64 50
  %invariant.gep73 = getelementptr inbounds i8, ptr %0, i64 58
  %21 = getelementptr inbounds i8, ptr %1, i64 48
  %22 = getelementptr inbounds i8, ptr %1, i64 56
  %wide.vec52.3 = load <4 x i16>, ptr %21, align 2, !tbaa !5
  %wide.vec53.3 = load <4 x i16>, ptr %22, align 2, !tbaa !5
  %strided.vec54.3 = shufflevector <4 x i16> %wide.vec52.3, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec55.3 = shufflevector <4 x i16> %wide.vec53.3, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec56.3 = shufflevector <4 x i16> %wide.vec52.3, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec57.3 = shufflevector <4 x i16> %wide.vec53.3, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %23 = sext <2 x i16> %strided.vec54.3 to <2 x i32>
  %24 = sext <2 x i16> %strided.vec55.3 to <2 x i32>
  %25 = sext <2 x i16> %strided.vec56.3 to <2 x i32>
  %26 = sext <2 x i16> %strided.vec57.3 to <2 x i32>
  br label %vector.ph

vector.ph:                                        ; preds = %vector.ph, %3
  %.03341 = phi i64 [ 0, %3 ], [ %162, %vector.ph ]
  %27 = getelementptr inbounds i16, ptr %0, i64 %.03341
  %28 = load i16, ptr %27, align 2, !tbaa !5
  %vector.recur.init = insertelement <2 x i16> poison, i16 %28, i64 1
  %29 = or disjoint i64 %.03341, 1
  %30 = getelementptr inbounds i16, ptr %0, i64 %29
  %gep = getelementptr inbounds i16, ptr %invariant.gep, i64 %.03341
  %wide.vec = load <4 x i16>, ptr %30, align 2, !tbaa !5
  %wide.vec48 = load <4 x i16>, ptr %gep, align 2, !tbaa !5
  %strided.vec = shufflevector <4 x i16> %wide.vec, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec49 = shufflevector <4 x i16> %wide.vec48, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec50 = shufflevector <4 x i16> %wide.vec, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec51 = shufflevector <4 x i16> %wide.vec48, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %31 = shufflevector <2 x i16> %vector.recur.init, <2 x i16> %strided.vec50, <2 x i32> <i32 1, i32 2>
  %32 = shufflevector <2 x i16> %strided.vec50, <2 x i16> %strided.vec51, <2 x i32> <i32 1, i32 2>
  %33 = sext <2 x i16> %31 to <2 x i32>
  %34 = sext <2 x i16> %32 to <2 x i32>
  %35 = mul nsw <2 x i32> %5, %33
  %36 = mul nsw <2 x i32> %6, %34
  %37 = sext <2 x i32> %35 to <2 x i64>
  %38 = sext <2 x i32> %36 to <2 x i64>
  %39 = sext <2 x i16> %strided.vec to <2 x i32>
  %40 = sext <2 x i16> %strided.vec49 to <2 x i32>
  %41 = mul nsw <2 x i32> %5, %39
  %42 = mul nsw <2 x i32> %6, %40
  %43 = sext <2 x i32> %41 to <2 x i64>
  %44 = sext <2 x i32> %42 to <2 x i64>
  %45 = mul nsw <2 x i32> %7, %39
  %46 = mul nsw <2 x i32> %8, %40
  %47 = sext <2 x i32> %45 to <2 x i64>
  %48 = sext <2 x i32> %46 to <2 x i64>
  %49 = add nsw <2 x i64> %37, %47
  %50 = add nsw <2 x i64> %38, %48
  %51 = sext <2 x i16> %strided.vec50 to <2 x i32>
  %52 = sext <2 x i16> %strided.vec51 to <2 x i32>
  %53 = mul nsw <2 x i32> %7, %51
  %54 = mul nsw <2 x i32> %8, %52
  %55 = sext <2 x i32> %53 to <2 x i64>
  %56 = sext <2 x i32> %54 to <2 x i64>
  %57 = add nsw <2 x i64> %43, %55
  %58 = add nsw <2 x i64> %44, %56
  %gep64 = getelementptr inbounds i16, ptr %invariant.gep63, i64 %.03341
  %gep66 = getelementptr inbounds i16, ptr %invariant.gep65, i64 %.03341
  %wide.vec.1 = load <4 x i16>, ptr %gep64, align 2, !tbaa !5
  %wide.vec48.1 = load <4 x i16>, ptr %gep66, align 2, !tbaa !5
  %strided.vec.1 = shufflevector <4 x i16> %wide.vec.1, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec49.1 = shufflevector <4 x i16> %wide.vec48.1, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec50.1 = shufflevector <4 x i16> %wide.vec.1, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec51.1 = shufflevector <4 x i16> %wide.vec48.1, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %59 = shufflevector <2 x i16> %strided.vec51, <2 x i16> %strided.vec50.1, <2 x i32> <i32 1, i32 2>
  %60 = shufflevector <2 x i16> %strided.vec50.1, <2 x i16> %strided.vec51.1, <2 x i32> <i32 1, i32 2>
  %61 = sext <2 x i16> %59 to <2 x i32>
  %62 = sext <2 x i16> %60 to <2 x i32>
  %63 = mul nsw <2 x i32> %11, %61
  %64 = mul nsw <2 x i32> %12, %62
  %65 = sext <2 x i32> %63 to <2 x i64>
  %66 = sext <2 x i32> %64 to <2 x i64>
  %67 = add nsw <2 x i64> %49, %65
  %68 = add nsw <2 x i64> %50, %66
  %69 = sext <2 x i16> %strided.vec.1 to <2 x i32>
  %70 = sext <2 x i16> %strided.vec49.1 to <2 x i32>
  %71 = mul nsw <2 x i32> %11, %69
  %72 = mul nsw <2 x i32> %12, %70
  %73 = sext <2 x i32> %71 to <2 x i64>
  %74 = sext <2 x i32> %72 to <2 x i64>
  %75 = add nsw <2 x i64> %57, %73
  %76 = add nsw <2 x i64> %58, %74
  %77 = mul nsw <2 x i32> %13, %69
  %78 = mul nsw <2 x i32> %14, %70
  %79 = sext <2 x i32> %77 to <2 x i64>
  %80 = sext <2 x i32> %78 to <2 x i64>
  %81 = add nsw <2 x i64> %67, %79
  %82 = add nsw <2 x i64> %68, %80
  %83 = sext <2 x i16> %strided.vec50.1 to <2 x i32>
  %84 = sext <2 x i16> %strided.vec51.1 to <2 x i32>
  %85 = mul nsw <2 x i32> %13, %83
  %86 = mul nsw <2 x i32> %14, %84
  %87 = sext <2 x i32> %85 to <2 x i64>
  %88 = sext <2 x i32> %86 to <2 x i64>
  %89 = add nsw <2 x i64> %75, %87
  %90 = add nsw <2 x i64> %76, %88
  %gep68 = getelementptr inbounds i16, ptr %invariant.gep67, i64 %.03341
  %gep70 = getelementptr inbounds i16, ptr %invariant.gep69, i64 %.03341
  %wide.vec.2 = load <4 x i16>, ptr %gep68, align 2, !tbaa !5
  %wide.vec48.2 = load <4 x i16>, ptr %gep70, align 2, !tbaa !5
  %strided.vec.2 = shufflevector <4 x i16> %wide.vec.2, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec49.2 = shufflevector <4 x i16> %wide.vec48.2, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec50.2 = shufflevector <4 x i16> %wide.vec.2, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec51.2 = shufflevector <4 x i16> %wide.vec48.2, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %91 = shufflevector <2 x i16> %strided.vec51.1, <2 x i16> %strided.vec50.2, <2 x i32> <i32 1, i32 2>
  %92 = shufflevector <2 x i16> %strided.vec50.2, <2 x i16> %strided.vec51.2, <2 x i32> <i32 1, i32 2>
  %93 = sext <2 x i16> %91 to <2 x i32>
  %94 = sext <2 x i16> %92 to <2 x i32>
  %95 = mul nsw <2 x i32> %17, %93
  %96 = mul nsw <2 x i32> %18, %94
  %97 = sext <2 x i32> %95 to <2 x i64>
  %98 = sext <2 x i32> %96 to <2 x i64>
  %99 = add nsw <2 x i64> %81, %97
  %100 = add nsw <2 x i64> %82, %98
  %101 = sext <2 x i16> %strided.vec.2 to <2 x i32>
  %102 = sext <2 x i16> %strided.vec49.2 to <2 x i32>
  %103 = mul nsw <2 x i32> %17, %101
  %104 = mul nsw <2 x i32> %18, %102
  %105 = sext <2 x i32> %103 to <2 x i64>
  %106 = sext <2 x i32> %104 to <2 x i64>
  %107 = add nsw <2 x i64> %89, %105
  %108 = add nsw <2 x i64> %90, %106
  %109 = mul nsw <2 x i32> %19, %101
  %110 = mul nsw <2 x i32> %20, %102
  %111 = sext <2 x i32> %109 to <2 x i64>
  %112 = sext <2 x i32> %110 to <2 x i64>
  %113 = add nsw <2 x i64> %99, %111
  %114 = add nsw <2 x i64> %100, %112
  %115 = sext <2 x i16> %strided.vec50.2 to <2 x i32>
  %116 = sext <2 x i16> %strided.vec51.2 to <2 x i32>
  %117 = mul nsw <2 x i32> %19, %115
  %118 = mul nsw <2 x i32> %20, %116
  %119 = sext <2 x i32> %117 to <2 x i64>
  %120 = sext <2 x i32> %118 to <2 x i64>
  %121 = add nsw <2 x i64> %107, %119
  %122 = add nsw <2 x i64> %108, %120
  %gep72 = getelementptr inbounds i16, ptr %invariant.gep71, i64 %.03341
  %gep74 = getelementptr inbounds i16, ptr %invariant.gep73, i64 %.03341
  %wide.vec.3 = load <4 x i16>, ptr %gep72, align 2, !tbaa !5
  %wide.vec48.3 = load <4 x i16>, ptr %gep74, align 2, !tbaa !5
  %strided.vec.3 = shufflevector <4 x i16> %wide.vec.3, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec49.3 = shufflevector <4 x i16> %wide.vec48.3, <4 x i16> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec50.3 = shufflevector <4 x i16> %wide.vec.3, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec51.3 = shufflevector <4 x i16> %wide.vec48.3, <4 x i16> poison, <2 x i32> <i32 1, i32 3>
  %123 = shufflevector <2 x i16> %strided.vec51.2, <2 x i16> %strided.vec50.3, <2 x i32> <i32 1, i32 2>
  %124 = shufflevector <2 x i16> %strided.vec50.3, <2 x i16> %strided.vec51.3, <2 x i32> <i32 1, i32 2>
  %125 = sext <2 x i16> %123 to <2 x i32>
  %126 = sext <2 x i16> %124 to <2 x i32>
  %127 = mul nsw <2 x i32> %23, %125
  %128 = mul nsw <2 x i32> %24, %126
  %129 = sext <2 x i32> %127 to <2 x i64>
  %130 = sext <2 x i32> %128 to <2 x i64>
  %131 = add nsw <2 x i64> %113, %129
  %132 = add nsw <2 x i64> %114, %130
  %133 = sext <2 x i16> %strided.vec.3 to <2 x i32>
  %134 = sext <2 x i16> %strided.vec49.3 to <2 x i32>
  %135 = mul nsw <2 x i32> %23, %133
  %136 = mul nsw <2 x i32> %24, %134
  %137 = sext <2 x i32> %135 to <2 x i64>
  %138 = sext <2 x i32> %136 to <2 x i64>
  %139 = add nsw <2 x i64> %121, %137
  %140 = add nsw <2 x i64> %122, %138
  %141 = mul nsw <2 x i32> %25, %133
  %142 = mul nsw <2 x i32> %26, %134
  %143 = sext <2 x i32> %141 to <2 x i64>
  %144 = sext <2 x i32> %142 to <2 x i64>
  %145 = add <2 x i64> %131, %143
  %146 = add <2 x i64> %132, %144
  %147 = sext <2 x i16> %strided.vec50.3 to <2 x i32>
  %148 = sext <2 x i16> %strided.vec51.3 to <2 x i32>
  %149 = mul nsw <2 x i32> %25, %147
  %150 = mul nsw <2 x i32> %26, %148
  %151 = sext <2 x i32> %149 to <2 x i64>
  %152 = sext <2 x i32> %150 to <2 x i64>
  %153 = add <2 x i64> %139, %151
  %154 = add <2 x i64> %140, %152
  %bin.rdx = add <2 x i64> %146, %145
  %155 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %bin.rdx58 = add <2 x i64> %154, %153
  %156 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx58)
  %157 = ashr i64 %155, 15
  %158 = getelementptr inbounds i64, ptr %2, i64 %.03341
  store i64 %157, ptr %158, align 8, !tbaa !9
  %159 = ashr i64 %156, 15
  %160 = or disjoint i64 %.03341, 1
  %161 = getelementptr inbounds i64, ptr %2, i64 %160
  store i64 %159, ptr %161, align 8, !tbaa !9
  %162 = add nuw nsw i64 %.03341, 2
  %163 = icmp ult i64 %.03341, 98
  br i1 %163, label %vector.ph, label %164, !llvm.loop !11

164:                                              ; preds = %vector.ph
  ret void
}

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

attributes #0 = { nofree norecurse nosync nounwind memory(argmem: readwrite) 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 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, !6, i64 0}
!6 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass