; LLVM IR from UtkarshPathrabe/Competitive-Coding :: HackerRank Solutions/Algorithms/Dynamic Programming (Equal)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %16

16:                                               ; preds = %96, %0
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = add nsw i32 %17, -1
  store i32 %18, ptr %2, align 4, !tbaa !5
  %19 = icmp ne i32 %17, 0
  br i1 %19, label %20, label %101

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 2147483647, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  store i32 2147483647, ptr %3, align 4, !tbaa !5
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = zext i32 %22 to i64
  %24 = call ptr @llvm.stacksave.p0()
  store ptr %24, ptr %7, align 8
  %25 = alloca i32, i64 %23, align 16
  store i64 %23, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %48, %20
  %27 = load i32, ptr %9, align 4, !tbaa !5
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %51

31:                                               ; preds = %26
  %32 = load i32, ptr %9, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds i32, ptr %25, i64 %33
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %34)
  %36 = load i32, ptr %9, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i32, ptr %25, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %42, label %47

42:                                               ; preds = %31
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds i32, ptr %25, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !5
  store i32 %46, ptr %5, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %42, %31
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %9, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %9, align 4, !tbaa !5
  br label %26, !llvm.loop !9

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

52:                                               ; preds = %93, %51
  %53 = load i32, ptr %10, align 4, !tbaa !5
  %54 = icmp sle i32 %53, 5
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i32 7, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %96

56:                                               ; preds = %52
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %83, %56
  %58 = load i32, ptr %12, align 4, !tbaa !5
  %59 = load i32, ptr %4, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  store i32 10, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %86

62:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %63 = load i32, ptr %12, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds i32, ptr %25, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = load i32, ptr %10, align 4, !tbaa !5
  %69 = sub nsw i32 %67, %68
  %70 = sub nsw i32 %66, %69
  store i32 %70, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = srem i32 %71, 5
  store i32 %72, ptr %14, align 4, !tbaa !5
  %73 = load i32, ptr %13, align 4, !tbaa !5
  %74 = sdiv i32 %73, 5
  %75 = load i32, ptr %14, align 4, !tbaa !5
  %76 = sdiv i32 %75, 2
  %77 = add nsw i32 %74, %76
  %78 = load i32, ptr %14, align 4, !tbaa !5
  %79 = and i32 %78, 1
  %80 = add nsw i32 %77, %79
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = add nsw i32 %81, %80
  store i32 %82, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %83

83:                                               ; preds = %62
  %84 = load i32, ptr %12, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %12, align 4, !tbaa !5
  br label %57, !llvm.loop !11

86:                                               ; preds = %61
  %87 = load i32, ptr %3, align 4, !tbaa !5
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = icmp sgt i32 %87, %88
  br i1 %89, label %90, label %92

90:                                               ; preds = %86
  %91 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %91, ptr %3, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %90, %86
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %10, align 4, !tbaa !5
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %10, align 4, !tbaa !5
  br label %52, !llvm.loop !12

96:                                               ; preds = %55
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %97)
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %100 = load ptr, ptr %7, align 8
  call void @llvm.stackrestore.p0(ptr %100)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %16, !llvm.loop !13

101:                                              ; preds = %16
  store i32 0, ptr %1, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %102 = load i32, ptr %1, align 4
  ret i32 %102
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

attributes #0 = { mustprogress norecurse 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 = { "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 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { mustprogress 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 = { inlinehint mustprogress 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %4 = load i32, ptr %1, align 4, !tbaa !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr %1, align 4, !tbaa !5
  %.not41 = icmp eq i32 %4, 0
  br i1 %.not41, label %._crit_edge, label %.lr.ph42

.lr.ph42:                                         ; preds = %0, %.split.us
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %7 = load i32, ptr %2, align 4, !tbaa !5
  %8 = zext i32 %7 to i64
  %9 = call ptr @llvm.stacksave.p0()
  %10 = alloca i32, i64 %8, align 16
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %.split.us

.preheader31:                                     ; preds = %.lr.ph
  %13 = icmp sgt i32 %231, 0
  br i1 %13, label %.preheader.us.preheader, label %.split.us

.preheader.us.preheader:                          ; preds = %.preheader31
  %wide.trip.count = zext nneg i32 %231 to i64
  %min.iters.check149 = icmp ult i32 %231, 8
  br i1 %min.iters.check149, label %scalar.ph148.preheader, label %vector.ph150

vector.ph150:                                     ; preds = %.preheader.us.preheader
  %n.vec152 = and i64 %wide.trip.count, 2147483640
  %broadcast.splatinsert160 = insertelement <4 x i32> poison, i32 %spec.select, i64 0
  %broadcast.splat161 = shufflevector <4 x i32> %broadcast.splatinsert160, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body154

vector.body154:                                   ; preds = %vector.body154, %vector.ph150
  %index155 = phi i64 [ 0, %vector.ph150 ], [ %index.next162, %vector.body154 ]
  %vec.phi156 = phi <4 x i32> [ zeroinitializer, %vector.ph150 ], [ %34, %vector.body154 ]
  %vec.phi157 = phi <4 x i32> [ zeroinitializer, %vector.ph150 ], [ %35, %vector.body154 ]
  %14 = getelementptr inbounds i32, ptr %10, i64 %index155
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  %wide.load158 = load <4 x i32>, ptr %14, align 16, !tbaa !5
  %wide.load159 = load <4 x i32>, ptr %15, align 16, !tbaa !5
  %16 = sub <4 x i32> %wide.load158, %broadcast.splat161
  %17 = sub <4 x i32> %wide.load159, %broadcast.splat161
  %.frozen = freeze <4 x i32> %16
  %18 = sdiv <4 x i32> %.frozen, <i32 5, i32 5, i32 5, i32 5>
  %19 = mul <4 x i32> %18, <i32 5, i32 5, i32 5, i32 5>
  %.decomposed = sub <4 x i32> %.frozen, %19
  %.frozen202 = freeze <4 x i32> %17
  %20 = sdiv <4 x i32> %.frozen202, <i32 5, i32 5, i32 5, i32 5>
  %21 = mul <4 x i32> %20, <i32 5, i32 5, i32 5, i32 5>
  %.decomposed203 = sub <4 x i32> %.frozen202, %21
  %22 = trunc nsw <4 x i32> %.decomposed to <4 x i8>
  %23 = trunc nsw <4 x i32> %.decomposed203 to <4 x i8>
  %24 = sdiv <4 x i8> %22, <i8 2, i8 2, i8 2, i8 2>
  %25 = sdiv <4 x i8> %23, <i8 2, i8 2, i8 2, i8 2>
  %26 = sext <4 x i8> %24 to <4 x i32>
  %27 = sext <4 x i8> %25 to <4 x i32>
  %28 = and <4 x i32> %.decomposed, <i32 1, i32 1, i32 1, i32 1>
  %29 = and <4 x i32> %.decomposed203, <i32 1, i32 1, i32 1, i32 1>
  %30 = add <4 x i32> %18, %vec.phi156
  %31 = add <4 x i32> %20, %vec.phi157
  %32 = add <4 x i32> %30, %28
  %33 = add <4 x i32> %31, %29
  %34 = add <4 x i32> %32, %26
  %35 = add <4 x i32> %33, %27
  %index.next162 = add nuw i64 %index155, 8
  %36 = icmp eq i64 %index.next162, %n.vec152
  br i1 %36, label %middle.block147, label %vector.body154, !llvm.loop !9

middle.block147:                                  ; preds = %vector.body154
  %bin.rdx163 = add <4 x i32> %35, %34
  %37 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx163)
  %cmp.n164 = icmp eq i64 %n.vec152, %wide.trip.count
  br i1 %cmp.n164, label %._crit_edge.us, label %scalar.ph148.preheader

scalar.ph148.preheader:                           ; preds = %middle.block147, %.preheader.us.preheader
  %indvars.iv47.ph = phi i64 [ 0, %.preheader.us.preheader ], [ %n.vec152, %middle.block147 ]
  %.02835.us.ph = phi i32 [ 0, %.preheader.us.preheader ], [ %37, %middle.block147 ]
  br label %scalar.ph148

scalar.ph148:                                     ; preds = %scalar.ph148.preheader, %scalar.ph148
  %indvars.iv47 = phi i64 [ %indvars.iv.next48, %scalar.ph148 ], [ %indvars.iv47.ph, %scalar.ph148.preheader ]
  %.02835.us = phi i32 [ %47, %scalar.ph148 ], [ %.02835.us.ph, %scalar.ph148.preheader ]
  %38 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv47
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = sub i32 %39, %spec.select
  %41 = srem i32 %40, 5
  %42 = sdiv i32 %40, 5
  %.lhs.trunc.us = trunc nsw i32 %41 to i8
  %43 = sdiv i8 %.lhs.trunc.us, 2
  %.sext.us = sext i8 %43 to i32
  %44 = and i32 %41, 1
  %45 = add i32 %42, %.02835.us
  %46 = add i32 %45, %44
  %47 = add i32 %46, %.sext.us
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next48, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us, label %scalar.ph148, !llvm.loop !13

._crit_edge.us:                                   ; preds = %scalar.ph148, %middle.block147
  %.lcssa63 = phi i32 [ %37, %middle.block147 ], [ %47, %scalar.ph148 ]
  %min.iters.check130 = icmp ult i32 %231, 8
  br i1 %min.iters.check130, label %scalar.ph129.preheader, label %vector.ph131

vector.ph131:                                     ; preds = %._crit_edge.us
  %n.vec133 = and i64 %wide.trip.count, 2147483640
  %broadcast.splatinsert141 = insertelement <4 x i32> poison, i32 %spec.select, i64 0
  %broadcast.splat142 = shufflevector <4 x i32> %broadcast.splatinsert141, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body135

vector.body135:                                   ; preds = %vector.body135, %vector.ph131
  %index136 = phi i64 [ 0, %vector.ph131 ], [ %index.next143, %vector.body135 ]
  %vec.phi137 = phi <4 x i32> [ zeroinitializer, %vector.ph131 ], [ %70, %vector.body135 ]
  %vec.phi138 = phi <4 x i32> [ zeroinitializer, %vector.ph131 ], [ %71, %vector.body135 ]
  %48 = getelementptr inbounds i32, ptr %10, i64 %index136
  %49 = getelementptr inbounds i8, ptr %48, i64 16
  %wide.load139 = load <4 x i32>, ptr %48, align 16, !tbaa !5
  %wide.load140 = load <4 x i32>, ptr %49, align 16, !tbaa !5
  %50 = sub <4 x i32> %wide.load139, %broadcast.splat142
  %51 = sub <4 x i32> %wide.load140, %broadcast.splat142
  %52 = add <4 x i32> %50, <i32 1, i32 1, i32 1, i32 1>
  %53 = add <4 x i32> %51, <i32 1, i32 1, i32 1, i32 1>
  %.frozen204 = freeze <4 x i32> %52
  %54 = sdiv <4 x i32> %.frozen204, <i32 5, i32 5, i32 5, i32 5>
  %55 = mul <4 x i32> %54, <i32 5, i32 5, i32 5, i32 5>
  %.decomposed205 = sub <4 x i32> %.frozen204, %55
  %.frozen206 = freeze <4 x i32> %53
  %56 = sdiv <4 x i32> %.frozen206, <i32 5, i32 5, i32 5, i32 5>
  %57 = mul <4 x i32> %56, <i32 5, i32 5, i32 5, i32 5>
  %.decomposed207 = sub <4 x i32> %.frozen206, %57
  %58 = trunc nsw <4 x i32> %.decomposed205 to <4 x i8>
  %59 = trunc nsw <4 x i32> %.decomposed207 to <4 x i8>
  %60 = sdiv <4 x i8> %58, <i8 2, i8 2, i8 2, i8 2>
  %61 = sdiv <4 x i8> %59, <i8 2, i8 2, i8 2, i8 2>
  %62 = sext <4 x i8> %60 to <4 x i32>
  %63 = sext <4 x i8> %61 to <4 x i32>
  %64 = and <4 x i32> %.decomposed205, <i32 1, i32 1, i32 1, i32 1>
  %65 = and <4 x i32> %.decomposed207, <i32 1, i32 1, i32 1, i32 1>
  %66 = add <4 x i32> %54, %vec.phi137
  %67 = add <4 x i32> %56, %vec.phi138
  %68 = add <4 x i32> %66, %64
  %69 = add <4 x i32> %67, %65
  %70 = add <4 x i32> %68, %62
  %71 = add <4 x i32> %69, %63
  %index.next143 = add nuw i64 %index136, 8
  %72 = icmp eq i64 %index.next143, %n.vec133
  br i1 %72, label %middle.block128, label %vector.body135, !llvm.loop !14

middle.block128:                                  ; preds = %vector.body135
  %bin.rdx144 = add <4 x i32> %71, %70
  %73 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx144)
  %cmp.n145 = icmp eq i64 %n.vec133, %wide.trip.count
  br i1 %cmp.n145, label %._crit_edge.us.1, label %scalar.ph129.preheader

scalar.ph129.preheader:                           ; preds = %middle.block128, %._crit_edge.us
  %indvars.iv47.1.ph = phi i64 [ 0, %._crit_edge.us ], [ %n.vec133, %middle.block128 ]
  %.02835.us.1.ph = phi i32 [ 0, %._crit_edge.us ], [ %73, %middle.block128 ]
  br label %scalar.ph129

scalar.ph129:                                     ; preds = %scalar.ph129.preheader, %scalar.ph129
  %indvars.iv47.1 = phi i64 [ %indvars.iv.next48.1, %scalar.ph129 ], [ %indvars.iv47.1.ph, %scalar.ph129.preheader ]
  %.02835.us.1 = phi i32 [ %83, %scalar.ph129 ], [ %.02835.us.1.ph, %scalar.ph129.preheader ]
  %74 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv47.1
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %reass.sub = sub i32 %75, %spec.select
  %76 = add i32 %reass.sub, 1
  %77 = srem i32 %76, 5
  %78 = sdiv i32 %76, 5
  %.lhs.trunc.us.1 = trunc nsw i32 %77 to i8
  %79 = sdiv i8 %.lhs.trunc.us.1, 2
  %.sext.us.1 = sext i8 %79 to i32
  %80 = and i32 %77, 1
  %81 = add i32 %78, %.02835.us.1
  %82 = add i32 %81, %80
  %83 = add i32 %82, %.sext.us.1
  %indvars.iv.next48.1 = add nuw nsw i64 %indvars.iv47.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next48.1, %wide.trip.count
  br i1 %exitcond.1.not, label %._crit_edge.us.1, label %scalar.ph129, !llvm.loop !15

._crit_edge.us.1:                                 ; preds = %scalar.ph129, %middle.block128
  %.lcssa64 = phi i32 [ %73, %middle.block128 ], [ %83, %scalar.ph129 ]
  %min.iters.check111 = icmp ult i32 %231, 8
  br i1 %min.iters.check111, label %scalar.ph110.preheader, label %vector.ph112

vector.ph112:                                     ; preds = %._crit_edge.us.1
  %n.vec114 = and i64 %wide.trip.count, 2147483640
  %broadcast.splatinsert122 = insertelement <4 x i32> poison, i32 %spec.select, i64 0
  %broadcast.splat123 = shufflevector <4 x i32> %broadcast.splatinsert122, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body116

vector.body116:                                   ; preds = %vector.body116, %vector.ph112
  %index117 = phi i64 [ 0, %vector.ph112 ], [ %index.next124, %vector.body116 ]
  %vec.phi118 = phi <4 x i32> [ zeroinitializer, %vector.ph112 ], [ %106, %vector.body116 ]
  %vec.phi119 = phi <4 x i32> [ zeroinitializer, %vector.ph112 ], [ %107, %vector.body116 ]
  %84 = getelementptr inbounds i32, ptr %10, i64 %index117
  %85 = getelementptr inbounds i8, ptr %84, i64 16
  %wide.load120 = load <4 x i32>, ptr %84, align 16, !tbaa !5
  %wide.load121 = load <4 x i32>, ptr %85, align 16, !tbaa !5
  %86 = sub <4 x i32> %wide.load120, %broadcast.splat123
  %87 = sub <4 x i32> %wide.load121, %broadcast.splat123
  %88 = add <4 x i32> %86, <i32 2, i32 2, i32 2, i32 2>
  %89 = add <4 x i32> %87, <i32 2, i32 2, i32 2, i32 2>
  %.frozen208 = freeze <4 x i32> %88
  %90 = sdiv <4 x i32> %.frozen208, <i32 5, i32 5, i32 5, i32 5>
  %91 = mul <4 x i32> %90, <i32 5, i32 5, i32 5, i32 5>
  %.decomposed209 = sub <4 x i32> %.frozen208, %91
  %.frozen210 = freeze <4 x i32> %89
  %92 = sdiv <4 x i32> %.frozen210, <i32 5, i32 5, i32 5, i32 5>
  %93 = mul <4 x i32> %92, <i32 5, i32 5, i32 5, i32 5>
  %.decomposed211 = sub <4 x i32> %.frozen210, %93
  %94 = trunc nsw <4 x i32> %.decomposed209 to <4 x i8>
  %95 = trunc nsw <4 x i32> %.decomposed211 to <4 x i8>
  %96 = sdiv <4 x i8> %94, <i8 2, i8 2, i8 2, i8 2>
  %97 = sdiv <4 x i8> %95, <i8 2, i8 2, i8 2, i8 2>
  %98 = sext <4 x i8> %96 to <4 x i32>
  %99 = sext <4 x i8> %97 to <4 x i32>
  %100 = and <4 x i32> %.decomposed209, <i32 1, i32 1, i32 1, i32 1>
  %101 = and <4 x i32> %.decomposed211, <i32 1, i32 1, i32 1, i32 1>
  %102 = add <4 x i32> %90, %vec.phi118
  %103 = add <4 x i32> %92, %vec.phi119
  %104 = add <4 x i32> %102, %100
  %105 = add <4 x i32> %103, %101
  %106 = add <4 x i32> %104, %98
  %107 = add <4 x i32> %105, %99
  %index.next124 = add nuw i64 %index117, 8
  %108 = icmp eq i64 %index.next124, %n.vec114
  br i1 %108, label %middle.block109, label %vector.body116, !llvm.loop !16

middle.block109:                                  ; preds = %vector.body116
  %bin.rdx125 = add <4 x i32> %107, %106
  %109 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx125)
  %cmp.n126 = icmp eq i64 %n.vec114, %wide.trip.count
  br i1 %cmp.n126, label %._crit_edge.us.2, label %scalar.ph110.preheader

scalar.ph110.preheader:                           ; preds = %middle.block109, %._crit_edge.us.1
  %indvars.iv47.2.ph = phi i64 [ 0, %._crit_edge.us.1 ], [ %n.vec114, %middle.block109 ]
  %.02835.us.2.ph = phi i32 [ 0, %._crit_edge.us.1 ], [ %109, %middle.block109 ]
  br label %scalar.ph110

scalar.ph110:                                     ; preds = %scalar.ph110.preheader, %scalar.ph110
  %indvars.iv47.2 = phi i64 [ %indvars.iv.next48.2, %scalar.ph110 ], [ %indvars.iv47.2.ph, %scalar.ph110.preheader ]
  %.02835.us.2 = phi i32 [ %119, %scalar.ph110 ], [ %.02835.us.2.ph, %scalar.ph110.preheader ]
  %110 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv47.2
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %reass.sub51 = sub i32 %111, %spec.select
  %112 = add i32 %reass.sub51, 2
  %113 = srem i32 %112, 5
  %114 = sdiv i32 %112, 5
  %.lhs.trunc.us.2 = trunc nsw i32 %113 to i8
  %115 = sdiv i8 %.lhs.trunc.us.2, 2
  %.sext.us.2 = sext i8 %115 to i32
  %116 = and i32 %113, 1
  %117 = add i32 %114, %.02835.us.2
  %118 = add i32 %117, %116
  %119 = add i32 %118, %.sext.us.2
  %indvars.iv.next48.2 = add nuw nsw i64 %indvars.iv47.2, 1
  %exitcond.2.not = icmp eq i64 %indvars.iv.next48.2, %wide.trip.count
  br i1 %exitcond.2.not, label %._crit_edge.us.2, label %scalar.ph110, !llvm.loop !17

._crit_edge.us.2:                                 ; preds = %scalar.ph110, %middle.block109
  %.lcssa65 = phi i32 [ %109, %middle.block109 ], [ %119, %scalar.ph110 ]
  %spec.select30.us.1 = call i32 @llvm.smin.i32(i32 %.lcssa63, i32 %.lcssa64)
  %min.iters.check92 = icmp ult i32 %231, 8
  br i1 %min.iters.check92, label %scalar.ph91.preheader, label %vector.ph93

vector.ph93:                                      ; preds = %._crit_edge.us.2
  %n.vec95 = and i64 %wide.trip.count, 2147483640
  %broadcast.splatinsert103 = insertelement <4 x i32> poison, i32 %spec.select, i64 0
  %broadcast.splat104 = shufflevector <4 x i32> %broadcast.splatinsert103, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body97

vector.body97:                                    ; preds = %vector.body97, %vector.ph93
  %index98 = phi i64 [ 0, %vector.ph93 ], [ %index.next105, %vector.body97 ]
  %vec.phi99 = phi <4 x i32> [ zeroinitializer, %vector.ph93 ], [ %142, %vector.body97 ]
  %vec.phi100 = phi <4 x i32> [ zeroinitializer, %vector.ph93 ], [ %143, %vector.body97 ]
  %120 = getelementptr inbounds i32, ptr %10, i64 %index98
  %121 = getelementptr inbounds i8, ptr %120, i64 16
  %wide.load101 = load <4 x i32>, ptr %120, align 16, !tbaa !5
  %wide.load102 = load <4 x i32>, ptr %121, align 16, !tbaa !5
  %122 = sub <4 x i32> %wide.load101, %broadcast.splat104
  %123 = sub <4 x i32> %wide.load102, %broadcast.splat104
  %124 = add <4 x i32> %122, <i32 3, i32 3, i32 3, i32 3>
  %125 = add <4 x i32> %123, <i32 3, i32 3, i32 3, i32 3>
  %.frozen212 = freeze <4 x i32> %124
  %126 = sdiv <4 x i32> %.frozen212, <i32 5, i32 5, i32 5, i32 5>
  %127 = mul <4 x i32> %126, <i32 5, i32 5, i32 5, i32 5>
  %.decomposed213 = sub <4 x i32> %.frozen212, %127
  %.frozen214 = freeze <4 x i32> %125
  %128 = sdiv <4 x i32> %.frozen214, <i32 5, i32 5, i32 5, i32 5>
  %129 = mul <4 x i32> %128, <i32 5, i32 5, i32 5, i32 5>
  %.decomposed215 = sub <4 x i32> %.frozen214, %129
  %130 = trunc nsw <4 x i32> %.decomposed213 to <4 x i8>
  %131 = trunc nsw <4 x i32> %.decomposed215 to <4 x i8>
  %132 = sdiv <4 x i8> %130, <i8 2, i8 2, i8 2, i8 2>
  %133 = sdiv <4 x i8> %131, <i8 2, i8 2, i8 2, i8 2>
  %134 = sext <4 x i8> %132 to <4 x i32>
  %135 = sext <4 x i8> %133 to <4 x i32>
  %136 = and <4 x i32> %.decomposed213, <i32 1, i32 1, i32 1, i32 1>
  %137 = and <4 x i32> %.decomposed215, <i32 1, i32 1, i32 1, i32 1>
  %138 = add <4 x i32> %126, %vec.phi99
  %139 = add <4 x i32> %128, %vec.phi100
  %140 = add <4 x i32> %138, %136
  %141 = add <4 x i32> %139, %137
  %142 = add <4 x i32> %140, %134
  %143 = add <4 x i32> %141, %135
  %index.next105 = add nuw i64 %index98, 8
  %144 = icmp eq i64 %index.next105, %n.vec95
  br i1 %144, label %middle.block90, label %vector.body97, !llvm.loop !18

middle.block90:                                   ; preds = %vector.body97
  %bin.rdx106 = add <4 x i32> %143, %142
  %145 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx106)
  %cmp.n107 = icmp eq i64 %n.vec95, %wide.trip.count
  br i1 %cmp.n107, label %._crit_edge.us.3, label %scalar.ph91.preheader

scalar.ph91.preheader:                            ; preds = %middle.block90, %._crit_edge.us.2
  %indvars.iv47.3.ph = phi i64 [ 0, %._crit_edge.us.2 ], [ %n.vec95, %middle.block90 ]
  %.02835.us.3.ph = phi i32 [ 0, %._crit_edge.us.2 ], [ %145, %middle.block90 ]
  br label %scalar.ph91

scalar.ph91:                                      ; preds = %scalar.ph91.preheader, %scalar.ph91
  %indvars.iv47.3 = phi i64 [ %indvars.iv.next48.3, %scalar.ph91 ], [ %indvars.iv47.3.ph, %scalar.ph91.preheader ]
  %.02835.us.3 = phi i32 [ %155, %scalar.ph91 ], [ %.02835.us.3.ph, %scalar.ph91.preheader ]
  %146 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv47.3
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %reass.sub52 = sub i32 %147, %spec.select
  %148 = add i32 %reass.sub52, 3
  %149 = srem i32 %148, 5
  %150 = sdiv i32 %148, 5
  %.lhs.trunc.us.3 = trunc nsw i32 %149 to i8
  %151 = sdiv i8 %.lhs.trunc.us.3, 2
  %.sext.us.3 = sext i8 %151 to i32
  %152 = and i32 %149, 1
  %153 = add i32 %150, %.02835.us.3
  %154 = add i32 %153, %152
  %155 = add i32 %154, %.sext.us.3
  %indvars.iv.next48.3 = add nuw nsw i64 %indvars.iv47.3, 1
  %exitcond.3.not = icmp eq i64 %indvars.iv.next48.3, %wide.trip.count
  br i1 %exitcond.3.not, label %._crit_edge.us.3, label %scalar.ph91, !llvm.loop !19

._crit_edge.us.3:                                 ; preds = %scalar.ph91, %middle.block90
  %.lcssa66 = phi i32 [ %145, %middle.block90 ], [ %155, %scalar.ph91 ]
  %spec.select30.us.2 = call i32 @llvm.smin.i32(i32 %spec.select30.us.1, i32 %.lcssa65)
  %min.iters.check73 = icmp ult i32 %231, 8
  br i1 %min.iters.check73, label %scalar.ph72.preheader, label %vector.ph74

vector.ph74:                                      ; preds = %._crit_edge.us.3
  %n.vec76 = and i64 %wide.trip.count, 2147483640
  %broadcast.splatinsert84 = insertelement <4 x i32> poison, i32 %spec.select, i64 0
  %broadcast.splat85 = shufflevector <4 x i32> %broadcast.splatinsert84, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body78

vector.body78:                                    ; preds = %vector.body78, %vector.ph74
  %index79 = phi i64 [ 0, %vector.ph74 ], [ %index.next86, %vector.body78 ]
  %vec.phi80 = phi <4 x i32> [ zeroinitializer, %vector.ph74 ], [ %178, %vector.body78 ]
  %vec.phi81 = phi <4 x i32> [ zeroinitializer, %vector.ph74 ], [ %179, %vector.body78 ]
  %156 = getelementptr inbounds i32, ptr %10, i64 %index79
  %157 = getelementptr inbounds i8, ptr %156, i64 16
  %wide.load82 = load <4 x i32>, ptr %156, align 16, !tbaa !5
  %wide.load83 = load <4 x i32>, ptr %157, align 16, !tbaa !5
  %158 = sub <4 x i32> %wide.load82, %broadcast.splat85
  %159 = sub <4 x i32> %wide.load83, %broadcast.splat85
  %160 = add <4 x i32> %158, <i32 4, i32 4, i32 4, i32 4>
  %161 = add <4 x i32> %159, <i32 4, i32 4, i32 4, i32 4>
  %.frozen216 = freeze <4 x i32> %160
  %162 = sdiv <4 x i32> %.frozen216, <i32 5, i32 5, i32 5, i32 5>
  %163 = mul <4 x i32> %162, <i32 5, i32 5, i32 5, i32 5>
  %.decomposed217 = sub <4 x i32> %.frozen216, %163
  %.frozen218 = freeze <4 x i32> %161
  %164 = sdiv <4 x i32> %.frozen218, <i32 5, i32 5, i32 5, i32 5>
  %165 = mul <4 x i32> %164, <i32 5, i32 5, i32 5, i32 5>
  %.decomposed219 = sub <4 x i32> %.frozen218, %165
  %166 = trunc nsw <4 x i32> %.decomposed217 to <4 x i8>
  %167 = trunc nsw <4 x i32> %.decomposed219 to <4 x i8>
  %168 = sdiv <4 x i8> %166, <i8 2, i8 2, i8 2, i8 2>
  %169 = sdiv <4 x i8> %167, <i8 2, i8 2, i8 2, i8 2>
  %170 = sext <4 x i8> %168 to <4 x i32>
  %171 = sext <4 x i8> %169 to <4 x i32>
  %172 = and <4 x i32> %.decomposed217, <i32 1, i32 1, i32 1, i32 1>
  %173 = and <4 x i32> %.decomposed219, <i32 1, i32 1, i32 1, i32 1>
  %174 = add <4 x i32> %162, %vec.phi80
  %175 = add <4 x i32> %164, %vec.phi81
  %176 = add <4 x i32> %174, %172
  %177 = add <4 x i32> %175, %173
  %178 = add <4 x i32> %176, %170
  %179 = add <4 x i32> %177, %171
  %index.next86 = add nuw i64 %index79, 8
  %180 = icmp eq i64 %index.next86, %n.vec76
  br i1 %180, label %middle.block71, label %vector.body78, !llvm.loop !20

middle.block71:                                   ; preds = %vector.body78
  %bin.rdx87 = add <4 x i32> %179, %178
  %181 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx87)
  %cmp.n88 = icmp eq i64 %n.vec76, %wide.trip.count
  br i1 %cmp.n88, label %._crit_edge.us.4, label %scalar.ph72.preheader

scalar.ph72.preheader:                            ; preds = %middle.block71, %._crit_edge.us.3
  %indvars.iv47.4.ph = phi i64 [ 0, %._crit_edge.us.3 ], [ %n.vec76, %middle.block71 ]
  %.02835.us.4.ph = phi i32 [ 0, %._crit_edge.us.3 ], [ %181, %middle.block71 ]
  br label %scalar.ph72

scalar.ph72:                                      ; preds = %scalar.ph72.preheader, %scalar.ph72
  %indvars.iv47.4 = phi i64 [ %indvars.iv.next48.4, %scalar.ph72 ], [ %indvars.iv47.4.ph, %scalar.ph72.preheader ]
  %.02835.us.4 = phi i32 [ %191, %scalar.ph72 ], [ %.02835.us.4.ph, %scalar.ph72.preheader ]
  %182 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv47.4
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %reass.sub53 = sub i32 %183, %spec.select
  %184 = add i32 %reass.sub53, 4
  %185 = srem i32 %184, 5
  %186 = sdiv i32 %184, 5
  %.lhs.trunc.us.4 = trunc nsw i32 %185 to i8
  %187 = sdiv i8 %.lhs.trunc.us.4, 2
  %.sext.us.4 = sext i8 %187 to i32
  %188 = and i32 %185, 1
  %189 = add i32 %186, %.02835.us.4
  %190 = add i32 %189, %188
  %191 = add i32 %190, %.sext.us.4
  %indvars.iv.next48.4 = add nuw nsw i64 %indvars.iv47.4, 1
  %exitcond.4.not = icmp eq i64 %indvars.iv.next48.4, %wide.trip.count
  br i1 %exitcond.4.not, label %._crit_edge.us.4, label %scalar.ph72, !llvm.loop !21

._crit_edge.us.4:                                 ; preds = %scalar.ph72, %middle.block71
  %.lcssa67 = phi i32 [ %181, %middle.block71 ], [ %191, %scalar.ph72 ]
  %spec.select30.us.3 = call i32 @llvm.smin.i32(i32 %spec.select30.us.2, i32 %.lcssa66)
  %min.iters.check = icmp ult i32 %231, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %._crit_edge.us.4
  %n.vec = and i64 %wide.trip.count, 2147483640
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %spec.select, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  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 ], [ %214, %vector.body ]
  %vec.phi69 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %215, %vector.body ]
  %192 = getelementptr inbounds i32, ptr %10, i64 %index
  %193 = getelementptr inbounds i8, ptr %192, i64 16
  %wide.load = load <4 x i32>, ptr %192, align 16, !tbaa !5
  %wide.load70 = load <4 x i32>, ptr %193, align 16, !tbaa !5
  %194 = sub <4 x i32> %wide.load, %broadcast.splat
  %195 = sub <4 x i32> %wide.load70, %broadcast.splat
  %196 = add <4 x i32> %194, <i32 5, i32 5, i32 5, i32 5>
  %197 = add <4 x i32> %195, <i32 5, i32 5, i32 5, i32 5>
  %.frozen220 = freeze <4 x i32> %196
  %198 = sdiv <4 x i32> %.frozen220, <i32 5, i32 5, i32 5, i32 5>
  %199 = mul <4 x i32> %198, <i32 5, i32 5, i32 5, i32 5>
  %.decomposed221 = sub <4 x i32> %.frozen220, %199
  %.frozen222 = freeze <4 x i32> %197
  %200 = sdiv <4 x i32> %.frozen222, <i32 5, i32 5, i32 5, i32 5>
  %201 = mul <4 x i32> %200, <i32 5, i32 5, i32 5, i32 5>
  %.decomposed223 = sub <4 x i32> %.frozen222, %201
  %202 = trunc nsw <4 x i32> %.decomposed221 to <4 x i8>
  %203 = trunc nsw <4 x i32> %.decomposed223 to <4 x i8>
  %204 = sdiv <4 x i8> %202, <i8 2, i8 2, i8 2, i8 2>
  %205 = sdiv <4 x i8> %203, <i8 2, i8 2, i8 2, i8 2>
  %206 = sext <4 x i8> %204 to <4 x i32>
  %207 = sext <4 x i8> %205 to <4 x i32>
  %208 = and <4 x i32> %.decomposed221, <i32 1, i32 1, i32 1, i32 1>
  %209 = and <4 x i32> %.decomposed223, <i32 1, i32 1, i32 1, i32 1>
  %210 = add <4 x i32> %198, %vec.phi
  %211 = add <4 x i32> %200, %vec.phi69
  %212 = add <4 x i32> %210, %208
  %213 = add <4 x i32> %211, %209
  %214 = add <4 x i32> %212, %206
  %215 = add <4 x i32> %213, %207
  %index.next = add nuw i64 %index, 8
  %216 = icmp eq i64 %index.next, %n.vec
  br i1 %216, label %middle.block, label %vector.body, !llvm.loop !22

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %215, %214
  %217 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge.us.5, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %._crit_edge.us.4
  %indvars.iv47.5.ph = phi i64 [ 0, %._crit_edge.us.4 ], [ %n.vec, %middle.block ]
  %.02835.us.5.ph = phi i32 [ 0, %._crit_edge.us.4 ], [ %217, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv47.5 = phi i64 [ %indvars.iv.next48.5, %scalar.ph ], [ %indvars.iv47.5.ph, %scalar.ph.preheader ]
  %.02835.us.5 = phi i32 [ %227, %scalar.ph ], [ %.02835.us.5.ph, %scalar.ph.preheader ]
  %218 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv47.5
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %reass.sub54 = sub i32 %219, %spec.select
  %220 = add i32 %reass.sub54, 5
  %221 = srem i32 %220, 5
  %222 = sdiv i32 %220, 5
  %.lhs.trunc.us.5 = trunc nsw i32 %221 to i8
  %223 = sdiv i8 %.lhs.trunc.us.5, 2
  %.sext.us.5 = sext i8 %223 to i32
  %224 = and i32 %221, 1
  %225 = add i32 %222, %.02835.us.5
  %226 = add i32 %225, %224
  %227 = add i32 %226, %.sext.us.5
  %indvars.iv.next48.5 = add nuw nsw i64 %indvars.iv47.5, 1
  %exitcond.5.not = icmp eq i64 %indvars.iv.next48.5, %wide.trip.count
  br i1 %exitcond.5.not, label %._crit_edge.us.5, label %scalar.ph, !llvm.loop !23

._crit_edge.us.5:                                 ; preds = %scalar.ph, %middle.block
  %.lcssa68 = phi i32 [ %217, %middle.block ], [ %227, %scalar.ph ]
  %spec.select30.us.4 = call i32 @llvm.smin.i32(i32 %spec.select30.us.3, i32 %.lcssa67)
  %spec.select30.us.5 = call i32 @llvm.smin.i32(i32 %spec.select30.us.4, i32 %.lcssa68)
  br label %.split.us

.lr.ph:                                           ; preds = %.lr.ph42, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph42 ]
  %.02632 = phi i32 [ %spec.select, %.lr.ph ], [ 2147483647, %.lr.ph42 ]
  %228 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv
  %229 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %228)
  %230 = load i32, ptr %228, align 4, !tbaa !5
  %spec.select = call i32 @llvm.smin.i32(i32 %230, i32 %.02632)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %231 = load i32, ptr %2, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = icmp slt i64 %indvars.iv.next, %232
  br i1 %233, label %.lr.ph, label %.preheader31, !llvm.loop !24

.split.us:                                        ; preds = %.lr.ph42, %.preheader31, %._crit_edge.us.5
  %.us-phi = phi i32 [ %spec.select30.us.5, %._crit_edge.us.5 ], [ 0, %.preheader31 ], [ 0, %.lr.ph42 ]
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.us-phi)
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %234, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.stackrestore.p0(ptr %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %236 = load i32, ptr %1, align 4, !tbaa !5
  %237 = add nsw i32 %236, -1
  store i32 %237, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %236, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph42, !llvm.loop !25

._crit_edge:                                      ; preds = %.split.us, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #3

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #6

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

attributes #0 = { mustprogress norecurse 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #4 = { mustprogress 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 = { inlinehint mustprogress 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple 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, !12, !11}
!14 = distinct !{!14, !10, !11, !12}
!15 = distinct !{!15, !10, !12, !11}
!16 = distinct !{!16, !10, !11, !12}
!17 = distinct !{!17, !10, !12, !11}
!18 = distinct !{!18, !10, !11, !12}
!19 = distinct !{!19, !10, !12, !11}
!20 = distinct !{!20, !10, !11, !12}
!21 = distinct !{!21, !10, !12, !11}
!22 = distinct !{!22, !10, !11, !12}
!23 = distinct !{!23, !10, !12, !11}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !10}


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